diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 22b7f2620..6aaaf3431 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,20 +1,20 @@ lockVersion: 2.0.0 id: 44c2cf41-2747-43e2-b448-08f6ab870820 management: - docChecksum: 8869b0f4810b660c9a3147a7aee4d5f0 - docVersion: v0.0.0 - speakeasyVersion: 1.755.1 - generationVersion: 2.865.2 - releaseVersion: 8.0.0 - configChecksum: 4d6dde654e08879326ac9e18c29eb36e + docChecksum: c5450bd6372fe1636b13598ae0d011ef + docVersion: SDK_VERSION + speakeasyVersion: 1.759.3 + generationVersion: 2.869.25 + releaseVersion: 8.1.0 + configChecksum: e60dfe8352bde672009c12400fc5ae33 repoURL: https://github.com/formancehq/formance-sdk-java.git repoSubDirectory: . installationURL: https://github.com/formancehq/formance-sdk-java published: true persistentEdits: - generation_id: d18b9c9b-053b-40c5-88c5-19e744fed890 - pristine_commit_hash: eac30f4497168fae0774e7b9e988241e35cf2e15 - pristine_tree_hash: 3f4952faff028bc9d615e712759a2171da50d131 + generation_id: b3612dfd-09a2-4d87-a069-c5a498593007 + pristine_commit_hash: 19781910f12f8127252ae78ed79512de957c1983 + pristine_tree_hash: c74570c0fcc2bf455f8d5b9de8fbf81ba6954400 features: java: additionalDependencies: 0.1.0 @@ -25,10 +25,12 @@ features: deprecations: 2.81.2 downloadStreams: 0.1.1 errors: 1.0.0 + getRequestBodies: 2.81.1 globalSecurity: 2.83.2 globalSecurityCallbacks: 0.1.0 globalServerURLs: 2.83.1 ignores: 2.81.1 + methodServerURLs: 2.82.2 nameOverrides: 2.81.5 nullables: 0.1.0 oauth2ClientCredentials: 1.1.5 @@ -48,54 +50,622 @@ trackedFiles: id: f07866736216 last_write_checksum: sha1:c027bf07203fdba3e74ae6dd458dd603f8aaffcc pristine_git_object: 5848a51b7c3506b578b159c36ba5c80aaf8d5603 - docs/models/errors/Error.md: - id: d5611a80937b - last_write_checksum: sha1:4866583460bb332478225ec0d64d7fa9665b6620 - pristine_git_object: 5f83b6b692c99efabcf2200a32943ef464f0bb10 - docs/models/errors/ErrorErrorCode.md: - id: 38ff2c50a828 - last_write_checksum: sha1:15c0a836e710c6df2b49e26499890010c9fb347e - pristine_git_object: 2a2983bcff9bfcf3778da96ae33b3e0816896551 - docs/models/errors/ErrorResponse.md: - id: 33e83376310b - last_write_checksum: sha1:9fa8719c9cd6a4815df57d085f4361b5720f0ec6 - pristine_git_object: 292197fabbdea5d83eaf0276555dc70bc566f671 - docs/models/errors/PaymentsErrorResponse.md: - id: 23ee644af906 - last_write_checksum: sha1:97f6027809ceb3de91186d74e33f06916af27d82 - pristine_git_object: 5501a571f71416594b5c4501a8c60b079dce7eed - docs/models/errors/ReconciliationErrorResponse.md: - id: a4e95a9d4745 - last_write_checksum: sha1:7b0f88f36908866844783151ea38a6e86d531d52 - pristine_git_object: 80688664bf23cf44ff7e2afad26442bd33e19d92 - docs/models/errors/V2Error.md: - id: 18f99b445200 - last_write_checksum: sha1:cee299edeede1d9f3c5a9d68d3e80e59f37f9bac - pristine_git_object: 9c202cb6ddf5ba4e6462f09b26e9e8ae8a70891b - docs/models/errors/V2ErrorErrorCode.md: - id: 59d50d389a22 - last_write_checksum: sha1:616da38ed6fd8ad7471efe67fa77894193c4cbff - pristine_git_object: a7d658047b3adbde1163ae3adee9b77b245f15ce - docs/models/errors/V2ErrorResponse.md: - id: dea938e3c9f7 - last_write_checksum: sha1:aea836d3e3731e6e4d58da39a2922cd74dfd41a5 - pristine_git_object: bb36b22886b2a2a4c819bf78ed68f70cb5a0de18 - docs/models/errors/V3ErrorResponse.md: - id: b1247a10e373 - last_write_checksum: sha1:565f817598222dfd77c9d94ad699139166375765 - pristine_git_object: db1c3cd878be180d818ca125913a82ef59140925 - docs/models/errors/WalletsErrorResponse.md: - id: 82b29ab12d20 - last_write_checksum: sha1:95407caaf59c88b37700e8f289dd126f9a8fbdb6 - pristine_git_object: 47ca1aec02d3fffab50691555540eb72d19bb53c - docs/models/errors/WalletsErrorResponseErrorCode.md: - id: 739fcf97249d - last_write_checksum: sha1:f65af9ff11f937c68e7414f60b29002d4ae44888 - pristine_git_object: 167a4c9ed252072245b469fce012cb2fe0221dee - docs/models/errors/WebhooksErrorResponse.md: - id: b3f88621fe4c - last_write_checksum: sha1:f6af8e55b798c901591f7bedb684b3d054bf14ca - pristine_git_object: a3ff115ec9658526d5483988f85b0fcb9ebe5447 + docs/models/auth/ClientOptions1.md: + id: 4d39c2b8ba42 + last_write_checksum: sha1:521b141232f0585182dacbdd4dae4661091ff1ac + pristine_git_object: c85001b65f587eb9e454e6f6f99673e02be3d193 + docs/models/auth/ClientOptions2.md: + id: 99bd117ebb2d + last_write_checksum: sha1:8d98cca11d086014c849cbcd710d6dd65b1f91b7 + pristine_git_object: 4b92f0b45d476813c226414509b820a6a52f56b9 + docs/models/auth/ClientSecret.md: + id: b9b24c26f260 + last_write_checksum: sha1:fc1ccfa9a28912cb6488e7b2c352aee2845f0b35 + pristine_git_object: e0e062c7151b8e65cb7fc4963bd9e14cfb646a66 + docs/models/auth/CreateClientResponse.md: + id: fbaf42c239ef + last_write_checksum: sha1:fc715612cbfaeea9feea1470ee4fdc281b884173 + pristine_git_object: e0892aecf94982ac88ef56064dadd18fa44d7fc4 + docs/models/auth/CreateSecretResponse.md: + id: 8073e2bf18ae + last_write_checksum: sha1:3930deaf95d0a19d2036d6feab15f54db7e78933 + pristine_git_object: 501d39b23ddc06bda4cb2af83255f0f9c6b408a1 + docs/models/auth/ListClientsResponse.md: + id: a39f93eba4f8 + last_write_checksum: sha1:9e712d68b474365ea634cc17a44d042818000344 + pristine_git_object: 5460ed7855cad231dfbeccaa4abb2eee406e6b75 + docs/models/auth/ListUsersResponse.md: + id: 293635455aac + last_write_checksum: sha1:21200dcda237a5787cdb905368667df9a0cd2aca + pristine_git_object: e8967ade809ed215ad9b7c68491f28c28c4c9a88 + docs/models/auth/ReadClientResponse.md: + id: e3bb67d3927d + last_write_checksum: sha1:dac3ff48f51855ac7ad20724b79f41f860e60750 + pristine_git_object: e02b0e8daf519ac6adad4876dbfec245ad50b65d + docs/models/auth/ReadUserResponse.md: + id: 8ff2bb70a5c0 + last_write_checksum: sha1:8a2151878351d28d7a074d597aaab7f10d60b554 + pristine_git_object: 5e974a3e9779991411e26ce175fac5d866c1116f + docs/models/auth/SecretOptions1.md: + id: d8bfdc9dbd4a + last_write_checksum: sha1:efeb86d2daedeaa8cb0890c46c9c242d51f5a746 + pristine_git_object: 5c34236e9226dcf643369e93ae830e66d3006498 + docs/models/auth/SecretOptions2.md: + id: bea3b713d29d + last_write_checksum: sha1:b7173cb24691a034c3403027cf82eb1c50851d5f + pristine_git_object: a521d9352d322a4cebbb9b052b962d5fc45486b1 + docs/models/auth/ServerInfo.md: + id: ed7829708d65 + last_write_checksum: sha1:97c8ce4fd5bff434e676fb32d23a9af2760126e1 + pristine_git_object: 375caaa222b143d0fa6148ffc9589cc5abdac0a8 + docs/models/auth/User.md: + id: a4d24097f8de + last_write_checksum: sha1:ffe2e4a13958e35d6540f50f734b9614df937fce + pristine_git_object: ac4a329dbbde3e5e03a12bb9adad821ec8370cfe + docs/models/gateway/GetVersionsResponse.md: + id: 8ddfabde8c5a + last_write_checksum: sha1:cd8b0c0410ebf0074db6f2f31b481bbb94ae2bbe + pristine_git_object: 87696e13364bedc153c7b1defe085a64c40da7b9 + docs/models/gateway/Version.md: + id: de4555712410 + last_write_checksum: sha1:af923148d733517eb049c407cd1f4ccc8b23157c + pristine_git_object: bbeb1b43e318e6613a972bd23da61a7178b6f979 + docs/models/ledger/Account.md: + id: 90b7ef8e5949 + last_write_checksum: sha1:846b434f25e512be40cd583c08c37d41e3073185 + pristine_git_object: 2c58275bbab0a7b0d068621cc69b7639c763d78b + docs/models/ledger/AccountResponse.md: + id: 067eeed9a29c + last_write_checksum: sha1:17737ff4bc18652f35118e91faca9210fce77620 + pristine_git_object: da66b64bd3b2c9a1a71c1970102d07df68484390 + docs/models/ledger/AccountWithVolumesAndBalances.md: + id: d2ca3aa57061 + last_write_checksum: sha1:11ee89b15f7d28c4907be2af4d434135eef8b83a + pristine_git_object: b51e3ba9b0a11f2c7a6023f38515c5182dce45b8 + docs/models/ledger/AccountsCursorResponse.md: + id: efbcf998b05e + last_write_checksum: sha1:4a687025b94a6bd58a50abe2c98abf3eb716715a + pristine_git_object: 9ca1a5adf20f33de512d1a87d2bc7458062d3039 + docs/models/ledger/AccountsCursorResponseCursor.md: + id: ec1fa6ff7aef + last_write_checksum: sha1:fd764881b4d49b59c465441e619e2f95ffdf6b01 + pristine_git_object: 38260be08b76e4afc33f70d5fdc84981ecf6eda7 + docs/models/ledger/AggregateBalancesResponse.md: + id: fbf6442bff02 + last_write_checksum: sha1:1a36bff446a377a9062402c3238c25837775049f + pristine_git_object: 160ee1df541166b3437900e2f6f47dc489c0dfa0 + docs/models/ledger/BalancesCursorResponse.md: + id: a3d133c277a4 + last_write_checksum: sha1:5a6f735632411a81777150dc484ff04a51a29e33 + pristine_git_object: a0ea97f44545c28e3b01c13844b1f01a0350a190 + docs/models/ledger/BalancesCursorResponseCursor.md: + id: ee3334704619 + last_write_checksum: sha1:b8c76c795a58181a5d350713559b146a6321ff8f + pristine_git_object: 9ea629b1f906def2280b03eebff1ba3db7fdb637 + docs/models/ledger/Config.md: + id: eafcc0d3db8f + last_write_checksum: sha1:d2bc726e9973bc1ac6ebd168a6104d1343d55a74 + pristine_git_object: bcc3047fb25b5ad356d30a9ea3db6a409fa1f038 + docs/models/ledger/ConfigInfo.md: + id: 1f6129629505 + last_write_checksum: sha1:7244ef47a18693d616c6d706b90c2307d56aab6a + pristine_git_object: c2b99e762aeef54e18e62718fbc92dc380793775 + docs/models/ledger/ConfigInfoResponse.md: + id: d2de43282f8f + last_write_checksum: sha1:614fbc397bc6c73c5b3c13171d99c099a8f5b578 + pristine_git_object: 1bc8aa9ec92ff9cec0971d0243543196617adea9 + docs/models/ledger/Contract.md: + id: e95f54a0e8ff + last_write_checksum: sha1:65545e7441a906137348e16ecc1e0489834bddfb + pristine_git_object: 5862132d184f5cede81712a1d31160b6c0a94624 + docs/models/ledger/Data.md: + id: a6e4ca91a53b + last_write_checksum: sha1:6a66d17d2971829485316a12da65b4bfbfb88047 + pristine_git_object: 34b330dec6ddaf20af43549cb3ce2812b122dfa2 + docs/models/ledger/DotSelf.md: + id: bdbfd04e6102 + last_write_checksum: sha1:5794f003e20bfcab4f50501881214e2dae5c24e7 + pristine_git_object: c0862a7dfec62cc61cce31ea3e3f54ea6f94df90 + docs/models/ledger/ErrorResponse.md: + id: eb97c4f50655 + last_write_checksum: sha1:43ed8161d7580d2501df23489b4b34bb6adf4dd6 + pristine_git_object: 7918947e696a03c6b2c53e1edcbc4dabbcdf8ad7 + docs/models/ledger/ErrorsEnum.md: + id: 49df3aa70967 + last_write_checksum: sha1:97ef2a86a262abdf53c7d0d3f4adfb16c23556e7 + pristine_git_object: 51cb148a8d8cbe9fab34a7670e095e9b8f7ba12a + docs/models/ledger/ErrorsErrorResponse.md: + id: 981915988a5b + last_write_checksum: sha1:fa61b484ec45df065e1ad24358ed33f6f4df1d3f + pristine_git_object: 12ace222b51cad2348fbeec72ec3786226b4e10e + docs/models/ledger/ErrorsV2ErrorResponse.md: + id: c3e643a0913e + last_write_checksum: sha1:7f89830ba7730e3342ee3ff9d4b088a05ad80fc4 + pristine_git_object: 0db3cf3680aa5965fc157114de8f55984afdbd2f + docs/models/ledger/Expr.md: + id: 81f666848cec + last_write_checksum: sha1:d044b5cf953cb576f3e510ca4fda61bab8dae4da + pristine_git_object: 4cd85562815ee2e534ccd03b32f355873b98a001 + docs/models/ledger/LedgerInfo.md: + id: d753cbb6eb21 + last_write_checksum: sha1:ad63cc7b45fed9e42a093563b8a177ee348e71bc + pristine_git_object: a797eef1fc2c93a15c8b1b233a88ab41cfabebfa + docs/models/ledger/LedgerInfoResponse.md: + id: 9d8ef8b3d37b + last_write_checksum: sha1:f36fae0b3878e58fb53389c5987f92793a69877d + pristine_git_object: 7ffa5f2ed4d290fdb00a8fda323d2999bb878cab + docs/models/ledger/LedgerInfoStorage.md: + id: 86fe85347b21 + last_write_checksum: sha1:17f5ba5936b3cc63fe6e9a6512cfe7c10d3769f0 + pristine_git_object: 680e022c255d35ce003bea75f8866d688987626a + docs/models/ledger/LedgerStorage.md: + id: 335b14545f84 + last_write_checksum: sha1:2059df7009ee0cc48585f5c1077907b7dad4f24b + pristine_git_object: 22a85fcf41203ce56d91e6f9fe4f9b35c6e689c8 + docs/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.md: + id: 1d7c519277ec + last_write_checksum: sha1:b2d5a6fa08a2d4d6e06edbd52285f138bb787606 + pristine_git_object: 693e2757eacfb404da5ac423bf8da1f7ccb3f24f + docs/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.md: + id: df712ba4dc97 + last_write_checksum: sha1:ebb5852ff5369fbed60f36d1318208fe81238691 + pristine_git_object: 3c13d17cddb2f6773b7b1f877a25ea2eb8065d3d + docs/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.md: + id: 82168dec64e0 + last_write_checksum: sha1:8b63a37b567efceb8a9183663780afb59c0a02a8 + pristine_git_object: 96f2246b53c811ee4296ad3c203a90be421c8e69 + docs/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.md: + id: 30cb18b83bd8 + last_write_checksum: sha1:cd70421c38a22d3e7c77cdfd666173c7ac99cf94 + pristine_git_object: e16cbe6ce0cdfcf9e9266e8fb517850cdebdfbfc + docs/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.md: + id: 366157e5262e + last_write_checksum: sha1:27d5dcff2e9ac64aa93bd860c913c5bb073f589d + pristine_git_object: c05f2ccff0a44ed0fce5f90ede40478152511174 + docs/models/ledger/Log.md: + id: 9047f1ff6e14 + last_write_checksum: sha1:3244dca9d99d39b74aade08d55f2841f344ccfad + pristine_git_object: a5ecc46776d3c6b92be62fc689c63edd8ab2fc9c + docs/models/ledger/LogType.md: + id: 01f25f89d16e + last_write_checksum: sha1:8c5aa4902309f62c7afbf0c0a5119b5e19a83cfe + pristine_git_object: bc0fa1a8df07f527464f0a8608ca4fa8cefe9d20 + docs/models/ledger/LogsCursorResponse.md: + id: e2da45818452 + last_write_checksum: sha1:57d96f3e5b4bcfd7edf3b13f304eea8205184ace + pristine_git_object: da65c181a634038f1830c4189739e18619f15445 + docs/models/ledger/LogsCursorResponseCursor.md: + id: 6a158937da48 + last_write_checksum: sha1:62df9482e6ddfd4a1b56987c81eefe10b384620f + pristine_git_object: 752210031b0da1ead73c1235e0aad8f10016f85a + docs/models/ledger/Mapping.md: + id: 31a4878521d1 + last_write_checksum: sha1:9ee3d52543954617279cf7c2b544ebb910903602 + pristine_git_object: 33c366d7cc14721b76095f0436ab7627a0afdc22 + docs/models/ledger/MappingResponse.md: + id: 0bc9304e8428 + last_write_checksum: sha1:53b4b38ded86aa20feb009e3a91b3b2bd73131c3 + pristine_git_object: 2b653fe3e11c6101ad4f235ce840ea3240e5c284 + docs/models/ledger/MigrationInfo.md: + id: c850ba09318e + last_write_checksum: sha1:d94651f3469984ae83af3c029ad98d4f1685752c + pristine_git_object: b63c2360822d8436592e555df615a3ea1c994780 + docs/models/ledger/MigrationInfoState.md: + id: 0eac9be7d4de + last_write_checksum: sha1:6b13d0c41e5409059ffa9f943d38a31b5743c944 + pristine_git_object: 6090996e322f8e8b8fa00a22438921b38d267965 + docs/models/ledger/PostTransaction.md: + id: 76576a85fc4b + last_write_checksum: sha1:0e1350d6f199323ea841d80bee004459066fbf57 + pristine_git_object: c29e25e5be78fd3093875a5d2a57a59a0406bcef + docs/models/ledger/PostTransactionScript.md: + id: 1a445af889a3 + last_write_checksum: sha1:5a8d8c700416f8b2e25e899c07274e9726c18e90 + pristine_git_object: 7c97043521bab68dcb83d92cc2f3f8682479b749 + docs/models/ledger/Posting.md: + id: e149a679c1ab + last_write_checksum: sha1:664e0a7d44beedcacf2cea4164bcb76154a2a5d9 + pristine_git_object: 8fca4a0b2ee934a0bdd48c2aaec750e8338abea4 + docs/models/ledger/QueryTemplateAccountParams.md: + id: 6ceaf57b6f0d + last_write_checksum: sha1:236778a0cd6f9548e0be1fdac927727706de3d5f + pristine_git_object: a50c3595adfb11ae9b7ca2c3a7177a27ddb47ec2 + docs/models/ledger/QueryTemplateLogParams.md: + id: 47e736855cc6 + last_write_checksum: sha1:7720d20a75c8faba47ff0a37bf81c0afad0c71c7 + pristine_git_object: 5fd898d1eadbd4cadbfca5cda290b2351d004c14 + docs/models/ledger/QueryTemplateTransactionParams.md: + id: 343d30aa5262 + last_write_checksum: sha1:71f418a7f1f2486bf7ec0320823f2943947d12fc + pristine_git_object: 2f3778b552b12ef7bebe4751f3ccc23ca4b31700 + docs/models/ledger/QueryTemplateVolumeParams.md: + id: 5d5a1044f2c7 + last_write_checksum: sha1:8d703b0fb6c2a358cb916a04d2a1027b07d417af + pristine_git_object: e09f6e070984b4a8f29e6e9acd0a8e2b479ce07d + docs/models/ledger/Runtime.md: + id: ca57655776f0 + last_write_checksum: sha1:1b8fc80ec2689280b1bb903bc38ec212be2c5984 + pristine_git_object: 4b196a0d1da7a24b2c0d5e58a9526bb4651d8569 + docs/models/ledger/Script.md: + id: a9db5c1d7b28 + last_write_checksum: sha1:f39cf000a763081cef3bbfaf2f64e4b6aff9805d + pristine_git_object: 279124dd57db173baf2e6827724c7634e67cce18 + docs/models/ledger/ScriptResponse.md: + id: 69e88e226f43 + last_write_checksum: sha1:2e450fa57e7ed9eeb2a3c41dc4ed6e94010c4c87 + pristine_git_object: 1d083c7897244d37c8a1067b2736242e5c0a66c8 + docs/models/ledger/Stats.md: + id: cd8888b0b440 + last_write_checksum: sha1:42554b3325d6be94a96db3a2f45ca6c182b8550b + pristine_git_object: 876ce4fb53a5c43bd39ba51bd1d0e0e31fbb9f12 + docs/models/ledger/StatsResponse.md: + id: c43eda5e00e8 + last_write_checksum: sha1:c719cfbeb330df46955e8a79463e72999244e270 + pristine_git_object: de1e4459dc483d52a702b46184030a1a8aa54617 + docs/models/ledger/Transaction.md: + id: 1115da664413 + last_write_checksum: sha1:4ab06c222ec7ce88f7b88c5b5f612d5fb3c3e60e + pristine_git_object: 7dfa9da108df9c7fc8cf74e469adb121bbaeb9d0 + docs/models/ledger/TransactionData.md: + id: ad60e7f63884 + last_write_checksum: sha1:623eb9b95b91726b0d839a8804f36ff146c7dc5c + pristine_git_object: e44e290d45c415b273f13869e40f229433e733e9 + docs/models/ledger/TransactionResponse.md: + id: 842324aa17b4 + last_write_checksum: sha1:ea3fce2ad45c4007c9cd72adb06dd810f00d3d49 + pristine_git_object: 1553b25ee062fc24ca3d21955c7aa35c4cbe6ada + docs/models/ledger/Transactions.md: + id: 9c849d9e044b + last_write_checksum: sha1:331814c809e399d116d1ca9ff10d80d7da2e6d34 + pristine_git_object: 07765189ec914af3c84db93e07f4ab8d227a3cf2 + docs/models/ledger/TransactionsCursorResponse.md: + id: 2cf567898faf + last_write_checksum: sha1:c1aad2522882162ce34d7d88083672a3202c88f2 + pristine_git_object: ef50e9a26b5e2b3473ce3d3272297f307da17fd0 + docs/models/ledger/TransactionsCursorResponseCursor.md: + id: eeb1729caf3b + last_write_checksum: sha1:4fe077364071c2120e33087507340bdb76e42053 + pristine_git_object: 8b877f402aa0f3d33efcd516d634fde68607a2e2 + docs/models/ledger/TransactionsResponse.md: + id: 7d87d03340c5 + last_write_checksum: sha1:6342be3c3d5f5468db21495120f8cb9e9e19c28c + pristine_git_object: 765ae90b0985e30193949c7b960d4dd4e03f7b53 + docs/models/ledger/V2Account.md: + id: c135a39c686a + last_write_checksum: sha1:5c2bc2194fa639714c7aef4e2b40e654666f2339 + pristine_git_object: f3a06ea9327025177c1b22defa40cb67dffc4a7d + docs/models/ledger/V2AccountResponse.md: + id: e30d5ad43617 + last_write_checksum: sha1:8614659353bb7bc03e01258f5fe941df11c0818b + pristine_git_object: 64dbb9ff80864159502a7da537c0c0693441b183 + docs/models/ledger/V2AccountsCursorResponse.md: + id: 9c7572457acd + last_write_checksum: sha1:0b64c232dda07388e7afb0dbffb2c69f422a4002 + pristine_git_object: 46bc8fd72cadf27d8f9ba9f199a2c62afec642df + docs/models/ledger/V2AccountsCursorResponseCursor.md: + id: b456354f7ce7 + last_write_checksum: sha1:7156b839825c90a97cc3762c4bdde4af0f3e463d + pristine_git_object: 3c10565030541653b91c2fa52061900fb2aea438 + docs/models/ledger/V2AccountsCursorResponseResource.md: + id: d0dcab36f60d + last_write_checksum: sha1:1e88684671624366a1b70ae1ff900b00ed0b3cb4 + pristine_git_object: 1cb66b517ff933671e73de2b3ba1b6e1d7ace7fe + docs/models/ledger/V2AggregateBalancesResponse.md: + id: dcd4c111aa2c + last_write_checksum: sha1:a49d7875eb7ef97ab49539ab47a64bcc8b48b8cd + pristine_git_object: 22203cc7cd8927984cf109b96f990b548be62193 + docs/models/ledger/V2BaseBulkElement.md: + id: afd1c0a80756 + last_write_checksum: sha1:75203f51016041f0f80855324c9ac703d5357d82 + pristine_git_object: 20e0ae72bd2e22bef815fa1ab3c01d97268603dc + docs/models/ledger/V2BulkElementResult.md: + id: f316ca3b40b5 + last_write_checksum: sha1:8c3c477c5d888e6d193508aecd4a19e96f3c4d1c + pristine_git_object: adc9f54ff5c5263ad60f7993f5edd878048cbff3 + docs/models/ledger/V2BulkResponse.md: + id: e4155a0c7436 + last_write_checksum: sha1:0ff0f4fb4bf58a675dd38d7b40d6819b79be42d0 + pristine_git_object: bf496986546552effc1ee34d7a3fa7cf1186fbc1 + docs/models/ledger/V2ChartAccountMetadata.md: + id: c45d7d56250c + last_write_checksum: sha1:21363e9c2ebaf9a51c1c9c0e8323f3fdcf353dfc + pristine_git_object: eae00677c02b6e52d240769ad44872a96aa47645 + docs/models/ledger/V2ChartAccountRules.md: + id: 6d9153553736 + last_write_checksum: sha1:d169735f4e3fc2f0c9ffbda8814db15a9a255507 + pristine_git_object: b79d01a9c3275be88cd13a8c2a0234a1d138f4dd + docs/models/ledger/V2ChartSegment.md: + id: d91eef959936 + last_write_checksum: sha1:9608953c42896c722957eda52ea3f51fc2cdfd9d + pristine_git_object: 07f9b39db8b59fe272c0a39790286724a9d771de + docs/models/ledger/V2ConfigInfo.md: + id: f0add7fd3a2a + last_write_checksum: sha1:b5c5b55b349e670c8425fd207755484627acc43c + pristine_git_object: 2a0caccd526aa4682c4fe0f8ef56af7aa47008fd + docs/models/ledger/V2CreateExporterResponse.md: + id: ef6fa2ef8f6e + last_write_checksum: sha1:832af7f70300858f9a41aba2462959f0b78bf0ed + pristine_git_object: d29ec431ba11a1fdcffc46ff9056c563921cf3c7 + docs/models/ledger/V2CreateLedgerRequest.md: + id: 70f96ffafbe7 + last_write_checksum: sha1:0052491bf72077aa5aee83cc45bce966b0d6c83c + pristine_git_object: 8203674780a688e100c7f8eb5e76c4a958d38877 + docs/models/ledger/V2CreatePipelineRequest.md: + id: 0e32dc0edd5b + last_write_checksum: sha1:f44ce8899c232b22437ffcdb233653367a9832a1 + pristine_git_object: 6deab1f5d0895ed756eaf98ebea61d0e98485958 + docs/models/ledger/V2CreatePipelineResponse.md: + id: dcdca7d17985 + last_write_checksum: sha1:bdcc0e844f4005f2a3eec5d71fa87dc7acacb732 + pristine_git_object: 19af3b4d4500c368f95913e23cbbc1e244594707 + docs/models/ledger/V2CreateTransactionResponse.md: + id: 62dead9331a0 + last_write_checksum: sha1:b24be5b46bba25cadaa0529c0755d1014f1c541b + pristine_git_object: 678eef91d5c31f0e3d9e28514740fefeed0e03e8 + docs/models/ledger/V2ErrorResponse.md: + id: 89c8a1311944 + last_write_checksum: sha1:91523eef8e30ceb846d58b9b440759f84eea941e + pristine_git_object: d9a65fcc42bc0b146b7402830c61012e96182dbc + docs/models/ledger/V2ErrorsEnum.md: + id: 6507c9488734 + last_write_checksum: sha1:7abdb73555bfc841ae140132e079eaf2eb6c572f + pristine_git_object: bd9db7087eeb06160e62f5e2bcc7478814072115 + docs/models/ledger/V2ExporterConfiguration1.md: + id: 5389ce50ba2b + last_write_checksum: sha1:61cd710d102311c91735c69e1d833659360b40df + pristine_git_object: 2818963971017886ac5d823034974180481681b0 + docs/models/ledger/V2ExporterConfiguration2.md: + id: 9ec6784d4716 + last_write_checksum: sha1:bf44df2df88c46acc6845a3d79abc89f0c509030 + pristine_git_object: ad22ae4d99c6bc9bb8be197841ac8c477f914117 + docs/models/ledger/V2ExportersCursorResponse.md: + id: e9f305a5c61e + last_write_checksum: sha1:ba5ce9d747e344f080012529e610de9040ce65fe + pristine_git_object: 71a2c8988ab4a59f1b0839933d4803dfd36b2474 + docs/models/ledger/V2ExportersCursorResponseCursor.md: + id: ea52045aa7e9 + last_write_checksum: sha1:a354fd4190dfd6fbab9a1eeecb883994606eb51c + pristine_git_object: 6c98164d6fbf6abd722dccbcbd8cb983ee38d503 + docs/models/ledger/V2GetExporterStateResponse.md: + id: cddb81e3de4b + last_write_checksum: sha1:ec2a3465fc59e6e074f24b002a174111ac2f33cb + pristine_git_object: 9125d32559f2fd95d373b3d5a19d90bf11e300ff + docs/models/ledger/V2GetLedgerResponse.md: + id: 44b6db6fd5f4 + last_write_checksum: sha1:d11a3c68ccfd0c3c234f93f00403384be3d3177a + pristine_git_object: 0b8995994b12330ef59b2c7bf1268fb04163074a + docs/models/ledger/V2GetPipelineStateResponse.md: + id: faabe17ba5b3 + last_write_checksum: sha1:1628d30b8db56cb48ed82104ed6b87581358ad7f + pristine_git_object: da0715da44ac6145bc986ca8349ef6ee3a8ac59e + docs/models/ledger/V2GetTransactionResponse.md: + id: d96053e98f8b + last_write_checksum: sha1:c9b2249af118e2f4ed9048d0cdd5bf691d239871 + pristine_git_object: 01d8adfe0d077c02d308e9c7867cab22eeb1d940 + docs/models/ledger/V2Ledger.md: + id: c293e58ee563 + last_write_checksum: sha1:61bd082e6c9ba1185d0480191e0876c57d4800ef + pristine_git_object: 7f126bb9fdc04b0253785eb9ab8cb7a0fdf4c526 + docs/models/ledger/V2LedgerInfo.md: + id: cd9c07cf580e + last_write_checksum: sha1:cf541d5b6c9e709d53ba5e9f9594dbde5952084a + pristine_git_object: 5f205937124f1888ac0d79f2dab36cf41b388c73 + docs/models/ledger/V2LedgerInfoResponse.md: + id: a42decedc1eb + last_write_checksum: sha1:082a4b7a2cf84475e211bbe1adc523768f70911b + pristine_git_object: 3679df86beef5e05e0e8cc9ff104cb59d65afbe4 + docs/models/ledger/V2LedgerInfoStorage.md: + id: be6fc32c438f + last_write_checksum: sha1:8eb5fb1ca9ddbf37236bbad498faee7eef7ba000 + pristine_git_object: 8b86e6325150cfb2f396ba636e162650db80e54c + docs/models/ledger/V2LedgerListResponse.md: + id: 9cf705e3a974 + last_write_checksum: sha1:c8939838e98159a435fc32a8171944571f72d472 + pristine_git_object: cf536b522ea2bb89b468fea8ae7ad32f5e0253b2 + docs/models/ledger/V2LedgerListResponseCursor.md: + id: d8efca16ae2b + last_write_checksum: sha1:a18e664a3eacee01e0c62d61b98626fa54d95de1 + pristine_git_object: cbe03d4c03064f569993d5bfe4465e12997823e5 + docs/models/ledger/V2Log.md: + id: 272b10f865cf + last_write_checksum: sha1:137030e82daf0ac142867df8ed5026050b824303 + pristine_git_object: 792117fcc22ba967d9b7878ec6ac4e69fd94da18 + docs/models/ledger/V2LogDataDeleteMetadata.md: + id: 99185ca1660b + last_write_checksum: sha1:d52ae1b008fafc4585e4d5d480a54d3a900f6c98 + pristine_git_object: 32f74dfc93228f250745decc6aa419db2e221f72 + docs/models/ledger/V2LogDataDeleteMetadataTargetId.md: + id: 9a3fd1e4fff0 + last_write_checksum: sha1:8ec59055ba75b2ee4beaedd25159d3c43ad33daa + pristine_git_object: 4e7260c761a9ed1263841077ed6f735a539f52e5 + docs/models/ledger/V2LogDataDeleteMetadataTargetType.md: + id: 82c303bedbad + last_write_checksum: sha1:4a0aae0cb74e78740059902b1b855b1bf65d1726 + pristine_git_object: 9852ffcf0d787ee7287966d0430ec6783ac3ce19 + docs/models/ledger/V2LogDataInsertedSchema.md: + id: 04561ca3a499 + last_write_checksum: sha1:f5dad0279a2ddf0f1d8140f87b980b1eeeee5a5c + pristine_git_object: 491eda9b744511068ca9fe369349c022772280f2 + docs/models/ledger/V2LogDataNewTransaction.md: + id: 52e4c30d2efc + last_write_checksum: sha1:8d9883ffcc35a10bf01c9692f6c67346e00e9a5f + pristine_git_object: 862cb1fb6449840c64a64e78309864babfb2583a + docs/models/ledger/V2LogDataRevertedTransaction.md: + id: 6f595e6f6cb6 + last_write_checksum: sha1:ce6ee199965f53f71cb719b0978e035cbeb01da6 + pristine_git_object: eb2e1b3bd4ebf4220d38d47a3b0caa0ebd6b5d3c + docs/models/ledger/V2LogDataSetMetadata.md: + id: f712e73e2fc3 + last_write_checksum: sha1:c3add69fa740f1bf3fb91e2fb164ee429eb8b647 + pristine_git_object: a0b8795ca9a94d589c3e765fe5ee5c4a17d5fbcf + docs/models/ledger/V2LogDataSetMetadataTargetId.md: + id: 812a9ccd6097 + last_write_checksum: sha1:fb12654606a6000e6077cbd2583624885c807c46 + pristine_git_object: 43bfb0b22b5e268550907e2a2c7c676e1b8440d5 + docs/models/ledger/V2LogDataSetMetadataTargetType.md: + id: 80fbdc7f93a5 + last_write_checksum: sha1:7c44d21fbe9185be28b4b0c40a2976990933bb60 + pristine_git_object: 874b81735bd387fd6dfec4b35b278b0fb87b45f5 + docs/models/ledger/V2LogTransaction.md: + id: bc832ddd1c30 + last_write_checksum: sha1:17a586c51abd926a5c71bb7641c08b1fade03f72 + pristine_git_object: 1ae9c54ee9f5be3ec28f010a96786ca60d3b2032 + docs/models/ledger/V2LogType.md: + id: e0fb29b3aacf + last_write_checksum: sha1:e68f72c1fdc624ffc452a7434daf06eda1809ebb + pristine_git_object: 2a6f303c0d2dde7c97ce29ded5f379a6b02407a3 + docs/models/ledger/V2LogsCursorResponse.md: + id: fbc6e2579c0f + last_write_checksum: sha1:503fce8b28c3ec06c28aca70802b585ecf0e5cdc + pristine_git_object: 2130cc3a2b7c5fec7745664f0cfa9b3eebfea052 + docs/models/ledger/V2LogsCursorResponseCursor.md: + id: 13f070484dd4 + last_write_checksum: sha1:89f1ab67b69b539ce7858256015210087dc47218 + pristine_git_object: 370656eaece9fc40812553610a2e19cca4262a5e + docs/models/ledger/V2LogsCursorResponseResource.md: + id: 682ff8550b7b + last_write_checksum: sha1:75de970aec11a2dc9031500a8a69bcdb8abe0624 + pristine_git_object: 09e27b40f0fa2b5ade0943fc9b50805a431c09f6 + docs/models/ledger/V2MigrationInfo.md: + id: 2e9fca30227a + last_write_checksum: sha1:e777344c4c2072f0984b21cf8bf4618ea91c7bb6 + pristine_git_object: 1e00644ea95935d59a0c1942854a7a290dcf086b + docs/models/ledger/V2MigrationInfoState.md: + id: 6cf87d8677ca + last_write_checksum: sha1:1fef448f620775dd0898773bd8d116262231981c + pristine_git_object: 3642888dfdaca9dfc386105294267010df78051a + docs/models/ledger/V2PipelineConfiguration.md: + id: 5390e1542ef3 + last_write_checksum: sha1:02b9f87f4d5997c046dce110cc49b0356c25f59a + pristine_git_object: 122994f8ec3be3cf797615a568d0068f1389ac5d + docs/models/ledger/V2PipelinesCursorResponse.md: + id: aa53966e7f14 + last_write_checksum: sha1:3d21b85fd96a918c7f2ceed3109c7a1ad96e72c1 + pristine_git_object: 0671889d0864b059ebbff5a3c00e1689a5355e24 + docs/models/ledger/V2PipelinesCursorResponseCursor.md: + id: fa25f4fb9cda + last_write_checksum: sha1:e1b9cb6bc70b1af71cec1cdaf444ee3322117edb + pristine_git_object: cf0b0746fc0b126740cf07a793946c0dca3fa4ce + docs/models/ledger/V2PostTransaction.md: + id: eba5b4cba801 + last_write_checksum: sha1:6397eb79c1ff8042972746097b7d9621f3abe15d + pristine_git_object: 3f59ec1884a363169ab6e37b43474442506f84d9 + docs/models/ledger/V2PostTransactionScript.md: + id: a9d807e8f6b6 + last_write_checksum: sha1:47a34c2d40650bdce500dbda5761f6d821ecabda + pristine_git_object: d4d1d0a5eee3d4605fbadbd2ab1ecd506e6f4916 + docs/models/ledger/V2Posting.md: + id: 57d79aaf00dd + last_write_checksum: sha1:39592665119f0348f44ab9b078f257a4ead56b71 + pristine_git_object: 7e2daedd0cb78ca1bda1263150ca3e03bcabe8e5 + docs/models/ledger/V2QueryParams.md: + id: f4a4b0b591eb + last_write_checksum: sha1:505f8316ec5f776c4ad779a7545c6936a5ed2235 + pristine_git_object: 64184dca09ec733234cf7fa6a24726270cc6150d + docs/models/ledger/V2QueryParamsResourceAccounts.md: + id: 3d9e6f1a26a4 + last_write_checksum: sha1:552eadf5e82aac2af3b4540b6562badacc3d04c8 + pristine_git_object: f26d92189125c14a2b69863d7071aca4f2532e55 + docs/models/ledger/V2QueryParamsResourceLogs.md: + id: 41eb924bedb8 + last_write_checksum: sha1:cf6611d39157d900ed5798fbbe7469c25ab8f14c + pristine_git_object: 5548017f64a4cb6f2817e4726a517d58ded92e08 + docs/models/ledger/V2QueryParamsResourceTransactions.md: + id: 24349c8ead51 + last_write_checksum: sha1:1abb2764c5ee3e02be287eab6fc567d0d3590551 + pristine_git_object: 2f58c6a9472f849b888be1d8a9d10fee280224ba + docs/models/ledger/V2QueryParamsResourceVolumes.md: + id: fb0103297ca8 + last_write_checksum: sha1:e6cf12f5cf0be78ce369f41ecb70e4ddd1bd37a5 + pristine_git_object: 8e7cab153d7ee717bbf957a875a1093d81fb7ec3 + docs/models/ledger/V2QueryResource.md: + id: 6b16fe776d91 + last_write_checksum: sha1:f462cad81bc7aa6b8a2655c99c7b4fb6be183d65 + pristine_git_object: 17f03550a41fb610e24507281f53cce63233e69d + docs/models/ledger/V2QueryTemplate.md: + id: e354cc4b26c0 + last_write_checksum: sha1:932e46ea5cbc3de065ded20932ac29d42e038938 + pristine_git_object: edce92b697dd284443671b3f05d04d54c2cf16d3 + docs/models/ledger/V2QueryTemplateVar.md: + id: 09c13e8d4c5a + last_write_checksum: sha1:5d39e604df2fcae4a08d3202e658ea7921bdd66c + pristine_git_object: c2151c3fa5a3ec870918dfbcfb99d82472c46e2d + docs/models/ledger/V2RevertTransactionRequest.md: + id: 1a7b305f858f + last_write_checksum: sha1:fbe579139b2d1fd6993aa6db986c9196c347a871 + pristine_git_object: 6a91c6a9a4e65eb35a7e61a785b600498e8f085f + docs/models/ledger/V2SchemaData1.md: + id: f3b9a5853204 + last_write_checksum: sha1:e08d3107f5c2a0e53a7055366089c589b6a8c72b + pristine_git_object: 2a358ab8e7e82dfb6b682168b6e67b076e7fab92 + docs/models/ledger/V2SchemaData2.md: + id: dec04e3f1d47 + last_write_checksum: sha1:5959753616ff434367024250ad436daa141e5636 + pristine_git_object: c383b3ff27dce27fdf5b00776f1e23b01a918b3f + docs/models/ledger/V2SchemaResponse.md: + id: 0a2f77f7b10e + last_write_checksum: sha1:4959fa462880633552a5c13616a1d460ad426399 + pristine_git_object: 8961410c7a62cbdfebceb4fb0cf583adb4e2fed1 + docs/models/ledger/V2SchemasCursor.md: + id: 864caa64aa6e + last_write_checksum: sha1:d9d7dddb343d3b439e35f74251b452e3a7416d06 + pristine_git_object: ace63536ad40bcdf5604467441ae2ca476e0133d + docs/models/ledger/V2SchemasCursorResponse.md: + id: b0f97eab7439 + last_write_checksum: sha1:40daf7422576bceacd3e563b52d0bfb60b20358f + pristine_git_object: e416e097cd5fdcf4d018e5441be7913242fcfe77 + docs/models/ledger/V2Stats.md: + id: 868822eab709 + last_write_checksum: sha1:fc3cc772910f247006255f51035effec12be50a1 + pristine_git_object: a6065d9326864797c90353aba292953dfb885345 + docs/models/ledger/V2StatsResponse.md: + id: b07ba4162a32 + last_write_checksum: sha1:bc31513476395eaeea7a33d3c10e2e89d72bd535 + pristine_git_object: 1292fd500f7d29410e99691484babf18a5206222 + docs/models/ledger/V2Transaction.md: + id: a0ce2a85d2f8 + last_write_checksum: sha1:e3281edb606fb33ac9497007bf80e17ea0858122 + pristine_git_object: 78d5ede964c9b325bc0225f91f889305f109e3a0 + docs/models/ledger/V2TransactionTemplate.md: + id: 0f7260cb4690 + last_write_checksum: sha1:a4d0fff7264a64c15f950b92bf4fab05f63b3eca + pristine_git_object: 9caa8e943d98c8040d7006e06e638b4ff90875b2 + docs/models/ledger/V2TransactionsCursorResponse.md: + id: e09c6ae300a5 + last_write_checksum: sha1:437dea680dcee7909f2026bea5e677099b10b58f + pristine_git_object: 6bde1dceedbf0f4d6647d654d151a6253cf2db7c + docs/models/ledger/V2TransactionsCursorResponseCursor.md: + id: 684dc058f471 + last_write_checksum: sha1:633b374cbb80fb76637112b20ab08a75f057330c + pristine_git_object: eac9ce819d8a9087098da529f038256ebd80b1dd + docs/models/ledger/V2TransactionsCursorResponseResource.md: + id: 34d34cfd400a + last_write_checksum: sha1:b64b6d870cfcde46e35d06a23ffc9623a839dff8 + pristine_git_object: ee62e2e6d1dab5fdc5c8052eb9e56722578b7f74 + docs/models/ledger/V2Volume.md: + id: e082e8193a40 + last_write_checksum: sha1:20d057ee0c72eb277fdd669184053075dc4819e2 + pristine_git_object: 06c7a1ea479983fb56b3b48c4afb879ade3afe2e + docs/models/ledger/V2VolumesWithBalance.md: + id: 4c2f2054e76e + last_write_checksum: sha1:216dc2c50b86dc9c69e0f892c6e842aedc0ecba6 + pristine_git_object: 7ab6e7c3cb981ddd8cb0c3a2d67f7ea0cc1b03ff + docs/models/ledger/V2VolumesWithBalanceCursorResponse.md: + id: 16891083799c + last_write_checksum: sha1:3419a73b47c0c8a38b9c18aedaefbfe0b8c19e59 + pristine_git_object: cd14ed6ee6747b95b441648a294e73aedcd70836 + docs/models/ledger/V2VolumesWithBalanceCursorResponseCursor.md: + id: 68b2e42d7653 + last_write_checksum: sha1:6f831656eabe44f3fd8e81041bc1638d1ba0449b + pristine_git_object: 5e5d5c9981945542a3b7ffbc9ed7b44cb81b9593 + docs/models/ledger/V2VolumesWithBalanceCursorResponseResource.md: + id: 8844e4809491 + last_write_checksum: sha1:29291fd3b07bdf315e45aab2f404d0adbef76e8a + pristine_git_object: 42ca872d40597367878602faacddeec9c8731bdb + docs/models/ledger/Volume.md: + id: 7a418585ef2f + last_write_checksum: sha1:f3814b4c9ce40da791a1700a8d27d86d87886cdd + pristine_git_object: a7d322c8cebb15316f5a421ef5df5a59e28995c3 docs/models/operations/ActivateConfigRequest.md: id: f41c7944ae08 last_write_checksum: sha1:2cb2e38a7b923071e43009c5911add1c2587886b @@ -178,12 +748,12 @@ trackedFiles: pristine_git_object: cf314417761d10bbd680bbe71deac3c92e5b9385 docs/models/operations/CreateAccountResponse.md: id: cba276ed97a2 - last_write_checksum: sha1:201aa06a68ac2c8a315d11adc752c274a273ee41 - pristine_git_object: e1924e6cba33a3a61fe9050f75aa6cf794d34c5e + last_write_checksum: sha1:bd397b0c6f5b814140f6c3998b0b9889d0fac60d + pristine_git_object: aaf79864c99706fce11342663b90382399fe398b docs/models/operations/CreateBalanceRequest.md: id: e211c4eda4d2 - last_write_checksum: sha1:9a9e56933e33f250a4edac127996b0bbcf454903 - pristine_git_object: 0c19d8f982d0895ee4d90ba52ce8f6594cf0f8e5 + last_write_checksum: sha1:e169856ebfc2c50cad1629624483acbc7a528918 + pristine_git_object: 32751619cc435109e47ea21bb53c52347aebcfc9 docs/models/operations/CreateBalanceResponse.md: id: 1ec4d4e426e8 last_write_checksum: sha1:b20ec6fa9b905c043de0c73bb37396d429df14ac @@ -210,8 +780,8 @@ trackedFiles: pristine_git_object: 87c4bcd355d5e9c9bbae7052502f058d9e9a83fe docs/models/operations/CreateSecretRequest.md: id: 3e12b0f1989e - last_write_checksum: sha1:187e0e0733d4ba7668e0bb30110b12832513df71 - pristine_git_object: 99b6952db270a7a14372a1073edd0803a26d577d + last_write_checksum: sha1:5e58733f608e6200731b55335f2d098f65e4326b + pristine_git_object: c7a30f82dd481caaa0072cb514051f1e52f8ca92 docs/models/operations/CreateSecretResponse.md: id: 185e16538d87 last_write_checksum: sha1:5e0f9656bac29ffda59e48deeabe83750aca4b4f @@ -356,14 +926,22 @@ trackedFiles: id: d9fe2f22d1f4 last_write_checksum: sha1:b9d94c771db5ad7ece26c2278c5ac00857d5a333 pristine_git_object: d12c93713a69321ddb47e905d671e7f6925dca65 - docs/models/operations/GetAccountRequest.md: - id: 4d4f8117d4a4 - last_write_checksum: sha1:2477568e1264c63f10304471d9e07efa71e2638b - pristine_git_object: 32fe7be8d82961fd3b20cbb896311d0635f1b7fe - docs/models/operations/GetAccountResponse.md: - id: ed129d0ce949 - last_write_checksum: sha1:6e7a8b1e70b5f174a8c00f74ffc8ee3fad7372c2 - pristine_git_object: 2b1959cb9ee1d4b720ea5d49cb30e116f208cdbd + docs/models/operations/GetAccountLedgerRequest.md: + id: 119a4ce7b447 + last_write_checksum: sha1:7f113072cf913167a74b5549b0695533b44b5716 + pristine_git_object: cf14bc1049d8647856a58ecb4ca96d0daf593000 + docs/models/operations/GetAccountLedgerResponse.md: + id: 785f743b8d70 + last_write_checksum: sha1:4a7ba6d24fe16604918e62ba77e81c49f79cf9dd + pristine_git_object: e2f70811b9398742c12fb6f60847e5307ad5daa7 + docs/models/operations/GetAccountPaymentsRequest.md: + id: a9f34e631283 + last_write_checksum: sha1:1d56cb7805b1e258f6d0d73601d3462bc2fd5396 + pristine_git_object: cdfbab0085e47b3e3b2e5ebe6556c33070f06861 + docs/models/operations/GetAccountPaymentsResponse.md: + id: dde2fe348993 + last_write_checksum: sha1:7b7af87e7377e137c6fe865a15695e95fcf4be1a + pristine_git_object: 3bad3caa92e8ab03f3f2dcfb87cd8620c6ce6eca docs/models/operations/GetBalanceRequest.md: id: 01054da86a09 last_write_checksum: sha1:abc01547a0870570ee1c335ffb66ab4a7b918efd @@ -536,10 +1114,30 @@ trackedFiles: id: e686f990accf last_write_checksum: sha1:79f79cef689a72b020b84a8c68cbfef263d2f4ba pristine_git_object: 4ea0b149247507f272cacc5fc08127974c934a37 - docs/models/operations/GetServerInfoResponse.md: - id: 3504e51b3ac2 - last_write_checksum: sha1:24ab6a78af9bbdb0342f5b68a1224b6199b2192f - pristine_git_object: 02b8cc0e8f541b1c73275ebce79fcb0783b08f17 + docs/models/operations/GetServerInfoAuthResponse.md: + id: 8bc5217c9589 + last_write_checksum: sha1:69eb4b1df3cd446b9d773c980460046a8470faa5 + pristine_git_object: 6c53151a18bf08d210451d01ffa728034535dc52 + docs/models/operations/GetServerInfoOrchestrationResponse.md: + id: ad256553a6b5 + last_write_checksum: sha1:41559fdb7e106ef9d395a3e6ec4c1a6af3e0d16a + pristine_git_object: 426174b8a3c3479022d006085e52dbea4139741f + docs/models/operations/GetServerInfoPaymentsResponse.md: + id: c85feb04cd5d + last_write_checksum: sha1:6418fb1d6c14f2defcc3bb2e114d08e340495b66 + pristine_git_object: 415377f9dc6ca34c5e1d7f1d080c134bdd6562b7 + docs/models/operations/GetServerInfoReconciliationResponse.md: + id: 85a6c38d4c94 + last_write_checksum: sha1:01333e0472339b51502aba53cd63dc7896a46361 + pristine_git_object: 63f9b2d8fc10ce8fa45a9cdf3dca0886a53ffba6 + docs/models/operations/GetServerInfoSearchResponse.md: + id: de17d28abfd9 + last_write_checksum: sha1:1926880cb47e0d2d2bce245c2324a76d27fa29dd + pristine_git_object: c8a3e4a67a34b3acb670f4dcf588d19d3e44d5a5 + docs/models/operations/GetServerInfoWalletsResponse.md: + id: d84574541dd9 + last_write_checksum: sha1:56cce7ba6c8a3df589ac3fd19deac4abd63e0d66 + pristine_git_object: 919eda7fb39df043174de46544621133df97640a docs/models/operations/GetTransactionRequest.md: id: 7e83fd7f0b7c last_write_checksum: sha1:275b99db46bedfbad84a6e39e2b1222524d4f53f @@ -604,14 +1202,22 @@ trackedFiles: id: 94656c69301e last_write_checksum: sha1:95e168ec255805a53deaa0fbc90b1d39f4db46c1 pristine_git_object: 35fc9454e4a824bdb5aeea75df750ec2588a0e62 - docs/models/operations/ListAccountsRequest.md: - id: 89ee2a4052f6 - last_write_checksum: sha1:3362a0a3afa3e75755f2f10a8b8ff10e0b3b15f5 - pristine_git_object: ef7a685bdfe74ead415e33b90fdd29164f14366d - docs/models/operations/ListAccountsResponse.md: - id: 51191cea7244 - last_write_checksum: sha1:6bd0c269a108468f3d65d873eeb50ed1a13b9fe2 - pristine_git_object: 597762f4498d6c7daac250cfd5ce7d4a4d68ef43 + docs/models/operations/ListAccountsLedgerRequest.md: + id: 264221e6bdb5 + last_write_checksum: sha1:5efaaca811eab5585ba5d70b5c6050b4b9dfbaf1 + pristine_git_object: 38107754414ff82972ae038226e73d7d84d0aeed + docs/models/operations/ListAccountsLedgerResponse.md: + id: 1137fd80ba60 + last_write_checksum: sha1:dc4401bd6c1750f51ef76490141df6c16d2dc77a + pristine_git_object: 26ca893af71c7270d61b27c3dfa1c4c8c109b96d + docs/models/operations/ListAccountsPaymentsRequest.md: + id: edc509c9f4d2 + last_write_checksum: sha1:a309f9b9e819463d6c07fba507d6fb9bb67b2385 + pristine_git_object: 22eb8d06f27d3b655a5338012fec6795623fd66e + docs/models/operations/ListAccountsPaymentsResponse.md: + id: 469b5a462a7a + last_write_checksum: sha1:960f5afae68d563495a91b1a308aeb5dd60f2a33 + pristine_git_object: 74eca97a3a63504a312c3650866aef11e6e71591 docs/models/operations/ListAllConnectorsResponse.md: id: cbf590e967d9 last_write_checksum: sha1:a3db4cf432a1d2d82c454e00e5350469b8c8a4c2 @@ -682,8 +1288,8 @@ trackedFiles: pristine_git_object: 2008bc65370bd5888d34190d8a61d0b5dd15ffa5 docs/models/operations/ListPoliciesRequest.md: id: 733ee54273ea - last_write_checksum: sha1:7cf3dd133cc1000c2d105253fed673cc96d8a8ec - pristine_git_object: 3f87c04a9e2ab144095dead7d46e6811397e4c7a + last_write_checksum: sha1:267ef5689a1f831355fc699b6e8d214d57d9780e + pristine_git_object: 3f1d58cdcf4b9c29f98ba7b2aaa02f3304e7b8f0 docs/models/operations/ListPoliciesResponse.md: id: a44810854964 last_write_checksum: sha1:e0b08b7319f0239dd9293d45e099cbebcbb26d14 @@ -698,8 +1304,8 @@ trackedFiles: pristine_git_object: b72c8d962c69fd3906537c31f47a439985383a64 docs/models/operations/ListReconciliationsRequest.md: id: f5c7e187a721 - last_write_checksum: sha1:a7cb424d78ba2e9e8b727a8c702390bf78b26116 - pristine_git_object: 4b0a1c235f901462d9cd9f3720edb31465922b27 + last_write_checksum: sha1:a09750b4180b9806b28a8d882c851ec9775b2e86 + pristine_git_object: 03f4412117172193d0a6a0d39094363c61603e57 docs/models/operations/ListReconciliationsResponse.md: id: 13a5fd790b9b last_write_checksum: sha1:70166688b11f3006491c3148f8c51f9efd794122 @@ -756,30 +1362,6 @@ trackedFiles: id: f15bc0be9b59 last_write_checksum: sha1:8b7d1cdeb11b8fab357d31c1c38ae753ca84be84 pristine_git_object: 0f347d94ecccae38532a9fb50c49af9394c5bc93 - docs/models/operations/OrchestrationgetServerInfoResponse.md: - id: 330fee6d6d6a - last_write_checksum: sha1:7d2c8c5ea417aa7f6fd4556622c15f18a76b48cc - pristine_git_object: f68cccba3e169366916e28d184928d8065b943c1 - docs/models/operations/PaymentsgetAccountRequest.md: - id: cf6ede6b62d1 - last_write_checksum: sha1:038aefc65ed3ec87b5ca175fd0926c0b9c371e77 - pristine_git_object: be918e308c9f3dd790f543264972ba5cc7d40cf0 - docs/models/operations/PaymentsgetAccountResponse.md: - id: 7851fc1ed4ca - last_write_checksum: sha1:34664cb473e0be47b0df0e7894da18ad22482acb - pristine_git_object: 5e68a79b72558d0da7717e9fde76825381e6d9e4 - docs/models/operations/PaymentsgetServerInfoResponse.md: - id: 2536fe768d5f - last_write_checksum: sha1:c9b9dfdb23e90ba7bc54f6a917806021d58de747 - pristine_git_object: ca5e55cdd34f7379d41a9851bc113601b9308924 - docs/models/operations/PaymentslistAccountsRequest.md: - id: 6259a698fc43 - last_write_checksum: sha1:e0cb327022cf37e2e5302f4fc864054f4aba770c - pristine_git_object: 00db25cb9b7ee67e5a010c49aa6e6aeaacffb0e1 - docs/models/operations/PaymentslistAccountsResponse.md: - id: c6584744729f - last_write_checksum: sha1:2ded8b5841612fbf3943e595fb608006b3346400 - pristine_git_object: ed981c89bab486c960f030c3711ec08156bcdd27 docs/models/operations/ReadClientRequest.md: id: 84242ce1040f last_write_checksum: sha1:664dde5132915fb3e08ddd848784db926144607d @@ -836,10 +1418,6 @@ trackedFiles: id: ea574cfe5df3 last_write_checksum: sha1:955448dc379ec929a4627c7bd28e32acb99d4d6e pristine_git_object: 04d6ba31cd15ab3e1eb7e10a5f6251f5d6313da1 - docs/models/operations/ReconciliationgetServerInfoResponse.md: - id: eb993ffb1033 - last_write_checksum: sha1:4a9f94173a6652ccd3b5790019687b18697026bf - pristine_git_object: 67462ddff88cef33700629e254beb184418f64d8 docs/models/operations/RemoveAccountFromPoolRequest.md: id: d18871b388cd last_write_checksum: sha1:c01cb5bbe44eefd7f3debb519a7eb761f926352b @@ -894,8 +1472,8 @@ trackedFiles: pristine_git_object: 605cd90b561f7e3102961fafb9e3c9a1fbe4675b docs/models/operations/RunScriptResponse.md: id: 7333decf6e45 - last_write_checksum: sha1:5d5c32889460df619ede9e08a15e476ad61c9603 - pristine_git_object: 6430a076017410b3b01013769ad055a3962dca22 + last_write_checksum: sha1:08f9a337b4df209506f9db54617d0bac05f232b7 + pristine_git_object: 740ffe14c6400bd335361087a1ad2176a3439bf4 docs/models/operations/RunWorkflowRequest.md: id: 5685c4a9ea38 last_write_checksum: sha1:65108a28d5aeeed0798ce396b31b984864c2d68a @@ -908,10 +1486,6 @@ trackedFiles: id: 626b41c153e8 last_write_checksum: sha1:69c8de83f9b3429057ebeef4c5d10eb9bbb95f74 pristine_git_object: 4cb01d7f090c8314b4ac19a814fece7d17261355 - docs/models/operations/SearchgetServerInfoResponse.md: - id: 85f044f86d4c - last_write_checksum: sha1:0ffb48398092e8e3f2ca994a5fe98eac2c428b10 - pristine_git_object: 3241cccb93f626bff9397e4cb8227e9ec82b5d3e docs/models/operations/SendEventRequest.md: id: 520033ba2c89 last_write_checksum: sha1:f7a177617015a8b498888a45368bb9b8de17adc2 @@ -970,12 +1544,12 @@ trackedFiles: pristine_git_object: 7858909f6a8038dd9ecbfae298050d0293f57e8e docs/models/operations/UpdateClientRequest.md: id: 77cce529abc5 - last_write_checksum: sha1:484ec47b1b1a67c80b6a6dc508847cf27bf04db5 - pristine_git_object: 4dbe536e1ec7b5138468ead8cc31799a7e4b9715 + last_write_checksum: sha1:6214dfcef2a890d2ffd6f76f818747f0834be2da + pristine_git_object: e750ffd7bd1f0e77120c858d87a65dd25e0acd84 docs/models/operations/UpdateClientResponse.md: id: bd65892533a9 - last_write_checksum: sha1:4160b532428b8f0997c40ad686bd2713430bf0b7 - pristine_git_object: 4b6ba5c2195a0df2a8f0f3474e1f5fbedf218b8c + last_write_checksum: sha1:09cf7331a1ea6891853c5d0648c71291984f35b2 + pristine_git_object: adfa9c05d29b720fa9cf147e9267efe5a1246b4a docs/models/operations/UpdateConfigRequest.md: id: ffb7d1a0185f last_write_checksum: sha1:7d20c256f311588931ded5967e86848332714937 @@ -1062,36 +1636,32 @@ trackedFiles: pristine_git_object: 9deee5277ef756b680e1ec206d99958cb24a6745 docs/models/operations/V2CountAccountsRequest.md: id: 575b82be9343 - last_write_checksum: sha1:111af8c15f4349a214d9ae4aa8902ef9162f1a9d - pristine_git_object: 3d409c7bd3de40f18f6ba876ef37f4e537bc6f19 + last_write_checksum: sha1:8d9cf874913dc54436739c54ebea3b37a15aff26 + pristine_git_object: 64bd816baee86008070656d7f80ab216687579b9 docs/models/operations/V2CountAccountsResponse.md: id: 00063a8e810e last_write_checksum: sha1:cd167be9ce7b03f49ae393f224941c2df4a35260 pristine_git_object: e5ea341f9d70fba7cacfae8d949c6294a615c377 docs/models/operations/V2CountTransactionsRequest.md: id: 5ae38fb81762 - last_write_checksum: sha1:48ad8c73dcf8e3e4802698f8ab83e67893214d1a - pristine_git_object: 6ae127e44c5a4a01284a17bd473bc4cbb379d671 + last_write_checksum: sha1:d9974813207a4d31720113ada3866ffb8d564588 + pristine_git_object: 322d30a94fd673ed648f8287a7535b6960f2a21c docs/models/operations/V2CountTransactionsResponse.md: id: 4d758c4a799f last_write_checksum: sha1:b7075480115c91c9baa21ba6cb2f583bc8d614a7 pristine_git_object: e3c69de346e26c23f900f7c0ed2e6db78ab19538 docs/models/operations/V2CreateBulkRequest.md: id: d8c0af57e8c3 - last_write_checksum: sha1:bdee98beb00a6cfa152511131506b4f7812eea17 - pristine_git_object: d47c86874e0dada110b759ca0c67e5e78d9b12a5 + last_write_checksum: sha1:fd6e1225e2d1905c98437f4833847297e8ae224c + pristine_git_object: 730422722f59d720a5e12d77debee319ea33c054 docs/models/operations/V2CreateBulkResponse.md: id: c5967d398c9b last_write_checksum: sha1:57403e076712a395e351cfafa90e9bf9af243ccf pristine_git_object: 1bb4031caafab0e12d1e07500b9ca714b47b993b docs/models/operations/V2CreateExporterResponse.md: id: 117fef6ad700 - last_write_checksum: sha1:ef05e85cfe5058557065c2e958f1460c7060c7cb - pristine_git_object: 2d41bfb9afe80c11244c8871e9a9b54185411683 - docs/models/operations/V2CreateExporterResponseBody.md: - id: a485f5f6372d - last_write_checksum: sha1:5a8d5d1f7412cabbeace04c4c8a3b7233656e217 - pristine_git_object: e5e8fb0f939f80793030f95b7da038f0800bf302 + last_write_checksum: sha1:64daf8cf921d5e555494814f2e6de4fb6540ec59 + pristine_git_object: 63addc95551228d0f8d0d533cff2b1747807b4c3 docs/models/operations/V2CreateLedgerRequest.md: id: 0f840074405b last_write_checksum: sha1:576d29ff361409f5490e3465fca04361dfc8946c @@ -1106,12 +1676,8 @@ trackedFiles: pristine_git_object: 388a7e63f5854c61cbef466ccfa11541e54a574d docs/models/operations/V2CreatePipelineResponse.md: id: 922b2cd202d3 - last_write_checksum: sha1:013be66ca5ef8418990d8277f84a2fe477a18fb8 - pristine_git_object: fc6c58e74ed260393575866375f6c06994b47c3b - docs/models/operations/V2CreatePipelineResponseBody.md: - id: db81d8a3381c - last_write_checksum: sha1:09f2d0f4a07967e598163db6bc7fb1ebed30b2cb - pristine_git_object: b48652fd8666fb580d8d25a1e961d5cce15722ca + last_write_checksum: sha1:1a075c4f2d131df8631c0572055999d1f08efe94 + pristine_git_object: 7a4898836264ac24b2999c65a62311b657fca92c docs/models/operations/V2CreateTransactionRequest.md: id: 12c33f30e86c last_write_checksum: sha1:ecc91cd177ea5f29274116cd5b96f9c79368b19a @@ -1210,8 +1776,8 @@ trackedFiles: pristine_git_object: a02168270a32a817b864da99ff91d3b59f053ca3 docs/models/operations/V2GetBalancesAggregatedRequest.md: id: dcb52f466bd4 - last_write_checksum: sha1:5376a2c0a2156eb82f96de8528447756448dfe10 - pristine_git_object: 7b13487782325739667b63407071a1e03de73ee2 + last_write_checksum: sha1:b51345ecb8dcb3eeadb07756c0a265719ad5e03a + pristine_git_object: 2763f4e30346158df4054517522976068d622dbc docs/models/operations/V2GetBalancesAggregatedResponse.md: id: 57b6863cc361 last_write_checksum: sha1:732d3afcb6c0117b04c51952dc1f55726a6767bc @@ -1222,16 +1788,12 @@ trackedFiles: pristine_git_object: 131c794e0fc6399116a196981534e3de08929b7c docs/models/operations/V2GetExporterStateResponse.md: id: 3dc5412019a5 - last_write_checksum: sha1:9c828f974ec2e53fb68fb8e38a089852acb7dfe3 - pristine_git_object: 13e62e46abf0eadda56b55e33f98fdc3deaecce4 - docs/models/operations/V2GetExporterStateResponseBody.md: - id: 892d1374dee0 - last_write_checksum: sha1:3d95135a68d9a266b5607d7164fbdd4d33e39681 - pristine_git_object: b6ab8092f4d3b64d98e1005fc08086a54d2f3063 + last_write_checksum: sha1:17c4e4fe99389d6bc0eaf3a297878c8ddf9d13a0 + pristine_git_object: b28312976132e1c99237ef85f55491bd85e8180f docs/models/operations/V2GetInfoResponse.md: id: d7e8a8acd7d7 - last_write_checksum: sha1:7938bcc8292244d6f0d99c2636d5198e9792adb1 - pristine_git_object: 63a74faa0b99d58d9466ea7aaf581816eaf57647 + last_write_checksum: sha1:b27fc0ff708da9b561b5efc21600e5bb7f2cfe2b + pristine_git_object: 163409394038fd14071dd0725e8fd68597f35688 docs/models/operations/V2GetInstanceHistoryRequest.md: id: b260dd3b42eb last_write_checksum: sha1:dc3f0467408657f6e127d951cc75fdf962f947fa @@ -1278,12 +1840,8 @@ trackedFiles: pristine_git_object: 5a4e079b554edaac0005f88e230da25168abe53c docs/models/operations/V2GetPipelineStateResponse.md: id: 3bc89c9751b1 - last_write_checksum: sha1:c7759b2b5a365d8a13696e49b9967a635dd1f05e - pristine_git_object: 538be290eeb8071fab01481932de44aae1e85439 - docs/models/operations/V2GetPipelineStateResponseBody.md: - id: 6e240a9d5fdc - last_write_checksum: sha1:a96db33504aa03adfbc86e0b00ea2adb2808a076 - pristine_git_object: 777200192396c1a4e121e9dbc5f682a0efd142f4 + last_write_checksum: sha1:f8e976cdb28168bf3472ece05c24da9d9cc114d1 + pristine_git_object: 652431aff664ab6e9099f4cd2b59db9f11ff8fdf docs/models/operations/V2GetSchemaRequest.md: id: 670770b426b7 last_write_checksum: sha1:0e6c3762a32a03228d4f9fcf35fbb86db9b1837b @@ -1306,8 +1864,8 @@ trackedFiles: pristine_git_object: 249365be1e3f69d32279f64a9074c87316e7211f docs/models/operations/V2GetVolumesWithBalancesRequest.md: id: e3348a03ef5b - last_write_checksum: sha1:11df6b8853937eda3e72c5a9bd63341a086399ec - pristine_git_object: debba6aefd953b5e446d5997a9fb397b55cbffaf + last_write_checksum: sha1:7c697b2655a5318dcc6f0d5f22182bf906c6dc4b + pristine_git_object: 197c047165ad5c8e0c4b32b2a9be690d17301eb8 docs/models/operations/V2GetVolumesWithBalancesResponse.md: id: 299bdc8a3e17 last_write_checksum: sha1:e214bd90ca678de1b50855cb68dfec52aa571a7a @@ -1330,36 +1888,24 @@ trackedFiles: pristine_git_object: ef7db063ac1c1ccc7ba264f3e96f044764f5953d docs/models/operations/V2InsertSchemaRequest.md: id: 772ea8893fc8 - last_write_checksum: sha1:9dfa31d440961389e9022ec6da6de0fb7437a62a - pristine_git_object: 9375e635dc67d2404bbda8c157bee622a51e3ac6 + last_write_checksum: sha1:1ecbc06211846bb97112cb88d767570bec902882 + pristine_git_object: edf924d88112ae9a5464bb5e0b06e970ace54e25 docs/models/operations/V2InsertSchemaResponse.md: id: ef105af764d7 last_write_checksum: sha1:2ac3c4bc01597a5ab88bf89631a57608e9583448 pristine_git_object: 07f4feefa4dab600406ec14f52396fdb3a27257a docs/models/operations/V2ListAccountsRequest.md: id: 10f1fcc9113a - last_write_checksum: sha1:62b9d49e4749d5a120ad5474f52d933ce65df3e8 - pristine_git_object: d42cbe14bc5af0be7c0a8192e4b146fdc1d79b1f + last_write_checksum: sha1:737d37ac8d234cd36708db31c279b149ea05e552 + pristine_git_object: ec48694ae0ad75977e138045b260a55193c7f480 docs/models/operations/V2ListAccountsResponse.md: id: 274531a8512c last_write_checksum: sha1:1d4ed1b8b1ebd1c1cd9a8a9a5164ab2bfd96155f pristine_git_object: 5ce7402c389d0dd627551a9897008233bb158017 - docs/models/operations/V2ListExportersCursor1.md: - id: c798fa07f34b - last_write_checksum: sha1:130337f335de3990c18bd0a3d567d8579a2d3151 - pristine_git_object: 1c2f63a8813313c6d6019dd6d3d0519af7d16877 - docs/models/operations/V2ListExportersCursor2.md: - id: 644a5e3616dc - last_write_checksum: sha1:f27c70e6008256b302bc2ac3f5b8bdfc288e158d - pristine_git_object: b379f899d3f950c8136472132db08dc5bb325b70 docs/models/operations/V2ListExportersResponse.md: id: 2e5e36e76808 - last_write_checksum: sha1:cead1a279e71ba1816212186e7cae286c580edd5 - pristine_git_object: 6f1d5d078e8b3358c2efeef27ec4e4a0ddd22ead - docs/models/operations/V2ListExportersResponseBody.md: - id: ee67f9b594f2 - last_write_checksum: sha1:3996bce21568bc9a0ef6ec31d0f463589cdf02f9 - pristine_git_object: 6d8d1f5a466efa81023f5a392ef07397c64c98b2 + last_write_checksum: sha1:b50afc1690ebe6445c909155fffbe1d29aac6044 + pristine_git_object: cea3da6dee91e6137800e28729567d422c3a1ab0 docs/models/operations/V2ListInstancesRequest.md: id: 24e084c490d9 last_write_checksum: sha1:10c760c6b2f46e2eb1558266e04a80f89b4c9578 @@ -1370,40 +1916,28 @@ trackedFiles: pristine_git_object: ada4f658dfc04cd528f57bef3bfd12e5e87de7c0 docs/models/operations/V2ListLedgersRequest.md: id: 5d94d29ae2c5 - last_write_checksum: sha1:08ff61006e46911db533494e54dd0918d94eaacd - pristine_git_object: ecb5b8bca506878bb3e6b6835422cc3029d3fcf9 + last_write_checksum: sha1:a58fa495bd52257b0047172a8ae3e1b4c95f66fe + pristine_git_object: a4066b4ee36f6c3b8a3f210949a592d2bdf4b93c docs/models/operations/V2ListLedgersResponse.md: id: a8757e2653da last_write_checksum: sha1:2b53ad0556b195bc6c16cfaa94f2d5a812f27a22 pristine_git_object: 0c9eb92fcf7a984d792b1fe18d3740a1ad06caef docs/models/operations/V2ListLogsRequest.md: id: e0a9db2f6577 - last_write_checksum: sha1:2a222723ae4be679e604eb5b4922e2062ed91e28 - pristine_git_object: a5c5bca81589d47e056ae16ecb61eeaf27beb135 + last_write_checksum: sha1:3f9bd922110349c59b2eefafba1e4589dfaf91a5 + pristine_git_object: 715db8a9a056f626c00c1f1d01831f3c994af83a docs/models/operations/V2ListLogsResponse.md: id: 0f2b8d05f708 last_write_checksum: sha1:f5581acb46264681a3d8707b3e4671c269c4982c pristine_git_object: b6872d3654783da2e7cb0ba8352d495d013ba4bc - docs/models/operations/V2ListPipelinesCursor1.md: - id: 607a5c516836 - last_write_checksum: sha1:43658ae3f42fdddf8b7bdf589d8de8e7cc7d6d89 - pristine_git_object: 5e3b8b9b0b9114c47b3d666666b812b28f929221 - docs/models/operations/V2ListPipelinesCursor2.md: - id: 325a09fc589b - last_write_checksum: sha1:0f856265f8cfd47a5987a091c476704fc86f308b - pristine_git_object: 1943a0a9fab52ac9a00cbc3b663319337443188a docs/models/operations/V2ListPipelinesRequest.md: id: e58c1717dd51 last_write_checksum: sha1:43494fe3d9ae3021012e177e135a16ccda84f1ab pristine_git_object: 00628af3eb9f9136e2a1f1c91cecacd7ca1fb8ae docs/models/operations/V2ListPipelinesResponse.md: id: 0f8f58579846 - last_write_checksum: sha1:76faefb4d983c59e3da89ffcfa6832a7a210a37d - pristine_git_object: 534c5291493d4457720e295cc6dc2cdeb9d42469 - docs/models/operations/V2ListPipelinesResponseBody.md: - id: 6076f9bfe444 - last_write_checksum: sha1:fbb7c9d1ab280967b105f1257cd6b73abdb6cedf - pristine_git_object: 9b9dae53723b6144301d1ecc44817d29aa963f3e + last_write_checksum: sha1:17697a6007b4df4cd20db71bfd56093d3c3d602f + pristine_git_object: 84b6c00cf2039cae87805eb98cf46cb5163f0150 docs/models/operations/V2ListSchemasOrder.md: id: df688306996a last_write_checksum: sha1:5a6d1e2b89924d4e187e1eb20d9ad9a1e2d32506 @@ -1422,8 +1956,8 @@ trackedFiles: pristine_git_object: cc1ef6ae5082c8821e9c8e6741364d853a676aa0 docs/models/operations/V2ListTransactionsRequest.md: id: a887f67222b5 - last_write_checksum: sha1:d2787c06ac4c70600aaeadb41d988872dbc2ac1c - pristine_git_object: 3fddd2ece81020ac515648aa67cf9f078abee0e8 + last_write_checksum: sha1:a4059a798f94045887cdf236264608c3d3ac3a4c + pristine_git_object: dfeb297206048d5ffc37558504bfd8d2d9e3d731 docs/models/operations/V2ListTransactionsResponse.md: id: 2879b5d4e9de last_write_checksum: sha1:88f772524396e623d8dac934696f3d345ce12960 @@ -1490,8 +2024,8 @@ trackedFiles: pristine_git_object: 52d95b5ab91a4fefafe4d306b9da8e323bc0855e docs/models/operations/V2RevertTransactionResponse.md: id: fbf86f62aa64 - last_write_checksum: sha1:188c44ebc47ce3fe87e989a8e413fd6047864244 - pristine_git_object: 2093afd871cfd835922aa195d1ec478784e9e29e + last_write_checksum: sha1:cc4d4442c07479f2fef5898f1b5baf0e1757789d + pristine_git_object: aea6a71fc96257d002df97ac1c9310bd85b81e03 docs/models/operations/V2RunQueryOrder.md: id: 21ea936ac744 last_write_checksum: sha1:8bcd23d03d4c76106c8f9012d7d3371c5c7abfa0 @@ -1502,8 +2036,8 @@ trackedFiles: pristine_git_object: e2d16161c479e9ceb630d8dbd767864eaebda467 docs/models/operations/V2RunQueryRequestBody.md: id: 7ce1f0e4da33 - last_write_checksum: sha1:783c168773b843fc59f74c18ea89603aedb78280 - pristine_git_object: 29f8ab4d8f7feaeb37b111580383df3407856631 + last_write_checksum: sha1:548dcd76e11d8c993b4f1898a03cfedacb291240 + pristine_git_object: 01f4fb2a9f997f9ef13a57163abc1f386e20b252 docs/models/operations/V2RunQueryResponse.md: id: e57733cf0e8d last_write_checksum: sha1:4cf8c43c9cbe65c0f0980a2efbb4651ac39f1700 @@ -1550,8 +2084,8 @@ trackedFiles: pristine_git_object: e4006fb7b99ee94f95dcc885548cceb68579734b docs/models/operations/V2UpdateExporterRequest.md: id: b80b6b416a9f - last_write_checksum: sha1:a67ab0599b857d5b639149c18e9e05f22a792326 - pristine_git_object: 702d6e0d3f09967d4ba64f7d7e49448bcfe6bde8 + last_write_checksum: sha1:87b72979289c5665a0911a269b9b7cda97b6498d + pristine_git_object: 9580fb33c192fa1aef1bd8243d740fa3d85accb2 docs/models/operations/V2UpdateExporterResponse.md: id: 5e148f3b2111 last_write_checksum: sha1:11f21ae2d8557c2ce49c9dd819a0fcf870630ad0 @@ -1794,24 +2328,24 @@ trackedFiles: pristine_git_object: d08ac4ba3c3e127036b43e9e29bf3a005ec8fe5c docs/models/operations/V3InstallConnectorRequest.md: id: 2b0aadaf7629 - last_write_checksum: sha1:6562ad9615352fd6d19254a6a85817c70fc4a54e - pristine_git_object: a8e9adf50a002d7ca3213517fc68385589050ccd + last_write_checksum: sha1:b1db9fb0a4e6f40da73223e88e7a9d5c4c0dfed8 + pristine_git_object: 800b3938228dd117fa57b053ca28f2bb7c62417a docs/models/operations/V3InstallConnectorResponse.md: id: 1295851ad810 last_write_checksum: sha1:7fe9f2457e83de70c173687d8fb6ea156d9631c9 pristine_git_object: da934c92525540f91c57d328148b84ed2c88afea docs/models/operations/V3ListAccountsRequest.md: id: 146373378f8a - last_write_checksum: sha1:d131475f61d04e69fdd964a7fbedaec78ff8b097 - pristine_git_object: d5c650d2dcb19994b7c10a30e6b1a9e260fa968c + last_write_checksum: sha1:778123d0c0ce89eab0045fb601aac16792178f66 + pristine_git_object: 91f6b6b61bb6f0f1a5bd781041c4e0ce0a15883e docs/models/operations/V3ListAccountsResponse.md: id: 338df92285ea last_write_checksum: sha1:f86ff0558478ba78ea02196d84e287d7c2d4408e pristine_git_object: c754ab794fd55e70bb9615a61637000809939946 docs/models/operations/V3ListBankAccountsRequest.md: id: 93e8953bba66 - last_write_checksum: sha1:cf8de8d2f6856a83e6ba053a38f47654078ee876 - pristine_git_object: cbd7bc545385b18db1d44159aa50b2b4b4e8a70b + last_write_checksum: sha1:ef41b8ae0f78080986cb6fcb7f56372f99f9ddde + pristine_git_object: caf1a074fbba557b577cacc28c6c9ac69333815a docs/models/operations/V3ListBankAccountsResponse.md: id: 57a397983cef last_write_checksum: sha1:2a0dffb70925530eb4b9c984095b043ec9ec7258 @@ -1830,88 +2364,88 @@ trackedFiles: pristine_git_object: d262d6861307bc6673261918f0927d7d14219da5 docs/models/operations/V3ListConnectorSchedulesRequest.md: id: 4c78ed97d8cb - last_write_checksum: sha1:87cae1253f70581e42834e3931373dd51c1888a2 - pristine_git_object: 44ebd78434ac2cf32818315d6b3cc9cdd2716fed + last_write_checksum: sha1:55a54c631a4776b0421a4a7940bc6bcb64948c71 + pristine_git_object: 9ce7c879153fe527d655334a2784437e4269ea12 docs/models/operations/V3ListConnectorSchedulesResponse.md: id: 7dc565873ec9 last_write_checksum: sha1:67c7c79fcf6675600a2a530dff7e2912b0eb064b pristine_git_object: fcc1b270de55a7e2915a77a42ce016616b533ed8 docs/models/operations/V3ListConnectorsRequest.md: id: 9b196b9ca345 - last_write_checksum: sha1:aa42f2efe5ac111cbc12e73c36028776cf4a967c - pristine_git_object: 3b1470c91fe1e2f7e8aaadfc71b388124c471b1a + last_write_checksum: sha1:9268ca819bdc85a3cd714a1f108e483b030dd01f + pristine_git_object: f3a9af23d8a109977e71b87fe4a1721e65cdabaf docs/models/operations/V3ListConnectorsResponse.md: id: 156b69620e29 last_write_checksum: sha1:7063710de4fa7fabd5fdac8d1530bbd6e76e280e pristine_git_object: 54f168859d856d848ba409791dd3264f582cb311 docs/models/operations/V3ListPaymentInitiationAdjustmentsRequest.md: id: 730b5dd8a28a - last_write_checksum: sha1:3ab98c3bed0e5c8b2c3900b36cbc0abba3d16615 - pristine_git_object: 1ff852cd3e02da1499df113f633d9f9493674179 + last_write_checksum: sha1:868b04d2ac9f049dca23c6033f42048147ce6d09 + pristine_git_object: e1a4e048529eb0caebfac10d50720d879b164352 docs/models/operations/V3ListPaymentInitiationAdjustmentsResponse.md: id: 238f91a21bf1 last_write_checksum: sha1:9627eab59114cb12543cca8b20220402387c275c pristine_git_object: de54d585410d19536b15fc54179f056e184c22b0 docs/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.md: id: 28b7f4cb6373 - last_write_checksum: sha1:3b9f0054321b0d6598f1ce62c77d0e1a0a565749 - pristine_git_object: f3b026e396f59826c31a662e430bebdad22b99c4 + last_write_checksum: sha1:0f3a67a4b844a7ca93aaa94f5b4ff02907dfc99d + pristine_git_object: 7d28474d1f0047d5695df233f45ab0e4499fd4ae docs/models/operations/V3ListPaymentInitiationRelatedPaymentsResponse.md: id: 1d1c9949b462 last_write_checksum: sha1:259a1fe505a17a9ff693635f1c6401594ad13f63 pristine_git_object: 65305f039d05640d3fb21c63c0b86d8e44ba6b85 docs/models/operations/V3ListPaymentInitiationsRequest.md: id: 23f040907f58 - last_write_checksum: sha1:496da744810bcf56a7c053ee9498ffcd7b6c6e23 - pristine_git_object: 52d88c0688f043d5a7ad1e7c2fe787f8394005f5 + last_write_checksum: sha1:fa67e3dd210a534dcdb619af1c059a8b9a8c4f31 + pristine_git_object: dca0277d34c559ce88409109bc28b416aa84f8cc docs/models/operations/V3ListPaymentInitiationsResponse.md: id: 7828cd0f9bd4 last_write_checksum: sha1:6503540cd16466e2d2401c125f4f32587d54f10b pristine_git_object: 2690c1ffaa13dbfaec625fc7f5f93ba106c4dd7f docs/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.md: id: b372bfc89a32 - last_write_checksum: sha1:2db195cb1e7d96692fd34da09adec3df09d33736 - pristine_git_object: 57fc2bdeb7f370bf71472f4519d7de1aa3a08c52 + last_write_checksum: sha1:8e3a95c33da3b132e9fab62dc5657c8fc10039eb + pristine_git_object: c1a5fe5636683c54fbd0d1e9808a65977181d11b docs/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDResponse.md: id: cd4851c4a7b8 last_write_checksum: sha1:a6f535e353037526d0faf305e043a55b50a011e7 pristine_git_object: 350b3ddb2855e6fc6205e5c0f4db1d1283d1a39a docs/models/operations/V3ListPaymentServiceUserConnectionsRequest.md: id: 24f8bdedfae7 - last_write_checksum: sha1:f7ffb6862a268ef19e187de09a1b358954eae453 - pristine_git_object: 29147f5ae83319e217f035f81771d77422194d54 + last_write_checksum: sha1:a22500d59aac27a6ffa95e76d7df9cdd06977ee1 + pristine_git_object: f858482fd345dc6922c1460f15f4790233e65aee docs/models/operations/V3ListPaymentServiceUserConnectionsResponse.md: id: 5b515335250d last_write_checksum: sha1:dc8b33f98a2158abb878bcafa1be7fa4f50c0f98 pristine_git_object: d8de62287da8c781b3b76ab7fc07c2473283e97f docs/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.md: id: 8e8b43de4075 - last_write_checksum: sha1:c5aaf6d5f55d68bf3562ed2c4e79775e982bd8c6 - pristine_git_object: c289eb995e3ce6a71568301432c2f0f04ce5265b + last_write_checksum: sha1:5a905c08b6059be9b06346140a564b75f667ce25 + pristine_git_object: 32997e05ba4727bbf974e7b225226f73aa2a38da docs/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse.md: id: d70f572eb50d last_write_checksum: sha1:f16f253849533f65123418d572ff49382690bd2a pristine_git_object: 28a2fd71fc70e9463f0c835781a68ac054d1af07 docs/models/operations/V3ListPaymentServiceUsersRequest.md: id: bd4a873f2059 - last_write_checksum: sha1:499df59d57a3203740f8f19f3aefb2ef6b033b8e - pristine_git_object: 8c493840a83b85984c8f823ada473fb1467d1678 + last_write_checksum: sha1:9015775a2442ed135bd657e3475db3818a3269ad + pristine_git_object: 3151adced7def57893e87153fac410dbfe4e9b4c docs/models/operations/V3ListPaymentServiceUsersResponse.md: id: 4e247920da2b last_write_checksum: sha1:58a923eb6c758ad9efab2d0506690037660ddf7d pristine_git_object: 298f594189d92a68b6c924a5845fb3e95cad11c7 docs/models/operations/V3ListPaymentsRequest.md: id: 3a3666f196ea - last_write_checksum: sha1:0bdc1587180bd098d063e7fb424e3f3f19b10423 - pristine_git_object: 0bf4f6b17a7c6abd7d9a0588e169edca2c17f329 + last_write_checksum: sha1:41f10328cf90690bdbc20c7a7d277218158f1457 + pristine_git_object: 8bf896e44dffee409903a9a9070f509a0950e23b docs/models/operations/V3ListPaymentsResponse.md: id: 48da6de6ea03 last_write_checksum: sha1:20754f6b6e52b3432a5cca0795bde6c855ff7b4e pristine_git_object: 34e31b7192370ba47fc8570a9ed6743f733a1be1 docs/models/operations/V3ListPoolsRequest.md: id: 2594d862a951 - last_write_checksum: sha1:5146ab90e00832a0565789d97bd4ffc13b874f55 - pristine_git_object: f9d52dd31ee9968b8541b80ddf0cdfc6a5fbc400 + last_write_checksum: sha1:908488482456b8866579ded046b21ffc62d2538b + pristine_git_object: 479c398e7b322f0f4754c561fa0ea557249457a3 docs/models/operations/V3ListPoolsResponse.md: id: 84029f9b0f48 last_write_checksum: sha1:ad8a637bb811463341f1e592e3908a31dd7ecfe1 @@ -1974,8 +2508,8 @@ trackedFiles: pristine_git_object: 591f2ce8047934bd089ee9cc2f2d161b2a4458f5 docs/models/operations/V3UpdateConnectorConfigRequest.md: id: 3e669627174d - last_write_checksum: sha1:8ce8670c5f79a2e40a1901c123c52967faba1709 - pristine_git_object: bc7dadee1ebda7a9db31a1843b9208ab0692885f + last_write_checksum: sha1:cd41559eb1395efe07da3ad04dece60c152934bf + pristine_git_object: e39c5c21c607e0963474a5ea6ac15d2e955f56b0 docs/models/operations/V3UpdateConnectorConfigResponse.md: id: df78a4991af2 last_write_checksum: sha1:98e78570abe0168b336224db4d9be872ca4b358c @@ -2012,2554 +2546,1942 @@ trackedFiles: id: f746c4b6828a last_write_checksum: sha1:54efed86075eea0001c60129625f17e2e424e113 pristine_git_object: 8b32273b878e001b8fdb16ef2b9c07aa6c3083a8 - docs/models/operations/WalletsgetServerInfoResponse.md: - id: 36e7ed3d2e9e - last_write_checksum: sha1:3984827a72eef45c0a67bbc48f5ec74478a327c5 - pristine_git_object: b4a3c7af8b369d8d7db1d08cc021771526aa17fe - docs/models/shared/Account.md: - id: fb1ae1fc6ef3 - last_write_checksum: sha1:846b434f25e512be40cd583c08c37d41e3073185 - pristine_git_object: 2c58275bbab0a7b0d068621cc69b7639c763d78b - docs/models/shared/AccountBalance.md: - id: f6f824e8c5c7 - last_write_checksum: sha1:35f8973111ff585bcb7a43690358bde9f90785f5 - pristine_git_object: e472ed595943a77ae1fdb1adcf6c0a13d0055fd4 - docs/models/shared/AccountRequest.md: - id: a4c0cfebdc33 - last_write_checksum: sha1:fda52d912d651330bfd578ab7b70670a67b5191d - pristine_git_object: 57238900a20e0c7d2e87cf1e55fe999884ef1a37 - docs/models/shared/AccountResponse.md: - id: 073e2cdaee06 - last_write_checksum: sha1:70fbd29e6186a7e974144529e4b5f3566b55840a - pristine_git_object: 9c03b2238c3f9957601117bc2581d901d2ace6c2 - docs/models/shared/AccountType.md: - id: bbbc051c9a50 - last_write_checksum: sha1:eeac550d0e70b9237b3cae9a1e285a764358a8ad - pristine_git_object: f034da57ce15ec7e713e680f7ae8769c98ab1f85 - docs/models/shared/AccountWithVolumesAndBalances.md: - id: 78eecdcbf165 - last_write_checksum: sha1:fc9af188acec8f930024388c4e02f0628f1e792a - pristine_git_object: d3d4f25efb1a3d1b41f39ea48775a5b5aa5cd847 - docs/models/shared/AccountsCursor.md: - id: f316c1ddc395 - last_write_checksum: sha1:ac30454739d51065e00ce10e57a28834d362186b - pristine_git_object: bd746c9680a557816c7ecc5188fb0ced9ec4e6b0 - docs/models/shared/AccountsCursorCursor.md: - id: b71185f6c357 - last_write_checksum: sha1:8eb48a42be452b58c34a5177550276e3c379625a - pristine_git_object: 8f85b15efe793e1aa8d72a50ed327acc6bcdd83e - docs/models/shared/AccountsCursorResponse.md: - id: 220ee75131c1 - last_write_checksum: sha1:4a687025b94a6bd58a50abe2c98abf3eb716715a - pristine_git_object: 9ca1a5adf20f33de512d1a87d2bc7458062d3039 - docs/models/shared/AccountsCursorResponseCursor.md: - id: a7277295c8fe - last_write_checksum: sha1:fd764881b4d49b59c465441e619e2f95ffdf6b01 - pristine_git_object: 38260be08b76e4afc33f70d5fdc84981ecf6eda7 - docs/models/shared/ActivityAddAccountMetadata.md: - id: e5756ea4c54b + docs/models/orchestration/Account.md: + id: eb6731c80cd0 + last_write_checksum: sha1:d72bbaecceda5d6314f60292a6e9b4dc5aa5a44d + pristine_git_object: 1c44ec65bc832ba50b88051f25a443d15adcbcfd + docs/models/orchestration/AccountResponse.md: + id: 33fe30d7aa75 + last_write_checksum: sha1:bb5d78abb97bb3fd922aa1a43081cef8af425185 + pristine_git_object: 4305f24084e3803d9bd517533fdb7b1121224047 + docs/models/orchestration/ActivityAddAccountMetadata.md: + id: 3b28ca0755f8 last_write_checksum: sha1:de157fdae35a6a83ec641929c4e39913905d2a87 pristine_git_object: 9dc62080d1ae90a38440240fa5ebce8a5703d271 - docs/models/shared/ActivityConfirmHold.md: - id: a0b207c916ab + docs/models/orchestration/ActivityConfirmHold.md: + id: 3c0223a2baec last_write_checksum: sha1:d821beab5c39f7995acd25ff8ada60db54e7479d pristine_git_object: 6ef0c98c456c4f19fac4e4263da94d40f511ef35 - docs/models/shared/ActivityCreateTransaction.md: - id: 7d59b192ee16 - last_write_checksum: sha1:94b0e6420e3b6b626e933d0bac5552a9d983ad1d - pristine_git_object: 6ebea6f97c08df4294074e54db807ea33ead0446 - docs/models/shared/ActivityCreditWallet.md: - id: a437ae5ef404 - last_write_checksum: sha1:69de95af9b1369483156e4e51d3c678ffe8fcfc1 - pristine_git_object: f0fc8ce19c31594eb85bf1a7bad6dd2569649d8b - docs/models/shared/ActivityDebitWallet.md: - id: a12535c54cbe - last_write_checksum: sha1:3489fffa84abeb6a0151ab0973df87f23974dfae - pristine_git_object: e2f9c688666d9ff02af69b2e0cf720fef7783fc3 - docs/models/shared/ActivityDebitWalletOutput.md: - id: 3a24ee24fe50 - last_write_checksum: sha1:64b58abc053f0080a1eab438fed8e59bd9484397 - pristine_git_object: a473a00d34a711d4b2b093cb8d8057ad27faec9e - docs/models/shared/ActivityGetAccount.md: - id: 1b6320003346 + docs/models/orchestration/ActivityCreateTransaction.md: + id: f697b8a03a0c + last_write_checksum: sha1:8ec7b65c4e3125e1d9cc76a427847b5f0a441883 + pristine_git_object: cc1fde5e439a2f1a3ce75e6c682eea421ef35812 + docs/models/orchestration/ActivityCreditWallet.md: + id: 6082f2bb83bf + last_write_checksum: sha1:102f183319fa5cf6c338abcf2a7bbe298022abe0 + pristine_git_object: d442b9ffd79eac2a280a51b87e282d1e871beefe + docs/models/orchestration/ActivityDebitWallet.md: + id: 88d6ce1b60ec + last_write_checksum: sha1:bcc677f36f0a09117163367cb349b657ecb05ad0 + pristine_git_object: 3aea30d3b88fb1d58190c8e3e54dd80ccf3f4895 + docs/models/orchestration/ActivityGetAccount.md: + id: 36a3dce0f29e last_write_checksum: sha1:50768360124d3b8dd8f6cab3ec15ad0304f65d5f pristine_git_object: 1e3bfe06cd1066f0076f0bc2c72ba7def22b793c - docs/models/shared/ActivityGetAccountOutput.md: - id: 7bdc1a37ef00 - last_write_checksum: sha1:886eee704f74419d743aa355e9d020c8424599b9 - pristine_git_object: 59e7cbb92e4fc2fdf8bce22c9c54501b0be00c30 - docs/models/shared/ActivityGetPayment.md: - id: 726c9cf86418 + docs/models/orchestration/ActivityGetPayment.md: + id: 853192184de8 last_write_checksum: sha1:38401ad8f09215e13caab58a7b98e210aa305263 pristine_git_object: c075a202ae9ec8db25d3e07d8330d527f55c9710 - docs/models/shared/ActivityGetPaymentOutput.md: - id: d7daa830031c - last_write_checksum: sha1:a4a39d44419f1e07b4096e3b805f0d1e6936a60c - pristine_git_object: 9822266cdd467b2073536397694d8f0984220a32 - docs/models/shared/ActivityGetWallet.md: - id: 2978a13128ae + docs/models/orchestration/ActivityGetWallet.md: + id: 85145d1df74c last_write_checksum: sha1:70b81b48515f0d5ac13bc66749ed435bc917e343 pristine_git_object: 0ebd4cb1456647262f719716380a0d5d335adc96 - docs/models/shared/ActivityGetWalletOutput.md: - id: e0b8d2270467 - last_write_checksum: sha1:3e93470563db4bf05000e1d4c8b9a5efc0a5f3ac - pristine_git_object: a5d82f43703ec602b0952fc72c6c52709efe9ead - docs/models/shared/ActivityListWallets.md: - id: 849159eb163d + docs/models/orchestration/ActivityListWallets.md: + id: 05de192b233a last_write_checksum: sha1:a8d3c08847a0697143712d013d38fcd1344c0846 pristine_git_object: 636b3a1b6d8998d11e9acea12f91473e32a26235 - docs/models/shared/ActivityRevertTransaction.md: - id: 1c6fa232460d + docs/models/orchestration/ActivityRevertTransaction.md: + id: 0b87c2746942 last_write_checksum: sha1:6b7a9ba7e786c6972585d4c09a2ba633c3cd996d pristine_git_object: db59920dfa7e03e71b1a1a1875fff7bf513c3e9d - docs/models/shared/ActivityStripeTransfer.md: - id: a16aeadfa455 - last_write_checksum: sha1:83056e7f272c484736887e2f528591e077575d8c - pristine_git_object: bacaad684f32e928f7deb1b2a0d174d730f6c7d3 - docs/models/shared/ActivityStripeTransferMetadata.md: - id: 68af65d42055 - last_write_checksum: sha1:e33a1245bed1d74d54b10c532e6201ee2ab2c4c4 - pristine_git_object: 055e707c8ace4ff3f30087d77a081c13b506a32c - docs/models/shared/ActivityVoidHold.md: - id: 9d80ca56a21d + docs/models/orchestration/ActivityVoidHold.md: + id: 8915e9949a35 last_write_checksum: sha1:f7d0a1be8cabba17f9752ca4260ae4002a698d1c pristine_git_object: 5bbe5698c69c3c4031a9ec22f7fbf2ca7c50e552 - docs/models/shared/AddAccountToPoolRequest.md: - id: a6c08808a312 - last_write_checksum: sha1:936a8caaa3e79ef00c458a7c0deb855df4e734d1 - pristine_git_object: 3105fdc0ca5c5252b0124ccf67d64c926c0f50cd - docs/models/shared/AdyenConfig.md: - id: 3d4fdc00c174 - last_write_checksum: sha1:5e5b1dc2baab0c6b3c6dfa6a0705a53321a30aed - pristine_git_object: d9c821f738ec7df51c9f869bdfe2673a7cfeed9f - docs/models/shared/AggregateBalancesResponse.md: - id: f964934dd1ac - last_write_checksum: sha1:6f7d3a263ad8a2e66f37a15dc87b9f97eebe711d - pristine_git_object: 54e3375a34d801fa221f9ee39b2d105e974d25e1 - docs/models/shared/AssetHolder.md: - id: f5cb453995bd + docs/models/orchestration/AssetHolder.md: + id: 5b08a89f5638 last_write_checksum: sha1:dcf2edfe78443906cd92cf5bb420b6f2b3775879 pristine_git_object: 0fe1571e93b367c10c242cf024cf13d642396e49 - docs/models/shared/AtlarConfig.md: - id: b16717c748fa - last_write_checksum: sha1:7e8423ada3bee2b979eb2737a570c689c30c1780 - pristine_git_object: 0cd5cbe1105fa76d81d4b49e9add552e736c15b4 - docs/models/shared/Attempt.md: - id: a81a4a43cf8c - last_write_checksum: sha1:fb27e1483807403721b12962eb2ba1fe79a89457 - pristine_git_object: 1778b7992f6c94e75d6e0c11651ff0512fdc1cf3 - docs/models/shared/AttemptResponse.md: - id: 27d126d52e24 - last_write_checksum: sha1:5ddf6f3ad80bd3c78aebdb1d38d032dc9705dd8b - pristine_git_object: ce956f24dc9f1ea00eb3cfede75a75f3ddc682d3 - docs/models/shared/Balance.md: - id: 8e64b1f8ce47 - last_write_checksum: sha1:befa88e13804171b8d88400e2f75216d4f690d34 - pristine_git_object: b2d3b1ee04726fa29fe7147d5cc88cf753bac95d - docs/models/shared/BalanceWithAssets.md: - id: d4dc253fdc9e - last_write_checksum: sha1:b175ce3d450ee7043a7e87b89d726b5033771cc0 - pristine_git_object: f2e750dae44fce4b66f0eec7e1357b72018aa0a5 - docs/models/shared/BalancesCursor.md: - id: bb079dc0aadf - last_write_checksum: sha1:8ccc1dfb6b46fcb5454c02478c056cf743fdad3c - pristine_git_object: 085b15d23bf1225fc9e56ec831d3af33415dc464 - docs/models/shared/BalancesCursorCursor.md: - id: 053f73fea5e3 - last_write_checksum: sha1:a3ee9fb22aa92c100cec05515225fa06a1ee8811 - pristine_git_object: 7f4114de28ced14a372ad5c01479ba823209f4c5 - docs/models/shared/BalancesCursorResponse.md: - id: 4609dccacc01 - last_write_checksum: sha1:5a6f735632411a81777150dc484ff04a51a29e33 - pristine_git_object: a0ea97f44545c28e3b01c13844b1f01a0350a190 - docs/models/shared/BalancesCursorResponseCursor.md: - id: 218e50d627b8 - last_write_checksum: sha1:b8c76c795a58181a5d350713559b146a6321ff8f - pristine_git_object: 9ea629b1f906def2280b03eebff1ba3db7fdb637 - docs/models/shared/BankAccount.md: - id: a6f22fd580f4 - last_write_checksum: sha1:6b7a878ae68aab58940fa85eb419923d4c156d63 - pristine_git_object: 228de6caa5a53e265f7a30aef86733e942744bdd - docs/models/shared/BankAccountRelatedAccounts.md: - id: bc0496d89d8d - last_write_checksum: sha1:64f51b53e417d8d998295a3203c3e5b5672a8888 - pristine_git_object: 9d2d5d4bc05c36973479f4edc394ec2ba9bbda75 - docs/models/shared/BankAccountRequest.md: - id: 8510ea6718e5 - last_write_checksum: sha1:69e2b623a6d7ad7578e0e3004288d9e96487987e - pristine_git_object: 1ff8d6cb0063a796101629a195a6b3ad59ba33cd - docs/models/shared/BankAccountResponse.md: - id: af3852044f0b - last_write_checksum: sha1:69148a461708916f43ec49dd4d23b23784efccc3 - pristine_git_object: e6d758af786e6cd656837ae9682d31b9d3f34dad - docs/models/shared/BankAccountsCursor.md: - id: d7d0f88be3d0 - last_write_checksum: sha1:53bc217837352ea10abaee99cf98faf82da1e250 - pristine_git_object: 785e85bb8dd962ad342122f6deed120be8a5f347 - docs/models/shared/BankAccountsCursorCursor.md: - id: 22e5de19149e - last_write_checksum: sha1:4d7df2326584982fe47b31ee9ad55525337a7eb7 - pristine_git_object: 0347adbbb9c7e1186ddfe40a76b5e76ad8e5c0c5 - docs/models/shared/BankingCircleConfig.md: - id: d8e965dae930 - last_write_checksum: sha1:b72c24c171bca669b5a16f6588781828f8608000 - pristine_git_object: 3602607ff181cdbbcc24a90f8ea8be6b35002f92 - docs/models/shared/Client.md: - id: 42ce3bc4e98e - last_write_checksum: sha1:c8b3adb84b5b1f81999d12c3f91550b293433dc7 - pristine_git_object: b8e9950b9505fb312e9798e7c7f495e44673aa6c - docs/models/shared/ClientSecret.md: - id: b0ba92f25dc6 - last_write_checksum: sha1:5f4f22a0d849d8db5de854e5b896a2d335ed0856 - pristine_git_object: 3b8cbc21494518806414a7ec0a53f556381896c2 - docs/models/shared/Config.md: - id: a2fd6eee8b49 - last_write_checksum: sha1:08c51cf72dc70f0a7e27b3366bd5967777c416ab - pristine_git_object: ec51f86d77f7c6c8a3dd472bde6ebb5416327ab0 - docs/models/shared/ConfigChangeSecret.md: - id: add1fcd8b021 - last_write_checksum: sha1:fdf745ece32ca7d6503799bb2682003ef29b5b9c - pristine_git_object: cb14cabee5f2ee7a8ae960bf381d8de0ba24e5b7 - docs/models/shared/ConfigInfo.md: - id: d523ffd62772 - last_write_checksum: sha1:7244ef47a18693d616c6d706b90c2307d56aab6a - pristine_git_object: c2b99e762aeef54e18e62718fbc92dc380793775 - docs/models/shared/ConfigInfoResponse.md: - id: d19c87f2beda - last_write_checksum: sha1:52cdeb4b147569f858fc971f5ec2fa017c2971c2 - pristine_git_object: b0df8d747bcf058ccd3edc107d786b0499e7c913 - docs/models/shared/ConfigResponse.md: - id: 5963b3bef2b3 - last_write_checksum: sha1:44a7b26db9f4d9db96558b3092ff6a92316836a1 - pristine_git_object: 4fcf52d8a44ac827307a61b73af252ea4d5d376c - docs/models/shared/ConfigUser.md: - id: bc30fdcf0831 - last_write_checksum: sha1:472e0fee93934fa302b8c8974516d63b0655cbe0 - pristine_git_object: 86b4674fbf1c23f6fbe0db04ddf2342c4c7c44c9 - docs/models/shared/ConfigsResponse.md: - id: 2279a9fb359f - last_write_checksum: sha1:68069d596410a9aa479aa19e5f5410483db9d5f4 - pristine_git_object: 8471dd70786a68c26df3e149ea3efb45d405eaae - docs/models/shared/ConfigsResponseCursor.md: - id: fb3f861a5fa0 - last_write_checksum: sha1:15d36713264175332bdadce7e48114d638c50f81 - pristine_git_object: e4476be8fb03713e14f2dec3fbc6051f648c10f5 - docs/models/shared/ConfirmHoldRequest.md: - id: a3a6847bb9ae - last_write_checksum: sha1:58798b9e65a04f00945985cb0292eaf105805ee3 - pristine_git_object: dd09b42d02b594cfa15560e5d823e46a5db79cde - docs/models/shared/Connector.md: - id: 9513e4a638e4 - last_write_checksum: sha1:6581899c3cf32b3a05205c856ea6a6bffff87a1e - pristine_git_object: 12093fa680ee28dae777154721b8f6fb1fd45cae - docs/models/shared/ConnectorConfig.md: - id: f69fc9940d7e - last_write_checksum: sha1:c6b8e94ec3ebb1e60eec3eb1170519650d74a67d - pristine_git_object: 4bb196229e31ababbe7a859e3333d6101e087d2a - docs/models/shared/ConnectorConfigResponse.md: - id: e1ab0378d5fe - last_write_checksum: sha1:b64ff6eb09eb5fcc3f59120550565b37fc953007 - pristine_git_object: 3c36925432b749b89e70d89542bbde58fd018577 - docs/models/shared/ConnectorResponse.md: - id: 99146b4d8e95 - last_write_checksum: sha1:168535442c15c5133eb3ed28b83cc65a739055c5 - pristine_git_object: be1577346ff467ded22940a53ecb5c7fa03e4cc2 - docs/models/shared/ConnectorResponseData.md: - id: 92de7c5c8a70 - last_write_checksum: sha1:d50e52cd79c66a50f189527ff0d054da49f8f36f - pristine_git_object: c5ab463e9652ce83787ea7e62b564fb081bb2e07 - docs/models/shared/ConnectorsConfigsResponse.md: - id: 518b780bae65 - last_write_checksum: sha1:60bef2731992d63fe6baff4953b85b7e7ba343d1 - pristine_git_object: f792f99d1c6fcceea07d4df3acb5a0fca3906353 - docs/models/shared/ConnectorsConfigsResponseData.md: - id: aeeb091ba4f6 - last_write_checksum: sha1:cba75dd9225ec5f3d93a25cc672022c1c9931abd - pristine_git_object: b2dc72be0b5b43d847b88a1d3be4b723be852e6e - docs/models/shared/ConnectorsResponse.md: - id: 3c77b18f2929 - last_write_checksum: sha1:c4b4aa111183e5ff88d3d14a806d47d7f27ce4e1 - pristine_git_object: b56c5c891ae7a0bb537d37124a5843ca1379db0e - docs/models/shared/ConnectorsResponseData.md: - id: de0439cd50c4 - last_write_checksum: sha1:2fb04269e83b1d45d187af89f2e247b759fa5b36 - pristine_git_object: 56cf2d227ec701f9a2920f9e8a76fbe54cc44d88 - docs/models/shared/Contract.md: - id: 6c74664278de - last_write_checksum: sha1:65545e7441a906137348e16ecc1e0489834bddfb - pristine_git_object: 5862132d184f5cede81712a1d31160b6c0a94624 - docs/models/shared/CreateBalanceRequest.md: - id: b2236a6def50 - last_write_checksum: sha1:1f7b382280ba60c6174b8921340a5e2989fb5c74 - pristine_git_object: 14b8f235aa94c1150da0627636d14eeec8a7a49d - docs/models/shared/CreateBalanceResponse.md: - id: 5e7854d61b34 - last_write_checksum: sha1:632b69e68eac73958266f44bfca13064dff0a80c - pristine_git_object: 6fbda5962ca46d0fbc492866cfcf54d24919a2c4 - docs/models/shared/CreateClientRequest.md: - id: ef4b8a0418e1 - last_write_checksum: sha1:0c66a3d09ed23ee105bdd1300107de2f95963983 - pristine_git_object: 69d0e8a14102da72d28e63e5f3cfc5911ed38b19 - docs/models/shared/CreateClientResponse.md: - id: 6b347683c8fd - last_write_checksum: sha1:a314e103804d86372d0d9e78e6beaedbaf86055f - pristine_git_object: 030a835f7e101cf23ccd4e28b95b6ab2c6fb1638 - docs/models/shared/CreateSecretRequest.md: - id: ad4f891716d6 - last_write_checksum: sha1:fcad9eb72c585933689ef8aef4d052523f2f9d23 - pristine_git_object: 5ba815f62f328704533b91549b93fa2009f878db - docs/models/shared/CreateSecretResponse.md: - id: 5b079974522d - last_write_checksum: sha1:9d2f17b3e783d13e57018a7e540df952d8401bcc - pristine_git_object: 28857187479f4d4d58b294c8009319582eaf8a06 - docs/models/shared/CreateTriggerResponse.md: - id: 9b6d0552f664 - last_write_checksum: sha1:b9e960885aa1b497d3f783226996ef3d0f49bf0e - pristine_git_object: 77533c90b33b3af83b37322aaec46748c8c374f7 - docs/models/shared/CreateWalletRequest.md: - id: 9d1b629733d9 - last_write_checksum: sha1:108313b0bcb7eef667dd5b86e5db069850acd713 - pristine_git_object: f97c035f9bf147f592ca9fb1e40357461d8fe0e9 - docs/models/shared/CreateWalletResponse.md: - id: 5b605f7e1400 - last_write_checksum: sha1:4792e40654f893ce3d641b9a6139287a63520fd0 - pristine_git_object: 2dec37bc8a9678fe92873ee464e185bbbddf73b0 - docs/models/shared/CreateWorkflowRequest.md: - id: d068e3a18126 - last_write_checksum: sha1:46d9d2e8fd3c2a71b3df91827a0790c74a0d6a28 - pristine_git_object: 16300188486d7d6509dd801df3b7c70120f2fdea - docs/models/shared/CreateWorkflowResponse.md: - id: 8a66dea0bbbc - last_write_checksum: sha1:531d30b41529109800e54db92ed92c8c86bf272a - pristine_git_object: 5770d39ed8ef52745227380a049c18bf5834daa3 - docs/models/shared/CreditWalletRequest.md: - id: a92d5f683c57 - last_write_checksum: sha1:f78daf1b558cde44524135785fc096e64628c85b - pristine_git_object: f343f78307a91055421a9d2f7910cef2b8adf00d - docs/models/shared/CurrencyCloudConfig.md: - id: 2fabce6683cd - last_write_checksum: sha1:30f746876b97f4550c440a5806af41dd41e4062e - pristine_git_object: 7ef80d32701204849b7c2c60b000d8d6f13521e5 - docs/models/shared/DebitWalletRequest.md: - id: 5389415db543 - last_write_checksum: sha1:aeb0558a274546339784b10f96b35a8529fbdb31 - pristine_git_object: bbb377a795b623f324eec996b828c6b572463954 - docs/models/shared/DebitWalletResponse.md: - id: 254d7c1c6337 - last_write_checksum: sha1:e4a144e63a4b4b9bfde121b7a166cb1f56311b73 - pristine_git_object: 8ee4f1663bb5ce9ccbd15a452bb056e588ed008d - docs/models/shared/DotSelf.md: - id: ab7d4f94c600 - last_write_checksum: sha1:5794f003e20bfcab4f50501881214e2dae5c24e7 - pristine_git_object: c0862a7dfec62cc61cce31ea3e3f54ea6f94df90 - docs/models/shared/DummyPayConfig.md: - id: 196910dc4011 - last_write_checksum: sha1:c219af55d98bc72672d47c36af729ab39305d961 - pristine_git_object: 4649b66d6f3cecf567ff5a111c5d5749fcadedd8 - docs/models/shared/ErrorResponse.md: - id: 0674a9f15504 - last_write_checksum: sha1:9fa8719c9cd6a4815df57d085f4361b5720f0ec6 - pristine_git_object: 292197fabbdea5d83eaf0276555dc70bc566f671 - docs/models/shared/ErrorsEnum.md: - id: d523a0eaa386 - last_write_checksum: sha1:1fd3e32aea1f2ae0ca0f73408a46abcdef3b5252 - pristine_git_object: 8071e2828566ebd73c7dc86ae426e50757a5401f - docs/models/shared/ExpandedDebitHold.md: - id: c586de52c4ce - last_write_checksum: sha1:1b28a799d858fefde4ada44352a8ff618d92eb2d - pristine_git_object: 06e04352733d2189a2a4f0c8bf6b1bc177e6f7ee - docs/models/shared/Expr.md: - id: c916fb544255 - last_write_checksum: sha1:d044b5cf953cb576f3e510ca4fda61bab8dae4da - pristine_git_object: 4cd85562815ee2e534ccd03b32f355873b98a001 - docs/models/shared/Filter.md: - id: d987ae84e54f + docs/models/orchestration/Connector.md: + id: a794c3b4b018 + last_write_checksum: sha1:566cd895c6e85e35217aa3a84135ea1cc3a9b697 + pristine_git_object: 26d0c22d75ef4d6190030dcfcdfa2aff961bb7c7 + docs/models/orchestration/CreateTransactionResponse.md: + id: ca6cb3b67c7a + last_write_checksum: sha1:29a8ff2c53e413f4a7f3e9b51cf0b79689334fc3 + pristine_git_object: 8e110dfccf827756b2346331e39f27159869972c + docs/models/orchestration/CreateTriggerResponse.md: + id: 9eb526da7805 + last_write_checksum: sha1:f65360575634e588425aebfcaf1b31aa280ec4e8 + pristine_git_object: 028826e7d2d4d9d5abf6583621c97bb526b9d445 + docs/models/orchestration/CreateWorkflowResponse.md: + id: 4b6186117cdc + last_write_checksum: sha1:cf38a1c1f698c332f06b1f2a9a2ff9bbd628e693 + pristine_git_object: 2903d2d6655e2e07cbc9c5482a7be53f04eb31f0 + docs/models/orchestration/CreditWalletRequest.md: + id: 98050f1faac4 + last_write_checksum: sha1:0717e0701d8c18196b110546bae5bc2f18b43596 + pristine_git_object: 79040f40ab94240acf27a2fc232b3778af63288a + docs/models/orchestration/DebitWalletRequest.md: + id: 03f40affe8e6 + last_write_checksum: sha1:cb7e650d6c960c96866b88152e9fa81a52f763d4 + pristine_git_object: 78e60cb15bdda7c849d2f6e15ad5a2b70a40c703 + docs/models/orchestration/DebitWalletResponse.md: + id: 968636ef202d + last_write_checksum: sha1:89df9dabb65baa6ae3a275b98d23e0fe769e2b61 + pristine_git_object: dcd5276f62decc08cab9fe68c7092fc2be9ea57c + docs/models/orchestration/Error.md: + id: e2dd2c45ae6d + last_write_checksum: sha1:4866583460bb332478225ec0d64d7fa9665b6620 + pristine_git_object: 5f83b6b692c99efabcf2200a32943ef464f0bb10 + docs/models/orchestration/ErrorErrorCode.md: + id: c018601a3139 + last_write_checksum: sha1:d80b620e7b8b77019289dd3b9e094b5315a3088f + pristine_git_object: 9549e3749ae31c06d56fe68bff62f6dc7601c91e + docs/models/orchestration/Filter.md: + id: 6c56b74eb120 last_write_checksum: sha1:19558b575bc39c95a6778365e9cce4c1d10d75fa pristine_git_object: 6eee7cd151d0e821760525fc9567a9e11cee91c9 - docs/models/shared/ForwardBankAccountRequest.md: - id: 1cf040485bec - last_write_checksum: sha1:755699509b2ab5716dcd9fa97db9836ecb1e887a - pristine_git_object: 5c72000fafc55059f4da5099b84ca15515ec4166 - docs/models/shared/GenericConfig.md: - id: bb689f3835de - last_write_checksum: sha1:04bdc9bb3acbb8e10f609e753db0036e440bc7b9 - pristine_git_object: 556004f66bb0a49431fdfc2c9714abbba9fe7521 - docs/models/shared/GetBalanceResponse.md: - id: ce714d3364fb - last_write_checksum: sha1:1583eab8bf5a5c1ee849e03d80da5ba32f1e92d7 - pristine_git_object: 8cd7c2aa71ab5cc8a982ed0bf3b1d031711c5b3a - docs/models/shared/GetHoldResponse.md: - id: 67215021ce6d - last_write_checksum: sha1:b247110686440aa1f0c7f407237f1aca451ee2f7 - pristine_git_object: ebcf374d3c63724557426035979b6bc437fd226b - docs/models/shared/GetHoldsResponse.md: - id: 26bd0e858279 - last_write_checksum: sha1:a829917bee0d113e7dc49b935d155950dfbc77cb - pristine_git_object: c2ab6e7d4a220d0d63453a824e49f85a09cb8c4b - docs/models/shared/GetHoldsResponseCursor.md: - id: 58069f93e178 - last_write_checksum: sha1:ca6ef6589f0bf4921fc8694e677e36869ffc4825 - pristine_git_object: fee7a48b521e510faf98a49f2643cf14a13803ed - docs/models/shared/GetTransactionsResponse.md: - id: 666c901f8d3b - last_write_checksum: sha1:31c4ce84e9c3966c03a6a8f9bc5ece37348c8728 - pristine_git_object: e9154716b8f0b5ad08bdc747ee2ab138d8b404ef - docs/models/shared/GetTransactionsResponseCursor.md: - id: 6630b594f82b - last_write_checksum: sha1:0411f9cce908e049947b1e68d440122a22123dd0 - pristine_git_object: 0eaca3a711b5924a964faa38d09646cf3426498d - docs/models/shared/GetVersionsResponse.md: - id: 7691960907fe - last_write_checksum: sha1:cd8b0c0410ebf0074db6f2f31b481bbb94ae2bbe - pristine_git_object: 87696e13364bedc153c7b1defe085a64c40da7b9 - docs/models/shared/GetWalletResponse.md: - id: e467291ee162 - last_write_checksum: sha1:d1a7f99d797e7227f9c4ed28e23a8989b42a1424 - pristine_git_object: 59699440f92719fa206c8dac33d1d14dedeffc93 - docs/models/shared/GetWalletSummaryResponse.md: - id: 165cd0238560 - last_write_checksum: sha1:a66ec142ea8dc8bb119c5d1ef6c3d45720903c35 - pristine_git_object: 9044dbd36d7ab2d5b9caf6be387e4221ee768d47 - docs/models/shared/GetWorkflowInstanceHistoryResponse.md: - id: 7d4e4997800d - last_write_checksum: sha1:6c0dd246240385c35f80a31a9c05102ba76de2e6 - pristine_git_object: 301b6ff7d58cfd4caa00d84f6a0e6b19c1d8e3a5 - docs/models/shared/GetWorkflowInstanceHistoryStageResponse.md: - id: 6f6969824095 - last_write_checksum: sha1:43d2a7ffc7939ac98e931b326f32c93cea68d0c4 - pristine_git_object: e12c005597d0ac1ee87698c937800ab60dfb6994 - docs/models/shared/GetWorkflowInstanceResponse.md: - id: 63692356c783 - last_write_checksum: sha1:f6358b81a5e27d11c7d1bea19cafc7790b75e701 - pristine_git_object: 8493f67d0b0f8509f427874215b36620e60a9179 - docs/models/shared/GetWorkflowResponse.md: - id: 4720e356f00b - last_write_checksum: sha1:c2d7f2ee54db6b372dd5b4ab6360b060b712c20c - pristine_git_object: 0fb48a6f5eaf3ffb9c23cdc32e6f42cc1f04418a - docs/models/shared/Hold.md: - id: 1efe0b367d24 - last_write_checksum: sha1:7f880a80bedb9bc7b9eb8d74927939b2dfbd4cf1 - pristine_git_object: 555a0d4fcf90631b29e83f4a5aeffe3ad7a1b4a3 - docs/models/shared/LedgerAccountSubject.md: - id: e2f47fba43fd + docs/models/orchestration/GetWalletResponse.md: + id: ef25387ee523 + last_write_checksum: sha1:9b9088241bee3e548c01cf5ad770505c228dc077 + pristine_git_object: bd1515c483aa5a49cba58f8d3e36c9a9e33e340c + docs/models/orchestration/GetWorkflowInstanceHistoryResponse.md: + id: dabb33ce791c + last_write_checksum: sha1:e3fd4bfa7cb8cf8861ad176b59a74053ee658089 + pristine_git_object: 128d0334a0904f205d217b17ce650123821a1749 + docs/models/orchestration/GetWorkflowInstanceHistoryStageResponse.md: + id: 0ed585a892bb + last_write_checksum: sha1:7b6ffac57f8d86d1b663b01d678b92e783a45bc1 + pristine_git_object: dd58b0dfc43aa90300c1ac09a14bfc2ded6a655e + docs/models/orchestration/GetWorkflowInstanceResponse.md: + id: 9cfe8125b28d + last_write_checksum: sha1:3d0a32a824fe586dc56ef5348aff15c6e1a28c50 + pristine_git_object: 9a1c5d0920087429b61bac71e293d0abffa9d570 + docs/models/orchestration/GetWorkflowResponse.md: + id: 3b82825b06cc + last_write_checksum: sha1:cbb4bdf247b7f0edb91ed2fb805fd06cfe683ad3 + pristine_git_object: 957ec071258d4b84437535ad2f555cf2a7b3d6a2 + docs/models/orchestration/Hold.md: + id: 3d2d7bd126a6 + last_write_checksum: sha1:83e9aff28b9849c2e704ceba812bbc99364bc44f + pristine_git_object: 60a97d7ef8a77f51b3167dbd666e6eceeb7a03d7 + docs/models/orchestration/LedgerAccountSubject.md: + id: 3e9b27b0a93a last_write_checksum: sha1:4fde2391c3360ec9debab5a9154a5cc1ec49bacb pristine_git_object: 3e76e3dbd15645704765524d8917f4d4eb2681b9 - docs/models/shared/LedgerInfo.md: - id: 0827f45b97b9 - last_write_checksum: sha1:ad63cc7b45fed9e42a093563b8a177ee348e71bc - pristine_git_object: a797eef1fc2c93a15c8b1b233a88ab41cfabebfa - docs/models/shared/LedgerInfoResponse.md: - id: dd0b03f796c2 - last_write_checksum: sha1:cf89d28ac86e7256dbb2d339053ec35c5ba01762 - pristine_git_object: 6de5ad8ca338b89679b77b92c46c82c985eeab78 - docs/models/shared/LedgerInfoStorage.md: - id: a1ca7408b221 - last_write_checksum: sha1:17f5ba5936b3cc63fe6e9a6512cfe7c10d3769f0 - pristine_git_object: 680e022c255d35ce003bea75f8866d688987626a - docs/models/shared/LedgerStorage.md: - id: 2de8a5645aae - last_write_checksum: sha1:2059df7009ee0cc48585f5c1077907b7dad4f24b - pristine_git_object: 22a85fcf41203ce56d91e6f9fe4f9b35c6e689c8 - docs/models/shared/LegacyPaymentStatus.md: - id: cfd8436f0702 - last_write_checksum: sha1:46fc91837c63f0913709568b482805bfe06143ce - pristine_git_object: c837d27bd0a235c40f8bf667fd6404b5f1142d37 - docs/models/shared/ListBalancesResponse.md: - id: 46b67f7a7f8d - last_write_checksum: sha1:8a28fa863d9fac2b96c4992d152a66f33d837cb3 - pristine_git_object: ba4dddc20d3eae47f1fe5cf4ab67421352e8d835 - docs/models/shared/ListBalancesResponseCursor.md: - id: c9234631ec49 - last_write_checksum: sha1:b4db47a348aa4c5a12236bc1d18e5da0e64d730d - pristine_git_object: 230597cb41bebfdc730abf392727bf834c1f5824 - docs/models/shared/ListClientsResponse.md: - id: c384d12a6bbc - last_write_checksum: sha1:04e5da1c51f40913bbc7fcd3dccaba12a3adec34 - pristine_git_object: a4f07d4682be2267013bebc55536d1cdcbdc3ebc - docs/models/shared/ListRunsResponse.md: - id: 800b6628480f + docs/models/orchestration/ListRunsResponse.md: + id: a842ff02ee0e last_write_checksum: sha1:3c3b2a819f6068d098b90bbbfd65d4eb60fbd89b pristine_git_object: 1f08a35684a7e37cd67a9ba0bfc13bfd700b495c - docs/models/shared/ListTriggersOccurrencesResponse.md: - id: 0b10eee3e7c3 + docs/models/orchestration/ListTriggersOccurrencesResponse.md: + id: 495efcb28bb7 last_write_checksum: sha1:f233fcca22683a6724754f43affe36c510f91fe1 pristine_git_object: 5ed0c752c7419c16f1214ee0333ff8cea0bea28c - docs/models/shared/ListTriggersResponse.md: - id: 0e97c1bc1669 - last_write_checksum: sha1:9bcc4a0ffa558475353d93a77b88df6e770ad53f - pristine_git_object: a04fa9a8b4def1e55457a9b3c0587a0b1f62a3b0 - docs/models/shared/ListUsersResponse.md: - id: 6636ec5771f4 - last_write_checksum: sha1:21200dcda237a5787cdb905368667df9a0cd2aca - pristine_git_object: e8967ade809ed215ad9b7c68491f28c28c4c9a88 - docs/models/shared/ListWalletsResponse.md: - id: cd96ec177aea + docs/models/orchestration/ListTriggersResponse.md: + id: e19f5334f618 + last_write_checksum: sha1:2046c614a0255deb38f5e753882bc438ed644f83 + pristine_git_object: 38b1fed70b591608b8edc967276687de6bdacce9 + docs/models/orchestration/ListWalletsResponse.md: + id: 4c25acdb8a55 last_write_checksum: sha1:0eb7e2e7ac596e66d16511283fcb05326bd3a3ca pristine_git_object: c43727057a0f2617ebe0761e44f288f5786a0c94 - docs/models/shared/ListWalletsResponseCursor.md: - id: 8a69157f64c6 + docs/models/orchestration/ListWalletsResponseCursor.md: + id: 5c3b73ad7f44 last_write_checksum: sha1:dea76592751e63c8f55aeb6a7bad776e7aa0fd8c pristine_git_object: 0d1c0e47ed24ef86d0a3a03f170cc22f4800da96 - docs/models/shared/ListWorkflowsResponse.md: - id: b9074f2192fb + docs/models/orchestration/ListWorkflowsResponse.md: + id: 6a8483ca8167 last_write_checksum: sha1:0edb9051d5adb9a3a089e2e220d4636e176f8aa5 pristine_git_object: ad8a80a63e113d332e75fb4a4a7df7b4bb0996cb - docs/models/shared/Log.md: - id: 9fd45fbc36ff - last_write_checksum: sha1:3244dca9d99d39b74aade08d55f2841f344ccfad - pristine_git_object: a5ecc46776d3c6b92be62fc689c63edd8ab2fc9c - docs/models/shared/LogType.md: - id: a6efd2360341 - last_write_checksum: sha1:2d4b7bde4dad2dfa112f297ad2730b90c4f453e3 - pristine_git_object: 93bc5184120ffb89007d5d16ff23e1662fd78906 - docs/models/shared/LogsCursorResponse.md: - id: 82ebe03040f6 - last_write_checksum: sha1:57d96f3e5b4bcfd7edf3b13f304eea8205184ace - pristine_git_object: da65c181a634038f1830c4189739e18619f15445 - docs/models/shared/LogsCursorResponseCursor.md: - id: b70fd9a7e512 - last_write_checksum: sha1:62df9482e6ddfd4a1b56987c81eefe10b384620f - pristine_git_object: 752210031b0da1ead73c1235e0aad8f10016f85a - docs/models/shared/MangoPayConfig.md: - id: f199929ec55e - last_write_checksum: sha1:f9b77e000081c5a69697001bba467552e185657a - pristine_git_object: e5a8f7dce1ff0d5f258dfa955b9c76aeae8b7f10 - docs/models/shared/Mapping.md: - id: 9adfc2e38e0a - last_write_checksum: sha1:9ee3d52543954617279cf7c2b544ebb910903602 - pristine_git_object: 33c366d7cc14721b76095f0436ab7627a0afdc22 - docs/models/shared/MappingResponse.md: - id: a3da4a3599c9 - last_write_checksum: sha1:d95963b51985d50f5008e2f8cb6cedc78519b64b - pristine_git_object: 7ff659562c6e1986afe5c07a0ddf50d117ebe785 - docs/models/shared/MigrationInfo.md: - id: 422cff27b246 - last_write_checksum: sha1:d94651f3469984ae83af3c029ad98d4f1685752c - pristine_git_object: b63c2360822d8436592e555df615a3ea1c994780 - docs/models/shared/MigrationInfoState.md: - id: fb573fc02ef7 - last_write_checksum: sha1:dc1318d194fe49c758858539ed8b8e636e7bc875 - pristine_git_object: b80ff07abc8b6998bb822dc85fffd0d0bd2f5974 - docs/models/shared/ModulrConfig.md: - id: dc50a5ebe612 - last_write_checksum: sha1:d05e1c3152d605a0b57650705ae3f51987e89034 - pristine_git_object: bbf85f384ce978b41c8b4ad2ddec18f7d9bef33b - docs/models/shared/Monetary.md: - id: 92814d787f22 + docs/models/orchestration/Monetary.md: + id: 0f4d52e296d1 last_write_checksum: sha1:fe0d437cf8f445a447dc2794b827efbaa15649f8 pristine_git_object: c31bbd6a56adcc294de4764c11169fdd397e1e77 - docs/models/shared/MoneycorpConfig.md: - id: 80344c161611 - last_write_checksum: sha1:1ad4de7e406ab598f2807fd16eaa99dd5e1016b5 - pristine_git_object: fd16766d19ed09e4be4c6d70e12ad7e184bfc176 - docs/models/shared/OrchestrationAccount.md: - id: 10ee2770ca49 - last_write_checksum: sha1:99b37c15b455da7d6274a80c5309450bd0a64dbe - pristine_git_object: 8c88d1a45d705a2e5f662cf5e9fd4ca0a1094da5 - docs/models/shared/OrchestrationConnector.md: - id: cb875563d37a - last_write_checksum: sha1:0e57c7008abbf9c14d6bf9a2a2846b690f3a8e73 - pristine_git_object: 130d31953e286998d28fe4b005cb10846c463878 - docs/models/shared/OrchestrationCreditWalletRequest.md: - id: cc1c0c50f981 - last_write_checksum: sha1:f92b069f7e43bd415bb2ce1a4b2209bf81e0d955 - pristine_git_object: 78724a64b3467c8e8c4885919633beb0b5a9190f - docs/models/shared/OrchestrationHold.md: - id: 492b922d829f - last_write_checksum: sha1:06cb3c483b9a2809e817181f2ff607f4107ff5c4 - pristine_git_object: d5e77b6bfdea681be7c776e2a0e6973b5454fb08 - docs/models/shared/OrchestrationListWalletsResponse.md: - id: accc25ba6072 - last_write_checksum: sha1:158d4610956477d05a5bdacb53db5ee6823423be - pristine_git_object: d444aa1ba625d3e39d584d9d8917b79417ad38b3 - docs/models/shared/OrchestrationListWalletsResponseCursor.md: - id: 12d9f5b26f70 - last_write_checksum: sha1:b24ca26d26f5313438aa780ee69100a154d85a10 - pristine_git_object: 14c4ea576c0c04ef9bd9d6707ac549e7e4faaf42 - docs/models/shared/OrchestrationPayment.md: - id: 8a8883e6ffc1 - last_write_checksum: sha1:3e3e5737a38348bd3cdb0230699fb5dd4ff3bba5 - pristine_git_object: 35a56f32f699ac760773c87c64471b124b38e439 - docs/models/shared/OrchestrationPaymentAdjustment.md: - id: d8552b0a564b - last_write_checksum: sha1:42f2359bde4cedd4af0e0a3f7e43f99f32de792c - pristine_git_object: 38b593ab007f4e2961db646abcaf34d9f2088f28 - docs/models/shared/OrchestrationPaymentAdjustmentRaw.md: - id: 764d2b5566fd - last_write_checksum: sha1:756244d0d91555450f6b5ac175a9ee18deab62ad - pristine_git_object: 77c60320d75cb35c2587c9cd0a00b4cbd45f8094 - docs/models/shared/OrchestrationPaymentMetadata.md: - id: f2330008fb91 - last_write_checksum: sha1:af8ede63b8d886121a15e03d861cb26ed1f09fa8 - pristine_git_object: 716d055fda07a2b48d55691b91a585ca2fef85cf - docs/models/shared/OrchestrationPaymentRaw.md: - id: 5cab8b6007ba - last_write_checksum: sha1:2d9f7c0c30d2a7f1e2b1f12c6f6070ed41bb92a6 - pristine_git_object: fe549dd2764796262920fbc4391d23dc58f788cf - docs/models/shared/OrchestrationPaymentScheme.md: - id: dbb9ef20ac5b - last_write_checksum: sha1:2893eeb78baebb73e77fab948f73a71464099db5 - pristine_git_object: a898be55e12027476df703ebd4a482a38853e275 - docs/models/shared/OrchestrationPaymentStatus.md: - id: 032493fcd22f - last_write_checksum: sha1:2ef068869d93d245b86c044d4c3da0464b230857 - pristine_git_object: f3dfe651590067444efc68e1bb4913cbf8766a1c - docs/models/shared/OrchestrationPaymentType.md: - id: a91e85bccf7b - last_write_checksum: sha1:3d150ae098d20991bebd50a02c838b7c9402d206 - pristine_git_object: 752a268e13b0c49b45dc0eafa81e1bb4b1cc9c7a - docs/models/shared/OrchestrationPostTransaction.md: - id: f6ee27a2bef3 - last_write_checksum: sha1:7c33c9de90b22b1dd54abba2b8274e83e7de7d75 - pristine_git_object: 8a115d047817c42218d7088a0cc94591facb161c - docs/models/shared/OrchestrationPostTransactionScript.md: - id: 66630d360666 - last_write_checksum: sha1:14168571c892f84b7bbcd097e85dd9908f898db8 - pristine_git_object: 135aea72a5da1d22d3293c80fe4ee406b456f7c9 - docs/models/shared/OrchestrationTransaction.md: - id: 54b7678305ea - last_write_checksum: sha1:66b23eb81406b2bc8a0a9ae0ec02ca00d616eee7 - pristine_git_object: 5753153b6423155ad9683d8c31c4c7ce76cfa32a - docs/models/shared/OrchestrationV2Account.md: - id: 82bc38391d73 - last_write_checksum: sha1:e0ea4a268dde91984658aa32480df4e0fffe5469 - pristine_git_object: 0d3baf068995bcc9504a53e0896d91f7100f80d4 - docs/models/shared/OrchestrationV2PostTransaction.md: - id: b235b3c172ed - last_write_checksum: sha1:844962127abe2d01f470955833183249976cc261 - pristine_git_object: 175ec522a90104d4c73f1f64876a476f33f63790 - docs/models/shared/OrchestrationV2PostTransactionScript.md: - id: 3acc1d4febb8 - last_write_checksum: sha1:babc79a57c03d2cede191d1a2d8f1b6a87ce21cc - pristine_git_object: 10e919810b11b050c4cf6e8e03ec137cb477ff57 - docs/models/shared/OrchestrationV2Transaction.md: - id: 95243112647c - last_write_checksum: sha1:574888beba983bd0618657744d49bc9af0d7b444 - pristine_git_object: f5b8545d0b0f269d5eb79495ee8252072ee53557 - docs/models/shared/OrchestrationWallet.md: - id: 1d035e1450d9 - last_write_checksum: sha1:f2890e4e3cbebc18ea3bf6bdbc1865aa4239a9a4 - pristine_git_object: a9f9a184391a9130c0e28ab7ff5d564cb35112c0 - docs/models/shared/Payment.md: - id: 47020682a1cd - last_write_checksum: sha1:9e314736b59faf7a6831a44932856ac12cc1c2d0 - pristine_git_object: 2ca7056ae7199b7ee112262f547f849623e340a5 - docs/models/shared/PaymentAdjustment.md: - id: 905847889f7c - last_write_checksum: sha1:2a100322e48287a812fe8a4c3be3e1a723c86005 - pristine_git_object: 740213721b509af2f33e1b3077ecbbb25104ca0a - docs/models/shared/PaymentAdjustmentRaw.md: - id: 2c5a2af4a9cf + docs/models/orchestration/Payment.md: + id: d73e9f570faa + last_write_checksum: sha1:c317254bd2638a3abb1371573fdf3cf26477659f + pristine_git_object: 1053a7b4798d33be356e3fcbc86b2d61422a8040 + docs/models/orchestration/PaymentAdjustment.md: + id: 7e8c8f333adf + last_write_checksum: sha1:fbc1aebcabea64e7b4da58fb4a987e07b50e1bfc + pristine_git_object: 73dd4689adf76a25b4fd33dfd137374fdaf2084a + docs/models/orchestration/PaymentAdjustmentRaw.md: + id: c8bed01969cc last_write_checksum: sha1:a89d39f15638ed74ebf5e484491a846fbba4d63e pristine_git_object: 78f88aee5c8376683e8afb37a557cde1d4779495 - docs/models/shared/PaymentRaw.md: - id: fe35f5282e43 + docs/models/orchestration/PaymentMetadata.md: + id: c89aab295f01 + last_write_checksum: sha1:e6fd3944322cbe007f3a48d9abe612990337504e + pristine_git_object: 4bce7119c8c75565f79a7eef314649818f485dfa + docs/models/orchestration/PaymentRaw.md: + id: 988fed3cf787 last_write_checksum: sha1:8380da891216d461e7cc57ff268f773d0097b105 pristine_git_object: e884afe329a45217d54d17af7da259c49bb3adc1 - docs/models/shared/PaymentRequest.md: - id: 1bd3117f26f5 - last_write_checksum: sha1:25e61aa3aa22253dfc5a61630f82992bff099cb4 - pristine_git_object: 718685d742d5933dfac170e428aa4f182ea83084 - docs/models/shared/PaymentResponse.md: - id: 67397b561070 - last_write_checksum: sha1:1b27818faa9c95cb35952d2a1209d92e160548a4 - pristine_git_object: 7dc4580147985829be87b00602f0498343dfe62c - docs/models/shared/PaymentScheme.md: - id: c06b94dda9e1 - last_write_checksum: sha1:114398e99d02650b6e8902ff0fa847a4b29aa16c - pristine_git_object: 1ab68fee1e2dadb700155b88108a2c91526ef66b - docs/models/shared/PaymentStatus.md: - id: 7c882df25261 - last_write_checksum: sha1:fa0ac5ac85dfb1442cf03e23ba2eb9473e35cb63 - pristine_git_object: fdb0c63a278ca2613f18ed2bfb8be93b3122407e - docs/models/shared/PaymentType.md: - id: 01e5fa281169 - last_write_checksum: sha1:213bb96f1941ed42fe13c532dcd85045e154d24b - pristine_git_object: 5d26508b9a143ea3529d2c815a04a1572e5e1145 - docs/models/shared/PaymentsAccount.md: - id: ac980bcf9b88 - last_write_checksum: sha1:2769db2c8c5c05e49839f784f8289a042613adcc - pristine_git_object: 4fc590f33da1bc705f42f11de57120d722f34529 - docs/models/shared/PaymentsAccountRaw.md: - id: fbeada12cc98 - last_write_checksum: sha1:f171fd2863bd2417b03945a2810f2965155dd6c1 - pristine_git_object: 2bde2458bd9509afb2506549cea7753be09c3a54 - docs/models/shared/PaymentsAccountResponse.md: - id: cd0b86462514 - last_write_checksum: sha1:253d445c26713f7fe6ae20d8d983c096f18fc90b - pristine_git_object: 62c8bb008cf6d3b5b29843c4ff3eeb2c68336ec0 - docs/models/shared/PaymentsCursor.md: - id: 551faa636eb8 - last_write_checksum: sha1:ed775b898026de2e404cbc1920c1f50205d8a9d9 - pristine_git_object: eefce1397b621bd316b7fafbba900d5179d95fa9 - docs/models/shared/PaymentsCursorCursor.md: - id: 5e7e1b3b8013 - last_write_checksum: sha1:1f6e93a0f7c8b5af574601f0eb37488c6c3499cb - pristine_git_object: c34f63c5aab3053b76094b4da19cea7ccafb8697 - docs/models/shared/PaymentsErrorsEnum.md: - id: 87fc7399105b - last_write_checksum: sha1:d92851ae84b31ad6e97a01d58459765063039b84 - pristine_git_object: ed6ec7846bba4af2d9978b5e1817582243ce79f6 - docs/models/shared/PaymentsServerInfo.md: - id: b6283fdcb5f0 - last_write_checksum: sha1:edfc7ae1ae1dc9b1ee197f4273a3afb00afde020 - pristine_git_object: 529fb9449d8c0fd47a980876bf1435d02c2183c3 - docs/models/shared/PoliciesCursorResponse.md: - id: 9a0f02916784 - last_write_checksum: sha1:8de3b184a9ac273c2c76fdcc671a34465b0723a0 - pristine_git_object: 22edc7cd8eeb42b52da535253314690e22567f14 - docs/models/shared/PoliciesCursorResponseCursor.md: - id: ba578c71dc79 - last_write_checksum: sha1:71554cd99f7a472c9b53514dbb96168e2c475329 - pristine_git_object: 7a044caca809744e021e2c3870591290568c4502 - docs/models/shared/Policy.md: - id: 999afd992cfa - last_write_checksum: sha1:db67d1f874aa4d897480fe154176b8acda52a86a - pristine_git_object: 5b3c075bc297c2c2e1ee03d0a6063f39ca2eb26c - docs/models/shared/PolicyRequest.md: - id: ec6c7dfe4746 - last_write_checksum: sha1:edf4898d55625e0aaecbddbe6343ea6d1b053cd9 - pristine_git_object: c51bacd30e7ab908856b0604a70c113a8e460ba4 - docs/models/shared/PolicyResponse.md: - id: 2baa7a140fc1 - last_write_checksum: sha1:27392c354d55b4d0bb5dbe1e3d3e6e887265ebe9 - pristine_git_object: 7ae5e378cd52fcb843a64590b9172eab8125e1a8 - docs/models/shared/Pool.md: - id: f5ad53193a89 - last_write_checksum: sha1:d038b3722c196abe583bba1c381d6421bf78c036 - pristine_git_object: c0a48fb94abb0525b58416074b45745d73bffb15 - docs/models/shared/PoolBalance.md: - id: "723126807926" - last_write_checksum: sha1:836ac244d2b4f5caa65c1dbfb2c6d6e5432ef8a8 - pristine_git_object: 2b95f5f7164f71a2f3a2afed29500dabeabc059e - docs/models/shared/PoolBalances.md: - id: bfe103bd1847 - last_write_checksum: sha1:e089ea7c8c4bd7a91c3f7f9e389cbae9fe894a59 - pristine_git_object: bf4c3596a90a90a54e370de9865b8aca94220d41 - docs/models/shared/PoolBalancesLatestResponse.md: - id: ad64de866197 - last_write_checksum: sha1:81ef8da35fdc8fb30b8451b717af52ab08de4fe8 - pristine_git_object: 092471c421189a047801ba129165fbf42fbaf71b - docs/models/shared/PoolBalancesResponse.md: - id: 146f065b60cf - last_write_checksum: sha1:d01c51ddd78da7b28e835dd47cb50ef60284c6d8 - pristine_git_object: 5a2cc8f78c5de59c0005394c45477c9e19c52358 - docs/models/shared/PoolRequest.md: - id: f2953f4f3827 - last_write_checksum: sha1:d028a48c58a139a2a234d556c580847676daaf7d - pristine_git_object: 6db86980b74ae73ea55330a527700b0ce76c1b59 - docs/models/shared/PoolResponse.md: - id: 2c3a15ef8a10 - last_write_checksum: sha1:67a3a53dd8c64d1283d0b7ed1a13a8571df1cc0e - pristine_git_object: ab8f1c9a66eddbb4840d0dd5f0d2d98a6d5b3c7f - docs/models/shared/PoolTypeEnum.md: - id: f802eae578c3 - last_write_checksum: sha1:2f320c63ff78b9633b5d2f93cfd1e874b560fb63 - pristine_git_object: ac5b221c73e2221d3872abf19c6f2574ef85e1c2 - docs/models/shared/PoolsCursor.md: - id: 9ecdbbf917c2 - last_write_checksum: sha1:6cdf71a1dd80dd863fd81d28712a9ea43429a0b7 - pristine_git_object: 853996bba4699fe1638f93153a68b68c19f27988 - docs/models/shared/PoolsCursorCursor.md: - id: "252588351383" - last_write_checksum: sha1:67efc617179faa3fa1951b8c1f5e924c0234d3a8 - pristine_git_object: 2bd85a3088ab9f632f6a07b209d6baa45a97fb6e - docs/models/shared/PostTransaction.md: - id: 0c1640106016 - last_write_checksum: sha1:0e1350d6f199323ea841d80bee004459066fbf57 - pristine_git_object: c29e25e5be78fd3093875a5d2a57a59a0406bcef - docs/models/shared/PostTransactionScript.md: - id: b28ac2c9fac1 + docs/models/orchestration/PaymentResponse.md: + id: ee9b85ced40f + last_write_checksum: sha1:fbba89ac29ee95029e2e2ca4ace8c0b20028bce4 + pristine_git_object: be21cf8b77f003cc2bb41281b5602d35c4503d7d + docs/models/orchestration/PaymentScheme.md: + id: 974c0637063f + last_write_checksum: sha1:5ad21a29fce3d4f982203e1c897b7d42c000ceba + pristine_git_object: 62230a7feaed779867f08da01eeeeddadbc61fda + docs/models/orchestration/PaymentStatus.md: + id: 0cd7dd017e36 + last_write_checksum: sha1:671cd35c0792043ed850aca12d70abde81fa2b7e + pristine_git_object: 0e4f50a731dd778f3d3a2198875ef19e330035f5 + docs/models/orchestration/PaymentType.md: + id: ca208c1e68de + last_write_checksum: sha1:0d645095a19bbbbefcdce059c728b10e0d2ecb37 + pristine_git_object: 6510abbf7a55133a915ee8d51be0c51e8b2e25fc + docs/models/orchestration/PostTransaction.md: + id: e5f418832533 + last_write_checksum: sha1:3e926ea8bfb119b2d462f23851c4834969e35937 + pristine_git_object: e7e0e49ea8b1dfed0ca9892f21cb4189fa2731d5 + docs/models/orchestration/PostTransactionScript.md: + id: d187ff156fd7 last_write_checksum: sha1:5a8d8c700416f8b2e25e899c07274e9726c18e90 pristine_git_object: 7c97043521bab68dcb83d92cc2f3f8682479b749 - docs/models/shared/Posting.md: - id: 50fa9c2d6fa0 + docs/models/orchestration/Posting.md: + id: 6f42f5798a1b last_write_checksum: sha1:664e0a7d44beedcacf2cea4164bcb76154a2a5d9 pristine_git_object: 8fca4a0b2ee934a0bdd48c2aaec750e8338abea4 - docs/models/shared/Query.md: - id: 0395e58ea26c - last_write_checksum: sha1:fe50f953a0e06913d24fcee703fa7f036de692bc - pristine_git_object: 03c70ffc9094218039402d2c1b65edcc8430a623 - docs/models/shared/QueryRaw.md: - id: 036693214dde - last_write_checksum: sha1:702408cf42c345cfd69a087a02a830680c484628 - pristine_git_object: 997785b454303456b4f3b2927a1e1ac5d5fc12a4 - docs/models/shared/QueryTemplateAccountParams.md: - id: 7268205e86f2 - last_write_checksum: sha1:236778a0cd6f9548e0be1fdac927727706de3d5f - pristine_git_object: a50c3595adfb11ae9b7ca2c3a7177a27ddb47ec2 - docs/models/shared/QueryTemplateLogParams.md: - id: 157457200af8 - last_write_checksum: sha1:7720d20a75c8faba47ff0a37bf81c0afad0c71c7 - pristine_git_object: 5fd898d1eadbd4cadbfca5cda290b2351d004c14 - docs/models/shared/QueryTemplateTransactionParams.md: - id: 96e4a3e5e3d3 - last_write_checksum: sha1:71f418a7f1f2486bf7ec0320823f2943947d12fc - pristine_git_object: 2f3778b552b12ef7bebe4751f3ccc23ca4b31700 - docs/models/shared/QueryTemplateVolumeParams.md: - id: 6008c9d12f4b - last_write_checksum: sha1:8d703b0fb6c2a358cb916a04d2a1027b07d417af - pristine_git_object: e09f6e070984b4a8f29e6e9acd0a8e2b479ce07d - docs/models/shared/ReadClientResponse.md: - id: 3e3ac7509fde - last_write_checksum: sha1:d034cfaf4f6180aa9dc9df9a6736135fccc7ce8f - pristine_git_object: 578a5dcd8e83d60cfe4cb4bea9bfb75517250bb7 - docs/models/shared/ReadTriggerResponse.md: - id: 2bc0bbd72511 - last_write_checksum: sha1:2d33363026fd25d55fe99fef1893b8b338e8ae45 - pristine_git_object: a18878b1b96303f3d8c139af48744eaef174c7cd - docs/models/shared/ReadUserResponse.md: - id: ba38ec080eb4 - last_write_checksum: sha1:3c62966f76332576512528da84c4e7afeafa882d - pristine_git_object: 5407855b525213dd1e5819286efb67ed64d10e88 - docs/models/shared/Reconciliation.md: - id: 1894da0a847f - last_write_checksum: sha1:5062b6cfb01f6d207d1d3111067497882139219c - pristine_git_object: d7188d82b0614d75fc182baecade8c7b36551a5f - docs/models/shared/ReconciliationRequest.md: - id: 339b1d7dbc29 - last_write_checksum: sha1:a3c4d29e6725c13ac01bc9e03efb0636958d847f - pristine_git_object: 58ab941f89812561c01eccb8cacaf39f2924f57b - docs/models/shared/ReconciliationResponse.md: - id: 2d2dbbb87718 - last_write_checksum: sha1:8455b92e386de4bc38047bdafec2b8d641f2e6f5 - pristine_git_object: 1646679f0968385c2889e888b4a5f362b797ac76 - docs/models/shared/ReconciliationsCursorResponse.md: - id: c7bf3bf1c311 - last_write_checksum: sha1:93a1886050f5193ff8fd04f0a28cf846d4ab3af4 - pristine_git_object: 488900be65a86e80b566709be9d797a48f5bb32d - docs/models/shared/ReconciliationsCursorResponseCursor.md: - id: af68fcd92ad6 - last_write_checksum: sha1:5235910597d2d9afcfe73578f08c325a5bd73dbe - pristine_git_object: 5d366a04c7bb7fbf8bfb372e039fbea7d07accc7 - docs/models/shared/Response.md: - id: c49be6baf941 - last_write_checksum: sha1:8f08c45958463b057eba81f669bd35d5bfd45161 - pristine_git_object: 29a41fa8e222cf7f523e5801b5aaf56b8b47e388 - docs/models/shared/ResponseCursor.md: - id: 29e0353ea464 - last_write_checksum: sha1:51d663736b4ca520ad28af9186418ca749f1f823 - pristine_git_object: 84ac2259596a9079bd4549b7a4b94598f2e5756a - docs/models/shared/ReverseTransferInitiationRequest.md: - id: 69b0dc0f094b - last_write_checksum: sha1:74f6eb213da7ebf17d9b5f2d84f8f6169d880dd6 - pristine_git_object: 7ef596af77f0450bd974382adb2024983f1f8b75 - docs/models/shared/RevertTransactionResponse.md: - id: 1aad16484013 - last_write_checksum: sha1:34d17960d0078bed156b90033ff60362694f2bcd - pristine_git_object: 6997f094bdf90e7962f8a4b56d95e686740400da - docs/models/shared/RunWorkflowResponse.md: - id: bb91b5955300 - last_write_checksum: sha1:4e6f1f857fccbc8177cefd978515c1d46367ed1f - pristine_git_object: 4d0e9460ae2339a9d6dbceaf0d9a2ebe1d0cc898 - docs/models/shared/Runtime.md: - id: 0f2f7b711544 - last_write_checksum: sha1:646a950f4138abd47e44b5d2c4ab6ba2cbfd0b51 - pristine_git_object: fb87781d56a3f888fff334e31ffe42ec447c9cc5 - docs/models/shared/Script.md: - id: 5ea2236110fe - last_write_checksum: sha1:f39cf000a763081cef3bbfaf2f64e4b6aff9805d - pristine_git_object: 279124dd57db173baf2e6827724c7634e67cce18 - docs/models/shared/ScriptResponse.md: - id: fffed292b141 - last_write_checksum: sha1:18204b7c62b6c6b54d2a1bcbbefad8c25f190c1e - pristine_git_object: df4f2a889d317075973de5e37be9d93ed7b21bfe - docs/models/shared/Secret.md: - id: 45aad75a9bf9 - last_write_checksum: sha1:ad1fde0c6fe092e886819bc790aae64cd39b7213 - pristine_git_object: a557ff4dad02f281ed9b17b47afd6b3aaa704194 - docs/models/shared/Security.md: - id: 81003b6bbb13 - last_write_checksum: sha1:44ec27db16ed05af620943d8a70d2339371e5a74 - pristine_git_object: 050ec68b7ed7b8dc9fb4b18fbde0a0061f63325a - docs/models/shared/ServerInfo.md: - id: 57a4a7692f99 + docs/models/orchestration/ReadTriggerResponse.md: + id: 77d0e88100c9 + last_write_checksum: sha1:3d0f24c5826cff01648d6b050caa89ff2afdcad4 + pristine_git_object: affdd5bb77ad93f3ec94333d5d74466485cb8ba1 + docs/models/orchestration/RunWorkflowResponse.md: + id: 165db562e4d2 + last_write_checksum: sha1:327dde84a1819f546682799b0aad683343225702 + pristine_git_object: 544972abf230d5319867b5fc92df4f3e32496bd8 + docs/models/orchestration/ServerInfo.md: + id: fd88784751e9 last_write_checksum: sha1:97c8ce4fd5bff434e676fb32d23a9af2760126e1 pristine_git_object: 375caaa222b143d0fa6148ffc9589cc5abdac0a8 - docs/models/shared/Stage.md: - id: 274860a2534c + docs/models/orchestration/Stage.md: + id: 064f61e573ae last_write_checksum: sha1:bee3c8dd3fc68c34b5fd60a0de3e483672b8724a pristine_git_object: 7256f4169c44050cefeeaa7241c22e9f98646394 - docs/models/shared/StageDelay.md: - id: 264f879a9287 + docs/models/orchestration/StageDelay.md: + id: 9108c7f1088e last_write_checksum: sha1:83fe7a94dd4e7f7848054a05ac5d5387277e2279 pristine_git_object: 40c6df9c148aa91ce8bec6d16b983c3c3537b159 - docs/models/shared/StageSend.md: - id: 1dbc4629f623 - last_write_checksum: sha1:6caa2eec43e856778818fd9b39ed2b60bf88da84 - pristine_git_object: 8be606922b8817ab32d69d9f0adfaf8e7cd32e9d - docs/models/shared/StageSendDestination.md: - id: 3173e6b1aaa9 - last_write_checksum: sha1:42362a35d22228a612bd58283a8a1b2a7f29cb1f - pristine_git_object: a18e31753b7627baa891dc38dd8bd669c929562c - docs/models/shared/StageSendDestinationAccount.md: - id: 9fb848026c08 - last_write_checksum: sha1:8216ead94521c35aa8c2805fc5d253d2f2699af8 - pristine_git_object: 5798627aa95c7bc3e1ec4939e054e22c8d5ccb67 - docs/models/shared/StageSendDestinationPayment.md: - id: 3d52e413528e + docs/models/orchestration/StageSend.md: + id: 70207a91dd7f + last_write_checksum: sha1:9e38929aa30e5b4e742ad194dd4bd8b0317c39d3 + pristine_git_object: 0473dd8a46fad9a43cd7a30a937766b174f264aa + docs/models/orchestration/StageSendDestination.md: + id: ddb4645b6cd0 + last_write_checksum: sha1:9a6d9dfc75ebf1c2babb9eae88b787d66aa7a015 + pristine_git_object: 8e95880443a795e7d2e99990d2128803ed618fb0 + docs/models/orchestration/StageSendDestinationPayment.md: + id: 78181e7efb5a last_write_checksum: sha1:6e55a75ae95f381ef830312311e0c6cd5a94f2d7 pristine_git_object: a96a3451c78bccadf0351e250421c217162f69d9 - docs/models/shared/StageSendDestinationWallet.md: - id: cac7f6c2a3ae - last_write_checksum: sha1:c55aacd0b77e9d1c4bc505436d2abe1451d53b42 - pristine_git_object: a75f2cc42b19ebf3f4c2279bb9a8c55e6772f0c5 - docs/models/shared/StageSendSource.md: - id: 850df8843ca8 - last_write_checksum: sha1:7c367f395e8f084458f372726fabfd19be85331b - pristine_git_object: 33cf5fa9ea708f4da014786710bec6a0624381cb - docs/models/shared/StageSendSourcePayment.md: - id: 2e1629410243 + docs/models/orchestration/StageSendSource.md: + id: 83459df78a78 + last_write_checksum: sha1:7480568b6484d69c703b3708c926b2a79ed05be9 + pristine_git_object: 75b4b7bf0d9fa7ec50462525133a8cce967425e8 + docs/models/orchestration/StageSendSourceAccount.md: + id: 4aaa4e4dbfa3 + last_write_checksum: sha1:78ad088621e10c87d4c5fe5a63bb45d0c1c04963 + pristine_git_object: b6efc11825131406936fe8a34950b1e321cbf71b + docs/models/orchestration/StageSendSourcePayment.md: + id: "158729115532" last_write_checksum: sha1:8e927e12826bc363fbd801668fcc409e955c9d74 pristine_git_object: c4e479b80c0e72879cbb1a08981d4507b5aa71f6 - docs/models/shared/StageStatus.md: - id: e97e49e15282 + docs/models/orchestration/StageSendSourceWallet.md: + id: 7d12430ff190 + last_write_checksum: sha1:21a97b079b73546b3e63bfe22d8597ceadf841d6 + pristine_git_object: 442597e49d768970cad4cb997192e20b0cd1eadb + docs/models/orchestration/StageStatus.md: + id: 03729f1766e9 last_write_checksum: sha1:dfccc7d66b6db47d943cb6ab503e0c7792394b5b pristine_git_object: 1901eb2022c4499cb9d8a4e418e4dec309c6d23c - docs/models/shared/StageWaitEvent.md: - id: ad6f9a43c7ab + docs/models/orchestration/StageWaitEvent.md: + id: f1b3c77b66ae last_write_checksum: sha1:4b3d5b85678e137ccdd8b8830bf75e483b9b559b pristine_git_object: 27b2099092c68158d7c865590ac0b237dcc99967 - docs/models/shared/Stats.md: - id: 38928e82edd0 - last_write_checksum: sha1:42554b3325d6be94a96db3a2f45ca6c182b8550b - pristine_git_object: 876ce4fb53a5c43bd39ba51bd1d0e0e31fbb9f12 - docs/models/shared/StatsResponse.md: - id: a910230fec3a - last_write_checksum: sha1:c526f4e5a11f43b1eaee13ad2cb7d37c10b83cd6 - pristine_git_object: 9d31ce980277250206459fc16e70dde33222b60d - docs/models/shared/Status.md: - id: 7665c2e93ad9 - last_write_checksum: sha1:3dc68746d5483ded616249645d00b9072990111b - pristine_git_object: b8c5663daae87d120b3cd14ee0582358b57cade6 - docs/models/shared/StripeConfig.md: - id: 55043698d34c - last_write_checksum: sha1:42642b3ac3c7fecba321d5e60b0377051b6ac787 - pristine_git_object: 08b178d2545c2bd26d9de5ad03d04f71688a55b1 - docs/models/shared/Subject.md: - id: 9b51c569e8d0 + docs/models/orchestration/StripeTransferRequest.md: + id: 552fef4a17ec + last_write_checksum: sha1:0abc4ddd93c6f53a5860e692b13af234ec6a387c + pristine_git_object: 0c834fcee64e1f23cebbc01b3b38ec30445eab93 + docs/models/orchestration/StripeTransferRequestMetadata.md: + id: 5d7fff4f02d4 + last_write_checksum: sha1:95c324b322b0b87885916238899470ca8046c1bb + pristine_git_object: d99b0e6785d62bc8db80569672abe09abc1fde44 + docs/models/orchestration/Subject.md: + id: ce3cf3b4451e last_write_checksum: sha1:40b76be73cdac7b473d9f6cdee8a49df34454df7 pristine_git_object: 94112ee8e510d00caa033b1e2982546aee356406 - docs/models/shared/TaskBankingCircle.md: - id: 08dd6fd62820 - last_write_checksum: sha1:a6edad8b223bdf0b8eac215fc33aa18fdc415f74 - pristine_git_object: e355f1ab2c940707cd63c3a08e5a3d8f94805b8e - docs/models/shared/TaskBankingCircleDescriptor.md: - id: 28aa2ead252c - last_write_checksum: sha1:768e8745e7571e7d632851e196f95504d4ed111d - pristine_git_object: b93c4c206bbcf18ff4a0cd35ee9ee163d95b405d - docs/models/shared/TaskBankingCircleState.md: - id: 7f1a66f36fee - last_write_checksum: sha1:af8cf50cf555137c098f9d0bef3400296b6b66b5 - pristine_git_object: ab19f645122c5a1758174e2208992d6b38226c52 - docs/models/shared/TaskCurrencyCloud.md: - id: 5b7d07a408da - last_write_checksum: sha1:15611e812c887ecf97c6c80c24e36a63e91f8fd0 - pristine_git_object: f18d705f93276d89df37a51a94e1598e3ae98fe4 - docs/models/shared/TaskCurrencyCloudDescriptor.md: - id: 6814cda2ae8c - last_write_checksum: sha1:4d832ed85b215a706995fc33f878f4776601e6dc - pristine_git_object: ad7da55e7dbdd536cdacecd5ea4e49699ed563fb - docs/models/shared/TaskCurrencyCloudState.md: - id: b13be0f19b32 - last_write_checksum: sha1:92fe1d562e0bce6adc5847c9b797007646d26600 - pristine_git_object: dee02a3ec2af06a012d6b9bb8d9c9068048bfe34 - docs/models/shared/TaskDummyPay.md: - id: d8d0f6c22a37 - last_write_checksum: sha1:630c5a85cb19cfb843c6268d9622e506dab373f6 - pristine_git_object: 6c42427f43f3327e54539752c3e862652f60ae51 - docs/models/shared/TaskDummyPayDescriptor.md: - id: 3d71f0830662 - last_write_checksum: sha1:02842247044f5ef4cac56d2e9b01532c58215223 - pristine_git_object: b5fba07b56b208239f5747a1aef7e4901081ef95 - docs/models/shared/TaskDummyPayState.md: - id: 9b692202473b - last_write_checksum: sha1:466067c14034a483e0853f89c8963b3da6f21f2e - pristine_git_object: c48e90864dba231c62eeffa692914979c29aa21f - docs/models/shared/TaskMangoPay.md: - id: 3d5bcc6bd36c - last_write_checksum: sha1:a310f334103e6a0ad09b20b10f4a080cef000a19 - pristine_git_object: a160fc4d7b77d3531d15fd28b12ba13f48aa5a39 - docs/models/shared/TaskMangoPayDescriptor.md: - id: 16d436931fb5 - last_write_checksum: sha1:6627b97f3edaa273d9de826cdfaa94aa040d848c - pristine_git_object: 6ee418797e06fdaafb0b57b0eba3883c64990230 - docs/models/shared/TaskMangoPayState.md: - id: dd23d06ed2ad - last_write_checksum: sha1:92a4aa72a0dc931bc3fd778eb907661dde39f5f0 - pristine_git_object: 19e1c1cc7009097c2cb960cd0a02857e94604dfa - docs/models/shared/TaskModulr.md: - id: "998973929435" - last_write_checksum: sha1:11cccb4f9a53f715b3bcaf928927eceaef7c901d - pristine_git_object: 401ea3b37aea2c4af74bde5837d9883572f38987 - docs/models/shared/TaskModulrDescriptor.md: - id: 864ae296ee25 - last_write_checksum: sha1:e5f9ecbfa633e1200d48c7f04d6ef5f7448e29e2 - pristine_git_object: 4c16eab4ab2e7f638d1eb6bcc993422dc17056f2 - docs/models/shared/TaskModulrState.md: - id: 38701a26c901 - last_write_checksum: sha1:12718841bda15784ad16a7394477dd3a7cd43eb9 - pristine_git_object: 291d63b54f3bc3917f6b4aae3aaae18e41e42a09 - docs/models/shared/TaskMoneycorp.md: - id: 99d3ffd78d94 - last_write_checksum: sha1:8a38ca2bcd939d601964da920f6ffded812e3c71 - pristine_git_object: d3f1ddcab9e1fceaa89bc346e66e511dff496961 - docs/models/shared/TaskMoneycorpDescriptor.md: - id: e24c493ebb77 - last_write_checksum: sha1:58fc1eef6d297acc4508591d665bcad70fd9bc54 - pristine_git_object: 01a519fb046c654adbc3f6b67875b2189e487d14 - docs/models/shared/TaskMoneycorpState.md: - id: 325980bce115 - last_write_checksum: sha1:91c225f3bc2352c972c5d9d81d2eecb459240e8e - pristine_git_object: f5beca88a3a99425c3695600a3bf19a15d17bd38 - docs/models/shared/TaskResponse.md: - id: 9e09449ac169 - last_write_checksum: sha1:b3c5a0e5fc6ca9e5299eadcc025a852d337c30cf - pristine_git_object: bc6b06551814ceb5eb3f23a6cc9a1113748b1823 - docs/models/shared/TaskResponseData.md: - id: 2e407a79f56e - last_write_checksum: sha1:0cfb02c00705203cc19fc8a31dd6c4ea8a6f5eff - pristine_git_object: 54a94089b067b4689368234aef27b39afa32dd5f - docs/models/shared/TaskStatus.md: - id: 74d27744737b - last_write_checksum: sha1:c6c4e6b10a46d1bf7f96f4acd3008e4aebff309f - pristine_git_object: 5113b816aff4ad26dea894753dd2483b6a446116 - docs/models/shared/TaskStripe.md: - id: 42d5520541a5 - last_write_checksum: sha1:fe9c73f97df0b03828f668b8e1263d05ea023527 - pristine_git_object: 779a9a3a851c38cf89bd12423e4207b402855414 - docs/models/shared/TaskStripeDescriptor.md: - id: 3145b4c42635 - last_write_checksum: sha1:dd7909dd0fcb4cd93f4fc6ee3d327df1a84920cf - pristine_git_object: b4d355761d66d58bf178bcc83325570dae769dcf - docs/models/shared/TaskStripeState.md: - id: ea8dea4cf1eb - last_write_checksum: sha1:e278ea641b2d858710e15f9a53b112ffc08e0da0 - pristine_git_object: 9639b5c9cb6ff49c7205872153ed63aaa8bfecaa - docs/models/shared/TaskWise.md: - id: 3f55294c240d - last_write_checksum: sha1:fe1a9fc8803f78b3f5538cb6ab0dd5a94bf749ea - pristine_git_object: 220af17310fa8a07f335f0b249eade11f371c891 - docs/models/shared/TaskWiseDescriptor.md: - id: bc70feae44e0 - last_write_checksum: sha1:4b05fcf0ed941eee1be3e80159f9a7c5e6cd04e2 - pristine_git_object: 20f8ae99d135c1ebc510a0f97daf6d7fd4db45fb - docs/models/shared/TaskWiseState.md: - id: d7f4be895c09 - last_write_checksum: sha1:5e57b3ef17d2b60648541ef1ecef10f9b76c5ce1 - pristine_git_object: fc76ce01d5048eb4fb85d8c775cbf63c84541dc9 - docs/models/shared/TasksCursor.md: - id: 2ebf3419d8c9 - last_write_checksum: sha1:43deb696c1c30d069473c837e15d8a8aee13b9c4 - pristine_git_object: 50c6b3c87d86803a3dcc89a55e787ad4980d9af3 - docs/models/shared/TasksCursorCursor.md: - id: fd5c41b44150 - last_write_checksum: sha1:6ee60a49c1a7e62c0ce30dc77ea62f862a2a43a6 - pristine_git_object: 56e3ec9bbed0d2316aff21fcd6cca168dbc80330 - docs/models/shared/TasksCursorData.md: - id: ff48810c422b - last_write_checksum: sha1:450c6534f0ec1a8c321afab651b55c36ab4794b3 - pristine_git_object: 26c8e78ea61183334c82f8c377e200aed42cd183 - docs/models/shared/Total.md: - id: 1f3cf16d37a6 - last_write_checksum: sha1:c0bd14d744c7bcfaaeea9f60ca9562935e93c182 - pristine_git_object: 2dd1585778f5e994637ff737ff82a2e097cc9a5e - docs/models/shared/Transaction.md: - id: 5d4bedf8f5d6 - last_write_checksum: sha1:bb739972cc5d9956b7946af5cf94511641f17b42 - pristine_git_object: 8e04193d8f13f950d15cf3dc3502ec9626fb1b96 - docs/models/shared/TransactionData.md: - id: 87e67dc2cb3b - last_write_checksum: sha1:623eb9b95b91726b0d839a8804f36ff146c7dc5c - pristine_git_object: e44e290d45c415b273f13869e40f229433e733e9 - docs/models/shared/TransactionResponse.md: - id: 89c5b38de2a9 - last_write_checksum: sha1:0141bafd08577632902842633c72cf0b44a5205e - pristine_git_object: 2277a7edab0bd0523fb1e16931202e5fcd8b7125 - docs/models/shared/Transactions.md: - id: 45f73bc86fc9 - last_write_checksum: sha1:331814c809e399d116d1ca9ff10d80d7da2e6d34 - pristine_git_object: 07765189ec914af3c84db93e07f4ab8d227a3cf2 - docs/models/shared/TransactionsCursorResponse.md: - id: 9d92ae65862b - last_write_checksum: sha1:c1aad2522882162ce34d7d88083672a3202c88f2 - pristine_git_object: ef50e9a26b5e2b3473ce3d3272297f307da17fd0 - docs/models/shared/TransactionsCursorResponseCursor.md: - id: 8945b74e1a2a - last_write_checksum: sha1:4fe077364071c2120e33087507340bdb76e42053 - pristine_git_object: 8b877f402aa0f3d33efcd516d634fde68607a2e2 - docs/models/shared/TransactionsResponse.md: - id: 618d3371e2cc - last_write_checksum: sha1:6342be3c3d5f5468db21495120f8cb9e9e19c28c - pristine_git_object: 765ae90b0985e30193949c7b960d4dd4e03f7b53 - docs/models/shared/TransferInitiation.md: - id: 4ab1a12aa671 - last_write_checksum: sha1:78ff08d2c3b4da1912545e4fe0b9dbabeaa2ef43 - pristine_git_object: 40347e8fe27f00018b11a8f80c4c01c379b377a6 - docs/models/shared/TransferInitiationAdjustments.md: - id: 4fd36ca8103a - last_write_checksum: sha1:87eb17637726a2858606d684d946c31b3506396c - pristine_git_object: 5844977e0d764ea45157d6b4cdcd9bd93dc64865 - docs/models/shared/TransferInitiationPayments.md: - id: 9bef666bdfd1 - last_write_checksum: sha1:a6bb79b274e3a44aeae13d8d7dbf94ec5c7afbdf - pristine_git_object: a2bb8729a7eeb6d9a2097427d8fa282f3f32cbdd - docs/models/shared/TransferInitiationRequest.md: - id: ca5c5c708a95 - last_write_checksum: sha1:64541bd256624a1735106644c9fa713807253ea7 - pristine_git_object: 0e17362b101212b53527e384d78557ed7beb1df6 - docs/models/shared/TransferInitiationRequestType.md: - id: 89369b07c498 - last_write_checksum: sha1:d2ba0b7ec328958ff34badfb57ed2da2c8f0f036 - pristine_git_object: f122523cd1a1de879a5c5684ff43f648484e7430 - docs/models/shared/TransferInitiationResponse.md: - id: 5a9c6170f7c3 - last_write_checksum: sha1:52459f4346279116ad0a71c3efb727f739affbba - pristine_git_object: e56cb01f03e2f975b3c2a965849dc0e59df3bc7e - docs/models/shared/TransferInitiationStatus.md: - id: 7df7cfbcc347 - last_write_checksum: sha1:f30b23396041363fa6c058f816bf6f8208ce5429 - pristine_git_object: 3175b0d2eccf48525d0ec49367ce88af274d3ad4 - docs/models/shared/TransferInitiationType.md: - id: b5dd74f80af5 - last_write_checksum: sha1:210a46eef22e78fe8dead427cbc10f860f7399f1 - pristine_git_object: dd54c249bdf46041fa79d04d87908e5a5d26057b - docs/models/shared/TransferInitiationsCursor.md: - id: d8ce1e78e5af - last_write_checksum: sha1:b6b296836fc5994c9275185a55180f523407327c - pristine_git_object: 80d7088ef70f36fadbff87abd381090d1e866a6b - docs/models/shared/TransferInitiationsCursorCursor.md: - id: 03b4e5d2c1ec - last_write_checksum: sha1:06d451a07d01c774ca2389bcdba83e6317fe46d9 - pristine_git_object: b4c867a7dc424307c960b1b2f33aef4e2e81b68a - docs/models/shared/TransferRequest.md: - id: 2cfbb4378360 - last_write_checksum: sha1:55a4c523ccbc7605a13fc41dc35346a6147eeb8d - pristine_git_object: 138eb5b274fdb6e191f9f8431f931966f9564b09 - docs/models/shared/TransferResponse.md: - id: edc8a642565b - last_write_checksum: sha1:4b35867cc3a1fe3476fc0b8df7b409b8edd4fd60 - pristine_git_object: e17ed4af498b88c8a95b4c25906d40e6bea8dfce - docs/models/shared/Trigger.md: - id: 08566e3834db - last_write_checksum: sha1:c2ff3dfd76df7740f3423332c65740144f32a568 - pristine_git_object: d11cf3b1b28d194720af76c5510050ec6123a487 - docs/models/shared/TriggerData.md: - id: 493247a1b643 - last_write_checksum: sha1:ffad746f1ebc28f59ffbe087e2101f8d2eea54c4 - pristine_git_object: 7dc1897cf7de3a7deaae594a3ce732347afda362 - docs/models/shared/TriggerOccurrence.md: - id: 7995a2669c36 - last_write_checksum: sha1:712fccc8d83d3e37af9fd7cd29df72c9d907256e - pristine_git_object: dd771fb3632f95e96b4b45efafc5256ade91a199 - docs/models/shared/Update.md: - id: 121354df4e23 - last_write_checksum: sha1:da4f4c14aa7cf1a596c98b21d099cb8a242f56d5 - pristine_git_object: 4e21319ba2fb764cf64cb2f622ac64347f3e1db3 - docs/models/shared/UpdateAccount.md: - id: 0c420dd4b935 + docs/models/orchestration/Transaction.md: + id: adf1869f06b6 + last_write_checksum: sha1:749c797a3a73f48222935d5f74ccca3c3a0fd2d3 + pristine_git_object: de3632efea665852e76e10758424e92beddb5a55 + docs/models/orchestration/TriggerData1.md: + id: 03fefb136199 + last_write_checksum: sha1:90376b5d5402cf178afb1b80a3fec13c07e3b3ba + pristine_git_object: b5174701d314fad37a78358cb7b5bbc9e4942616 + docs/models/orchestration/TriggerData2.md: + id: bdb49dd17605 + last_write_checksum: sha1:517182c345aa3c554804501ef68e3b20f2509833 + pristine_git_object: d4988eee982fa590f0fab20aa4d3694467ebf7ef + docs/models/orchestration/TriggerOccurrence.md: + id: 8f0fb967aaf4 + last_write_checksum: sha1:d6e052b756cdc5740d69bb8a521733482b3dacde + pristine_git_object: 73e5c2f5bf6de8ea6c3ab1ffd1263d0501d85f7f + docs/models/orchestration/Update.md: + id: 53778e8083d9 + last_write_checksum: sha1:99dcad773047dcb5ca76753ef697c01a35e53b7f + pristine_git_object: 43fedeb0d4a0cff7ca13fc6bcb016341e9350292 + docs/models/orchestration/UpdateAccount.md: + id: b62a2d7343e3 last_write_checksum: sha1:45b580689b2620f8d76bcfdb790beca02eb11019 pristine_git_object: 5724df65382d21e0f3b3ca2e6cab0f46bcd13ab7 - docs/models/shared/UpdateBankAccountMetadataRequest.md: - id: 8b93882ae984 - last_write_checksum: sha1:c6a6c732608b3314d1c3594c9644fbdf0043856d - pristine_git_object: 1e4aecbcb3a002722338cfc17b8420f77fb28b79 - docs/models/shared/UpdateClientResponse.md: - id: cc0faa7b76f3 - last_write_checksum: sha1:218a7a6812bb14327d89ff765ebc3718b0800038 - pristine_git_object: 3478dba40d0303039322057489b07b52dd35b3c4 - docs/models/shared/UpdatePoolQueryRequest.md: - id: 1082128385af - last_write_checksum: sha1:b3a53b82638f363a13a8990533c23c42628896b8 - pristine_git_object: 4967576dd992d186a320a13bddf004e8cfe13811 - docs/models/shared/UpdateTransferInitiationStatusRequest.md: - id: 572d0bb7dfc8 - last_write_checksum: sha1:efcca402b29c26e85cc81a705ca4139297d42137 - pristine_git_object: c7d73e976d7a7a7a885daf47ddef0ac42e7284f2 - docs/models/shared/User.md: - id: 39be392a3b00 - last_write_checksum: sha1:ffe2e4a13958e35d6540f50f734b9614df937fce - pristine_git_object: ac4a329dbbde3e5e03a12bb9adad821ec8370cfe - docs/models/shared/V2Account.md: - id: e5bfbe268c13 - last_write_checksum: sha1:7fd07f8b1faa90d69d8538f58f4c512e2f2b492a - pristine_git_object: eb129e8942e162ff96a75f1214af86492183ad8d - docs/models/shared/V2AccountResponse.md: - id: 50279faba800 - last_write_checksum: sha1:624e9814acd5fda211ca38605b8165901edd7683 - pristine_git_object: 3f671f56fd5006ad8e31b32f10306c2de573de5e - docs/models/shared/V2AccountsCursorResponse.md: - id: bd10f87b3be6 - last_write_checksum: sha1:0b64c232dda07388e7afb0dbffb2c69f422a4002 - pristine_git_object: 46bc8fd72cadf27d8f9ba9f199a2c62afec642df - docs/models/shared/V2AccountsCursorResponseCursor.md: - id: c19eccbe0b42 - last_write_checksum: sha1:7156b839825c90a97cc3762c4bdde4af0f3e463d - pristine_git_object: 3c10565030541653b91c2fa52061900fb2aea438 - docs/models/shared/V2AccountsCursorResponseResource.md: - id: 9b030d2a09d4 - last_write_checksum: sha1:c992355a545fd1fcf41ad4800d04f4534db96064 - pristine_git_object: 15cdd29e2fe3058d9c37605255fe11083cc2515a - docs/models/shared/V2ActivityAddAccountMetadata.md: - id: cb6115fad777 + docs/models/orchestration/V2Account.md: + id: 247104653a92 + last_write_checksum: sha1:4661a7406a3c2096f0493694dbef3dd9aa327253 + pristine_git_object: d54aebee0fe5de53e28b55cfc73126af69836ecf + docs/models/orchestration/V2AccountResponse.md: + id: 73c7c587cf77 + last_write_checksum: sha1:8614659353bb7bc03e01258f5fe941df11c0818b + pristine_git_object: 64dbb9ff80864159502a7da537c0c0693441b183 + docs/models/orchestration/V2ActivityAddAccountMetadata.md: + id: 0eebfe1f68c1 last_write_checksum: sha1:79fa0f590eae88bfd24e6a2aa9ebad274b15dcf1 pristine_git_object: 3b408eb29f7aaa55dbfda0028d6f263f45f380a0 - docs/models/shared/V2ActivityConfirmHold.md: - id: c220ee8874a5 + docs/models/orchestration/V2ActivityConfirmHold.md: + id: 13e8b3bd271f last_write_checksum: sha1:c29b122713cce03b40e6d4cf775954fbe2395508 pristine_git_object: 8903b17d771fd04f52aa4f014b29dbf288a7210e - docs/models/shared/V2ActivityCreateTransaction.md: - id: a81eea9a6dac - last_write_checksum: sha1:142aa551a569c557afd6b2da7bf10afc2b2cca37 - pristine_git_object: e816352803b2f398e8fb5cbb2fb1bc998f614cbd - docs/models/shared/V2ActivityCreateTransactionOutput.md: - id: a1f76412cdb0 - last_write_checksum: sha1:abc63ee4180814d2d67e595e1487a09279a0b2d9 - pristine_git_object: d4a5ef8a32e2cd5520863d4412b5a0f388434449 - docs/models/shared/V2ActivityCreditWallet.md: - id: a4eaefe2a927 - last_write_checksum: sha1:8e49a27d3294fe1f1c4a78a4ea03bae621871038 - pristine_git_object: e892b2e7a24e9b4757c57af1c40c9929da733ddc - docs/models/shared/V2ActivityDebitWallet.md: - id: d7876893a243 - last_write_checksum: sha1:91c58cc2b2f3ff6cad76eb43d125c1f9bbc4dabd - pristine_git_object: fbeb8d79405967d0822446cef8046cc7277531d1 - docs/models/shared/V2ActivityDebitWalletOutput.md: - id: 3606ea1a9704 - last_write_checksum: sha1:7210554593a2e3a248ba61aac978440f9671e5ff - pristine_git_object: 67d80505769a109cc9c7de45ee75ad414c60e8c0 - docs/models/shared/V2ActivityGetAccount.md: - id: ca4285ed5c87 + docs/models/orchestration/V2ActivityCreateTransaction.md: + id: 3d0e346c2237 + last_write_checksum: sha1:03b37b588c8bce99cacb0b56d9dc01c92780dd8a + pristine_git_object: b138b5ef301c02a54f1a0fd6daa57c4ee91143a1 + docs/models/orchestration/V2ActivityCreditWallet.md: + id: 6c5541bed577 + last_write_checksum: sha1:b556cd6a4e661cc33f61535c92120809b919ecf7 + pristine_git_object: 75f12abefc2cda61300670f69c33fb215d777325 + docs/models/orchestration/V2ActivityDebitWallet.md: + id: c48c17323c77 + last_write_checksum: sha1:366426b09c59b7645b935b04ba63f8a259052d06 + pristine_git_object: fe8253d053d0b32f893dd62c9f4ca935f5503141 + docs/models/orchestration/V2ActivityGetAccount.md: + id: a13f0be8c28a last_write_checksum: sha1:3db1b47847cd5fdc220385d80c54142fee671564 pristine_git_object: 0aa6d7c03cb47cc948d091a68c9acf032d1f2008 - docs/models/shared/V2ActivityGetAccountOutput.md: - id: fea5a8b95671 - last_write_checksum: sha1:6fe54382c2b6fc7c5b31f4a3684d818813534009 - pristine_git_object: 9f254617c9c25969891a56316a7e82c0eec3e9b0 - docs/models/shared/V2ActivityGetPayment.md: - id: df50da4a4fd3 + docs/models/orchestration/V2ActivityGetPayment.md: + id: 3bdc462a155e last_write_checksum: sha1:9202f091fe0c186652852592db7d664c14c0ad88 pristine_git_object: e1c65768e1433f9044c3c9eeec04c3078426e32f - docs/models/shared/V2ActivityGetPaymentOutput.md: - id: 1fd4d403a1df - last_write_checksum: sha1:a2e1d23c288c448a07b50a244fc85ab4b4d38b34 - pristine_git_object: ab0b7b842f9e02cd04ce373f3b0488c13ff8c80b - docs/models/shared/V2ActivityGetWallet.md: - id: a7ae4e9b66ec + docs/models/orchestration/V2ActivityGetWallet.md: + id: 107f6bba0dd6 last_write_checksum: sha1:2ff3e3b92e47581913eb3baf8e2517250230402a pristine_git_object: a251a4f23409d6ab6b084e56dc3a875c7063f21d - docs/models/shared/V2ActivityGetWalletOutput.md: - id: 56b84ecceff4 - last_write_checksum: sha1:dbda6cc742e82f692741b41abc0a5f0e109f1115 - pristine_git_object: 6db52f64a5b78dc48bab015f8bdcfcc00f4761d8 - docs/models/shared/V2ActivityListWallets.md: - id: e316f8d34e25 + docs/models/orchestration/V2ActivityListWallets.md: + id: a85685d90b53 last_write_checksum: sha1:a02df1eed733aa1163f1328a505d9633da755bfe pristine_git_object: 67eb3d188780d39a475793557e933ad1f777475c - docs/models/shared/V2ActivityStripeTransfer.md: - id: d77492d4d098 - last_write_checksum: sha1:11662a9abab74175a3e36e6ce3d82dacf3254361 - pristine_git_object: ac34e84734ed96e21b0b40df68e8613adbde1b15 - docs/models/shared/V2ActivityStripeTransferMetadata.md: - id: 3c79b22b9ac9 - last_write_checksum: sha1:45fd63dc3988519127cc3e55c9319cd205c01dfb - pristine_git_object: 2f03195adb52568428641956a537156818b0455c - docs/models/shared/V2ActivityVoidHold.md: - id: 1b51fee9fae1 + docs/models/orchestration/V2ActivityVoidHold.md: + id: fb7a43505352 last_write_checksum: sha1:1af4b15e8a7da8cb774b1acc03cf1b76720f545a - pristine_git_object: ff78c801fa27f18ceaee0fae338d22d1b97bd91f - docs/models/shared/V2AggregateBalancesResponse.md: - id: 27c86198a989 - last_write_checksum: sha1:a04815832b098034e1f13b11731e63771ed47eb9 - pristine_git_object: 1d20e3319274542a72a2315f4d2a37f70e047f6b - docs/models/shared/V2AssetHolder.md: - id: 8f4ac5b0b3f7 - last_write_checksum: sha1:d166de446b05ce8262cc21f3f38f825a914c9c22 - pristine_git_object: 46298144fe518c83f7d1b5a5d2696d044bab7b38 - docs/models/shared/V2BulkElement.md: - id: 7ce59364c7e6 - last_write_checksum: sha1:9dbc333ed3c28e66f75cf4d9c0960195026dc980 - pristine_git_object: ad80f1d74f84be4e5557dc659c7dc1ecdeaaca32 - docs/models/shared/V2BulkElementAddMetadata.md: - id: 797a6381c47c - last_write_checksum: sha1:1cbd6f74c655cf03d4b908093927b0cf134732ed - pristine_git_object: 9819baa69e0545f27e3ad138d2e5ac91507b5982 - docs/models/shared/V2BulkElementAddMetadataData.md: - id: 7ea6a770a9be - last_write_checksum: sha1:8fb754eef1593703c75b07aa5b1d580ffd811559 - pristine_git_object: fcc0514b2f354d5fae572359dfed0562f67381ab - docs/models/shared/V2BulkElementCreateTransaction.md: - id: e24c8ec75262 - last_write_checksum: sha1:bff438bc48bb45647dd038fdc5fa4d5c8eb265d3 - pristine_git_object: 104f0fe297bdb878591180a15fe959322fb2de89 - docs/models/shared/V2BulkElementDeleteMetadata.md: - id: bc8b7cc56b81 - last_write_checksum: sha1:154a63223825874e2c886e1d161128309df76846 - pristine_git_object: 1f3f90e656422d5034711c1986df48234a0d9b93 - docs/models/shared/V2BulkElementDeleteMetadataData.md: - id: 2365ba920a3e - last_write_checksum: sha1:5a6f9eefd312f00fb751e6757cd262e2d28a257b - pristine_git_object: 286674b6f7a12c11887782b83661ddb43c0df4b0 - docs/models/shared/V2BulkElementResult.md: - id: 1f918c7e0955 - last_write_checksum: sha1:8c3c477c5d888e6d193508aecd4a19e96f3c4d1c - pristine_git_object: adc9f54ff5c5263ad60f7993f5edd878048cbff3 - docs/models/shared/V2BulkElementResultAddMetadata.md: - id: 18c24157363c - last_write_checksum: sha1:5d0aa8b70edc35c1d7a25e09ad04712b3e10913d - pristine_git_object: 7155adff69ecabdfad0c26df6f9aad855a13b054 - docs/models/shared/V2BulkElementResultCreateTransaction.md: - id: b4ccabeb9859 - last_write_checksum: sha1:89874ae878cdbc59bb55f062378d61b5dee0bac5 - pristine_git_object: f44daca8e9f7d41355724379fcd93ff9b344e048 - docs/models/shared/V2BulkElementResultDeleteMetadata.md: - id: 4250ba6fb3a1 - last_write_checksum: sha1:c6c8544eb4ed1169614da4f8ba8fa85f73107575 - pristine_git_object: 8cbdea1d297021fb5a97324958976f27ee3dd112 - docs/models/shared/V2BulkElementResultError.md: - id: 6393950cbe3c - last_write_checksum: sha1:12f68aa0f2e8f1e0ec33d8778aea9266b5d59def - pristine_git_object: 34445142d5c19a4ec105f68f8111d488934eae1e - docs/models/shared/V2BulkElementResultRevertTransaction.md: - id: 4bcd32a74c11 - last_write_checksum: sha1:0ef5fd38eb8cc67e1f0e17fc5a739be54db78efa - pristine_git_object: 5fa250e11cab85809a01cd7e99f03bba18de7f90 - docs/models/shared/V2BulkElementRevertTransaction.md: - id: b2c102cb1035 - last_write_checksum: sha1:e44bdc4001ee8ab9b3754666c9b0962afecaeb9e - pristine_git_object: 80301985e27a4e94548350592a4a1b3e0160385f - docs/models/shared/V2BulkElementRevertTransactionData.md: - id: ddce880792cd - last_write_checksum: sha1:cd174fd9c30fcfe7e1e25a339cd544d085e0fef3 - pristine_git_object: 5420d0b7dc6ca703952cc276660e14288d36daef - docs/models/shared/V2BulkResponse.md: - id: 6a737bd4e535 - last_write_checksum: sha1:c3c15ee01780c9d5efadfdf397b2f1a0d447b4ae - pristine_git_object: 1ad94b5a28dda60b5c8255075219b2b3d5c6e8f4 - docs/models/shared/V2ChartAccountMetadata.md: - id: a8c741edf7eb - last_write_checksum: sha1:21363e9c2ebaf9a51c1c9c0e8323f3fdcf353dfc - pristine_git_object: eae00677c02b6e52d240769ad44872a96aa47645 - docs/models/shared/V2ChartAccountRules.md: - id: f5ee20438b69 - last_write_checksum: sha1:d169735f4e3fc2f0c9ffbda8814db15a9a255507 - pristine_git_object: b79d01a9c3275be88cd13a8c2a0234a1d138f4dd - docs/models/shared/V2ChartSegment.md: - id: 961f55565368 - last_write_checksum: sha1:093aaedf7ed4fdf52f92232a8e566bbf33e4c3ca - pristine_git_object: d45f6523df0bcb7f7b438d48bd795ef599758730 - docs/models/shared/V2ConfigInfoResponse.md: - id: 9fcf7361e6d0 - last_write_checksum: sha1:3e301b7b6f47fa5a4b196f05cea36f925ad27183 - pristine_git_object: 257a4f7f9310c341707784e4988370ebe01ff370 - docs/models/shared/V2Connector.md: - id: c987c3e038a9 - last_write_checksum: sha1:872d66a5d1194414d65b874211b335e101e8e382 - pristine_git_object: 8b8d4963cb145dfdc009e78ffc2a885d4eabc909 - docs/models/shared/V2CreateExporterRequest.md: - id: 9eb10210c620 - last_write_checksum: sha1:4bb68a06ae90a42997c7ace8a085fa2ca0c0fa00 - pristine_git_object: 393703826e46f24ec35b71794791ad9878173ffe - docs/models/shared/V2CreateLedgerRequest.md: - id: a3ad06f392b2 - last_write_checksum: sha1:ad4483be23f90644877523a5665b27b3bf213c4d - pristine_git_object: 096290d9aeb1e97b5501e75bb80722c3a2607880 - docs/models/shared/V2CreatePipelineRequest.md: - id: 729da26eb861 - last_write_checksum: sha1:f44ce8899c232b22437ffcdb233653367a9832a1 - pristine_git_object: 6deab1f5d0895ed756eaf98ebea61d0e98485958 - docs/models/shared/V2CreateTransactionResponse.md: - id: 52a2cc6ad416 - last_write_checksum: sha1:9655822f03f80db5876208f48abece259dea7adb - pristine_git_object: 3c194356a6c720c5cc35dac94cdce48999099404 - docs/models/shared/V2CreateTriggerResponse.md: - id: e262f01bb63b - last_write_checksum: sha1:1cf098633df92d6c6d3d938ed9eb28e6069d273e - pristine_git_object: c4b64c32e03c2309215221eae6ad4d39969916e2 - docs/models/shared/V2CreateWorkflowRequest.md: - id: 8b7efa02175b - last_write_checksum: sha1:36394cb43599b34725ba1a9f27a9df5a113c8743 - pristine_git_object: 3355c98fa31c683cbfa2d997a7da015e1b1f66a0 - docs/models/shared/V2CreateWorkflowResponse.md: - id: c6ae10043d00 - last_write_checksum: sha1:61cb7fbc425877c1e58229134c7916398f1f0faa - pristine_git_object: 51c688cb4a4ce7270b437e3ae133a8150e4c8230 - docs/models/shared/V2CreditWalletRequest.md: - id: 700e6b36fc8a - last_write_checksum: sha1:5c6d63f75836a5b79e3a54e0303148c856b9603a - pristine_git_object: 2adfc7046ab68b829f6d89447d28726a0c52ec4c - docs/models/shared/V2DebitWalletRequest.md: - id: 9f1f5f70d366 - last_write_checksum: sha1:23393eda42253e2ca58a4e780944395152b15554 - pristine_git_object: 0efdf5bb9ff812fe614bcc5527043da930f6ee89 - docs/models/shared/V2ErrorResponse.md: - id: 1608a3949491 - last_write_checksum: sha1:aea836d3e3731e6e4d58da39a2922cd74dfd41a5 - pristine_git_object: bb36b22886b2a2a4c819bf78ed68f70cb5a0de18 - docs/models/shared/V2ErrorsEnum.md: - id: 8634b6b7304f - last_write_checksum: sha1:2276e645c761132f381620d47a20a7445b285278 - pristine_git_object: 1fc649878994f323c7f10a0799cbbc8fad1963c7 - docs/models/shared/V2Exporter.md: - id: 3caea80f029b - last_write_checksum: sha1:e39eedef8029f449db6ca7c58254241a616b076c - pristine_git_object: 07d227ddf1e1d4e30afd9b0e24b1ad609715f54f - docs/models/shared/V2GetLedgerResponse.md: - id: f82883a6796e - last_write_checksum: sha1:f0797fb5053cfb28b31e0f8712439ec678b3ed51 - pristine_git_object: 3c44288ad85b24d40c417151f8c72510f364a896 - docs/models/shared/V2GetTransactionResponse.md: - id: 2736fd2db6e4 - last_write_checksum: sha1:723a0c4b950c4c072ce55e4ac25fb9351f98184a - pristine_git_object: 8b79de231ef6cbc78aeec822f3df003a43cb6964 - docs/models/shared/V2GetWorkflowInstanceHistoryResponse.md: - id: 3891f9c2c9e2 - last_write_checksum: sha1:9391a8b0f754bd923ac6301578928261358d151a - pristine_git_object: 4d93b007fc99fdda3021346710c6202ef6ed2129 - docs/models/shared/V2GetWorkflowInstanceHistoryStageResponse.md: - id: 8e5d4cb5357d - last_write_checksum: sha1:da9093e6159e6aa7ecd165cf22adadd75a801870 - pristine_git_object: 1f0e286c73c6cecd84811a1aa2ca8730a6fe2a61 - docs/models/shared/V2GetWorkflowInstanceResponse.md: - id: ad6ce497498b - last_write_checksum: sha1:3dea2304f495c75763ed3808a511ad58999cb473 - pristine_git_object: 2e9603a7500adfc7337ec5f46adb64a353a189e2 - docs/models/shared/V2GetWorkflowResponse.md: - id: aaa070467df7 - last_write_checksum: sha1:7a68b205a69b1aec0f7a32cc28348edaed1e538c - pristine_git_object: f93fab0319f85f88bb2e6fa0e5a0d11d6076653f - docs/models/shared/V2Hold.md: - id: e2ac578f8bde - last_write_checksum: sha1:74e5ad4c786239181c1bd7619b5f9ddb09483a5c - pristine_git_object: b36451cb739c8b327008fcef34ed3b0e7b2a84b6 - docs/models/shared/V2Ledger.md: - id: f468f075715f - last_write_checksum: sha1:022392abf7099917da269a1f7c6fbc73430242a5 - pristine_git_object: dd50395ee88a556937e61b454a8db1f7590fabde - docs/models/shared/V2LedgerAccountSubject.md: - id: 91b42a9c1de2 - last_write_checksum: sha1:0d10b115b24a67d8b3e1ad5d7891bd2263b873b9 - pristine_git_object: aa50a0fd0862c4510ced57b96ab4bfaa29c1bca9 - docs/models/shared/V2LedgerInfo.md: - id: decb8a79d5c6 - last_write_checksum: sha1:cf541d5b6c9e709d53ba5e9f9594dbde5952084a - pristine_git_object: 5f205937124f1888ac0d79f2dab36cf41b388c73 - docs/models/shared/V2LedgerInfoResponse.md: - id: 84e0ec245fc9 - last_write_checksum: sha1:ba6eb991b7f447ec99a998f5989cb43c6a928e8d - pristine_git_object: 08b6d81fe6de9a1de77ef9713b8f5d730e8d97f6 - docs/models/shared/V2LedgerInfoStorage.md: - id: 2b17f485af9e - last_write_checksum: sha1:8eb5fb1ca9ddbf37236bbad498faee7eef7ba000 - pristine_git_object: 8b86e6325150cfb2f396ba636e162650db80e54c - docs/models/shared/V2LedgerListResponse.md: - id: 96debea1bdef - last_write_checksum: sha1:c8939838e98159a435fc32a8171944571f72d472 - pristine_git_object: cf536b522ea2bb89b468fea8ae7ad32f5e0253b2 - docs/models/shared/V2LedgerListResponseCursor.md: - id: 2591e4e2b6e6 - last_write_checksum: sha1:a18e664a3eacee01e0c62d61b98626fa54d95de1 - pristine_git_object: cbe03d4c03064f569993d5bfe4465e12997823e5 - docs/models/shared/V2ListRunsResponse.md: - id: aa5c03785487 + pristine_git_object: ff78c801fa27f18ceaee0fae338d22d1b97bd91f + docs/models/orchestration/V2AssetHolder.md: + id: d1c6c7903446 + last_write_checksum: sha1:d166de446b05ce8262cc21f3f38f825a914c9c22 + pristine_git_object: 46298144fe518c83f7d1b5a5d2696d044bab7b38 + docs/models/orchestration/V2Connector.md: + id: 0a1639317cf6 + last_write_checksum: sha1:abb2063641b9834a4b6ea90f2eaf1c0e4b47a33c + pristine_git_object: e18cffec4085206e18ae83fd5524bdb24229f2a7 + docs/models/orchestration/V2CreateTransactionResponse.md: + id: 201f7a386819 + last_write_checksum: sha1:3be6ac71c96f65a70b46f3b711effe9ae4427cad + pristine_git_object: a4cbbfa9745699ab277c063b09a25dfcf91a9c4e + docs/models/orchestration/V2CreateTriggerResponse.md: + id: 563d078a4d37 + last_write_checksum: sha1:13c97bc9f8d40ced108386c43bdd3add3ae8f225 + pristine_git_object: 8cd1054d7754d9679949ad47d2644dd136af599b + docs/models/orchestration/V2CreateWorkflowResponse.md: + id: 0b594d7ffda2 + last_write_checksum: sha1:a62b7e5993c478596a19b3ffe8e1ea5b6af02a0c + pristine_git_object: b613b9016bc284e6de0a7e67ca71242ab7863b77 + docs/models/orchestration/V2CreditWalletRequest.md: + id: 53f6e0a211de + last_write_checksum: sha1:7114eec33eb5780164f76c4232f74573d26cb6ec + pristine_git_object: cdf2a35bc31213dc1460ac94a6d55351dca5dfac + docs/models/orchestration/V2Cursor.md: + id: 5b5484f5978e + last_write_checksum: sha1:0cb47f739d044919564e47ac7ebf145aa8d61ec4 + pristine_git_object: 6d94c3e0932bc13423eeb2982caf7c4c0a9d5600 + docs/models/orchestration/V2DebitWalletRequest.md: + id: fd6c32d9aa7c + last_write_checksum: sha1:a51c859639365c1d44983d41c3737c6094c8ed88 + pristine_git_object: 1c2b4f2818e3bcd46c31b6a07b2967c934149fba + docs/models/orchestration/V2DebitWalletResponse.md: + id: 3cb3ea87634e + last_write_checksum: sha1:a8764b9399e6d2a9ecb1e24653956519d231a645 + pristine_git_object: 31f43a28fd4c77d28e432e62ff8b6d2962752501 + docs/models/orchestration/V2Error.md: + id: b73af5c4a713 + last_write_checksum: sha1:cee299edeede1d9f3c5a9d68d3e80e59f37f9bac + pristine_git_object: 9c202cb6ddf5ba4e6462f09b26e9e8ae8a70891b + docs/models/orchestration/V2ErrorErrorCode.md: + id: e478a5dd5ae4 + last_write_checksum: sha1:6a841d9dc4a0fd735f805982e02e5e6c9a5c2e28 + pristine_git_object: 698426defc416f3582a2652b64abd91081c07e1a + docs/models/orchestration/V2GetWalletResponse.md: + id: a760769cb6fc + last_write_checksum: sha1:52314d41bf9cf5c8c58f3d6faca2aa88f4b9d572 + pristine_git_object: 82303c981d430d44144a68803e30dd8864497dd0 + docs/models/orchestration/V2GetWorkflowInstanceHistoryResponse.md: + id: e445efbed290 + last_write_checksum: sha1:5dd2cf2abaa10d75ac5d5725f12a61bf478c1cac + pristine_git_object: 968ff53a8040e71462f69c16be4b6aa77998c0bd + docs/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.md: + id: cfbaceea0b59 + last_write_checksum: sha1:6a152951b3c04db086dfbb0594fe07b46d622e5b + pristine_git_object: 6c2705fdd1334d045bfb1ca2a1ebb3567b844fa2 + docs/models/orchestration/V2GetWorkflowInstanceResponse.md: + id: 8e3c5cf58d0e + last_write_checksum: sha1:a024a51a9c30be6026edbcb55f58f9a27d071109 + pristine_git_object: 81c962e2f16248d15e7f8f10426c74cc36e312b7 + docs/models/orchestration/V2GetWorkflowResponse.md: + id: bbd361932edb + last_write_checksum: sha1:4a7f4bdf2a39497e9abf05cdbb33d66ea9edf36a + pristine_git_object: 5e41d64a3678c0a1d2181d26ed0e5f9735e4e54a + docs/models/orchestration/V2Hold.md: + id: 2d8e7bb3785f + last_write_checksum: sha1:b2331f18abd49707c7ec6f08faf386529bbbda7e + pristine_git_object: 94e47a333ac6b1db2ae89add89db73c4f5528769 + docs/models/orchestration/V2LedgerAccountSubject.md: + id: 6e56204d2f4b + last_write_checksum: sha1:0d10b115b24a67d8b3e1ad5d7891bd2263b873b9 + pristine_git_object: aa50a0fd0862c4510ced57b96ab4bfaa29c1bca9 + docs/models/orchestration/V2ListRunsResponse.md: + id: fbc91e0792a1 last_write_checksum: sha1:db45d6ec53307b41ffca752325d9fdd1c2bbd263 pristine_git_object: 877b9a59737b3b70a52165e43de6cf014bffd119 - docs/models/shared/V2ListRunsResponseCursor.md: - id: 26f218c92ade + docs/models/orchestration/V2ListRunsResponseCursor.md: + id: 548d49b0d556 last_write_checksum: sha1:4fd8fcf88786b9ed26db2777a5f6ac76b03d1978 pristine_git_object: 83c0d861e27dc0ba8fb4471bd75fdd4de28dc63d - docs/models/shared/V2ListTriggersOccurrencesResponse.md: - id: 62856f9c4e3d + docs/models/orchestration/V2ListTriggersOccurrencesResponse.md: + id: 8b7dca723eef last_write_checksum: sha1:f43e6aa2fbdf61031298ac02a8d1c4b9c01ddd06 pristine_git_object: e2d19a2f6c5f6d546c411b626ee0466d67fa87fd - docs/models/shared/V2ListTriggersOccurrencesResponseCursor.md: - id: d109e2824e4c + docs/models/orchestration/V2ListTriggersOccurrencesResponseCursor.md: + id: 9038d7762e90 last_write_checksum: sha1:c9e449176559332f0a3fa40ac97ca609ef7e6feb pristine_git_object: 1f865003c13cc18f0197ae51c21856e8e2ae0652 - docs/models/shared/V2ListTriggersResponse.md: - id: 9821287cf53e + docs/models/orchestration/V2ListTriggersResponse.md: + id: 8ca91a0d8416 last_write_checksum: sha1:3024f954f89c1e4fe64ea968f6c7e12f71b80b84 pristine_git_object: fd306d00abe25f26b5763fd21c001808591bd6e9 - docs/models/shared/V2ListTriggersResponseCursor.md: - id: b0b862c193cb - last_write_checksum: sha1:e58cdb3e51dfe063306f6d23dd1b6d5db89f5f28 - pristine_git_object: 474ed8c51afbd08fb4ef4545f370acd9fd8389f9 - docs/models/shared/V2ListWalletsResponse.md: - id: 7e42560c71fc - last_write_checksum: sha1:3827130f143177fa376196936adbd6326efbacbd - pristine_git_object: 31ce846400d34e5286bf23f9af542afb28565c0e - docs/models/shared/V2ListWalletsResponseCursor.md: - id: b8c706f03150 - last_write_checksum: sha1:db295e53f09b1f56bdbc7ce5e8c47a0a5885c55f - pristine_git_object: 3e4879bf7e1f0b4274d3d177e846f20a82e63c37 - docs/models/shared/V2ListWorkflowsResponse.md: - id: 7f5cb6e423db + docs/models/orchestration/V2ListTriggersResponseCursor.md: + id: b0b4babfefa6 + last_write_checksum: sha1:b5603f50c7b22721a5d32897211702e9842cc986 + pristine_git_object: 7ec3a57a696490e1d10a6800af52e3cc603d5d58 + docs/models/orchestration/V2ListWalletsResponse.md: + id: 5f973cf4741a + last_write_checksum: sha1:de7e8cfd4686732939b1ef264257e00bf274c055 + pristine_git_object: 04ae9ba15b57c4df11d16d78c22d166a77a3fe2e + docs/models/orchestration/V2ListWorkflowsResponse.md: + id: 78b518de1ade last_write_checksum: sha1:3d9f0a8fe02726f4b4aa08116ecee12f14a5a93b pristine_git_object: bca7e8b1ef301360fa8b45165584b450438e089a - docs/models/shared/V2ListWorkflowsResponseCursor.md: - id: a86d2584ce02 + docs/models/orchestration/V2ListWorkflowsResponseCursor.md: + id: c866698b2359 last_write_checksum: sha1:21b40a1fb968d7daf5f4b219e152fac190b4bfdd pristine_git_object: fa33229a96c25ad7b4bd0507d0a6d7b4c7d5d866 - docs/models/shared/V2Log.md: - id: 75fe454f6d57 - last_write_checksum: sha1:2b6c61ce7f5a786db5848df2d6b78e61fd459d5a - pristine_git_object: 184f4f63e584f9b890e1f1eac0da2c9987af466d - docs/models/shared/V2LogData.md: - id: 0b2238a56f79 - last_write_checksum: sha1:6247c96bcd1d3531fa2f770b57bbcba50f2c4144 - pristine_git_object: e48b8f2e61dc866d7d92fdbfdf5f26e38bed020c - docs/models/shared/V2LogDataDeleteMetadata.md: - id: 6808177bad8e - last_write_checksum: sha1:d52ae1b008fafc4585e4d5d480a54d3a900f6c98 - pristine_git_object: 32f74dfc93228f250745decc6aa419db2e221f72 - docs/models/shared/V2LogDataDeleteMetadataTargetId.md: - id: 6cb2ccc928b8 - last_write_checksum: sha1:8ec59055ba75b2ee4beaedd25159d3c43ad33daa - pristine_git_object: 4e7260c761a9ed1263841077ed6f735a539f52e5 - docs/models/shared/V2LogDataDeleteMetadataTargetType.md: - id: 77b54704ee15 - last_write_checksum: sha1:0cac96823786ac3cf6947779faabde8db861bc7f - pristine_git_object: f1224e8cd5195d554eeee268c5e4d97f62d0a059 - docs/models/shared/V2LogDataInsertedSchema.md: - id: 693f5965df1f - last_write_checksum: sha1:88afdeb644a37d14fa7a45e2f5734cb3f627c5a6 - pristine_git_object: 527969b4d0c3e1c4c9729163fa06891fc76a05b0 - docs/models/shared/V2LogDataNewTransaction.md: - id: 7b4f63fb76ca - last_write_checksum: sha1:cc36ed37c5e868260f4ae2181d71e185811bac6e - pristine_git_object: 1fa3f8f1809a38ecf0465e95bd14acb0a7dbae00 - docs/models/shared/V2LogDataRevertedTransaction.md: - id: d9493e3251ce - last_write_checksum: sha1:efee44cf12a58dbcb884f1422b8e3a0e010838a9 - pristine_git_object: afb3bd3722d6b9f04d65517ed485f380230560d5 - docs/models/shared/V2LogDataSetMetadata.md: - id: ffec141705fd - last_write_checksum: sha1:8824a3be54b9b2f11d474eaca18f4484ceb7ee64 - pristine_git_object: 4dc94f3afc5a3323e168516200f332bdf245ed58 - docs/models/shared/V2LogDataSetMetadataTargetId.md: - id: 5b7680901353 - last_write_checksum: sha1:fb12654606a6000e6077cbd2583624885c807c46 - pristine_git_object: 43bfb0b22b5e268550907e2a2c7c676e1b8440d5 - docs/models/shared/V2LogDataSetMetadataTargetType.md: - id: 16d5bb8ae413 - last_write_checksum: sha1:1674b1b29a39679fa0cfca035ea117306abc59d9 - pristine_git_object: 9a9a1f280dfdaefc7007b61c9e09fd71e0148d72 - docs/models/shared/V2LogTransaction.md: - id: f99dc7df8227 - last_write_checksum: sha1:401609f9acfdaf1714e828bca05239f6865c20bf - pristine_git_object: ebbf5b46ea0cce0405c6d855790c9e581bfc7e29 - docs/models/shared/V2LogType.md: - id: eafc49a93039 - last_write_checksum: sha1:238cdb880b0ca310eaa5ec3c9d6ced527fbff224 - pristine_git_object: db9c65eb7af646a61030547857c5a5f5b48ffb2f - docs/models/shared/V2LogsCursorResponse.md: - id: 127f7d5abfad - last_write_checksum: sha1:503fce8b28c3ec06c28aca70802b585ecf0e5cdc - pristine_git_object: 2130cc3a2b7c5fec7745664f0cfa9b3eebfea052 - docs/models/shared/V2LogsCursorResponseCursor.md: - id: 8ef07d39a6dc - last_write_checksum: sha1:89f1ab67b69b539ce7858256015210087dc47218 - pristine_git_object: 370656eaece9fc40812553610a2e19cca4262a5e - docs/models/shared/V2LogsCursorResponseResource.md: - id: bff0446798d6 - last_write_checksum: sha1:f9918504576cba7d36b673b3e419189a724a9ec8 - pristine_git_object: 85ec0bd0b2637c1b22d3098a3c85412a1b0b7608 - docs/models/shared/V2MigrationInfo.md: - id: efdf62a01fc2 - last_write_checksum: sha1:e777344c4c2072f0984b21cf8bf4618ea91c7bb6 - pristine_git_object: 1e00644ea95935d59a0c1942854a7a290dcf086b - docs/models/shared/V2MigrationInfoState.md: - id: eb9230a81910 - last_write_checksum: sha1:24ce910acb58068900fbadb6e8d9287c987dc16d - pristine_git_object: 40fa20c6cf2081a631d811c8be8271b17e3e3d28 - docs/models/shared/V2Monetary.md: - id: 7232f06ddaaa + docs/models/orchestration/V2Monetary.md: + id: 6041f07a034c last_write_checksum: sha1:234b2c2b23aad11dc9cac81af824de46cf80bbcf pristine_git_object: fddf76e828309c0ed0d6730de967703fff528331 - docs/models/shared/V2Payment.md: - id: 77b529338633 - last_write_checksum: sha1:306baec9711ed8f404118b81d6d4c422118ba8f3 - pristine_git_object: 83282a20dd1327e02d6de0a4aa581dc05c0bec26 - docs/models/shared/V2PaymentAdjustment.md: - id: 7b3ee3f0286c - last_write_checksum: sha1:1624ca1261da2016e694d744c9567d154a6530fb - pristine_git_object: 07052318d0819a521eb06ed4cf13f08dcf883043 - docs/models/shared/V2PaymentAdjustmentRaw.md: - id: 33d0d9e9956d + docs/models/orchestration/V2Payment.md: + id: 2255b7efaac9 + last_write_checksum: sha1:162014bcdb2e3aafd913ecbda745b8d4884cc18b + pristine_git_object: 655704e104361451fdd890077384485cdf1ef280 + docs/models/orchestration/V2PaymentAdjustment.md: + id: bb43df21b662 + last_write_checksum: sha1:3bd1ff86fb957e9c47d241b25121c5077c413ec9 + pristine_git_object: 016a10a201d4bc3074cb61337d2014df7a7a5ff2 + docs/models/orchestration/V2PaymentAdjustmentRaw.md: + id: 2b43edd454fc last_write_checksum: sha1:4a65bd5e22876d5e5f454f2587f9d8879f8b4626 pristine_git_object: 0d4efd0851d862c6bb56fc990902ff053aa11496 - docs/models/shared/V2PaymentMetadata.md: - id: ce212fe8d1c5 + docs/models/orchestration/V2PaymentMetadata.md: + id: 6c29ed7643f9 last_write_checksum: sha1:8b8bc463c29c40a033c22af10e54f81c7bf513ac pristine_git_object: 9c4d376d635e197a9b6251d5f1ba5da965cb88d1 - docs/models/shared/V2PaymentRaw.md: - id: 6b3ef9ac7239 + docs/models/orchestration/V2PaymentRaw.md: + id: c65ecad27dd6 last_write_checksum: sha1:deabf58c69927affb1c4ed6e031a90728f949111 pristine_git_object: 74c2ba7b4c2dde96aaa9c0ecc4dd4f59d6299baa - docs/models/shared/V2PaymentScheme.md: - id: b124f171a6dc - last_write_checksum: sha1:711f6b24fbe2212c0773adf2640bbaa9ca6be57f - pristine_git_object: 09dc211c141c0e4dd0c01d036eae01da00dec0c7 - docs/models/shared/V2PaymentStatus.md: - id: ec8af8bc7cd1 - last_write_checksum: sha1:c25d4e87f925b1ccadb12897b5f7ff4ecda9c994 - pristine_git_object: 7892c7a800224db777aa51a96962ed7cd165f833 - docs/models/shared/V2PaymentType.md: - id: 99de519e1bd6 - last_write_checksum: sha1:727181e489db55258dd351f1821b4fca8c2dd0eb - pristine_git_object: 87dbe33e296f95b7a4a40cc7180dd316ff3c08ae - docs/models/shared/V2Pipeline.md: - id: 3a14ed6b7c85 - last_write_checksum: sha1:d73ff950cd54c8437521a63801d16f42e5833e40 - pristine_git_object: be78985ded565188bf5461a1e9faca034383e323 - docs/models/shared/V2PostTransaction.md: - id: ba8d634b1dc1 - last_write_checksum: sha1:45fccc83f5fc427225df874a3377791a520f87fc - pristine_git_object: 0574d7d72f09a12b75bfbb03cdbc86575ac25266 - docs/models/shared/V2PostTransactionScript.md: - id: 39fd5789c970 - last_write_checksum: sha1:47a34c2d40650bdce500dbda5761f6d821ecabda - pristine_git_object: d4d1d0a5eee3d4605fbadbd2ab1ecd506e6f4916 - docs/models/shared/V2Posting.md: - id: 1231012535be + docs/models/orchestration/V2PaymentResponse.md: + id: 545c3d1ffae1 + last_write_checksum: sha1:3419937e5bb2041060b68e6e19c952451ed54691 + pristine_git_object: 4c174e077b0fdb0c52a4a741e520a1fc9f272052 + docs/models/orchestration/V2PaymentScheme.md: + id: d5a9be5e4d22 + last_write_checksum: sha1:9e5d4cf1c50eda11ec97c4ddae7b18eb89b0dd91 + pristine_git_object: ce6ba2774def92425b88a9a7f5dc0613b7f21e02 + docs/models/orchestration/V2PaymentStatus.md: + id: b4a926ed6ae1 + last_write_checksum: sha1:fbc687e59566e822ac7473fa3b47a31255653fdc + pristine_git_object: 7e39da2ce88d5b02a02837295ec03ab18c7cd1da + docs/models/orchestration/V2PaymentType.md: + id: 1de3486ccaa5 + last_write_checksum: sha1:cfbd76832a04f524a7f386f5c6d1545742f9dcd4 + pristine_git_object: 7f5240213ef58070da9c8feafdeeff2fbe9eb3e2 + docs/models/orchestration/V2PostTransaction.md: + id: 99135a2e0146 + last_write_checksum: sha1:174fdcbb2b856c989cfea988760eaca03a670008 + pristine_git_object: c98b875a0d91bb98a9ed100a465210f4bf872126 + docs/models/orchestration/V2PostTransactionScript.md: + id: bf0255b3ff55 + last_write_checksum: sha1:43e5ca7b28b0e4977fd756e5747b9d615c7694ac + pristine_git_object: 5b754d91bf04861d5a9f3d27f2a83a082b73aca7 + docs/models/orchestration/V2Posting.md: + id: f4c6b1a27bea last_write_checksum: sha1:39592665119f0348f44ab9b078f257a4ead56b71 pristine_git_object: 7e2daedd0cb78ca1bda1263150ca3e03bcabe8e5 - docs/models/shared/V2QueryParams.md: - id: 02d2fd551b7d - last_write_checksum: sha1:505f8316ec5f776c4ad779a7545c6936a5ed2235 - pristine_git_object: 64184dca09ec733234cf7fa6a24726270cc6150d - docs/models/shared/V2QueryParamsResourceAccounts.md: - id: 0e7e480edc2a - last_write_checksum: sha1:78f86611f792f78e8ec22447a68f7e3908bc4665 - pristine_git_object: d4a6d3aeea6e638bad658d7fa711a7361a1aafa0 - docs/models/shared/V2QueryParamsResourceLogs.md: - id: c8c6b9ba8d3d - last_write_checksum: sha1:ef1136d22ce1778a71c288ba6c6d2d304ae85851 - pristine_git_object: d4c16a2d66d03e32cab19cab893ef9d8cfc9609c - docs/models/shared/V2QueryParamsResourceTransactions.md: - id: f3638a5ca2db - last_write_checksum: sha1:c2932cacb16acb5933622d6abcccb191eccb3ed2 - pristine_git_object: 9bf5d409279281a896b30efbb167610e18d7dc5b - docs/models/shared/V2QueryParamsResourceVolumes.md: - id: 16862262b91f - last_write_checksum: sha1:0bf02d2048cc4330ccb7d9aaa40a0aa002e243ec - pristine_git_object: 8b9a35776748efc65adc90694145cc8641b536f7 - docs/models/shared/V2QueryResource.md: - id: 09d9a01c2eb7 - last_write_checksum: sha1:35a862088bae9a204c76b3f1c2d98db57fa88b17 - pristine_git_object: 10e81c1ff3920cb13139d96042657b68a8328e75 - docs/models/shared/V2QueryTemplate.md: - id: 94c748e6ec3b - last_write_checksum: sha1:3e5a5000d3a95e9dd2f1553d3c1eb006b952887d - pristine_git_object: 21760b057b16743c9265acfe703ac1eb8b899788 - docs/models/shared/V2QueryTemplateVar.md: - id: 3b6ee2efb383 - last_write_checksum: sha1:5d39e604df2fcae4a08d3202e658ea7921bdd66c - pristine_git_object: c2151c3fa5a3ec870918dfbcfb99d82472c46e2d - docs/models/shared/V2ReadTriggerResponse.md: - id: 33b4cf804af9 - last_write_checksum: sha1:06696fbf6eae0d5eb5c423bbc85f879188c539f9 - pristine_git_object: 82a594cea795f7c165d66f5f96a2d919c17f2357 - docs/models/shared/V2RevertTransactionRequest.md: - id: 63abb83d60bb - last_write_checksum: sha1:fbe579139b2d1fd6993aa6db986c9196c347a871 - pristine_git_object: 6a91c6a9a4e65eb35a7e61a785b600498e8f085f - docs/models/shared/V2RevertTransactionResponse.md: - id: b4b9e3aa779c - last_write_checksum: sha1:70e92d24f25857f9677b0316b17e3bd21c2f4e5c - pristine_git_object: 491d76f9d69d2df8de911f590564d30a6ce2746f - docs/models/shared/V2RunWorkflowResponse.md: - id: 2db36488cfa6 - last_write_checksum: sha1:dcbf683cf1d741e354f13aa65f4451c6ce543a08 - pristine_git_object: b45ffaef4aa10b632b1a577ba63651c9c0129730 - docs/models/shared/V2Schema.md: - id: 6ae3968fc5f4 - last_write_checksum: sha1:e721a263d67b3586c854bdbda16539cfd604241d - pristine_git_object: d7f7902312bbb1ad2eee5f601887dd9619c5a282 - docs/models/shared/V2SchemaData.md: - id: 1a1e2510d3b3 - last_write_checksum: sha1:eff109d2676d8e18aece9c68b7d87a7398a2b263 - pristine_git_object: 1638207b1fc99e52884c4de42b5d7f13ef5c09eb - docs/models/shared/V2SchemaResponse.md: - id: a159594a388c - last_write_checksum: sha1:8375362af3fc15c1abcfb15c5112080a3163f555 - pristine_git_object: 8483dd01cfffc3087ca5c157601244560dbd603d - docs/models/shared/V2SchemasCursor.md: - id: 45883cc23901 - last_write_checksum: sha1:4f06519f3b81d374bf2e04829cd832422b01c90c - pristine_git_object: f8454175891dfc87b75c8a99975a9d81eacb8041 - docs/models/shared/V2SchemasCursorResponse.md: - id: ac58034709a5 - last_write_checksum: sha1:7853b344bd8b130602e89f1268cb253c8ba97ce5 - pristine_git_object: 5461b91d0c7275789b426979060fffbae370fe9a - docs/models/shared/V2ServerInfo.md: - id: eadae496e0a2 + docs/models/orchestration/V2ReadTriggerResponse.md: + id: fb5a8c7ac26f + last_write_checksum: sha1:d972ea699515c92cb722d69686028304f3e46272 + pristine_git_object: 75a5215512baf0439091103d8d5aed8a2ba6f501 + docs/models/orchestration/V2RunWorkflowResponse.md: + id: 84b00f749775 + last_write_checksum: sha1:e7d53cc95139b3ea8274e7053e1e439ce0bf570a + pristine_git_object: 6d9b1b7d5359863d545c12132bf6edfaeedcf426 + docs/models/orchestration/V2ServerInfo.md: + id: 0f1c1a89edc2 last_write_checksum: sha1:8d03a36401c7d74bc25b4a5e849882d0807c7127 pristine_git_object: 4a38d8b0f8d0215dec38f9de9bfcee74f4619d86 - docs/models/shared/V2Stage.md: - id: cc7e74f463c9 + docs/models/orchestration/V2Stage.md: + id: 826b1b6f2823 last_write_checksum: sha1:2f3981a86f1c4a86ee9e4b220e119eaf787fcd2e pristine_git_object: 209a0ae3ec708053aa10cc8dd8e1e055ca90a046 - docs/models/shared/V2StageDelay.md: - id: d9589ddd41e6 + docs/models/orchestration/V2StageDelay.md: + id: 44c27c2cfa4c last_write_checksum: sha1:9f21d11e4a38097e4c3225b6da3b99e5b69cd598 pristine_git_object: 83520824a1edcc3536071388a7a1099c84b23b22 - docs/models/shared/V2StageSend.md: - id: 4cc4cd805802 - last_write_checksum: sha1:6a6a3b325a7eb66b42f587b9f76a269691dadfce - pristine_git_object: 465cee1491339c14949bf5272d52c6f96cac8591 - docs/models/shared/V2StageSendDestination.md: - id: 971bd1014e0f - last_write_checksum: sha1:ce7ad0341b594379e8bd0e2374d2fc101b0f4953 - pristine_git_object: 8fe99253074a48442724efc666e35a82edfd5adc - docs/models/shared/V2StageSendDestinationAccount.md: - id: 60c9a5d889aa - last_write_checksum: sha1:dbd7681850ecfddd2c73197c208050339e78dd72 - pristine_git_object: 7ab5d58daa00cb0b1db94496641f55e24e7068cd - docs/models/shared/V2StageSendDestinationPayment.md: - id: 3e3bbf49c52c + docs/models/orchestration/V2StageSend.md: + id: 711477259a44 + last_write_checksum: sha1:b86d4616389f336660d5c286cfc0bb7c6b2a4817 + pristine_git_object: 3fca59bd2459584eddd333029c1d3c754a13b45f + docs/models/orchestration/V2StageSendDestination.md: + id: 3bb9def9a480 + last_write_checksum: sha1:494ef6faccabd7fdc1f3dd87154a2431d229609b + pristine_git_object: 400f4754833dc0c4a0b3ee922823d5e05753e9b0 + docs/models/orchestration/V2StageSendDestinationPayment.md: + id: 18ebb71bf1ad last_write_checksum: sha1:f07d7ba47c7290d4d4af7177370952aa81bb2d44 pristine_git_object: fc8984e88515f7527075cedac294ce616a5b6dcc - docs/models/shared/V2StageSendDestinationWallet.md: - id: 417644d04e14 - last_write_checksum: sha1:52ed914f659527a108499bd17a13d322bc39d54c - pristine_git_object: 4e7011c0e09ad09e0551dae470b5ad74212f9ca1 - docs/models/shared/V2StageSendSource.md: - id: 48fedb9ac194 - last_write_checksum: sha1:061785d1b761a3cdc5de234bf5a6dc33467af154 - pristine_git_object: d4bd17daf0d6fa756b8aa856f65d0080218502ed - docs/models/shared/V2StageSendSourcePayment.md: - id: cdf96b125503 + docs/models/orchestration/V2StageSendSource.md: + id: 1d1aa0418673 + last_write_checksum: sha1:4c4fdecc04e14638a2288ab53301a0cb815b7250 + pristine_git_object: 805f1dcdbef6f50292d4a1b9692ac221cac9dc98 + docs/models/orchestration/V2StageSendSourceAccount.md: + id: ccb2ea77fab8 + last_write_checksum: sha1:326baf892003f5323f86b423d51b3ccc4dee2770 + pristine_git_object: 9b6e9be1fd8cbe8fbf203ce78462ff641d1c4392 + docs/models/orchestration/V2StageSendSourcePayment.md: + id: 7c65ac33f5cc last_write_checksum: sha1:36d55f15cfde6b284cdaad4e45c19182c2facb96 pristine_git_object: 458af0955de80028014d1f2529b298f2846382e0 - docs/models/shared/V2StageStatus.md: - id: dc76c501e9ac + docs/models/orchestration/V2StageSendSourceWallet.md: + id: fb2ce5acdbb1 + last_write_checksum: sha1:af918ea6065d49070bb8a6aa58d78d4c3d6b032a + pristine_git_object: 8fbafb3053267ce1dd8e7633c0d9f67e335f1db2 + docs/models/orchestration/V2StageStatus.md: + id: 4e002ca56fe8 last_write_checksum: sha1:cc804d2920a59ad61ff193e24b50b32a6f499273 pristine_git_object: f169fd7de847cffc2837cc26635a3b9eec7125b3 - docs/models/shared/V2StageWaitEvent.md: - id: a035452e12ae + docs/models/orchestration/V2StageWaitEvent.md: + id: d1e5194af5b4 last_write_checksum: sha1:c0cbeefdc09b5d33fb04a3a25418a7d897799a32 pristine_git_object: 78b1a0ab877f968805a13f5acf9b168e1980d71e - docs/models/shared/V2Stats.md: - id: 59b625e601a4 - last_write_checksum: sha1:fc3cc772910f247006255f51035effec12be50a1 - pristine_git_object: a6065d9326864797c90353aba292953dfb885345 - docs/models/shared/V2StatsResponse.md: - id: 876927cf0095 - last_write_checksum: sha1:7bf801ecb89bcc28410e78b408f94360129cc142 - pristine_git_object: 07cb4a03322a2087f8239c0d688536854a331a7d - docs/models/shared/V2Subject.md: - id: 8b429c82bd60 + docs/models/orchestration/V2StripeTransferRequest.md: + id: 4effea501886 + last_write_checksum: sha1:4d24bfd8233ed25b5c0f9340c4577b3364b68c03 + pristine_git_object: f802fdbfe6ac57c26373902ae9b9fb797e8dba87 + docs/models/orchestration/V2StripeTransferRequestMetadata.md: + id: 33d61ec9d75c + last_write_checksum: sha1:54e850d9122a555b049539907f647baf2903b6dd + pristine_git_object: 76e2b9e5e8c9c8418ac67dc1383bfc30672aab5d + docs/models/orchestration/V2Subject.md: + id: 97c4f5f5b465 last_write_checksum: sha1:58e6b835b7409da1f21536f1fee59f0919733b83 pristine_git_object: e9a7e49842c820a1a3da52fe6e72d89ff4c28661 - docs/models/shared/V2TargetId.md: - id: ac864d3acd61 - last_write_checksum: sha1:7bdce463824226df11867951091585c47dae3184 - pristine_git_object: 229dd75ddec8a2e4d806669fe93c376bfa86f1db - docs/models/shared/V2TargetType.md: - id: 21789ddffcfc - last_write_checksum: sha1:c64828e2674b45f3e06c8af3d0212c5915a76b55 - pristine_git_object: 48ed3b4bff305f9876c8792d6af0b41b82527be1 - docs/models/shared/V2TestTriggerResponse.md: - id: e5fa7049f0de - last_write_checksum: sha1:f70a7a489739ea07c9e9719383d44204f3881747 - pristine_git_object: 7ced2ddf3b7266bfa5a5d477991a6ae27efffd74 - docs/models/shared/V2Transaction.md: - id: b59729d5699f - last_write_checksum: sha1:8cdf6c548d0745bf1c5d6f0b0ca30dd21132c740 - pristine_git_object: 80bff8020973fdf53a0f1f0e393bf63fc732b00e - docs/models/shared/V2TransactionTemplate.md: - id: 18ef53a71bcb - last_write_checksum: sha1:5e55b4b8a88f60ea8b4d5f5529dea04ce9f0dbf3 - pristine_git_object: 5e6d86bbbcb333956d659971c4ac8577f6828636 - docs/models/shared/V2TransactionsCursorResponse.md: - id: 957bb2502ed9 - last_write_checksum: sha1:437dea680dcee7909f2026bea5e677099b10b58f - pristine_git_object: 6bde1dceedbf0f4d6647d654d151a6253cf2db7c - docs/models/shared/V2TransactionsCursorResponseCursor.md: - id: dc24afa986d6 - last_write_checksum: sha1:633b374cbb80fb76637112b20ab08a75f057330c - pristine_git_object: eac9ce819d8a9087098da529f038256ebd80b1dd - docs/models/shared/V2TransactionsCursorResponseResource.md: - id: 4a2ac9a25759 - last_write_checksum: sha1:d8aaec22e2af0eac0cfd4124158c6205c913ca4a - pristine_git_object: 6089ca173107d151592528913b3dcef79ea4982b - docs/models/shared/V2Trigger.md: - id: 3b8acdc4b93d - last_write_checksum: sha1:8c5df39a33b0f0f690ce1b485487d352d975cdf7 - pristine_git_object: 3deac6ca2cb5fb8f38f25a6ef9bdfd393e81e647 - docs/models/shared/V2TriggerData.md: - id: 712bd959d4d4 - last_write_checksum: sha1:00e8de4b13689931b44845f63f327ba6f91db354 - pristine_git_object: e0af4b4ab186f9006ba16e73ed202e5c044ebc94 - docs/models/shared/V2TriggerOccurrence.md: - id: 02a08e1d7132 - last_write_checksum: sha1:1aa81632935036e6216cce35d1940a601a2d2199 - pristine_git_object: 2384d20271877ce4137c2b9f6e89976cc4865bb8 - docs/models/shared/V2TriggerTest.md: - id: f34befe398aa + docs/models/orchestration/V2TestTriggerResponse.md: + id: 4a1b89225b25 + last_write_checksum: sha1:0a71bac347e83f9193dabaa87d9bd762def3ceae + pristine_git_object: 99a614e5e90d4d572a1a1221e5bd8e851bc6f6c8 + docs/models/orchestration/V2Transaction.md: + id: 9eac83997ead + last_write_checksum: sha1:dc0f5f268542e4618e7e0e06af69f805d66a9bf0 + pristine_git_object: 79433751cc4f3b30bf6a686e037cddbb4d823c29 + docs/models/orchestration/V2TriggerData1.md: + id: f941177cb78b + last_write_checksum: sha1:9c33cfdb3ac39abbb532b8ecee7e1fa6abb699bf + pristine_git_object: 2f358b0b6bde73a23849fff575c5162a113f9ddd + docs/models/orchestration/V2TriggerData2.md: + id: 660a49574d76 + last_write_checksum: sha1:33086d1afeb5e782a810e984ae35ae7ffe05bda2 + pristine_git_object: d2615057d93414ae5630f98fe4791f482544b29c + docs/models/orchestration/V2TriggerOccurrence.md: + id: b156d4b34418 + last_write_checksum: sha1:834c108efbb78202c9cfe85bc79f4cb65d977922 + pristine_git_object: 7e3df1ef38ed93d4ea10f8eac949b1c208015f5a + docs/models/orchestration/V2TriggerTest.md: + id: 25a27196ea47 last_write_checksum: sha1:1f0a05777ca15ce0c507c3b972c70225d8ba721f pristine_git_object: dd3ee446c5c0a06f0558e46c8370250341a68574 - docs/models/shared/V2Update.md: - id: 0b0ecc929690 - last_write_checksum: sha1:1520b502cef92ad76b0361a1ffd78fdf64324905 - pristine_git_object: 1aee7bb0d60507378923c0ebf5e03b089835c4f0 - docs/models/shared/V2UpdateAccount.md: - id: 9d8211efaebf + docs/models/orchestration/V2Update.md: + id: 93eda998bde8 + last_write_checksum: sha1:aa04ad5cb8914e07914c74736af8e2a46c78505d + pristine_git_object: c47092cab1842d08b1cac146005e47f17dec1f48 + docs/models/orchestration/V2UpdateAccount.md: + id: 1bbe444b6f28 last_write_checksum: sha1:7c49338b96fc1b5ab652b27b84958378a9c82e1a pristine_git_object: bc2027426123a47eed9ca25b0084cb39c81798ac - docs/models/shared/V2Volume.md: - id: 721622b99383 + docs/models/orchestration/V2Volume.md: + id: 383f9bd8d6c9 last_write_checksum: sha1:20d057ee0c72eb277fdd669184053075dc4819e2 pristine_git_object: 06c7a1ea479983fb56b3b48c4afb879ade3afe2e - docs/models/shared/V2VolumesWithBalance.md: - id: bd1ddda091a5 - last_write_checksum: sha1:216dc2c50b86dc9c69e0f892c6e842aedc0ecba6 - pristine_git_object: 7ab6e7c3cb981ddd8cb0c3a2d67f7ea0cc1b03ff - docs/models/shared/V2VolumesWithBalanceCursorResponse.md: - id: 15c2de5a1943 - last_write_checksum: sha1:3419a73b47c0c8a38b9c18aedaefbfe0b8c19e59 - pristine_git_object: cd14ed6ee6747b95b441648a294e73aedcd70836 - docs/models/shared/V2VolumesWithBalanceCursorResponseCursor.md: - id: f881af659fab - last_write_checksum: sha1:6f831656eabe44f3fd8e81041bc1638d1ba0449b - pristine_git_object: 5e5d5c9981945542a3b7ffbc9ed7b44cb81b9593 - docs/models/shared/V2VolumesWithBalanceCursorResponseResource.md: - id: 7d43e46a2edd - last_write_checksum: sha1:ce48fa3026597e6c9292b1ae0c5e19ea6c609c48 - pristine_git_object: 3f04cfc9535915d609cf310f04e81f90c73f7b65 - docs/models/shared/V2Wallet.md: - id: 6381d38bbff8 + docs/models/orchestration/V2Wallet.md: + id: 33f704da1031 last_write_checksum: sha1:50e91fb8215827a2cad4b2b7412ad879e115db05 pristine_git_object: 1ba14ca921ed37f8d91032f75c7010cd4d83124e - docs/models/shared/V2WalletSubject.md: - id: 98cce6d24d49 + docs/models/orchestration/V2WalletSubject.md: + id: c0ac84bf43a8 last_write_checksum: sha1:d3b50477d80536789e67a4d0307f3fe2c3542ae5 pristine_git_object: 46f8d7eab0347cf9ff2cb68b5202f01728624b1f - docs/models/shared/V2WalletWithBalances.md: - id: 66b53ddb7977 + docs/models/orchestration/V2WalletWithBalances.md: + id: a422ca362cab last_write_checksum: sha1:a0dc00c51cec65f3b3be2428c8c4b16fa8445f84 pristine_git_object: b359eaf29da7cbb808c53048c9dedff8d73aa426 - docs/models/shared/V2WalletWithBalancesBalances.md: - id: dd2a24fce9d6 - last_write_checksum: sha1:9fbe49a756107316a7e755089aba3ad801e8f7eb - pristine_git_object: 45fa5a0943b0901252e08cff3992b4ed0e1cda27 - docs/models/shared/V2Workflow.md: - id: 248cd88e1631 - last_write_checksum: sha1:9a2d728aecd797cd08c7e99a4b77a6e473c2f3a3 - pristine_git_object: 2d23cf7e340bdb5aa59b0bede04515ae05dedc62 - docs/models/shared/V2WorkflowInstance.md: - id: 62dd50402a26 - last_write_checksum: sha1:c63bb80d910cdaa8c95fa07353d1e40f2454a2b2 - pristine_git_object: 9b8bd49e9fd33202b11712e2b6a305becd629a04 - docs/models/shared/V2WorkflowInstanceHistory.md: - id: b2eb99f0a63f - last_write_checksum: sha1:1f5da90453049fa964ddc741db8c3f83a853f870 - pristine_git_object: 27632a728711d537cadbcb36de00d0e1f2e0a601 - docs/models/shared/V2WorkflowInstanceHistoryStage.md: - id: 5b1371672d60 - last_write_checksum: sha1:3e0eeb9966e57ed8c6ca60febb764d8562d89dd4 - pristine_git_object: 05e73f2741a74ac18023d236c74b8fc73a3b62bb - docs/models/shared/V2WorkflowInstanceHistoryStageInput.md: - id: fc6bedaafc76 - last_write_checksum: sha1:58ce9c1df5f1accd7a07479e45745bff15796090 - pristine_git_object: 69cbccea77c7f8ceca3586e772c12df222a34b6b - docs/models/shared/V2WorkflowInstanceHistoryStageOutput.md: - id: 0a09042e08ea - last_write_checksum: sha1:b4d66a9e516d4c3103d9506e33f0b471074ea61b - pristine_git_object: d98d89d90ebdf1af063c5404cc037c5340a1795a - docs/models/shared/V3Account.md: - id: 3f0892295394 - last_write_checksum: sha1:7dea3e527ed6400dc728ccdd866f0fc87bb04860 - pristine_git_object: 1e9e4f8ea2b40cd3547e72f154815344caf3deea - docs/models/shared/V3AccountRaw.md: - id: 3dad73b74c88 + docs/models/orchestration/V2WalletWithBalancesBalances.md: + id: 0983f1ae89f3 + last_write_checksum: sha1:2149f91688ba0bd7f2bb211ce8542b23140d564f + pristine_git_object: 1330a7929f38cd5ca1d1b1e31d609a8401744e9f + docs/models/orchestration/V2Workflow.md: + id: 76aa0c36350d + last_write_checksum: sha1:dd11b9e66bc511fa88ec2ba3e041864568a231e9 + pristine_git_object: 3aaa8433c28d6cb3f72ec4771b2d769b9c994e90 + docs/models/orchestration/V2WorkflowConfig.md: + id: 31e7f87499aa + last_write_checksum: sha1:4882035d872ee40d28855b398f3b5ded14af9b76 + pristine_git_object: 913de4459f23ed9a73e67cea4562933529a64ef9 + docs/models/orchestration/V2WorkflowInstance.md: + id: bac2489b9666 + last_write_checksum: sha1:170ccc1b1f29629c72ee865a1618675fdbdc8ac9 + pristine_git_object: 95d95462ed980c3f6ecd3fe3eacc108b52445bcb + docs/models/orchestration/V2WorkflowInstanceHistory.md: + id: ad9abd16122d + last_write_checksum: sha1:755a7a592037aa2d0b19c041af19a0b5febaab32 + pristine_git_object: 89a5b3020c7567acdb768d5a4187254aae232714 + docs/models/orchestration/V2WorkflowInstanceHistoryStage.md: + id: 61ba8fd4ad85 + last_write_checksum: sha1:374ae138506dd2798c7d6f5bb4e61c1f6acdeaaa + pristine_git_object: 0e14977242cd16355b316201d26f36b7f046fd70 + docs/models/orchestration/V2WorkflowInstanceHistoryStageInput.md: + id: fd1b5504bb5c + last_write_checksum: sha1:58393de087b982bbac7e9bd99731f5c705385f53 + pristine_git_object: b6f9d5ec9e51fab0eea9b6d3278046cd675d6695 + docs/models/orchestration/V2WorkflowInstanceHistoryStageOutput.md: + id: defac99d819b + last_write_checksum: sha1:2311da7a86fbb9d198de55f6ff194717f8282897 + pristine_git_object: 77dbf7f492a30870cbcdd79adb1a1333b18baa05 + docs/models/orchestration/Variables.md: + id: 7f8ffa2a718d + last_write_checksum: sha1:bd0744897ee4c7dc6ea150c144535e999ff5815d + pristine_git_object: eafd3ec78fa24bbc4bdfa155a421b10624ab418f + docs/models/orchestration/Volume.md: + id: 221b12968645 + last_write_checksum: sha1:f3814b4c9ce40da791a1700a8d27d86d87886cdd + pristine_git_object: a7d322c8cebb15316f5a421ef5df5a59e28995c3 + docs/models/orchestration/Wallet.md: + id: ab3a2d7cffb6 + last_write_checksum: sha1:c04b18faf37727692c97a18cbcf9b9bc7f362172 + pristine_git_object: af3181818072f9854a69e2b757b025da1a20d54d + docs/models/orchestration/WalletSubject.md: + id: db113348466f + last_write_checksum: sha1:8a5d6573ec59845187b8e57a7f84224473f7e18c + pristine_git_object: 5219e9430458f1817200c76a5e919d0d53de5586 + docs/models/orchestration/WalletWithBalances.md: + id: 4afbf210f0b2 + last_write_checksum: sha1:4814c4cbc2d86acc61b2c42c92539c1af4879b6a + pristine_git_object: 63f9519062c098556a6b4a718e89340c704b2b6a + docs/models/orchestration/WalletWithBalancesBalances.md: + id: 4767bbb59197 + last_write_checksum: sha1:06098d71b9daec95c7ef20fe42a83008a3f57b37 + pristine_git_object: 05da1ada8b90ebde2de7f947ab1aa573287cad92 + docs/models/orchestration/Workflow.md: + id: 9ecf1fa823f3 + last_write_checksum: sha1:3226627fc9f0c4831287f2b7e92fb9836c76bc2f + pristine_git_object: cd608edf99d020c8c6075025c0bffca9cc15fa9a + docs/models/orchestration/WorkflowConfig.md: + id: 08c15d97938f + last_write_checksum: sha1:1ee15d0b8e761ee5f40dbf71a0ad9b0300e5f6cb + pristine_git_object: 8981720b386c3660c6d7787dfca69ceb6bc84620 + docs/models/orchestration/WorkflowInstance.md: + id: ff478870f5d3 + last_write_checksum: sha1:2b9accba247949f318ce5962fe03da8d11cb685a + pristine_git_object: 288aa17eaf1588980a99e15b59914657172f98ba + docs/models/orchestration/WorkflowInstanceHistory.md: + id: 63e64ed2962a + last_write_checksum: sha1:3a92ddaf2378078ea56fe4eb0f075e49478f879a + pristine_git_object: 5301c5dc52dda16d4bd03fcd38f6fa9f6b74f84b + docs/models/orchestration/WorkflowInstanceHistoryStage.md: + id: f63fec8991e1 + last_write_checksum: sha1:1c1860964641767537445b9973baffb4bc9e3979 + pristine_git_object: 236d09ebce8e44bf0164383716068fb9252d6535 + docs/models/orchestration/WorkflowInstanceHistoryStageInput.md: + id: 7b208f192bea + last_write_checksum: sha1:a2fb7d62daefe52d03fa80550455ea7c886a0106 + pristine_git_object: 1ef21c581be8351e326706be3d05158fa5232584 + docs/models/orchestration/WorkflowInstanceHistoryStageOutput.md: + id: fa5580624797 + last_write_checksum: sha1:b4cad904a61f13da6db0143ed69ed3b8638edada + pristine_git_object: 6955ec3c6d9e2c43eeb60efc91a8b404f269f3ab + docs/models/payments/Account.md: + id: 6b0c939f13c2 + last_write_checksum: sha1:068c80e8567e3a8a93bfd3eaea8c301780434351 + pristine_git_object: f01627cc2284168881491c6a96679e5c0f96f9d8 + docs/models/payments/AccountBalance.md: + id: "031178834210" + last_write_checksum: sha1:35f8973111ff585bcb7a43690358bde9f90785f5 + pristine_git_object: e472ed595943a77ae1fdb1adcf6c0a13d0055fd4 + docs/models/payments/AccountRaw.md: + id: 17309327d159 + last_write_checksum: sha1:a3f46a88411093704c1509ccf8eaa40459c17aca + pristine_git_object: 6fb20eb1ef3c1d1b542c27f5cd75e0382084e02e + docs/models/payments/AccountRequest.md: + id: 32fc118a0980 + last_write_checksum: sha1:a75aba64ea33a69bc6bc3712e4b6b0fb5087b2a6 + pristine_git_object: cb1808994cc2ff904e9403cb4175513531efc3e4 + docs/models/payments/AccountResponse.md: + id: b32759445fd8 + last_write_checksum: sha1:948cfad5ffbc9a9b57c7213dbc34375c7e34e54b + pristine_git_object: 2e00e68d2ab8a21a42ddbba84ca453acba4d5cf9 + docs/models/payments/AccountType.md: + id: 579bfd56f86e + last_write_checksum: sha1:6988e584196425d607ca21ee40f6bc51b33cd813 + pristine_git_object: 37532f42d8e9e667310a983268b4b89d631956c7 + docs/models/payments/AccountsCursor.md: + id: 62385f6b87c7 + last_write_checksum: sha1:5a3bf5daad2c8ec9f5589a5b619e14c2536dea43 + pristine_git_object: d7769d37a89eac03d5de579dea07c82eeecef5f9 + docs/models/payments/AccountsCursorCursorBase.md: + id: 75a47e49046d + last_write_checksum: sha1:24f196f4d9adac0fa182e72e4f509d9a63b01ced + pristine_git_object: 3e28c261bebbbca57ba14a64a05231f78ed891be + docs/models/payments/AddAccountToPoolRequest.md: + id: ba4ab061da61 + last_write_checksum: sha1:936a8caaa3e79ef00c458a7c0deb855df4e734d1 + pristine_git_object: 3105fdc0ca5c5252b0124ccf67d64c926c0f50cd + docs/models/payments/AdyenConfig.md: + id: 578a9128f84c + last_write_checksum: sha1:5e5b1dc2baab0c6b3c6dfa6a0705a53321a30aed + pristine_git_object: d9c821f738ec7df51c9f869bdfe2673a7cfeed9f + docs/models/payments/AtlarConfig.md: + id: dc1d9452f3c4 + last_write_checksum: sha1:7e8423ada3bee2b979eb2737a570c689c30c1780 + pristine_git_object: 0cd5cbe1105fa76d81d4b49e9add552e736c15b4 + docs/models/payments/BalancesCursor.md: + id: d47c90e9c4c8 + last_write_checksum: sha1:b8c1166e0d2e8222595610e7e79673575ed02c90 + pristine_git_object: 4e1097804fc34d441e5cc1574601f134c42322de + docs/models/payments/BalancesCursorCursorBase.md: + id: 0ec1c5bd82c1 + last_write_checksum: sha1:8cc6b3887f16b045ca7335c6c44a96ee81b70553 + pristine_git_object: 3d1df6ee4d0abd24cc28d756bfc42111bd9fd008 + docs/models/payments/BankAccount.md: + id: 2f9c84216e6b + last_write_checksum: sha1:00a4f6b1de19cab96736456aae0ec745e00a92cf + pristine_git_object: bdecbcd5980667c904c846d1b6cd35e5fbd0a379 + docs/models/payments/BankAccountRelatedAccounts.md: + id: 5dd1331cb909 + last_write_checksum: sha1:64f51b53e417d8d998295a3203c3e5b5672a8888 + pristine_git_object: 9d2d5d4bc05c36973479f4edc394ec2ba9bbda75 + docs/models/payments/BankAccountRequest.md: + id: 696c351e0822 + last_write_checksum: sha1:b00d1ca3a82b409c1568872b382b2105219a6de8 + pristine_git_object: 87c9a0b2868ac439d45d444145d603d17b6663fb + docs/models/payments/BankAccountResponse.md: + id: 0f9ccc504204 + last_write_checksum: sha1:23b4ec84876190e0b7ad8422d18e81214617fe8e + pristine_git_object: 29cdd4ffe70b7bb53bd713fb4f1e730ab40fdb79 + docs/models/payments/BankAccountsCursor.md: + id: ebb1779d3768 + last_write_checksum: sha1:a09c68a07557c7d0ca2ab4c9020cd02c30cf2e4c + pristine_git_object: 265484b94c4547181da1f29477a718fbda1d10e3 + docs/models/payments/BankAccountsCursorCursorBase.md: + id: 355dc5aad537 + last_write_checksum: sha1:0d8af28d034a4f0b666b0c5413ef13404d5e8ba7 + pristine_git_object: ccecb75979bacfb8c4ebd7efff0008f7495632b6 + docs/models/payments/BankingCircleConfig.md: + id: 72e2eaca9aff + last_write_checksum: sha1:b72c24c171bca669b5a16f6588781828f8608000 + pristine_git_object: 3602607ff181cdbbcc24a90f8ea8be6b35002f92 + docs/models/payments/Config.md: + id: bcdab53b837f + last_write_checksum: sha1:4f06b4e643a378dd9329dec4535ae733b76f364a + pristine_git_object: 36b0c3684706f61a5f9c9a32f738f9fdb6f58f3d + docs/models/payments/Connector.md: + id: 4a544be736a0 + last_write_checksum: sha1:dccdb647e3713da60900739dd8675a2706c418d2 + pristine_git_object: b84a85666c84f0badda72b62ab1776ac0ec7f3bd + docs/models/payments/ConnectorConfig.md: + id: 83a077f8cda3 + last_write_checksum: sha1:c6b8e94ec3ebb1e60eec3eb1170519650d74a67d + pristine_git_object: 4bb196229e31ababbe7a859e3333d6101e087d2a + docs/models/payments/ConnectorConfigResponse.md: + id: 87927ade0f15 + last_write_checksum: sha1:797ec5b552e61476d8c6c2662291495355671425 + pristine_git_object: 1ef1bc3653109b3fddae8f39cc6a4d7d0b69d5e7 + docs/models/payments/ConnectorResponse.md: + id: a856e1db359a + last_write_checksum: sha1:168535442c15c5133eb3ed28b83cc65a739055c5 + pristine_git_object: be1577346ff467ded22940a53ecb5c7fa03e4cc2 + docs/models/payments/ConnectorResponseData.md: + id: 239da59f9c50 + last_write_checksum: sha1:d50e52cd79c66a50f189527ff0d054da49f8f36f + pristine_git_object: c5ab463e9652ce83787ea7e62b564fb081bb2e07 + docs/models/payments/ConnectorsConfigsResponse.md: + id: 84b15de6c395 + last_write_checksum: sha1:60bef2731992d63fe6baff4953b85b7e7ba343d1 + pristine_git_object: f792f99d1c6fcceea07d4df3acb5a0fca3906353 + docs/models/payments/ConnectorsConfigsResponseData.md: + id: b7d03dd77cb5 + last_write_checksum: sha1:cba75dd9225ec5f3d93a25cc672022c1c9931abd + pristine_git_object: b2dc72be0b5b43d847b88a1d3be4b723be852e6e + docs/models/payments/ConnectorsResponse.md: + id: 778f5d971e30 + last_write_checksum: sha1:c4b4aa111183e5ff88d3d14a806d47d7f27ce4e1 + pristine_git_object: b56c5c891ae7a0bb537d37124a5843ca1379db0e + docs/models/payments/ConnectorsResponseData.md: + id: 2e2c6c69354d + last_write_checksum: sha1:addaee048d33de844ab2b6289b5ee77ed99ccbde + pristine_git_object: 2b635dca9ee66823389d01af16e20e9f38e02780 + docs/models/payments/CurrencyCloudConfig.md: + id: f8e466d2b77c + last_write_checksum: sha1:30f746876b97f4550c440a5806af41dd41e4062e + pristine_git_object: 7ef80d32701204849b7c2c60b000d8d6f13521e5 + docs/models/payments/Descriptor.md: + id: c2f8b5946aa7 + last_write_checksum: sha1:4707fd46de368dcae382cb2da095bd8721116c4c + pristine_git_object: 96af20cc6813e32232dfe5e42329cdcc8cadd16a + docs/models/payments/DummyPayConfig.md: + id: 14d4b44ec2a6 + last_write_checksum: sha1:c219af55d98bc72672d47c36af729ab39305d961 + pristine_git_object: 4649b66d6f3cecf567ff5a111c5d5749fcadedd8 + docs/models/payments/ForwardBankAccountRequest.md: + id: bbdc0f6d786c + last_write_checksum: sha1:755699509b2ab5716dcd9fa97db9836ecb1e887a + pristine_git_object: 5c72000fafc55059f4da5099b84ca15515ec4166 + docs/models/payments/GenericConfig.md: + id: 8ade0bfdbbcd + last_write_checksum: sha1:04bdc9bb3acbb8e10f609e753db0036e440bc7b9 + pristine_git_object: 556004f66bb0a49431fdfc2c9714abbba9fe7521 + docs/models/payments/LegacyPaymentStatus.md: + id: 70f38f55fa0e + last_write_checksum: sha1:50bbc5cc28707a23b9cb141115e38a6be8040595 + pristine_git_object: f3fd8c22b872be6f73fb71018eda0413b1adf7f8 + docs/models/payments/MangoPayConfig.md: + id: 0afe4f13d123 + last_write_checksum: sha1:f9b77e000081c5a69697001bba467552e185657a + pristine_git_object: e5a8f7dce1ff0d5f258dfa955b9c76aeae8b7f10 + docs/models/payments/ModulrConfig.md: + id: bfa038552989 + last_write_checksum: sha1:d05e1c3152d605a0b57650705ae3f51987e89034 + pristine_git_object: bbf85f384ce978b41c8b4ad2ddec18f7d9bef33b + docs/models/payments/MoneycorpConfig.md: + id: ac56db7817c6 + last_write_checksum: sha1:1ad4de7e406ab598f2807fd16eaa99dd5e1016b5 + pristine_git_object: fd16766d19ed09e4be4c6d70e12ad7e184bfc176 + docs/models/payments/Payment.md: + id: 3f637a092d17 + last_write_checksum: sha1:8f39794dc82c3ab82c1145250d8e5517bed4b884 + pristine_git_object: 1205206e2465e8d234af19a9079e3644dd1a5dd3 + docs/models/payments/PaymentAdjustment.md: + id: 2f14b78b927e + last_write_checksum: sha1:303e307c304abdf4ddad063ecaf5f2d66a7bde88 + pristine_git_object: 964ddb499bdd53be681c26d5324b829fe3aec6c2 + docs/models/payments/PaymentAdjustmentRaw.md: + id: 781f2392498b + last_write_checksum: sha1:a89d39f15638ed74ebf5e484491a846fbba4d63e + pristine_git_object: 78f88aee5c8376683e8afb37a557cde1d4779495 + docs/models/payments/PaymentRaw.md: + id: 38d09ce5642a + last_write_checksum: sha1:8380da891216d461e7cc57ff268f773d0097b105 + pristine_git_object: e884afe329a45217d54d17af7da259c49bb3adc1 + docs/models/payments/PaymentRequest.md: + id: abe384c348ce + last_write_checksum: sha1:309c1994284f43dfb335d8255f53bf708792b5a1 + pristine_git_object: c8938a05ab3971ae325c39861eba42cec1c2ba86 + docs/models/payments/PaymentResponse.md: + id: f6d8b135c791 + last_write_checksum: sha1:833e0bf7c905b358dd607b532566757e8c7a698e + pristine_git_object: 9505070d8895bab7e7352294459b8b90030e3032 + docs/models/payments/PaymentScheme.md: + id: f674c7bda3e7 + last_write_checksum: sha1:35b85f0de027fcc5cc0d6b2b8bd0d792277dd468 + pristine_git_object: 6627e02f130208d48650829f216d0231b08e1bff + docs/models/payments/PaymentStatus.md: + id: 902d187dc0db + last_write_checksum: sha1:c69d75aa8350436cbff0f8b5f8a50ff7fa8bec57 + pristine_git_object: c9bc207d387ac21e359b54611b37da1ff4801850 + docs/models/payments/PaymentType.md: + id: 7849c15bff38 + last_write_checksum: sha1:6d4d7bdb2c76cb350e92df3e18502812d92ed60d + pristine_git_object: d7e2e956dfb9a885606602e490ac5546249e5abc + docs/models/payments/PaymentsCursor.md: + id: 4264ebaae661 + last_write_checksum: sha1:3b58fb8c43e9b15b376a76c5f008c5247fe1b892 + pristine_git_object: 7405f042dfa927f9f0d0c13f245104f1561c7141 + docs/models/payments/PaymentsCursorCursorBase.md: + id: 05b9236826f0 + last_write_checksum: sha1:1c2c66a0a0049804818127cc85e8997a262099d2 + pristine_git_object: 28bd422b6b0a1bf1085f8bcbbcb854fead8f1895 + docs/models/payments/PaymentsErrorResponse.md: + id: f815b97558f4 + last_write_checksum: sha1:337d22c47e25765d4258c952c65b72b3c464999f + pristine_git_object: b78bd6066308dab843b1ac74aa7fcbcbbd1d50e6 + docs/models/payments/PaymentsErrorsEnum.md: + id: 8af7d5e4e21c + last_write_checksum: sha1:27ef4cdb6237da08c83aa8e4a686cb26c671744e + pristine_git_object: 5a38d91d31cfde56ce21896ef55e157b7ba88287 + docs/models/payments/Pool.md: + id: ab35a4fb2b9a + last_write_checksum: sha1:3e58d8406c130d71849f84657b7b0232965568e9 + pristine_git_object: d6614bbe89dad1aa4b37776611f3ff2c49852084 + docs/models/payments/PoolBalance.md: + id: c364849c8c53 + last_write_checksum: sha1:836ac244d2b4f5caa65c1dbfb2c6d6e5432ef8a8 + pristine_git_object: 2b95f5f7164f71a2f3a2afed29500dabeabc059e + docs/models/payments/PoolBalances.md: + id: fa38ced2c4ad + last_write_checksum: sha1:e089ea7c8c4bd7a91c3f7f9e389cbae9fe894a59 + pristine_git_object: bf4c3596a90a90a54e370de9865b8aca94220d41 + docs/models/payments/PoolBalancesLatestResponse.md: + id: 030061b6ab6e + last_write_checksum: sha1:426c50cf38d48686287746adac0e0a33818d9d0b + pristine_git_object: 4a1d008b8083e8af9977089a4b2ed3791b1203fb + docs/models/payments/PoolBalancesResponse.md: + id: f125780bcc2a + last_write_checksum: sha1:4eabd3178f26b30f1f02e5c88022976bdc34d3f5 + pristine_git_object: 824b0066c6957eeeae1d053c5b0fe7c9e8a1c7aa + docs/models/payments/PoolRequest.md: + id: 1f43ddf6afa0 + last_write_checksum: sha1:d028a48c58a139a2a234d556c580847676daaf7d + pristine_git_object: 6db86980b74ae73ea55330a527700b0ce76c1b59 + docs/models/payments/PoolResponse.md: + id: ce68b8e2a7cd + last_write_checksum: sha1:fcdab91aedb02ac20dceeb8d8a10ef29569d1c7f + pristine_git_object: 1a411feb7f344001ad3fd202ec10daba30daa7f6 + docs/models/payments/PoolTypeEnum.md: + id: eccd9a6490bd + last_write_checksum: sha1:f1db2919a0a6e5e22c5bf818c93a6d3235d60408 + pristine_git_object: 07a2a5ec7af5064497e83ad79e73ab9c942dd5c8 + docs/models/payments/PoolsCursor.md: + id: e8b5a3194f7f + last_write_checksum: sha1:74e80ccf50acce251c3ee30ff7c6393a12d7a9c5 + pristine_git_object: 07608c76bce00f22d1e30def981ca9313552d2af + docs/models/payments/PoolsCursorCursorBase.md: + id: 3b175b6004cb + last_write_checksum: sha1:03db379299a00eff55f3ba4f079caedf976cad46 + pristine_git_object: f548e671985c730195ce78e389951c91ee3d8a9e + docs/models/payments/ReverseTransferInitiationRequest.md: + id: ac08ed2e4d68 + last_write_checksum: sha1:74f6eb213da7ebf17d9b5f2d84f8f6169d880dd6 + pristine_git_object: 7ef596af77f0450bd974382adb2024983f1f8b75 + docs/models/payments/ServerInfo.md: + id: e8a88d42982a + last_write_checksum: sha1:59e1e340bb797857b5761c97f2935078503d428c + pristine_git_object: d9f8cb095b04dc8c1e3ca250f3336b4e25c04436 + docs/models/payments/State.md: + id: 9c5840361740 + last_write_checksum: sha1:78b0e5b5c76eab5d094643b0519ddfecd664f610 + pristine_git_object: 158adc5205c2575e66d08ce6712a9e1015e5d882 + docs/models/payments/Status.md: + id: 1e5e7555bbcd + last_write_checksum: sha1:9e58c9ca2c4aff5148fe9f1b50eda0dd2a5534e1 + pristine_git_object: ce33b95f4abc07b3914ece2641e96b5bb1c9ebdd + docs/models/payments/StripeConfig.md: + id: 76b936d00128 + last_write_checksum: sha1:42642b3ac3c7fecba321d5e60b0377051b6ac787 + pristine_git_object: 08b178d2545c2bd26d9de5ad03d04f71688a55b1 + docs/models/payments/TaskBase.md: + id: e192e76f6b51 + last_write_checksum: sha1:818187d710fe9b2cee26ad2a3bbacda4e6ac3a8b + pristine_git_object: 65228ff0c169d6dc4fdf02b6fd0b3c804c0e63a9 + docs/models/payments/TaskResponse.md: + id: e04f83b7ebc4 + last_write_checksum: sha1:f38b724e91bdc266854788a0cabb759499a980f6 + pristine_git_object: 41cfe4f148acca201c6b2e931091a53bbb9c2f7b + docs/models/payments/TaskStatus.md: + id: 33645cc998e6 + last_write_checksum: sha1:06b956de7c928b2b761a50d2c9e27f1ccaa43d6b + pristine_git_object: ab69f4ef7e41685b9118156365ef9d3fbd129fbb + docs/models/payments/TasksCursor.md: + id: caba5515e5e1 + last_write_checksum: sha1:b39e64f89746025daaaf09232804092bc08d9a7c + pristine_git_object: 634eb98ad54a98c558fb5e57a2e4a65698e5f691 + docs/models/payments/TasksCursorCursorBase.md: + id: 75e3f404a352 + last_write_checksum: sha1:4b489a494bea185f7e23083afb7e68551d5e0836 + pristine_git_object: 14e729c853625021564e30a415e3b65fb05d655d + docs/models/payments/TransferInitiation.md: + id: 525b8685b63c + last_write_checksum: sha1:665bd1671a1d59b296263375760e4ace660cad9d + pristine_git_object: 75bf8f2a250fc516f6436e9ef01bdf8fb0a97708 + docs/models/payments/TransferInitiationAdjustments.md: + id: f8d74acd1db7 + last_write_checksum: sha1:63d0a619a8efbe2540b09ea1ae31f79db7613d98 + pristine_git_object: 403599102717c69a5a1abd373f9a5a5c0bf7ab85 + docs/models/payments/TransferInitiationPayments.md: + id: 5f672f0afe65 + last_write_checksum: sha1:fe7ee2f0a2564e338d2108ea25873a367255e330 + pristine_git_object: 55f80fdc730a58bb1a5a8ef9efba2847ee3a1777 + docs/models/payments/TransferInitiationRequest.md: + id: c29b38a48729 + last_write_checksum: sha1:64541bd256624a1735106644c9fa713807253ea7 + pristine_git_object: 0e17362b101212b53527e384d78557ed7beb1df6 + docs/models/payments/TransferInitiationRequestType.md: + id: 8e9c869519ae + last_write_checksum: sha1:1417b62d66d7fc84728aa8ab9c816389ed8ac4af + pristine_git_object: 2b14da8bab23f7935964e726626a6daaca4da884 + docs/models/payments/TransferInitiationResponse.md: + id: 3ef7606dbd3c + last_write_checksum: sha1:aa522cf3746471ae0a7831a5caf28b7f70d2dcb5 + pristine_git_object: 90147cc1890335c3cdb8049c4ca1e5ab6388607c + docs/models/payments/TransferInitiationStatus.md: + id: 0cd4caee9424 + last_write_checksum: sha1:c2fcd4b78569266279fee69ce299f731fd596dab + pristine_git_object: cb1a6980c6e0f6121eb13811f298762f87b5bf2e + docs/models/payments/TransferInitiationType.md: + id: 9d98d129da87 + last_write_checksum: sha1:4b26ea061c8f641678f7778f8e4c50d9cfc5c4cd + pristine_git_object: 277b34b60bff4542f8aceb8e337f63591559737c + docs/models/payments/TransferInitiationsCursor.md: + id: d08ae7613399 + last_write_checksum: sha1:174b3192d2c5d9ffe89dbb1199e203b2e84fefe7 + pristine_git_object: 32277a3ce27f49a5627f816cb413421abc421aee + docs/models/payments/TransferInitiationsCursorCursorBase.md: + id: 526d8755058f + last_write_checksum: sha1:77243c228f86090097b1c1222389b71191065436 + pristine_git_object: 85a7d857710c1fce22bd8570771396e65512f40b + docs/models/payments/TransferRequest.md: + id: d428395c5d13 + last_write_checksum: sha1:55a4c523ccbc7605a13fc41dc35346a6147eeb8d + pristine_git_object: 138eb5b274fdb6e191f9f8431f931966f9564b09 + docs/models/payments/TransferResponse.md: + id: 5ca774256c22 + last_write_checksum: sha1:4b35867cc3a1fe3476fc0b8df7b409b8edd4fd60 + pristine_git_object: e17ed4af498b88c8a95b4c25906d40e6bea8dfce + docs/models/payments/UpdateBankAccountMetadataRequest.md: + id: c3ec929a7b6f + last_write_checksum: sha1:22b047dcaa3830a8af8944a24ab460dae9cbc21a + pristine_git_object: 78724119a43a2cb01493d8ab340fad23dcde9fee + docs/models/payments/UpdatePoolQueryRequest.md: + id: f7d6a1202cda + last_write_checksum: sha1:b3a53b82638f363a13a8990533c23c42628896b8 + pristine_git_object: 4967576dd992d186a320a13bddf004e8cfe13811 + docs/models/payments/UpdateTransferInitiationStatusRequest.md: + id: a2f6e3d3dd09 + last_write_checksum: sha1:efcca402b29c26e85cc81a705ca4139297d42137 + pristine_git_object: c7d73e976d7a7a7a885daf47ddef0ac42e7284f2 + docs/models/payments/V3Account.md: + id: 077466336dcb + last_write_checksum: sha1:e4f29237c6c7202551cfdf889c334f0d3d28368e + pristine_git_object: 25e1a048505759543cf20c6930b0ed4b4bcf3bff + docs/models/payments/V3AccountRaw.md: + id: e24ed5a1fb4e last_write_checksum: sha1:b7d449c4a6218d001c0f27161b0e290ae54c4486 pristine_git_object: 68315384f57f7c13a374091508e0647c0f90411c - docs/models/shared/V3AccountTypeEnum.md: - id: 0cebf5ef7a6d - last_write_checksum: sha1:a4fc950f02df7e1e2d48c295f792d291c6d389d2 - pristine_git_object: 3a2b0dfbe5280453d11d472bcb3a94ccf779d6db - docs/models/shared/V3AccountsCursorResponse.md: - id: 0b0461eacd09 + docs/models/payments/V3AccountTypeEnum.md: + id: 5524371ba943 + last_write_checksum: sha1:eb4904d5cee5f4ca7f10d2938d8060508b06d8ae + pristine_git_object: 52bb4359d8d5b0645bbf689cce72d0cd60e2901e + docs/models/payments/V3AccountsCursorResponse.md: + id: d14c7e17117c last_write_checksum: sha1:525f53f151d4bad612e326558bf362bd0a81ce7a pristine_git_object: 7426a9bb2f7d0bebd964b57b6fa7cdb0f52beca2 - docs/models/shared/V3AccountsCursorResponseCursor.md: - id: 14b99143e962 + docs/models/payments/V3AccountsCursorResponseCursor.md: + id: 33b9fb207a54 last_write_checksum: sha1:931975e24fa761bddbef46b9c37e7245f4093bfd pristine_git_object: b7acd8e1c285a19d8e66fb98526a9e25da1f0505 - docs/models/shared/V3Address.md: - id: b795ba9f03dd + docs/models/payments/V3Address.md: + id: a3f18ecce539 last_write_checksum: sha1:e354315b7e418b7b651c43f7ef6a49793759ae4a pristine_git_object: 8a4dbdb25a59efaa4e30faf0de8f9ffd5513d45f - docs/models/shared/V3AddressRequest.md: - id: a04fd514a075 + docs/models/payments/V3AddressRequest.md: + id: 03eba453d5a2 last_write_checksum: sha1:3383e704ef67c4d3a283ee9840840f07f6eb24eb pristine_git_object: 4894ed09adc4acb6218aac67af23cd8650371f1f - docs/models/shared/V3AdyenConfig.md: - id: b9e2f2e35571 + docs/models/payments/V3AdyenConfig.md: + id: dadb40866a94 last_write_checksum: sha1:d79c5b8e45526584f4d5a400776471a11978eea9 pristine_git_object: 1e889d95456d445184241db200d97a426d1a5ca7 - docs/models/shared/V3ApprovePaymentInitiationResponse.md: - id: cf84e969b82d + docs/models/payments/V3ApprovePaymentInitiationResponse.md: + id: 9b9d8940829d last_write_checksum: sha1:bc109a06f7d44ba98898b55a3f79b1d3eac8cd67 pristine_git_object: ce6a6c2cd892c3a64e975e0fb9c721e70c51b931 - docs/models/shared/V3ApprovePaymentInitiationResponseData.md: - id: b6a76e02c9d0 + docs/models/payments/V3ApprovePaymentInitiationResponseData.md: + id: e9319fd8e28e last_write_checksum: sha1:14fbd3ef3b985d75e52b7ef5af84d671e8d41ffc pristine_git_object: 97a5e3246d876ad42ed5a5a884d737e86a4b8ce1 - docs/models/shared/V3AtlarConfig.md: - id: 4b0387cd1d59 + docs/models/payments/V3AtlarConfig.md: + id: be9cbd6c6a53 last_write_checksum: sha1:a25ae7120231b7d0de3f0bc1c9695642f8be3a89 pristine_git_object: 70df86d6d61a483c328512d3d6dc7f451749cc66 - docs/models/shared/V3Balance.md: - id: 6446b2704520 + docs/models/payments/V3Balance.md: + id: bb441f2aacc3 last_write_checksum: sha1:b0ce0757a0de2408d369389a0dd92e51581393df pristine_git_object: 6e7e0991ff1086ba42ccabd678a7e04bc46c8f14 - docs/models/shared/V3BalancesCursorResponse.md: - id: d8f9373e75c7 + docs/models/payments/V3BalancesCursorResponse.md: + id: 716df5d8e7c4 last_write_checksum: sha1:976a1685ed22c3414eb24b3d95a6e8cc64c1add7 pristine_git_object: a9262f59bb6e131b5ecb246de2f129cf3da8f1c6 - docs/models/shared/V3BalancesCursorResponseCursor.md: - id: 917a2d179568 + docs/models/payments/V3BalancesCursorResponseCursor.md: + id: 4cf198b7c425 last_write_checksum: sha1:18331a5d29fb84db079e84a601176ee5a600bb89 pristine_git_object: 96437ec14dbd4591df5eeb3c90bd8cb1243b8d22 - docs/models/shared/V3BankAccount.md: - id: 01bc6bb0d8a2 - last_write_checksum: sha1:516e216eeb9c169361328754dda852061085fde1 - pristine_git_object: fd05932d304729cdaad8fc4612afe6c22362ba45 - docs/models/shared/V3BankAccountRelatedAccount.md: - id: c824c95971e6 + docs/models/payments/V3BankAccount.md: + id: efcbefb261b4 + last_write_checksum: sha1:6f586ef6180fef4b4fc18d55645d5613a5d5957d + pristine_git_object: c88675fedcea627d85c6780f8df0e5486bcd6b71 + docs/models/payments/V3BankAccountRelatedAccount.md: + id: 30dfca0e2443 last_write_checksum: sha1:426f80feaeb3a2dca0e95541567c23e18b1444c6 pristine_git_object: 28c9067a1c6d3f2b4e525542d79bbf4c75183986 - docs/models/shared/V3BankAccountsCursorResponse.md: - id: 37104dc97b7a + docs/models/payments/V3BankAccountsCursorResponse.md: + id: 2e14bac8e77b last_write_checksum: sha1:d765523256c9dd3ea71002e264cf8424d02ad542 pristine_git_object: 3bb916ab91edd64adc8f325a07866a308f13c1ea - docs/models/shared/V3BankAccountsCursorResponseCursor.md: - id: 1c25e1b671a7 + docs/models/payments/V3BankAccountsCursorResponseCursor.md: + id: 842aca3267b2 last_write_checksum: sha1:865940ac306f6090566bb35f3a549eefd78852d0 pristine_git_object: 38e0d7de46ea520af2a76629faf0e3aedeea3401 - docs/models/shared/V3BankingcircleConfig.md: - id: 630c51cdea55 + docs/models/payments/V3BankingcircleConfig.md: + id: cd8b70efdbc3 last_write_checksum: sha1:cae13c8c37c388c756c722550ac7fe91cd377ab8 pristine_git_object: d83e17560deaae21ff530577e6a8c81e832656b2 - docs/models/shared/V3CoinbaseprimeConfig.md: - id: d7ff51bba697 + docs/models/payments/V3CoinbaseprimeConfig.md: + id: 30cae1e3d50e last_write_checksum: sha1:2437f21813bb0ef4f7e2079694451490d22692e6 pristine_git_object: 19ab073e22f89d747713fd42f5adfd1dc33e000d - docs/models/shared/V3ColumnConfig.md: - id: ca800d96819f + docs/models/payments/V3ColumnConfig.md: + id: 3559ecc5e6de last_write_checksum: sha1:9c238ea1793f9c39916e0b9c7e1f6925191255b5 pristine_git_object: 2e4d648e33c55ce267e94ba46b18533bf2aaeed5 - docs/models/shared/V3ConnectionStatusEnum.md: - id: 62f95b61b841 - last_write_checksum: sha1:d4a162d49e84f69f754ab5399137466937ac954e - pristine_git_object: 4518cf7bc86142c53b5ddd2ea507ffd8fd01be79 - docs/models/shared/V3Connector.md: - id: 99144a66d9d5 - last_write_checksum: sha1:4f5be74c9f32f831babf4d33f0d542119f69d336 - pristine_git_object: ee471a44b39427af8135a5df80a0e7a7b82996b3 - docs/models/shared/V3ConnectorBase.md: - id: 1fef69778103 + docs/models/payments/V3ConnectionStatusEnum.md: + id: 2f6c8fca82e2 + last_write_checksum: sha1:3968a3a4f2f6601dca48b95961539c19c8e0d0d1 + pristine_git_object: b8df56c153d7bb939a044c772c1995bdf9bd10b4 + docs/models/payments/V3Connector.md: + id: 2ece76192f8c + last_write_checksum: sha1:4477adb5878cf9928be586e40138d1b02b545f8c + pristine_git_object: 1198d501d6e971938de6e67a89d76340a4490f46 + docs/models/payments/V3ConnectorBase.md: + id: d053e646481d last_write_checksum: sha1:b9b037f8565f398d7b9355eb8069769b15babec8 pristine_git_object: 536d9b0b2186ae58e06c8d52e94e92050a85cf46 - docs/models/shared/V3ConnectorConfig.md: - id: 91a245c4ca1d - last_write_checksum: sha1:d35b9a3f6d0382f471809a784dc0a40aa9ebb81b - pristine_git_object: 3b08b18494fa6fd86341b23f0d035694e871e016 - docs/models/shared/V3ConnectorConfigsResponse.md: - id: c6f3b8ad91a9 + docs/models/payments/V3ConnectorConfig.md: + id: d1cf7df33711 + last_write_checksum: sha1:c2a0fbf4b1faf7f433c4dc09f016d3210bcc29b4 + pristine_git_object: 95a6fe911d88424eb065b511c64db234d030cc2b + docs/models/payments/V3ConnectorConfigsResponse.md: + id: d0008adeb506 last_write_checksum: sha1:b207a0bf2fbacafe3b56c1695c691e27c07c03b7 pristine_git_object: b5d8ad00337ace0dd18b22a6da82a08d012b8b28 - docs/models/shared/V3ConnectorConfigsResponseData.md: - id: 94d59b42efc9 + docs/models/payments/V3ConnectorConfigsResponseData.md: + id: b9f05ac8a930 last_write_checksum: sha1:3c2548b96ef8c5c32d1849d923b57d8b13ea4fff pristine_git_object: ca970c3deb807063a5a41636081ff2262e1ff003 - docs/models/shared/V3ConnectorScheduleInstancesCursorResponse.md: - id: 52cc877a093c + docs/models/payments/V3ConnectorScheduleInstancesCursorResponse.md: + id: 85c9f553dd6f last_write_checksum: sha1:845d0e2c8c7c4d3bf9e61e862ffdc59053be436b pristine_git_object: 251eea6df0cc7d14d54f9c5575d59ac6014f8c33 - docs/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.md: - id: 89d70877abc4 + docs/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.md: + id: 80ea6a32408a last_write_checksum: sha1:c3a3a8f25fbbc87d8e8b480b14202fed3b4b6cc6 pristine_git_object: f2387f2ca8c3957b4328f522837646aae71bd849 - docs/models/shared/V3ConnectorScheduleResponse.md: - id: ae160ec155ee - last_write_checksum: sha1:7a0a9c2e708a381cf6bdcb5167fa2cec123c0bbe - pristine_git_object: ea76cefc4d221da78a79bf0bba638bae1240bf5c - docs/models/shared/V3ConnectorSchedulesCursorResponse.md: - id: f7673f5f0fad + docs/models/payments/V3ConnectorScheduleResponse.md: + id: 7b6a9d693c8e + last_write_checksum: sha1:6b5c9fa4e37bdca3b633cab6c8782aacc8dbdd71 + pristine_git_object: e4eb36ba219d75b50ce0066065e1ae6153ac8305 + docs/models/payments/V3ConnectorSchedulesCursorResponse.md: + id: 1dde4b2805ec last_write_checksum: sha1:7e9012b38af915fd96fead00dbcaea50790bcaab pristine_git_object: 09aca09720b40386ab13febd0084ae7877a0d44d - docs/models/shared/V3ConnectorSchedulesCursorResponseCursor.md: - id: cdc152718311 + docs/models/payments/V3ConnectorSchedulesCursorResponseCursor.md: + id: 21aba63117ef last_write_checksum: sha1:84eafe3db54b16bc5c68b0920bdedfacc96b96dc pristine_git_object: d055a392b5cf8ea143829d91d75b8823001dd9dd - docs/models/shared/V3ConnectorsCursorResponse.md: - id: b1627186cb4f + docs/models/payments/V3ConnectorsCursorResponse.md: + id: ca7ff7a9f568 last_write_checksum: sha1:eec1bbdf677f8de3ac02b180678fa72dfe578a6b pristine_git_object: 51a6ca4e167be02958346d10abc3e98c3e5e16a1 - docs/models/shared/V3ConnectorsCursorResponseCursor.md: - id: 9d3e3750262e + docs/models/payments/V3ConnectorsCursorResponseCursor.md: + id: 9de42ecf00a2 last_write_checksum: sha1:1eaca55617fcff56d7fd9dbd7c63cbb3a8c030f6 pristine_git_object: dd9fb3b5b2a08166736f83d139a27a396c78eec2 - docs/models/shared/V3ContactDetails.md: - id: eb32701e0691 + docs/models/payments/V3ContactDetails.md: + id: 7eb87ac0cccf last_write_checksum: sha1:dc8cc2c77d0d9994a6b9b7ab8f30e3328b20e820 pristine_git_object: 643312df2efdf0d2e10d0a58ba375853a8861c23 - docs/models/shared/V3ContactDetailsRequest.md: - id: f28d79459020 + docs/models/payments/V3ContactDetailsRequest.md: + id: 58247b5c9a89 last_write_checksum: sha1:3d4fd48417a042c4ed30c6362e862d3338801dbd pristine_git_object: fd4d9777d3eb4bbaf177c89dbc972ad5d7b4e590 - docs/models/shared/V3CreateAccountRequest.md: - id: c60f0ade2801 - last_write_checksum: sha1:7fc76bbae8ce75079b119663e0db3899f4ad1d9e - pristine_git_object: b5deb27722f9c3a3836766e98478cfa5ce750bd3 - docs/models/shared/V3CreateAccountResponse.md: - id: f306f39d8523 - last_write_checksum: sha1:28692ce4201bf90ccb176c2d1ccb883070af7d20 - pristine_git_object: 188405a2b1ccff589bea3adbec1f5d7efff040c1 - docs/models/shared/V3CreateBankAccountRequest.md: - id: 8b5edbf91b88 - last_write_checksum: sha1:57c2dc71bd9bb00c6d131ce9a6683401793eafd3 - pristine_git_object: 621de3fe32e685aed44d28fd1ea095d57dc2d470 - docs/models/shared/V3CreateBankAccountResponse.md: - id: 6e61e8ffbf7a + docs/models/payments/V3CreateAccountRequest.md: + id: 678c22f6d299 + last_write_checksum: sha1:9b6c914f36d158564782134d3790d542c7b3afb9 + pristine_git_object: 280c0e46830e2f595e82aac06e35b7ebc59bd851 + docs/models/payments/V3CreateAccountResponse.md: + id: f443f782a7b6 + last_write_checksum: sha1:8dfd1489e83d94c03fc68764adf85796df10a81c + pristine_git_object: a38aa1151242f43b46a3d2a2a82a58adbb3f468b + docs/models/payments/V3CreateBankAccountRequest.md: + id: 18e5b8859b1e + last_write_checksum: sha1:da99ed46f8ed80209f2d70717fb151e0d7b65b4e + pristine_git_object: d4842ac84c13d091aa4c0869223ae6d08352c748 + docs/models/payments/V3CreateBankAccountResponse.md: + id: 5ff846b2f1fc last_write_checksum: sha1:c8197eac1aac4b9b1db141eafcec166b5f702c19 pristine_git_object: ed1e32abc72c022007c49932b7e772f882dda993 - docs/models/shared/V3CreatePaymentAdjustmentRequest.md: - id: f0559d9b56c8 - last_write_checksum: sha1:2fe6f0771e22257102aedc27d87a8566773d7549 - pristine_git_object: 6824ec94a6ce9b94a57efb5758f7685a53bb2d25 - docs/models/shared/V3CreatePaymentRequest.md: - id: 4c98b118a458 - last_write_checksum: sha1:870beac8a4321f8d41a69a564b23912a13e608f3 - pristine_git_object: c5178f399d663bd24a87231d7a37e54aa3b35a80 - docs/models/shared/V3CreatePaymentResponse.md: - id: bf278fa817e6 - last_write_checksum: sha1:14bdbe4a5bc72a1f2f8ee028ccea559cf2adbb86 - pristine_git_object: c47b6be0b0fa6c6b9627f0b048f14b70760de1d5 - docs/models/shared/V3CreatePaymentServiceUserRequest.md: - id: ba8086ed1b38 - last_write_checksum: sha1:d56dfbff553dc92b8f0aa0b3e639350f07839027 - pristine_git_object: 7db3a472648800a04238ec2a1d34dde77ea7c4b9 - docs/models/shared/V3CreatePaymentServiceUserResponse.md: - id: 5afbf2353dd9 + docs/models/payments/V3CreatePaymentAdjustmentRequest.md: + id: 426a3f151fab + last_write_checksum: sha1:7eebde41109e7d2dc09763fd8ec950288a0adfe0 + pristine_git_object: 8a4d85fee8b4e94d576cd91003ecd757b7d557a0 + docs/models/payments/V3CreatePaymentRequest.md: + id: 855a3f47a3f4 + last_write_checksum: sha1:0979b1e110280be10184c2427427d61fd65683ce + pristine_git_object: e3f3d2825038f5aa051948e7a37af02f9963fe34 + docs/models/payments/V3CreatePaymentResponse.md: + id: 730b9118dfff + last_write_checksum: sha1:89090f717c5e25831a6946511fe07e705ee1773d + pristine_git_object: 18c47ee1177f0fd6478d61f4dc9d613dd5a1d4de + docs/models/payments/V3CreatePaymentServiceUserRequest.md: + id: f1234bf2dda1 + last_write_checksum: sha1:ea8f755b39ac7a48da202cad9dd0d90cc2cae2da + pristine_git_object: adbf3670b83a6577fe53f2613bbaf0f0dfa72b1e + docs/models/payments/V3CreatePaymentServiceUserResponse.md: + id: 3fe8e36a638f last_write_checksum: sha1:d4e461b2c419101584ef9503ca91646ecd67b5fe pristine_git_object: 67e21482cc62413ad1b54756a0bf9d03a9a59ea4 - docs/models/shared/V3CreatePoolRequest.md: - id: d1f1324b7afe + docs/models/payments/V3CreatePoolRequest.md: + id: 988dc3fd79ef last_write_checksum: sha1:5b930b73a08fe3a2773a41a8a18312cafa4d6ba6 pristine_git_object: 2fe8131d02726d349ebf608ea76477d2b3c07229 - docs/models/shared/V3CreatePoolResponse.md: - id: 8b91e2be80c4 + docs/models/payments/V3CreatePoolResponse.md: + id: 2f3386f343df last_write_checksum: sha1:e68d2164c439e539906c0d2701bf6a448e403e2b pristine_git_object: b39190466fab8ee02cb4a4ac232bec405ce0d703 - docs/models/shared/V3CurrencycloudConfig.md: - id: c0dd7ae14cb1 + docs/models/payments/V3CurrencycloudConfig.md: + id: 9454812dc7d9 last_write_checksum: sha1:818aaa901b4cf4ef5e3c5081ce6de661d9deccdd pristine_git_object: 604ba92814bd17391c7fc9ac17936c6f9ccb5278 - docs/models/shared/V3DummypayConfig.md: - id: 8d325f90733a + docs/models/payments/V3DummypayConfig.md: + id: 317748fec0eb last_write_checksum: sha1:27873ac7b3a3d7b91f47d8d54c51ab6aad446a0e pristine_git_object: de8099e76c08939380c51cb520e7d8d15138eaa7 - docs/models/shared/V3ErrorsEnum.md: - id: 71b904377eac - last_write_checksum: sha1:3cae63e8826ab507768263b6c2756f785029d59c - pristine_git_object: 6285079f044e0584774db5d2d05ce3d77b1fcddc - docs/models/shared/V3FireblocksConfig.md: - id: a67460e33330 + docs/models/payments/V3ErrorResponse.md: + id: ff02bc190c42 + last_write_checksum: sha1:0a0d80e2de398ac65ee02cee771cb4c21b6cff06 + pristine_git_object: 815e36b9c56cd6820cca73698df04ba2f9e17231 + docs/models/payments/V3ErrorsEnum.md: + id: 13f23b3d8927 + last_write_checksum: sha1:3da35fbfbc42bec57a6e1839b9a738d2688ad791 + pristine_git_object: a2423ae47423218a5955f5bdf99f85a0ce3494c0 + docs/models/payments/V3FireblocksConfig.md: + id: 999d5455c774 last_write_checksum: sha1:87524f34837bb159405530c5928716d54929ae55 pristine_git_object: 822c53733b919a1d5eecfa13176111538d658b5c - docs/models/shared/V3ForwardBankAccountRequest.md: - id: bbb4121be685 + docs/models/payments/V3ForwardBankAccountRequest.md: + id: 54afca7a9bcb last_write_checksum: sha1:98e64ac91e8e7f73cadb477fe69c0de3d64960c9 pristine_git_object: 149a6b36612db476a5d7daa6e9bc7db698179e3f - docs/models/shared/V3ForwardBankAccountResponse.md: - id: bb4ed84ff91f + docs/models/payments/V3ForwardBankAccountResponse.md: + id: e7c05cbb41c9 last_write_checksum: sha1:17ae01fd2bbf99d43d3267b45045c465fbcdc8b0 pristine_git_object: 79b1a9d5e8746524f80bbb2f36505fc7dffa67d4 - docs/models/shared/V3ForwardBankAccountResponseData.md: - id: 9853d114c9b1 + docs/models/payments/V3ForwardBankAccountResponseData.md: + id: 68c285795047 last_write_checksum: sha1:d0180db3b7ce8a6e651e53e332599a2e612738a6 pristine_git_object: d3ded02485cc252da2bdb51f5fa38d17d8e3c3dd - docs/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.md: - id: b3f45d128217 + docs/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.md: + id: 00fbe1eddad8 last_write_checksum: sha1:db0b03b4040417b3f6d6f1ef141f63f74676e26c pristine_git_object: e42c2f4520dd8166e0a694174451354f0b41ede0 - docs/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.md: - id: 4dba026129f7 + docs/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.md: + id: bc93c30a724b last_write_checksum: sha1:a1d99acf529a2da0dbbb36b5d7d0edca393edb9c pristine_git_object: 7da33befb2e57bb635718ac4e05fc495367ac30f - docs/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.md: - id: 148a7a9746a8 + docs/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.md: + id: eb61021c5fa2 last_write_checksum: sha1:01cd9ff3f28514f34d1e7aceb20a9a8a9bc82198 pristine_git_object: ce27b17d65813494098b9b3069c3da703c4ff2ee - docs/models/shared/V3GenericConfig.md: - id: 6954d2b3c9bb + docs/models/payments/V3GenericConfig.md: + id: 9858d8d36a0c last_write_checksum: sha1:756ac6326233d89036586feaef5bbb54338f93e9 pristine_git_object: 7bcb942cd7cb7920b5feeb5a2bef6795db62657e - docs/models/shared/V3GetAccountResponse.md: - id: 5c9e349c4c7f - last_write_checksum: sha1:0b47fcd408d4ec03aa45bdd190f91623946a618b - pristine_git_object: 17ae8a74c90580e65e8ffb11fe53cba9557a6dac - docs/models/shared/V3GetBankAccountResponse.md: - id: cb9fa678e8e3 - last_write_checksum: sha1:c42c0a76cf573b5c05cd953de4b78d66702a76f6 - pristine_git_object: a09558bcc3da751790932f7ec4ad79d3441ddaa9 - docs/models/shared/V3GetConnectorConfigResponse.md: - id: 9c682af87050 - last_write_checksum: sha1:9d7bb954a0e6007bf221cb76bf74ce7af2212bb7 - pristine_git_object: 3b772267abe4976b9625c6a9e6a2d4f22df36139 - docs/models/shared/V3GetPaymentInitiationResponse.md: - id: da548c63e786 - last_write_checksum: sha1:d2a99a47ed18ebec2829ecc8f7f0254f03b704a2 - pristine_git_object: 6f2ca099599bec14a111ab1f8edb9b0b9985b450 - docs/models/shared/V3GetPaymentResponse.md: - id: 76c8e2bab440 - last_write_checksum: sha1:a4e4878098521c21d6e620d9f67351a7d1c9bd84 - pristine_git_object: e6b446f321054cc58f7380ad56fb617d923e516f - docs/models/shared/V3GetPaymentServiceUserResponse.md: - id: fdb56dac0107 - last_write_checksum: sha1:1b913a7702234e51a674cca01cc27b85280b9f75 - pristine_git_object: 8b548e863bb31ff440957293a37f00d749993f56 - docs/models/shared/V3GetPoolResponse.md: - id: 3e7b3a84e729 - last_write_checksum: sha1:5c6c4ad8f7fb373e33a3ed4074a9109daa4e58b1 - pristine_git_object: 5a4e464c504c0c1b270b62ba6e7c658c84ab8a1e - docs/models/shared/V3GetTaskResponse.md: - id: 481dcf0e3443 - last_write_checksum: sha1:65782c64cb26fed5ae29383531a2c510f739f0be - pristine_git_object: 8bee0e534be793c06bb31f77f875bbb6abc22f53 - docs/models/shared/V3IncreaseConfig.md: - id: 4271b4238ae8 + docs/models/payments/V3GetAccountResponse.md: + id: 44cc503b28b0 + last_write_checksum: sha1:35472f304828553773940c966fe4e201b42a563d + pristine_git_object: c286a0dc4f427105bf9a1faa7a37f902fb60d2ab + docs/models/payments/V3GetBankAccountResponse.md: + id: 27f2eb2e7a12 + last_write_checksum: sha1:a447f7ddbc4d7b46d90bc4ec4a5d4563d7bc0981 + pristine_git_object: 6cbbf60c35797a2e4521bff4407e62b3039658e7 + docs/models/payments/V3GetConnectorConfigResponse.md: + id: e657bd806c91 + last_write_checksum: sha1:68b0a1672843331c2301e4a7777fb0247b11224a + pristine_git_object: 531f95d6bf89c57081a34716871926be68e2ac69 + docs/models/payments/V3GetPaymentInitiationResponse.md: + id: 8f9e15ca4ffb + last_write_checksum: sha1:260f273be84d45d5e0b09c25e86e84db31069ccb + pristine_git_object: 08be88c5e835a8b5e559afa7e49a228e4e76c314 + docs/models/payments/V3GetPaymentResponse.md: + id: 1284de6c6775 + last_write_checksum: sha1:40c724bcd00724c490333401fac5a774915dacb7 + pristine_git_object: 35dea75e3479eab52b1c9f537ce40dd7c0e322c2 + docs/models/payments/V3GetPaymentServiceUserResponse.md: + id: a11cc1284628 + last_write_checksum: sha1:a9afa3846c2b02b13e9a58672b9407de262d264d + pristine_git_object: 9e632bee5a28a6f31f5b59ffab855ebea03fbac2 + docs/models/payments/V3GetPoolResponse.md: + id: ae7eff7f912a + last_write_checksum: sha1:d978fed836b71cf70e1529c47bb9cc95576c9198 + pristine_git_object: 331044c91b0960aec6845f3ba786eddde3951c4e + docs/models/payments/V3GetTaskResponse.md: + id: 808eb99664b6 + last_write_checksum: sha1:c261a54d47dae477c5624b52ef0f56e03cf6767f + pristine_git_object: ae00d8498a0dea8792dc2abb929182c5ddf61db1 + docs/models/payments/V3IncreaseConfig.md: + id: 09a4e13da1db last_write_checksum: sha1:e8fbb4ef321fa28c0934de1e98db12febee92fbe pristine_git_object: 899186fbcf2ed6682d65ba9c2942fcc1451732ef - docs/models/shared/V3InitiatePaymentRequest.md: - id: be8c7af78313 - last_write_checksum: sha1:5fc84820d0f646307a56ab32e364dfe5df5d1f78 - pristine_git_object: 008426db9f64cb205a7dde799fbc605576fae4ee - docs/models/shared/V3InitiatePaymentResponse.md: - id: d28b6bfe4dd0 + docs/models/payments/V3InitiatePaymentRequest.md: + id: 6988bd751617 + last_write_checksum: sha1:fb3351ad7365d4cb7d2fd13925b9544b389a7cc3 + pristine_git_object: 46a29f8ba15691882ae2f5c59473331a6d3145a0 + docs/models/payments/V3InitiatePaymentResponse.md: + id: 5c3c35bf86b0 last_write_checksum: sha1:80bb9e7c5a91d11c0cc4cec0be1a643360067d43 pristine_git_object: 624e539979ff68042b9bf82d1a9981d4f35f4e8f - docs/models/shared/V3InitiatePaymentResponseData.md: - id: 900470e2c33e + docs/models/payments/V3InitiatePaymentResponseData.md: + id: ac1024a52389 last_write_checksum: sha1:d1ba8a1b03a6bd1b01b785fd459b59f2a770fbff pristine_git_object: 2b271af37afcb12bb03fb4294d6ea7971c8a2434 - docs/models/shared/V3InstallConnectorRequest.md: - id: 59111c824f28 - last_write_checksum: sha1:fe63e3ad365e979d96a29f09b8fc20830bd37146 - pristine_git_object: 3b6273f8cf3fe3542ae53824df7d50c284046bf6 - docs/models/shared/V3InstallConnectorResponse.md: - id: 914d863aa5c2 + docs/models/payments/V3InstallConnectorResponse.md: + id: c23f1319b3e4 last_write_checksum: sha1:057efcf8d84637ddd4bbae91593fdec9fa0345d8 pristine_git_object: 8d359eb7f5fadfbdd4cdde9489bb4327e048d221 - docs/models/shared/V3Instance.md: - id: 102898c7680d + docs/models/payments/V3Instance.md: + id: 0fc166973df6 last_write_checksum: sha1:6ac922dcd5a6091512b8b496736d22f29cf813ae pristine_git_object: 672e36c4c70d005ce42e75ba6b0fa44a04b5ab02 - docs/models/shared/V3MangopayConfig.md: - id: 47f30207860c + docs/models/payments/V3MangopayConfig.md: + id: 29fb7d9d5058 last_write_checksum: sha1:eacac3ac5fa7d1f57fd7afaba1a39d9d75bf1cea pristine_git_object: 27c4fbaef97bd2e4b13172fa85f9887acbb787af - docs/models/shared/V3ModulrConfig.md: - id: 49c7046a5c5a + docs/models/payments/V3ModulrConfig.md: + id: 4b84e34fc9c4 last_write_checksum: sha1:8665afef3970b6481e6bb483b86ad6ef02b5c7e5 pristine_git_object: 5aea1d2b7f4089982c5a61fd3035cd8c62f37fcd - docs/models/shared/V3MoneycorpConfig.md: - id: 9fa0e842e1ad + docs/models/payments/V3MoneycorpConfig.md: + id: 1b4bc444f716 last_write_checksum: sha1:cd46475e4d2f4cae43354ddf1660605ef58d341c pristine_git_object: 226950f822b564ae4bb16f5b905a2f3701686f21 - docs/models/shared/V3OpenBankingConnectionAttemptStatusEnum.md: - id: c57830ebbc8e - last_write_checksum: sha1:2365d1c4dd02e7a6f134f111f99f60d16715ae33 - pristine_git_object: 08de4792007a2a43fef5044665aff09a3ee379f6 - docs/models/shared/V3Payment.md: - id: cf58c9bd595c - last_write_checksum: sha1:f4a0bfc7a73ca6c1154668c9b58055f3da1b5753 - pristine_git_object: 2f35f2b5b944cc9cd535527de4d696c83894c7f8 - docs/models/shared/V3PaymentAdjustment.md: - id: 38c19f315733 - last_write_checksum: sha1:5fe84c1abdcd746c9ca228cbb2b2a870bd0db216 - pristine_git_object: 0ae5098f79b7ad7280d69b684a72f8e15acb6106 - docs/models/shared/V3PaymentAdjustmentRaw.md: - id: befd99828a31 + docs/models/payments/V3OpenBankingConnectionAttemptStatusEnum.md: + id: 5f25d0eff29a + last_write_checksum: sha1:ee481a005480f2a5e98754a6abe27058c2e66452 + pristine_git_object: ebf79a0c5f3c2acbe83ddfb10097b346f95d4b42 + docs/models/payments/V3Payment.md: + id: c75bbdf0cc89 + last_write_checksum: sha1:7b7b3f6ab3608786fbeac365ae124ae09b2c7bc6 + pristine_git_object: 573f1a3fee8f6649c7950484a885c79e0afa86e4 + docs/models/payments/V3PaymentAdjustment.md: + id: e2e298ad2725 + last_write_checksum: sha1:e16e250f011d3a3f5147138175ba55a36ed30b46 + pristine_git_object: 24912d8b7e0e5187eb46c1f58d3b44c224fe063a + docs/models/payments/V3PaymentAdjustmentRaw.md: + id: 4b005215c215 last_write_checksum: sha1:36fb51ef791a0ae71cc046e851e82c048d93c730 pristine_git_object: c2068f70632928514561cd87acbb2a40aedd62f0 - docs/models/shared/V3PaymentInitiation.md: - id: afcf494b4e6e - last_write_checksum: sha1:fe432f6675b5e46ee20d1f26de2438117964bac1 - pristine_git_object: 8137e32757b93c5103428b4d6d11c4dd02603721 - docs/models/shared/V3PaymentInitiationAdjustment.md: - id: b76be9cd3b3a - last_write_checksum: sha1:7f3d6fc0772ff0780beab15a50ab50154d207bb0 - pristine_git_object: ee21a369e8b914290447a344e20a588ed690491d - docs/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.md: - id: c1685eb36434 + docs/models/payments/V3PaymentInitiation.md: + id: 5e24ed82d6dc + last_write_checksum: sha1:bc357a38428d3b787e287e92643171b1defda109 + pristine_git_object: 2ef1fd93267381d419b6c887b9a17f9052f67416 + docs/models/payments/V3PaymentInitiationAdjustment.md: + id: 504f796c12d9 + last_write_checksum: sha1:454e565ec02f068ae25330d7e19b4bb4354c1612 + pristine_git_object: bdca894986e026449bf71b9ce9835e5b92cc6fd8 + docs/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.md: + id: 5374bc3a730c last_write_checksum: sha1:55737e251744898e87863dd8294d3508e7205dfa pristine_git_object: 72e1a8762ac7a1de56dfbcf1b1b8200bdecda0f6 - docs/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.md: - id: 4a2a2fbfd6ed + docs/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.md: + id: 6cabfd1ed2d9 last_write_checksum: sha1:b6bdead6a943267f9a287135bd1676f5e225fa47 pristine_git_object: 32bd5709d80a218ff20ab8d8c65a01fda7d166a0 - docs/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.md: - id: bf64e50e1690 + docs/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.md: + id: 7419405ed6f3 last_write_checksum: sha1:388e857cc72d9760cb41f3736b69760f26a8c505 pristine_git_object: 3a04e7ba5f5d875a0e7969691c7d4c28e51fd1d2 - docs/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.md: - id: f9db64cd4aec + docs/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.md: + id: 1148e8e4400c last_write_checksum: sha1:593a2497160aa57c211df920f8404f67023deb88 pristine_git_object: 6eb9f03641f111623cff1981a7be88410584e2c9 - docs/models/shared/V3PaymentInitiationStatusEnum.md: - id: cee196170f3b - last_write_checksum: sha1:8e9cef595bf6e1b73c1b7262ca9df912ade0516b - pristine_git_object: fafb1430d0975942ec2134a4168d25fc32eec22a - docs/models/shared/V3PaymentInitiationTypeEnum.md: - id: 3b5130a89414 - last_write_checksum: sha1:20b76d1d7bbd172afc5d536dd02fad63245e0fc0 - pristine_git_object: 6b627ca8638cd9bb89a7f6cff796903d70430cd0 - docs/models/shared/V3PaymentInitiationsCursorResponse.md: - id: fdfe627afd8b + docs/models/payments/V3PaymentInitiationStatusEnum.md: + id: 625a88dd3e60 + last_write_checksum: sha1:ca49472465012a6fa79ef7c6e61a19702f5dfb14 + pristine_git_object: 15e66752c8528f62b4d8f3574ba20b92b11b7197 + docs/models/payments/V3PaymentInitiationTypeEnum.md: + id: 9dc733923ec4 + last_write_checksum: sha1:88d7e34d15a40fb61fabf5007b3500f5c83b575f + pristine_git_object: 96d566e4aae4a96b274a5e6b0d8df66fcb11443d + docs/models/payments/V3PaymentInitiationsCursorResponse.md: + id: a2ff264123fa last_write_checksum: sha1:129eee39c732668399d9eb789a67d65aef1a898f pristine_git_object: bbbf492c929ada17a5fe1fb77bd29b35eca5b801 - docs/models/shared/V3PaymentInitiationsCursorResponseCursor.md: - id: c846a35450a3 + docs/models/payments/V3PaymentInitiationsCursorResponseCursor.md: + id: f7b2641c645a last_write_checksum: sha1:3640fb4b57a479d812d1ef81699f97583f509fdf pristine_git_object: 5e927e8d35691fbdd5b9d0aae571d5b0cc7d43a1 - docs/models/shared/V3PaymentServiceUser.md: - id: 5b714cdfac55 - last_write_checksum: sha1:8131e076b3301898bb882af2960d7b20b67af2e0 - pristine_git_object: 11d10e12ebc8ca8769928329f2b4b9ff4ee359f7 - docs/models/shared/V3PaymentServiceUserConnection.md: - id: 46198a5fed8a - last_write_checksum: sha1:9baafa0c0e3b6be84691ea5c71531763e087a8b3 - pristine_git_object: 7f71c7ca60bf77664fcbda458ff69abd6bfa9bd1 - docs/models/shared/V3PaymentServiceUserConnectionsCursorResponse.md: - id: 818e17a6d1f3 + docs/models/payments/V3PaymentServiceUser.md: + id: e303da16dfe4 + last_write_checksum: sha1:b7679ec0efe0369f3b05ae0a33734644d7616a5e + pristine_git_object: f9be9bb3cc174eeaed9afe66e4c412ce82253bb4 + docs/models/payments/V3PaymentServiceUserConnection.md: + id: 1ff3e4b7b65e + last_write_checksum: sha1:020505ed9a38efe31f04818a2ac1ced1750cb4c5 + pristine_git_object: 384982f7fdc594ec0097c9cce7a1828fcba94416 + docs/models/payments/V3PaymentServiceUserConnectionsCursorResponse.md: + id: 13d61ba0a3f3 last_write_checksum: sha1:7bdda87e577809031bc313bf00c4cced9e48aed1 pristine_git_object: 37cec83c7004a0fb7f62b921c1e143e8b89b8b08 - docs/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.md: - id: 40e96249710e + docs/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.md: + id: c269d6c359ae last_write_checksum: sha1:306ce5ef0123bdc527269ca937e6215597f89766 pristine_git_object: 563bff948f0915ea7ec4d9ce81ff6d21c3a51079 - docs/models/shared/V3PaymentServiceUserCreateLinkRequest.md: - id: 71fb2b9c0fc9 + docs/models/payments/V3PaymentServiceUserCreateLinkRequest.md: + id: 31d20756d488 last_write_checksum: sha1:1fe3d4e0269ab8453169b45ab525c99fdd54dded pristine_git_object: 848bdf00aa4795fa7d909f7144195d18e2e1b893 - docs/models/shared/V3PaymentServiceUserCreateLinkResponse.md: - id: 31133e7c989b + docs/models/payments/V3PaymentServiceUserCreateLinkResponse.md: + id: 0d2486b666cf last_write_checksum: sha1:f1138ddd7f188132363ca3f15249e44b161e4697 pristine_git_object: d05ddd652592eb86a134d911010a765793e6f38f - docs/models/shared/V3PaymentServiceUserDeleteConnectionResponse.md: - id: 7ba4362c0b0a + docs/models/payments/V3PaymentServiceUserDeleteConnectionResponse.md: + id: f35073941ba0 last_write_checksum: sha1:d4ad5ca0043d88d243b733e314a0c7cbc6cdf175 pristine_git_object: fa14d5a5e86e314ca9c5194d97e3ab8f8d9f8b18 - docs/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.md: - id: 32e9fe7cbc18 + docs/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.md: + id: f67fc44236e7 last_write_checksum: sha1:caa79caa814956c4816239e7ad69aa0ad2411066 pristine_git_object: 332e0466cc14db55748e641db87b2256016f07fc - docs/models/shared/V3PaymentServiceUserDeleteConnectorResponse.md: - id: cd3caaff9477 + docs/models/payments/V3PaymentServiceUserDeleteConnectorResponse.md: + id: 2a2db1b9eb59 last_write_checksum: sha1:d65f5271550ec67f1376fb5b824467f9c9273665 pristine_git_object: 2c7f5548945735f3fe5eaf80c99d5cc7ec248f62 - docs/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.md: - id: 9340272342c2 + docs/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.md: + id: 34bcb47d5852 last_write_checksum: sha1:99fe7ed20b1e0eee98f57a1bc3c68fbb7c0567ef pristine_git_object: 0e3ef0f3fd661c61bf842bbd4be739069002866d - docs/models/shared/V3PaymentServiceUserDeleteResponse.md: - id: b1a5db4da3b1 + docs/models/payments/V3PaymentServiceUserDeleteResponse.md: + id: ad05f5b7a844 last_write_checksum: sha1:e905eb9ed35b515a41eea442692453b14579296c pristine_git_object: a054b19247341a5dc364b5f725c82789b7e2d06a - docs/models/shared/V3PaymentServiceUserDeleteResponseData.md: - id: aa4b5a2ef204 + docs/models/payments/V3PaymentServiceUserDeleteResponseData.md: + id: 41f48ada9d74 last_write_checksum: sha1:f411adf5344cca4fec721858c3c6ccf3b5779b2e pristine_git_object: f5c6768f56ad98c09e62498266c1c26aa976ce23 - docs/models/shared/V3PaymentServiceUserLinkAttempt.md: - id: cd4eb4ed590c - last_write_checksum: sha1:7b4c6ef39d2ec11da71fa73cf734b71eb235f45e - pristine_git_object: 85e905aeebe2e8befdc9e6f33c911d5c852026cf - docs/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.md: - id: e9b6395a21c5 + docs/models/payments/V3PaymentServiceUserLinkAttempt.md: + id: 34658c50f3c8 + last_write_checksum: sha1:34d151de9c1d5b39f39f6f64555a5d89ffbe33a7 + pristine_git_object: b5b0e6cb3e8244855e106a512c73f8adc396fb90 + docs/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.md: + id: 2eaffc507466 last_write_checksum: sha1:4060c53f34bc35962a54a1688c7f40911bb97680 pristine_git_object: 59e4e419ebd63e34b220bd82c41fc4ebc1e67e0c - docs/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.md: - id: 7dbe3b1f654d + docs/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.md: + id: f25bab8b9b2a last_write_checksum: sha1:253cd7cdf6cf5f34bb84a2e6bfb7f3966749a954 pristine_git_object: 00c4f0b18f6b5e52bc1c071f79df0fc3f3e4353a - docs/models/shared/V3PaymentServiceUserUpdateLinkRequest.md: - id: b1cfc877e6a7 + docs/models/payments/V3PaymentServiceUserUpdateLinkRequest.md: + id: 8caac446fba8 last_write_checksum: sha1:3fc64082a2072e04195174c9a6433d9b01fefcdc pristine_git_object: b3f340f9c925733264a594d47a7270feb2c45aeb - docs/models/shared/V3PaymentServiceUserUpdateLinkResponse.md: - id: 401433ca06cb + docs/models/payments/V3PaymentServiceUserUpdateLinkResponse.md: + id: 53eeb72ebe11 last_write_checksum: sha1:1455e5ab451e9486ea52719ee3fb56a29cbdc944 pristine_git_object: 44ac9f09063e83a59b270ad863b2b556ced2455d - docs/models/shared/V3PaymentServiceUsersCursorResponse.md: - id: 044f88eda77e + docs/models/payments/V3PaymentServiceUsersCursorResponse.md: + id: 824c159cbfa6 last_write_checksum: sha1:e84d2d6473bab5a6ee228bd79bbc73fa2fb5001b pristine_git_object: 4880709eefc1431b95ff48ced052ea7a021e55b7 - docs/models/shared/V3PaymentServiceUsersCursorResponseCursor.md: - id: 88a65f6662a1 + docs/models/payments/V3PaymentServiceUsersCursorResponseCursor.md: + id: bac83c7b38c9 last_write_checksum: sha1:496d468c37aebb5cdfbdaa374582a4d29980250a pristine_git_object: 1890303c4622af89cf21e71383d74772b8378e0c - docs/models/shared/V3PaymentStatusEnum.md: - id: b1adff5ecfc6 - last_write_checksum: sha1:1b642e68d657747d394a7736da19bf83c1b4be44 - pristine_git_object: 1a44137b612c325cc224c8e729f46ab21623e3eb - docs/models/shared/V3PaymentTypeEnum.md: - id: 62ebe72f6304 - last_write_checksum: sha1:71e05dbc0be5b42342eec0392266494590d72ba3 - pristine_git_object: daf923a03c200ede9f030865e1dd1abe4c07d0cb - docs/models/shared/V3PaymentsCursorResponse.md: - id: e20807120def + docs/models/payments/V3PaymentStatusEnum.md: + id: 45e8d4aff2ea + last_write_checksum: sha1:7a43fcbd6b074250ab644681144025758d024fca + pristine_git_object: 02f17a4129ef2a9205d15af58ee16e6e7166cddf + docs/models/payments/V3PaymentTypeEnum.md: + id: 43e069c308e8 + last_write_checksum: sha1:0e42a0fa246483b170f6f51975363931c1565a49 + pristine_git_object: 40e7f9384eaa7a286b2dbd75e8eaf3f9e28fe43f + docs/models/payments/V3PaymentsCursorResponse.md: + id: c74561770f26 last_write_checksum: sha1:7e0808cca646f5a37283a1fec76aae7fdb75ff1f pristine_git_object: 78909d5e860480b354a0cb53a2668c3f724f97ef - docs/models/shared/V3PaymentsCursorResponseCursor.md: - id: 81063cbfb3ca + docs/models/payments/V3PaymentsCursorResponseCursor.md: + id: 2f44b0a8d6d2 last_write_checksum: sha1:093a6a4b92cfbf19753b7028e3f20513a3fffc09 pristine_git_object: 972d4b8baca405491301fa96ea70e203201e3eaf - docs/models/shared/V3PlaidConfig.md: - id: a8436218d2bd + docs/models/payments/V3PlaidConfig.md: + id: e2b22fa525c0 last_write_checksum: sha1:288d7f0e40db123d0879031cf591647e970d1c23 pristine_git_object: bdda30076439bda20b3c8a5ce964b56abe0d89d1 - docs/models/shared/V3Pool.md: - id: 18ae43a26a3d - last_write_checksum: sha1:e28da4bd1618b4bf5529c61e6b9dd14ffe166921 - pristine_git_object: 8d77f2005a9155d93a05f5b198eacb374280c330 - docs/models/shared/V3PoolBalance.md: - id: 1b80e53fbc19 + docs/models/payments/V3Pool.md: + id: 583e879d1333 + last_write_checksum: sha1:a7a62e5687efde1b4b8a727ecd51f05607212196 + pristine_git_object: 17f22240474150eef5dfc05a8e0de196d2aa15b8 + docs/models/payments/V3PoolBalance.md: + id: a3229ab99a91 last_write_checksum: sha1:86559d1cb8d0531e318a24c0f1adc2e060fde1fb pristine_git_object: c746b7e60456d62f729922deb43fb4d922370113 - docs/models/shared/V3PoolBalancesResponse.md: - id: 4a0e29a5b710 - last_write_checksum: sha1:c6e9d5e7e23e339d4df687f77a3f456cd8cea915 - pristine_git_object: 7561ac92467b53e03824d21db5c15f8b4c5ea32c - docs/models/shared/V3PoolTypeEnum.md: - id: a3edc4af2d9a - last_write_checksum: sha1:962d5167cd3d753a403b4fcf317e3c3a997510f0 - pristine_git_object: cd4d092f39225223d06b763ed1278e7671cb118e - docs/models/shared/V3PoolsCursorResponse.md: - id: 321be7eeb844 + docs/models/payments/V3PoolBalancesResponse.md: + id: a8d0a7044c77 + last_write_checksum: sha1:f2d4c8b66732a99e07b3b2256ccc44b12728948a + pristine_git_object: 96040dcabda7f3b4d53aa75b5b867dd227b773ef + docs/models/payments/V3PoolTypeEnum.md: + id: 8c52a6ad5972 + last_write_checksum: sha1:42f8109576f52c265b7fe01c7f915ad2ece9f06e + pristine_git_object: 7da4d41b10b8d01a2e81a970069f4d120c55d133 + docs/models/payments/V3PoolsCursorResponse.md: + id: 3514b3aa2169 last_write_checksum: sha1:5e04f6156987a9c7f86d713791a9e4f3bcf8294e pristine_git_object: 5b6591930d3ead22cff9b657532f58b6f32c4ea8 - docs/models/shared/V3PoolsCursorResponseCursor.md: - id: c4e2ac794766 + docs/models/payments/V3PoolsCursorResponseCursor.md: + id: 0265cbf5076a last_write_checksum: sha1:974987ca1f09d9b7cac8ccc2150b54f3f0d9c25e pristine_git_object: 5ed4a4d04b1cf05a80c3fabc30aabaff242b2c6e - docs/models/shared/V3PowensConfig.md: - id: 6370a7f76eee + docs/models/payments/V3PowensConfig.md: + id: 9b343ce4841a last_write_checksum: sha1:0585f71bcc20619610846196cb8eb1a0087e3f20 pristine_git_object: 9b5058932ac6ec21e40e89a7ee6f83134e51989d - docs/models/shared/V3QontoConfig.md: - id: e778275e6259 + docs/models/payments/V3QontoConfig.md: + id: dae85f9ff6c1 last_write_checksum: sha1:adc61a24bd0f1c248d20d4a56afb602cde90e03e pristine_git_object: 173201b104266c74020d568b2fa7975ead3d4201 - docs/models/shared/V3ResetConnectorResponse.md: - id: bf555d219206 + docs/models/payments/V3ResetConnectorResponse.md: + id: cd91b70a4d6f last_write_checksum: sha1:1b8840fb9073f0af2287c47ab8082f0a53422c3a pristine_git_object: da0ca18737e0f55a9328e72838c5f0e595640253 - docs/models/shared/V3RetryPaymentInitiationResponse.md: - id: c71005b45b80 + docs/models/payments/V3RetryPaymentInitiationResponse.md: + id: befb913c1dfb last_write_checksum: sha1:6c8b90d81c81efc52b099d05503d4308d9675e05 pristine_git_object: c181cbc7ef571579d83872a3c0c1c553ee21c686 - docs/models/shared/V3RetryPaymentInitiationResponseData.md: - id: 2efeb357066c + docs/models/payments/V3RetryPaymentInitiationResponseData.md: + id: 726ef1f5197b last_write_checksum: sha1:e3b7b1a6c9460497065d0d312b093ba4b40a50ba pristine_git_object: 549dd243ac5d85295acf7fc218a89c9f35195f61 - docs/models/shared/V3ReversePaymentInitiationRequest.md: - id: b459c1da3531 - last_write_checksum: sha1:22ec5065b105a5f23dc8b404172c4de59b85ef8c - pristine_git_object: 37c0e8dd4baf61fc3106de9d574c66af594cdb20 - docs/models/shared/V3ReversePaymentInitiationResponse.md: - id: 929e171fb0b0 + docs/models/payments/V3ReversePaymentInitiationRequest.md: + id: 665bf1942269 + last_write_checksum: sha1:eb16dbd9441b141290841a40d0fa4647750d7ccc + pristine_git_object: 7f079c2a6828d14111c0598c25f5fe0e16a5187a + docs/models/payments/V3ReversePaymentInitiationResponse.md: + id: e79df427d55e last_write_checksum: sha1:65e9db280d3a8350c084abdc0a0202ab886263c9 pristine_git_object: 21a09549eac59cb35e553a9afa163d586509ecfd - docs/models/shared/V3ReversePaymentInitiationResponseData.md: - id: c021381f7138 + docs/models/payments/V3ReversePaymentInitiationResponseData.md: + id: 3ed776086600 last_write_checksum: sha1:2949d194beb1f3526315189895f8b7fe0f70fb03 pristine_git_object: 4b894ece478967262477a630621c494d49552dec - docs/models/shared/V3Schedule.md: - id: a8442089c47d + docs/models/payments/V3Schedule.md: + id: 0b6f7b66e2b4 last_write_checksum: sha1:659652013568703f4bf206461e00282533115d22 pristine_git_object: 382a14b1ea1cff82f956c08d46d3a922d353e8e0 - docs/models/shared/V3StripeConfig.md: - id: 98416c2d7c8a + docs/models/payments/V3StripeConfig.md: + id: a01b477c808b last_write_checksum: sha1:c831989bb361754559b506c619983aa547eb2bd1 pristine_git_object: 883293818a31944a7322ee827ea924b6d38ba4cb - docs/models/shared/V3Task.md: - id: 6a9edd4a8754 - last_write_checksum: sha1:3351a87a0f9232ef2b8d7fd22ee152b33e143af6 - pristine_git_object: 51ef50400e7700883706d346f1e8346e96c32983 - docs/models/shared/V3TaskStatusEnum.md: - id: 1769a9064dcf - last_write_checksum: sha1:3c9362797a36d2bd963f724650d68396ace1100a - pristine_git_object: fa3feb1e488ab6d1f94b70dd1b528e8c2395e6ac - docs/models/shared/V3TinkConfig.md: - id: bf61eb8ea8f3 + docs/models/payments/V3Task.md: + id: ad1c2415918f + last_write_checksum: sha1:9053ea8c54072510b2b72a2f6931b90a725192fd + pristine_git_object: 1f06b94bb5abf24dfa3344e9629d405491728786 + docs/models/payments/V3TaskStatusEnum.md: + id: 577f3b742e6c + last_write_checksum: sha1:4d53c5e2d1002694faa426d6914f40f937fb1346 + pristine_git_object: c550f91031e759fedbbeda516494fd8b5eaf5b26 + docs/models/payments/V3TinkConfig.md: + id: aa69e0c2e05f last_write_checksum: sha1:8dfecd5c7fd28aaa87c91655bd5a94ca2e333f5d pristine_git_object: cdbcc252a2ffd18e3efdc31edf94c90342e4c8cd - docs/models/shared/V3UninstallConnectorResponse.md: - id: 3448c19bcac4 + docs/models/payments/V3UninstallConnectorResponse.md: + id: ccf89330d9ae last_write_checksum: sha1:51c92704ed77070c1ea38e839140060a5f8f57a0 pristine_git_object: 0a29db81ce2cd311dd3b296e07539043c5172dc7 - docs/models/shared/V3UninstallConnectorResponseData.md: - id: 72cb5354e9db + docs/models/payments/V3UninstallConnectorResponseData.md: + id: d18a301abbdf last_write_checksum: sha1:50f790565776bb61faffe9e8936176e5c555e212 pristine_git_object: 75779a93976cf60503add48736def90bb497cfe6 - docs/models/shared/V3UpdateBankAccountMetadataRequest.md: - id: 1027bdd95d38 - last_write_checksum: sha1:c8f32b0c7c42b9832a1c079775596feec6e6552a - pristine_git_object: 322c81ba92cf8f0d3b3ef7dd97980ee7f5755d27 - docs/models/shared/V3UpdatePaymentMetadataRequest.md: - id: 58caf3636cb4 - last_write_checksum: sha1:0f754bf2e4d83fd103293de85e9b69fcfe79f482 - pristine_git_object: 438682c0b2762c2f317f09c4c0975e9fcf6360b9 - docs/models/shared/V3UpdatePoolQueryRequest.md: - id: a56f4865d531 + docs/models/payments/V3UpdateBankAccountMetadataRequest.md: + id: fda6f70bd3b9 + last_write_checksum: sha1:469d113c6b7ef93f492f3af6b402e204d7d192e4 + pristine_git_object: 8f76f40c021f69a55a69a6edf8b3a2d22c3a4405 + docs/models/payments/V3UpdatePaymentMetadataRequest.md: + id: 9323f42f4640 + last_write_checksum: sha1:32f1a55355547deeb3c345275867e664465753d8 + pristine_git_object: 03c8aba11c7d157da26bbaea1c115734b2899970 + docs/models/payments/V3UpdatePoolQueryRequest.md: + id: bfd932167404 last_write_checksum: sha1:f0935bd8716398ce1991f0947aefec9653b549c6 pristine_git_object: a6442f777e79aa8df7a8efc6c3acc3b3eabaa0ee - docs/models/shared/V3WiseConfig.md: - id: bd5c639ed85d + docs/models/payments/V3WiseConfig.md: + id: 7e00bba1005a last_write_checksum: sha1:b3902fb961adf83854c45458906e0dcbc854bc47 pristine_git_object: 6a88f3c644e4d390c75827ac37a84ae58328b0f2 - docs/models/shared/Variables.md: - id: 845007ec944d - last_write_checksum: sha1:bd0744897ee4c7dc6ea150c144535e999ff5815d - pristine_git_object: eafd3ec78fa24bbc4bdfa155a421b10624ab418f - docs/models/shared/Version.md: - id: b9ef44296a3d - last_write_checksum: sha1:af923148d733517eb049c407cd1f4ccc8b23157c - pristine_git_object: bbeb1b43e318e6613a972bd23da61a7178b6f979 - docs/models/shared/Volume.md: - id: a5736a90eecb - last_write_checksum: sha1:f3814b4c9ce40da791a1700a8d27d86d87886cdd - pristine_git_object: a7d322c8cebb15316f5a421ef5df5a59e28995c3 - docs/models/shared/Wallet.md: - id: 2a4e67bce3cc + docs/models/payments/WiseConfig.md: + id: 9bca4e62a9de + last_write_checksum: sha1:4c26ba1ea18ff6e8d44a426dad098db27155d084 + pristine_git_object: 76fade3b039c1841715a5e6a8f14d57b20d72e70 + docs/models/reconciliation/ErrorResponse.md: + id: 55fc561df7da + last_write_checksum: sha1:1c36a2b9c9ed30a059c9304922cfeb506768a9a1 + pristine_git_object: c72f4be0c0f6ea2ff36d6b313832502616003d47 + docs/models/reconciliation/PoliciesCursorResponse.md: + id: e56c877c5fa4 + last_write_checksum: sha1:8de3b184a9ac273c2c76fdcc671a34465b0723a0 + pristine_git_object: 22edc7cd8eeb42b52da535253314690e22567f14 + docs/models/reconciliation/PoliciesCursorResponseCursor.md: + id: f7cbc2bbc3c6 + last_write_checksum: sha1:71554cd99f7a472c9b53514dbb96168e2c475329 + pristine_git_object: 7a044caca809744e021e2c3870591290568c4502 + docs/models/reconciliation/Policy.md: + id: 9858f962af7b + last_write_checksum: sha1:db67d1f874aa4d897480fe154176b8acda52a86a + pristine_git_object: 5b3c075bc297c2c2e1ee03d0a6063f39ca2eb26c + docs/models/reconciliation/PolicyRequest.md: + id: e8283d3783e4 + last_write_checksum: sha1:edf4898d55625e0aaecbddbe6343ea6d1b053cd9 + pristine_git_object: c51bacd30e7ab908856b0604a70c113a8e460ba4 + docs/models/reconciliation/PolicyResponse.md: + id: a2cdbf338aa1 + last_write_checksum: sha1:fad0db908aa61cb77475320d87d6dd797296b246 + pristine_git_object: 839458abb49792752da1ec494dee78812d3f466c + docs/models/reconciliation/Reconciliation.md: + id: 48e000c33d07 + last_write_checksum: sha1:5062b6cfb01f6d207d1d3111067497882139219c + pristine_git_object: d7188d82b0614d75fc182baecade8c7b36551a5f + docs/models/reconciliation/ReconciliationRequest.md: + id: 0b16c60c7169 + last_write_checksum: sha1:a3c4d29e6725c13ac01bc9e03efb0636958d847f + pristine_git_object: 58ab941f89812561c01eccb8cacaf39f2924f57b + docs/models/reconciliation/ReconciliationResponse.md: + id: 35c797ace3d7 + last_write_checksum: sha1:ebd950406736749984546200b18798ce6ef9aad9 + pristine_git_object: c9eb86ffd862a4c5bfb205cb0f35c7b71d33f39f + docs/models/reconciliation/ReconciliationsCursorResponse.md: + id: 259edccabee7 + last_write_checksum: sha1:93a1886050f5193ff8fd04f0a28cf846d4ab3af4 + pristine_git_object: 488900be65a86e80b566709be9d797a48f5bb32d + docs/models/reconciliation/ReconciliationsCursorResponseCursor.md: + id: 2925f65d2c98 + last_write_checksum: sha1:5235910597d2d9afcfe73578f08c325a5bd73dbe + pristine_git_object: 5d366a04c7bb7fbf8bfb372e039fbea7d07accc7 + docs/models/reconciliation/ServerInfo.md: + id: 1943ff598b9a + last_write_checksum: sha1:d1201e831a12fd3834e84c28d3d96416f81709d5 + pristine_git_object: 86404cd1b658a1c41569253e4beb630f69daab2b + docs/models/search/Cursor.md: + id: d057456520ec + last_write_checksum: sha1:eb9b1f55c8bb6088068bb83eddf162584b8948a9 + pristine_git_object: 799fa8828d4ce62d095a21d01eb486e5ed084e91 + docs/models/search/Query.md: + id: 0a5c0a0bda5b + last_write_checksum: sha1:835950a4dd918d387b2a65c12d6c49c306c3d8a0 + pristine_git_object: bbb17c65205292f1676410d1fd5a522186455147 + docs/models/search/Raw.md: + id: 008afcdd4ef1 + last_write_checksum: sha1:5ffca0ed42651b2d8b121990fcc1d634c0ae97f7 + pristine_git_object: 4d7c1a04f460a5a77c01815f9768ca8eee4d2633 + docs/models/search/Response.md: + id: 91d491d59f19 + last_write_checksum: sha1:3af0d2e614c8e395bf8012b1f73a9256b11c4d73 + pristine_git_object: 71bcd53a7c561b69e71d7bc42a0d99fe789fd9b5 + docs/models/search/ServerInfo.md: + id: e2c905084771 + last_write_checksum: sha1:97c8ce4fd5bff434e676fb32d23a9af2760126e1 + pristine_git_object: 375caaa222b143d0fa6148ffc9589cc5abdac0a8 + docs/models/search/Total.md: + id: f42c78889bc9 + last_write_checksum: sha1:c0bd14d744c7bcfaaeea9f60ca9562935e93c182 + pristine_git_object: 2dd1585778f5e994637ff737ff82a2e097cc9a5e + docs/models/shared/Security.md: + id: 81003b6bbb13 + last_write_checksum: sha1:44ec27db16ed05af620943d8a70d2339371e5a74 + pristine_git_object: 050ec68b7ed7b8dc9fb4b18fbde0a0061f63325a + docs/models/wallets/AssetHolder1.md: + id: 4aa87441eb79 + last_write_checksum: sha1:5709fb03ee7a1aa04dcfe264d4230bd302e59789 + pristine_git_object: 02f7547568dfe53a2561991af1d42dea8e6f9d1a + docs/models/wallets/AssetHolder2.md: + id: 533e05fcd833 + last_write_checksum: sha1:7ba066858072f94ac9ea5e44711630d935760288 + pristine_git_object: 2f55e3ed4456a2c2386200af84dbe9855ecdeb58 + docs/models/wallets/Balance.md: + id: d9e419595e04 + last_write_checksum: sha1:befa88e13804171b8d88400e2f75216d4f690d34 + pristine_git_object: b2d3b1ee04726fa29fe7147d5cc88cf753bac95d + docs/models/wallets/ConfirmHoldRequest.md: + id: ca0bd7482e91 + last_write_checksum: sha1:58798b9e65a04f00945985cb0292eaf105805ee3 + pristine_git_object: dd09b42d02b594cfa15560e5d823e46a5db79cde + docs/models/wallets/CreateBalanceResponse.md: + id: 1d57074ec1ae + last_write_checksum: sha1:be95da1876f0e7af9bb0432edf24bed5970b04c0 + pristine_git_object: 461632886be633255c968eade59ed52ae3c28940 + docs/models/wallets/CreateWalletRequest.md: + id: 12e8d4f261cf + last_write_checksum: sha1:108313b0bcb7eef667dd5b86e5db069850acd713 + pristine_git_object: f97c035f9bf147f592ca9fb1e40357461d8fe0e9 + docs/models/wallets/CreateWalletResponse.md: + id: 37bf3ffcec94 + last_write_checksum: sha1:81bab4097a96ba726136ff2b6176b721d82f1e80 + pristine_git_object: d96eaa1d2643fd142f712794d7e71879e6bf4083 + docs/models/wallets/CreditWalletRequest.md: + id: 014391d31bcb + last_write_checksum: sha1:ec685ff696037de95c15b5f9bdbc77f82a95dab7 + pristine_git_object: be924067cfb878b5063d34e13a4d53c195a3a512 + docs/models/wallets/DebitWalletRequest.md: + id: 4f8894d792d9 + last_write_checksum: sha1:cb7e650d6c960c96866b88152e9fa81a52f763d4 + pristine_git_object: 78e60cb15bdda7c849d2f6e15ad5a2b70a40c703 + docs/models/wallets/DebitWalletResponse.md: + id: 8d070b230587 + last_write_checksum: sha1:47adc2ebafe4f0599cd87d49109299da84b88868 + pristine_git_object: 7601689eddf64a7f81e02b37be5327412b3e744f + docs/models/wallets/ErrorCode.md: + id: 7371a3458edd + last_write_checksum: sha1:21dba85f7a91fc15787b776f582a919f0641edbd + pristine_git_object: 333ebfa0aaba4b2153af072d708d39e2d81785ce + docs/models/wallets/ErrorResponse.md: + id: f99ff4c03b61 + last_write_checksum: sha1:ed0ac97b9e40845395a176ef4fc12d15a6a658dd + pristine_git_object: dfffb882e1f5ab40913f7d7c077dfb4d1f70f98d + docs/models/wallets/GetBalanceResponse.md: + id: 14d068be99a4 + last_write_checksum: sha1:3f39125c902d348fdf4dfe32401b86399ffae13c + pristine_git_object: 590250e8f9564b3cba09dbcbb6049186d6453874 + docs/models/wallets/GetHoldResponse.md: + id: 3a7013e2e6ee + last_write_checksum: sha1:6dd61ebd459fd300ea64804cc2d964af3b04633f + pristine_git_object: ffd2f27d57ae1a207afc4981b63cd693bd4d4bae + docs/models/wallets/GetHoldsResponse.md: + id: b55cc7211966 + last_write_checksum: sha1:a829917bee0d113e7dc49b935d155950dfbc77cb + pristine_git_object: c2ab6e7d4a220d0d63453a824e49f85a09cb8c4b + docs/models/wallets/GetHoldsResponseCursor.md: + id: c08bdfd40466 + last_write_checksum: sha1:3e0314bfbbb91df22c56f6e57b461b5348c4328c + pristine_git_object: 075517f3b00c22d9d88306db5e8b86b5c2a67ab4 + docs/models/wallets/GetTransactionsResponse.md: + id: 15008a38bfc2 + last_write_checksum: sha1:31c4ce84e9c3966c03a6a8f9bc5ece37348c8728 + pristine_git_object: e9154716b8f0b5ad08bdc747ee2ab138d8b404ef + docs/models/wallets/GetTransactionsResponseCursor.md: + id: 566ca1e9addf + last_write_checksum: sha1:dfafec2b44d402b2cc6a1c2eb77bb8890fcb90fd + pristine_git_object: 500fc42a6ad0d91b244ab572fb631f544a3c8f0a + docs/models/wallets/GetWalletResponse.md: + id: f6adeb3b4b65 + last_write_checksum: sha1:9b9088241bee3e548c01cf5ad770505c228dc077 + pristine_git_object: bd1515c483aa5a49cba58f8d3e36c9a9e33e340c + docs/models/wallets/GetWalletSummaryResponse.md: + id: 01fb8a19e3eb + last_write_checksum: sha1:38fac4c0f80d10f07d65a4540eff3994478ec133 + pristine_git_object: d75b49f4961f850114fabe8a53e28396db6d5717 + docs/models/wallets/Hold1.md: + id: 2ec7b94aac5c + last_write_checksum: sha1:959acc15280e2677a767d15c0c720349a7be1acd + pristine_git_object: 3d9c5d5fd20a661e1207a10abb1a75ca5af60907 + docs/models/wallets/Hold2.md: + id: 780a62ecc626 + last_write_checksum: sha1:5d4047c1981d5f89f4f04a95bf0c149fa1bf9187 + pristine_git_object: 1e8a79f09eebb47939b930b0af98a761e540a368 + docs/models/wallets/LedgerAccountSubject.md: + id: 56138e47e33c + last_write_checksum: sha1:4fde2391c3360ec9debab5a9154a5cc1ec49bacb + pristine_git_object: 3e76e3dbd15645704765524d8917f4d4eb2681b9 + docs/models/wallets/ListBalancesResponse.md: + id: a66b3cc018bf + last_write_checksum: sha1:8a28fa863d9fac2b96c4992d152a66f33d837cb3 + pristine_git_object: ba4dddc20d3eae47f1fe5cf4ab67421352e8d835 + docs/models/wallets/ListBalancesResponseCursor.md: + id: 0c8bf47371e3 + last_write_checksum: sha1:b4db47a348aa4c5a12236bc1d18e5da0e64d730d + pristine_git_object: 230597cb41bebfdc730abf392727bf834c1f5824 + docs/models/wallets/ListWalletsResponse.md: + id: 6ab6225d5dc6 + last_write_checksum: sha1:0eb7e2e7ac596e66d16511283fcb05326bd3a3ca + pristine_git_object: c43727057a0f2617ebe0761e44f288f5786a0c94 + docs/models/wallets/ListWalletsResponseCursor.md: + id: 99e8f0874c7a + last_write_checksum: sha1:dea76592751e63c8f55aeb6a7bad776e7aa0fd8c + pristine_git_object: 0d1c0e47ed24ef86d0a3a03f170cc22f4800da96 + docs/models/wallets/Monetary.md: + id: 54cec1ef307c + last_write_checksum: sha1:fe0d437cf8f445a447dc2794b827efbaa15649f8 + pristine_git_object: c31bbd6a56adcc294de4764c11169fdd397e1e77 + docs/models/wallets/Posting.md: + id: fd4ff2806ebd + last_write_checksum: sha1:664e0a7d44beedcacf2cea4164bcb76154a2a5d9 + pristine_git_object: 8fca4a0b2ee934a0bdd48c2aaec750e8338abea4 + docs/models/wallets/ServerInfo.md: + id: 8d2713a0b620 + last_write_checksum: sha1:97c8ce4fd5bff434e676fb32d23a9af2760126e1 + pristine_git_object: 375caaa222b143d0fa6148ffc9589cc5abdac0a8 + docs/models/wallets/Subject.md: + id: c323d592240a + last_write_checksum: sha1:40b76be73cdac7b473d9f6cdee8a49df34454df7 + pristine_git_object: 94112ee8e510d00caa033b1e2982546aee356406 + docs/models/wallets/Transaction.md: + id: 60ad2b509524 + last_write_checksum: sha1:fdd737c2854b0eade608ee99963363b53f356f59 + pristine_git_object: c783915d5d0e9997e36955213e4f404199a85bcf + docs/models/wallets/Volume.md: + id: 91e61a840a1b + last_write_checksum: sha1:50145b963117539fbf04cbbce9b21ba1d4eed882 + pristine_git_object: 99aa86d6ae60147329181e30d6405180307b827b + docs/models/wallets/Wallet.md: + id: 88cf550a79fb last_write_checksum: sha1:525402af3143aaa904e8aa24a7b8da63f79c97c4 pristine_git_object: 7980cd27c628adcd26767bca27066004647e0cf0 - docs/models/shared/WalletBalances.md: - id: e50ef076f78e - last_write_checksum: sha1:3b6c026ccc94faf091f59f4b1aacf2aa81dc7a2f - pristine_git_object: 515085d95aab0e97e95f5e9cfcae9ed557355ffb - docs/models/shared/WalletSubject.md: - id: 4b290d94a72b + docs/models/wallets/WalletBalances.md: + id: dcd3c7ed0d3f + last_write_checksum: sha1:90e2f4d1012ade92dccc5981d54ffadd9615052b + pristine_git_object: 7e4eefe64570c1d720b69dbdbb90b27e56e47811 + docs/models/wallets/WalletSubject.md: + id: aca6bf7a3822 last_write_checksum: sha1:8a5d6573ec59845187b8e57a7f84224473f7e18c pristine_git_object: 5219e9430458f1817200c76a5e919d0d53de5586 - docs/models/shared/WalletSummary.md: - id: 93edf8136129 - last_write_checksum: sha1:6c8df59c9f6aac6df8fdcac5da4689a39c0f2acd - pristine_git_object: a4198e02fbcece84fbd112fa7a15260e5085c3a0 - docs/models/shared/WalletWithBalances.md: - id: a7968d178c25 + docs/models/wallets/WalletSummary.md: + id: 3f14b3b5351d + last_write_checksum: sha1:5a43898fe3ff14dbab9961006ea90e098e36b940 + pristine_git_object: 169354efca8a11a5070447ba1d0f22fc361f5aba + docs/models/wallets/WalletWithBalances.md: + id: c9beedc39fab last_write_checksum: sha1:4814c4cbc2d86acc61b2c42c92539c1af4879b6a pristine_git_object: 63f9519062c098556a6b4a718e89340c704b2b6a - docs/models/shared/WalletWithBalancesBalances.md: - id: 47742f1ce4b1 - last_write_checksum: sha1:a7e18b3fb68e87652a3886d2393a01d8811e30f1 - pristine_git_object: 6d0a279becd7b92c4f43156a4d6e387d29513e68 - docs/models/shared/WalletsTransaction.md: - id: 49af49d2455f - last_write_checksum: sha1:4a8e8e6779d9c440b387fac0635f1fb4da579317 - pristine_git_object: 18a042a89880aa865c9b9d16e4bc06a590f2a711 - docs/models/shared/WalletsVolume.md: - id: a8b00e5c54a0 - last_write_checksum: sha1:598a1c6db56608da4bc66c510e87ae6ff5a430a1 - pristine_git_object: 4da3414a21a93b6c9868443a849347f58ecaf719 - docs/models/shared/WebhooksConfig.md: - id: 64e15ee6fd0e + docs/models/wallets/WalletWithBalancesBalances.md: + id: 3dfa8148f272 + last_write_checksum: sha1:fcf0d8673bede95f44f059f26246105d51cedcc8 + pristine_git_object: a0da0dbdb1513b1c0c823c735a6129c9ab90c450 + docs/models/webhooks/Attempt.md: + id: 7dfcef4ef651 + last_write_checksum: sha1:f345b2071bd429259afdc97f4d1b0a1907d0e1f6 + pristine_git_object: 6ad71bdb19001df2beaf92457e2e7887e7613697 + docs/models/webhooks/AttemptResponse.md: + id: fee97cb0c5ce + last_write_checksum: sha1:5cda9d3e9081502eb33de34825f9f51ee7cd0734 + pristine_git_object: 440beb1035375f5c8522dd3331a405f02531c0c0 + docs/models/webhooks/ConfigChangeSecret.md: + id: 6cd0824bb487 + last_write_checksum: sha1:fdf745ece32ca7d6503799bb2682003ef29b5b9c + pristine_git_object: cb14cabee5f2ee7a8ae960bf381d8de0ba24e5b7 + docs/models/webhooks/ConfigResponse.md: + id: e53edddd2466 + last_write_checksum: sha1:66554216b4eedace7fe0af5073cabb939ab1e141 + pristine_git_object: cb008e57eb32b72420dfae7a772e6071a4a58c12 + docs/models/webhooks/ConfigUser.md: + id: 8612838fc1b9 + last_write_checksum: sha1:472e0fee93934fa302b8c8974516d63b0655cbe0 + pristine_git_object: 86b4674fbf1c23f6fbe0db04ddf2342c4c7c44c9 + docs/models/webhooks/ConfigsResponse.md: + id: 23202f1fdabe + last_write_checksum: sha1:71d77f4e494b7e040eb7ddf2e7f85c9e7cfc7410 + pristine_git_object: 5685f2a2b370a4af1bda5570dd048f793fbd396d + docs/models/webhooks/Cursor.md: + id: 4c1151e40e29 + last_write_checksum: sha1:bcb1a4eb2eb61cc581754cf473f23266d9f23ce5 + pristine_git_object: cfaa2fb212d7eaa080fa99fdbda6908acfa6055a + docs/models/webhooks/ErrorResponse.md: + id: e23d5cd241d5 + last_write_checksum: sha1:f7fc532018925a86081e4d7d96e9230af266cc9f + pristine_git_object: 88c4ada556c8ad79908c5b4054a1182562d4c868 + docs/models/webhooks/ErrorsEnum.md: + id: f836982990e7 + last_write_checksum: sha1:9c53adf914afaa43ba963b19f22fbf9e331be5cf + pristine_git_object: 40216fbf14a181ea6c043f292c193cbbf8953b7b + docs/models/webhooks/WebhooksConfig.md: + id: 4bd981b758ef last_write_checksum: sha1:836e25dcb5e9dfe133ecd36f4274ce44e5fb0eae pristine_git_object: 215187cafa9888e785b9bd16d9421254baac8406 - docs/models/shared/WebhooksErrorsEnum.md: - id: 9ba1a2dd946d - last_write_checksum: sha1:281ef36d9e7d7af7faa5b53a70d6e37a5a0103f3 - pristine_git_object: b564c686310b7a41c714a19b2b5697bf33f3c5aa - docs/models/shared/WiseConfig.md: - id: 8879b2199bb7 - last_write_checksum: sha1:4c26ba1ea18ff6e8d44a426dad098db27155d084 - pristine_git_object: 76fade3b039c1841715a5e6a8f14d57b20d72e70 - docs/models/shared/Workflow.md: - id: 5eeb6766079a - last_write_checksum: sha1:e60e3ed846b8ce5d460428f3073703ab99a7645f - pristine_git_object: e67fff6c623f80805b64b86b777ccc049e259379 - docs/models/shared/WorkflowInstance.md: - id: 4245158aa610 - last_write_checksum: sha1:272b9d89f412f0f5fdbaf422ec7e83f30c044cb0 - pristine_git_object: d8a4e1d2afeafd328d1f5be1d4e5814fc00f5c87 - docs/models/shared/WorkflowInstanceHistory.md: - id: 69f40cdc8c0b - last_write_checksum: sha1:9773b1f8b0a737bd10dfd5f249e97d70e16e1119 - pristine_git_object: 632e1ced9320aae01073a68cc9c1ba57cb308835 - docs/models/shared/WorkflowInstanceHistoryStage.md: - id: 8b23bc1a9dab - last_write_checksum: sha1:a054296c00e0eb5d2c97f422285fccace8799c28 - pristine_git_object: db8c3e8915e38f0f7418dc09533a1d414b722243 - docs/models/shared/WorkflowInstanceHistoryStageInput.md: - id: d8fd00807126 - last_write_checksum: sha1:85e91f526f3cd04e74d982ebe69fc7010eee4a9d - pristine_git_object: 230aea49af6cada5ded4f4489ef136910458d063 - docs/models/shared/WorkflowInstanceHistoryStageOutput.md: - id: 8a14723159b1 - last_write_checksum: sha1:ead49cb8c700740b9422bc8c124b995ba8bd391f - pristine_git_object: 2ebd0ecc3e8dbe65ff4c2d7225ea5c3ba6cb75a9 docs/sdks/authv1/README.md: id: 7c93cc0d53a0 - last_write_checksum: sha1:10f5d0a1808eb452d9e396cb6a19a154270890b6 - pristine_git_object: fc61bbe4119a8bde449a1e4a70504834fd0ab8f9 + last_write_checksum: sha1:dcdbed8b7ce9940f91316a4e7582857f52a14390 + pristine_git_object: 5f8012342985b693ed61c0c0d10829b297b1842b docs/sdks/ledger/README.md: id: 9fd00c5da17c - last_write_checksum: sha1:e7ab6f484e89e0e467f8a262bdbb2ea1fc945152 - pristine_git_object: fe1191dd0e2ece97ac7137a828e319768fded625 + last_write_checksum: sha1:d73254ce984dda9110a6d03ec43715714069b902 + pristine_git_object: a51850d567f85c1b80d209d500b65f370f75d1d8 docs/sdks/ledgerv1/README.md: id: 1dd4b9d53284 - last_write_checksum: sha1:48def5b74c86fe51e67160603794279143fd0cb2 - pristine_git_object: 35e6e341b2174b7af96e6dd38e2ec978e44d0194 + last_write_checksum: sha1:64e637133fe1fa785a066593e67a8b2c0679b43e + pristine_git_object: 5ff3306050388d3a2331e8d5f99768f3850b03c6 docs/sdks/ledgerv2/README.md: id: a702a1e450e1 - last_write_checksum: sha1:25a15f3bd7cc61e7b717d7d6337a81ba65bc3dfe - pristine_git_object: c6db5ff21ddbce5beef2f9a2ed8fb24e72fbaa86 + last_write_checksum: sha1:a17bf9777f87f27aba7efc57ffb90d2e72e05081 + pristine_git_object: 566968ba2fbd46742ac99fce2a0e629938fc3755 docs/sdks/orchestrationv1/README.md: id: "628517189703" - last_write_checksum: sha1:1474c654338cf0c91d3693ce09d08468f572da07 - pristine_git_object: 5973c89017e685a7044f3a4fe5583f0f71930bb0 + last_write_checksum: sha1:087bec5cd63285fa5e3e39d82b98328616fbc05f + pristine_git_object: 3a27d24760f5d9b73061156ccca0d43904b6b36d docs/sdks/orchestrationv2/README.md: id: d0cf903d5796 - last_write_checksum: sha1:2e8086540f53752f26ec38febb5c91484fc1b8a2 - pristine_git_object: a752c5add86c6ac6b7a3d2c432453b0074a57f68 + last_write_checksum: sha1:9941265fca62c6546d5aebe07278aa2ff29344a7 + pristine_git_object: 9364d333e0b8a5bc378d7b494acd508f33d62f7b docs/sdks/paymentsv1/README.md: id: 58f7818a63ea - last_write_checksum: sha1:8b2e32d7a728cb7995a576b5bfcfa8d43e43e140 - pristine_git_object: b1776155841efc444d16767c0962ede80e1072ee + last_write_checksum: sha1:35cdcba3c008049479c6282733ebe38c21860097 + pristine_git_object: 08ef0c9fb182f6770c46add671f0a2beb9c58204 docs/sdks/reconciliationv1/README.md: id: 9ac0ae086f8c - last_write_checksum: sha1:e21a2f087f5f4b9702c019bc1578a4750b082c21 - pristine_git_object: cd2389b153b8f9d1f952a37ec8e6f2d5abea5d35 + last_write_checksum: sha1:550a967c58678b8ea63e2ed3b1d95419340885ef + pristine_git_object: 885120c89848d1fc4a5a84009af6d5685aea1714 docs/sdks/sdk/README.md: id: 623e0731a2f1 - last_write_checksum: sha1:9005ae3ae6f56287da5f86e6be18b5e88624d630 - pristine_git_object: 3bc88a99a0c9eadc94385be1b27ed05ab0205663 + last_write_checksum: sha1:0e6a79b8159c11a175e1407e6a018d45a92c7cb4 + pristine_git_object: 2d0b522e8834cf6692ef94b745a39828381881a9 docs/sdks/searchv1/README.md: id: a9b8eecccb93 - last_write_checksum: sha1:249e72536a0d4a7ac2db26049cf7f57f532bfaf6 - pristine_git_object: 75589c694927e11306e96ee6d7d62c8f8665c904 + last_write_checksum: sha1:7c0a360e461b8fbf3a393f23588e391bdc981bec + pristine_git_object: 4dcf64ec9841f9a2c4d3748963b1b94a29a26e68 docs/sdks/v3/README.md: id: ee683463fcdd - last_write_checksum: sha1:bf607a0e262306710dbe363b5a88795f42025cfd - pristine_git_object: 66c176bb0868f109f7b3af2853a6931cd6a57e30 + last_write_checksum: sha1:81335d348f05711100249f9e2f91e16d0fa7cb54 + pristine_git_object: e7a046abfdb4a345811bb7b24db90fdfa3cc237d docs/sdks/walletsv1/README.md: id: e2e2730793ef - last_write_checksum: sha1:45f612721652c92556366bc94f726b39a4066560 - pristine_git_object: c5de21941789e9cf2ce9e512d0bc45f25ae0fbc9 + last_write_checksum: sha1:aa90147ec3e1ac13f208a41f7331957347253358 + pristine_git_object: 1664860113c06baa10009a9bdc369392037297a0 docs/sdks/webhooksv1/README.md: id: b7fafa3a0dc3 - last_write_checksum: sha1:57e7e3766ff3f12d777f853c6b19b5b6c838f109 - pristine_git_object: 316edecba62e129b1d32f66329adb5803650dec5 + last_write_checksum: sha1:a7e367ecfceac342ce78ab7adedafe44eff85489 + pristine_git_object: 81ea87af18a0828af48f4167d7c8ba13bf3cfae4 gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:f3b52e21916ffd7f9df95c2c035b66426dd0476e - pristine_git_object: a89c12b83ae160e2cdbf5d9d48351de66b7a6921 + last_write_checksum: sha1:e7116cc1ccb650ac258ee3681b153d3275dcb218 + pristine_git_object: 2f582182e9ddd17ae6a791134efa42c54d9b3d97 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -4598,8 +4520,8 @@ trackedFiles: pristine_git_object: 4733004743cdd560001c8c5db983028a4a844a57 spring/formance-sdk-spring-boot-autoconfigure/src/main/java/com/formance/formance_sdk/FormanceSDKAutoConfigProperties.java: id: 1765a5bfc010 - last_write_checksum: sha1:c44a762afff0b702d11eaf85a02859d012585bdd - pristine_git_object: 068414c7b9eb2aa4c9be576d7a573ab6f81bc678 + last_write_checksum: sha1:56ff899adb3d03a54f31ee8b1f94dd55744b3c6e + pristine_git_object: 333faed80481851fd2ed3285bdb8ff1be0e26076 spring/formance-sdk-spring-boot-autoconfigure/src/main/java/com/formance/formance_sdk/OnPropertyPrefixCondition.java: id: 3be7066ded84 last_write_checksum: sha1:9b07cc15ba3c460f9488d297ff4d2f68c9ef1058 @@ -4618,92 +4540,144 @@ trackedFiles: pristine_git_object: 20915f452980926736f21f8755951bfbc1c72f84 src/main/java/com/formance/formance_sdk/AuthV1.java: id: a433758249c5 - last_write_checksum: sha1:98966ad09918744429ffb0584f4c535b3bc9c9fe - pristine_git_object: d72eb51ba6ce7f1b7bd4967573eed893b5977c77 + last_write_checksum: sha1:9b1e4fe2aa2df8cfed24a86a1743a0376358fef3 + pristine_git_object: 8fc8c21c17542c07ae4e3d2dc54d642c85300bf5 src/main/java/com/formance/formance_sdk/Ledger.java: id: 862b06a9b46c - last_write_checksum: sha1:4a3abaf55ce577bc7beae06b3602b8ff1a1ffb6a - pristine_git_object: 02e3eeda0db2834aab4088c4b3c73216b4caf621 + last_write_checksum: sha1:8a879bf41f33f244b061e32e77706b230764b6a1 + pristine_git_object: 117d1e9f19575479e5998cbe9c3db372c19c18e8 src/main/java/com/formance/formance_sdk/LedgerV1.java: id: 358d995e5d13 - last_write_checksum: sha1:04e05f311a5ea56f418ac74bf3df8c49093fffe4 - pristine_git_object: 54a9bcbfd8c2cd1294b414eaa15fdd315109a5b8 + last_write_checksum: sha1:f1a0b47a31433a24f5c1fc6f0a4ebc0533050a8d + pristine_git_object: 5a1a5826de775105a72ff7a4e0ec5986577b8a26 src/main/java/com/formance/formance_sdk/LedgerV2.java: id: 94e555467678 - last_write_checksum: sha1:e4acc9e507a9a2ba5389ee09c9ac4bbd542577fe - pristine_git_object: 70d4de398e78c621ee71a2db079c2eac34c7030c + last_write_checksum: sha1:37aca6e11978498af5ca7faae9ff9c2960038a9c + pristine_git_object: 5098323e9e521608139a880ce35a8ee4e9be4b72 src/main/java/com/formance/formance_sdk/Orchestration.java: id: 7304500d074f last_write_checksum: sha1:6554aa3a1572a9b1e068211a92a843bd20505166 pristine_git_object: 343bb2184d295231764c83b9efdf9715f914f8bc src/main/java/com/formance/formance_sdk/OrchestrationV1.java: id: ceb93b25e055 - last_write_checksum: sha1:13106f7695792bec23086430d6f9636f3e540886 - pristine_git_object: d46e4ef1e8a3e8130cfb0d2dd00cde21728cee1a + last_write_checksum: sha1:a6c3281f46cd535a2b0d4348a0bdb266fa5532b9 + pristine_git_object: bc4f3df6512c9e740694347d89932315a1f3ee8a src/main/java/com/formance/formance_sdk/OrchestrationV2.java: id: 24d36e672a85 - last_write_checksum: sha1:2cd4178106ff226502b51eb89f99bbdb6513a718 - pristine_git_object: ee47a933efe0b388c3554d09d1b5920920d57c9f + last_write_checksum: sha1:b7172576c3d02cc89d2a16120c9f8dc5685404cd + pristine_git_object: 3ace5f79e014f481b359cd4f17666f00c0b20105 src/main/java/com/formance/formance_sdk/Payments.java: id: 633b5a06eb0c last_write_checksum: sha1:71efa90987d48f33be8e141be3239a636e26a075 pristine_git_object: da57760a815a0e7e26891b60a49b35c227cb9814 src/main/java/com/formance/formance_sdk/PaymentsV1.java: id: a71f85abc3e2 - last_write_checksum: sha1:6a37fe9e1b2ac4538b26036c97798c87af03f672 - pristine_git_object: 7f8e34abad2dc18a406998f7b8acf1892654c942 + last_write_checksum: sha1:318124338a08993d86ce8e0c01fd590a857adce0 + pristine_git_object: a85737b84fe184f8c855a89e63500d64c5cb1c19 src/main/java/com/formance/formance_sdk/Reconciliation.java: id: 7fc7c7f8d186 last_write_checksum: sha1:bf8136f26a8f000bfc6d0b6da4d1b92f7643b668 pristine_git_object: 0c71cd9ba1795ea85b3a1163b2a1349706ade28b src/main/java/com/formance/formance_sdk/ReconciliationV1.java: id: 143d11557efc - last_write_checksum: sha1:2ee1d2cd9009f754bb2ddedbec7702a14ede2354 - pristine_git_object: 72da6ebdd86f72bd7fc6f0749e10fce94637af05 + last_write_checksum: sha1:be464420383bdb31d98e4d8336220c570527c09e + pristine_git_object: 415e31ac04a1e823db8833add4a55f61815eaa88 src/main/java/com/formance/formance_sdk/SDK.java: id: d21c8224516f - last_write_checksum: sha1:0bec876138afff66dc39abbdb7165e655e2eb780 - pristine_git_object: 40b385ffd39063b0d9058cc779bcb1989a00bf50 + last_write_checksum: sha1:17cf8d056fbba96da45a4efafe2105e7460d93d1 + pristine_git_object: 59793682b64ed9e76b888890a977e5b23037d402 src/main/java/com/formance/formance_sdk/SDKConfiguration.java: id: de4dbe77587e - last_write_checksum: sha1:8c1e687efedd162b721ff8bcb0cfcd94fcdca924 - pristine_git_object: 1d9afe5216c18ed5bc3f0ea9890b5346d14e89b4 + last_write_checksum: sha1:94af5a30bc25d4590a368a59d9a71b848f9b34b0 + pristine_git_object: 66e826ce4e4008597031b4e6a5a72a34a35c59a1 src/main/java/com/formance/formance_sdk/Search.java: id: "857427518e56" last_write_checksum: sha1:519c982d8e240810db1a534f27a3fb978e7adc37 pristine_git_object: e039d2a6e55b3ff4f605e6e8adf45f858d1556e9 src/main/java/com/formance/formance_sdk/SearchV1.java: id: db6bb0ccd7cf - last_write_checksum: sha1:6427849e8ac9d970363d05fd71b928b14c705d92 - pristine_git_object: 3b515ca0802fb9a0e30c94168bcec93088e441fc + last_write_checksum: sha1:adffa847d3f196d97ec9f24ba891e81e8956a705 + pristine_git_object: 222685668650674934a90b6e7577aa0df8c61948 src/main/java/com/formance/formance_sdk/SecuritySource.java: id: c91bf7a1aeab last_write_checksum: sha1:8cb32a651a8702c3f08fb15f8b05a330d8ceb311 pristine_git_object: 57d24f9b7663e4db4613b995bbc4a7286df26b59 src/main/java/com/formance/formance_sdk/V3.java: id: f06e5cf79c96 - last_write_checksum: sha1:49e3b51fe214f9087c77b540401acdb58293f99b - pristine_git_object: 4d5eb1886d9ea0f1b01e64854cc691fd361645e1 + last_write_checksum: sha1:fe90d2fa57e9983227b276581d4f02a814bd4feb + pristine_git_object: 522ab2fc8a319d6983911d2e64eef432ff2731ba src/main/java/com/formance/formance_sdk/Wallets.java: id: c82fe65d4507 last_write_checksum: sha1:e663a04facb97465e02ae75b0d09419fe219f314 pristine_git_object: 25d1750f2a6074fd1be2ded07a17deb036b35c03 src/main/java/com/formance/formance_sdk/WalletsV1.java: id: a2e4bf09e818 - last_write_checksum: sha1:7953e2fddd9fbf30c7fbcd206fe60e170666ad34 - pristine_git_object: c0d5674674995033a10f215635d1bd7ca4125a63 + last_write_checksum: sha1:e76025e4265642a4cbbcf1541191fedadfcf73ca + pristine_git_object: e173980b8fc2eb2ec19798da92cabf256d1fdc41 src/main/java/com/formance/formance_sdk/Webhooks.java: id: b68a0de3a59f last_write_checksum: sha1:7d9b06ade000f9d90dc61d1e57e1aac219089cc2 pristine_git_object: d8858b2732d99febd0ae24f825ffc05bbeef622b src/main/java/com/formance/formance_sdk/WebhooksV1.java: id: 7dc390b305b4 - last_write_checksum: sha1:b11f0d14d08ac987ba2377112d5336d72054438c - pristine_git_object: 78410ac68c01ffd4235865fd83326e9e515a64e3 + last_write_checksum: sha1:8e9599e930722927434d9aaadc261af4b7de3e32 + pristine_git_object: e705d18b4cf2b858625a951dfa2a83ac97648f82 src/main/java/com/formance/formance_sdk/hooks/ClientCredentialsHook.java: id: fbdf256dff74 last_write_checksum: sha1:93719dd5db2210f17585b925541d5a8d3b5befb3 pristine_git_object: fcbb33f22653cac0d326663721fae984bfe5ca70 + src/main/java/com/formance/formance_sdk/models/auth/ClientOptions1.java: + id: 02727ec89ab9 + last_write_checksum: sha1:102a00efe0570f5e7e87efa02926f329b67fdfe1 + pristine_git_object: 336f53fe71bb6782e0978fb76ccb005473d50586 + src/main/java/com/formance/formance_sdk/models/auth/ClientOptions2.java: + id: afd1949d6ef3 + last_write_checksum: sha1:b10fb87e5f43c632640f3a69fdc2ccfa95ba2162 + pristine_git_object: 6e8d5260b266d4084b3c07ebe7fa37f6f46a94ba + src/main/java/com/formance/formance_sdk/models/auth/ClientSecret.java: + id: 7e77ced387c7 + last_write_checksum: sha1:5cb8d96f4885895ad715d1bfb26f3e2b7c6208bb + pristine_git_object: 061aa9b23da2cf93123711d60e4ffd4c5f69c015 + src/main/java/com/formance/formance_sdk/models/auth/CreateClientResponse.java: + id: 7924b671603e + last_write_checksum: sha1:e904aa927d542eb909a521cd5b27c9a62da86189 + pristine_git_object: 923ec7aeb6f2e606683958ae65142f119833bf13 + src/main/java/com/formance/formance_sdk/models/auth/CreateSecretResponse.java: + id: e6fa61b9a0a6 + last_write_checksum: sha1:1ad83e03c5580123ee86ca9af4f50fb4bb4cda8c + pristine_git_object: 2845f43075be69f5ade6f1c100806fc268dd44a1 + src/main/java/com/formance/formance_sdk/models/auth/ListClientsResponse.java: + id: c300fb1afe33 + last_write_checksum: sha1:e4ae04fbc3a0bd5b8aae664646b8b98e5df4f2f1 + pristine_git_object: 5bf55ed9060bcf94eebec81bbea8fc3a76cca140 + src/main/java/com/formance/formance_sdk/models/auth/ListUsersResponse.java: + id: 7606f23b77c7 + last_write_checksum: sha1:0ddae4f8379c2924dacea6afb9e248d8218e79e6 + pristine_git_object: 5c427db9321f5df82c1da12bf3fe380687e1774f + src/main/java/com/formance/formance_sdk/models/auth/ReadClientResponse.java: + id: ae24e693b592 + last_write_checksum: sha1:77d5d66fd928ceaaea7d88033c9ed9e1ee2b7ce9 + pristine_git_object: f5ccef28b41f2c11d13e496b7da479a77ba4a762 + src/main/java/com/formance/formance_sdk/models/auth/ReadUserResponse.java: + id: 0742565c84c3 + last_write_checksum: sha1:b12fad05957995c0ae24f48cd9d49f1ff41a573a + pristine_git_object: 6295fc6b7e3fb8859e9741772a30ab1333dbc407 + src/main/java/com/formance/formance_sdk/models/auth/SecretOptions1.java: + id: fd87e6229a0b + last_write_checksum: sha1:967c891b2f362203e0466e9c4e84400861447ef9 + pristine_git_object: 2a4079e52cbe35054c173d6d1c4c86787e87b1a9 + src/main/java/com/formance/formance_sdk/models/auth/SecretOptions2.java: + id: 5c011779bbc7 + last_write_checksum: sha1:230484f82814a952f0d9ec70bae9ed89c9ad9d47 + pristine_git_object: 2b1204182d4ff8f34778d5d55e65f58cad051006 + src/main/java/com/formance/formance_sdk/models/auth/ServerInfo.java: + id: de33eddc159c + last_write_checksum: sha1:ed45ea194aaa81b2bf742636d7479342c5fb4cd1 + pristine_git_object: ddf481d03600b96e414cdd44071e9a329dbdbdeb + src/main/java/com/formance/formance_sdk/models/auth/User.java: + id: 19b87270346d + last_write_checksum: sha1:0160a64eee182983cb3577b023c95e7479185903 + pristine_git_object: 9db749d89887bdf7b8d425ef9d9f2a263135c655 src/main/java/com/formance/formance_sdk/models/errors/AsyncSDKError.java: id: 05f8adbd8794 last_write_checksum: sha1:05a027c602ec8130d53f4f762d65796c10f32bc8 @@ -4712,26 +4686,6 @@ trackedFiles: id: a8e5032e14c6 last_write_checksum: sha1:50627a13e81b472b476666a423114c3f3f94d99e pristine_git_object: e0148c1224653c142c1e90fd048302a7e1efcd11 - src/main/java/com/formance/formance_sdk/models/errors/Error.java: - id: 7466500f0ddb - last_write_checksum: sha1:533c081b8f76f9f7d5622293dec76cbe90b0b9e0 - pristine_git_object: 32a5a44b8a60d5ffa46d990e9447fe6445a92ecf - src/main/java/com/formance/formance_sdk/models/errors/ErrorErrorCode.java: - id: 117003c061f6 - last_write_checksum: sha1:55a82f40d70fc5c391c023c780e0f38e017c6acc - pristine_git_object: d09a4131d9d4b937d239da58f912b54dc350a4d1 - src/main/java/com/formance/formance_sdk/models/errors/ErrorResponse.java: - id: 090a067c7365 - last_write_checksum: sha1:8c837c2c90e58f0efe9a6ff6e4745c10e3c8a8de - pristine_git_object: 2de7f5dfb34199d239bf083c27184eaf56513198 - src/main/java/com/formance/formance_sdk/models/errors/PaymentsErrorResponse.java: - id: e3d63c7ac719 - last_write_checksum: sha1:93eedc7f11a0ba64b64436f5130724870b654a4f - pristine_git_object: 1ba9f2a25d0982999ace178c4d41d35dfb152e22 - src/main/java/com/formance/formance_sdk/models/errors/ReconciliationErrorResponse.java: - id: 0a68f9daf117 - last_write_checksum: sha1:bd08bc9869d79c6ddd3fbbec295aab9356b6bd12 - pristine_git_object: ed294fa597b13b69c4b32b2ef584eb0c4edaba3c src/main/java/com/formance/formance_sdk/models/errors/SDKBaseError.java: id: f6e124674e7b last_write_checksum: sha1:e295907d3978cab0b60541ef77c56c0b5295c5a3 @@ -4740,54 +4694,590 @@ trackedFiles: id: 71b52727b10c last_write_checksum: sha1:dba8af6e4640ca789920bc7b7eba44e98268eb46 pristine_git_object: 31cb215904ef7ace5f5c8d12dc898725424bef8b - src/main/java/com/formance/formance_sdk/models/errors/V2Error.java: - id: 0890481ae69a - last_write_checksum: sha1:c989e2d3beb1bb444fbfc239a0c32ef271f77c90 - pristine_git_object: 97b65de2268f9ac3915e81ee8a9bed407daf800d - src/main/java/com/formance/formance_sdk/models/errors/V2ErrorErrorCode.java: - id: d8b5c2a5e04f - last_write_checksum: sha1:f85ae6edd56cac5e5c26cb05a811752f6019e662 - pristine_git_object: 4e1ae12abebf58b5aa1360bee7cfee5dd70ce9ae - src/main/java/com/formance/formance_sdk/models/errors/V2ErrorResponse.java: - id: 1e3c62e6cfdd - last_write_checksum: sha1:543f3d1ad14c50fdb8fa0f0d39d93387934d161b - pristine_git_object: c9ea8fe2f9398b2ccee8a483092520686818361f - src/main/java/com/formance/formance_sdk/models/errors/V3ErrorResponse.java: - id: 6363be2bb613 - last_write_checksum: sha1:f91956caf2bc3c1672590cc274058316f12ff7bb - pristine_git_object: 760077e5c3a4fea7a9c67e7afa695ae179f86f0d - src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponse.java: - id: b05aa79fd72c - last_write_checksum: sha1:0baaec0f9c832aa1c57b4528cd964d7c9f386fbc - pristine_git_object: 70603936e2d15108d2addc14a03d51134b1b8b3d - src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponseErrorCode.java: - id: d66288fb0813 - last_write_checksum: sha1:0f00578ec11cc2e4367894f2967ae66192f9c23c - pristine_git_object: cf3e166d041637c98039865d0af9a5fda92cced8 - src/main/java/com/formance/formance_sdk/models/errors/WebhooksErrorResponse.java: - id: fb9473c08de4 - last_write_checksum: sha1:0a254278dbae59c1cd85581aba5309d3aba4077d - pristine_git_object: 6f2ec986520545766886d178700e0d4c0cf6d7e2 + src/main/java/com/formance/formance_sdk/models/gateway/GetVersionsResponse.java: + id: 0eb7f67253f0 + last_write_checksum: sha1:7007bc1ac4a00461e28baa733dd7f1648ea1ebd2 + pristine_git_object: 743e28688dec1128f5c7d7ad140b279996e9cbb4 + src/main/java/com/formance/formance_sdk/models/gateway/Version.java: + id: 3042a3bac57a + last_write_checksum: sha1:efd88c28be31ac01e873fc8dd1d0b56580e34d13 + pristine_git_object: 4e31f5273f6a621ce366ea36bcaf8485f2a75aa3 + src/main/java/com/formance/formance_sdk/models/ledger/Account.java: + id: b6e63dfdcc67 + last_write_checksum: sha1:8c7cdc4292e57d9e9833a3ee680879df46eaebc7 + pristine_git_object: b07ef3e21510e3e40f3e21a62dbe33f5db3087a5 + src/main/java/com/formance/formance_sdk/models/ledger/AccountResponse.java: + id: e9a4d194c37b + last_write_checksum: sha1:514d725853492d2adf84fdf80961c59aebbe610c + pristine_git_object: 54b141fb797d56bc70c3eb9306f1202f0aa3a18b + src/main/java/com/formance/formance_sdk/models/ledger/AccountWithVolumesAndBalances.java: + id: c1689b5e659e + last_write_checksum: sha1:4cdc091d24b9e9f2a1af181913beb08a14d8730c + pristine_git_object: f0e9244c2125808a4045d595cfa0bcec4e91fbf7 + src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponse.java: + id: 1522338e6a0d + last_write_checksum: sha1:6bdb957bd35f7aeba405f6b3c728866dc60c9a92 + pristine_git_object: 89ddb12b6b8d7ae12e51789b2339416349198ca1 + src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponseCursor.java: + id: 741fe85f6ad5 + last_write_checksum: sha1:23a32ca8c7a0ef1f6081b563c6066649790fdc69 + pristine_git_object: 55aff25a8edd9da0fd57458b5994318d7c7910e2 + src/main/java/com/formance/formance_sdk/models/ledger/AggregateBalancesResponse.java: + id: c1b617ce464b + last_write_checksum: sha1:ee6baef0e427c0d067b609d1ea025dab20fa253a + pristine_git_object: 09077948bdc32fec32a1e9fd874a777fbd397b34 + src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponse.java: + id: 6eb182acaa61 + last_write_checksum: sha1:84f4088924e5fea0d1fe9b6ff0fa7f99d0dd661a + pristine_git_object: e51e00b7c1972a807e4aac52e575fa150370e285 + src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponseCursor.java: + id: e13010789334 + last_write_checksum: sha1:bf23a7ecac37ea13c68234b91eb95686061616bd + pristine_git_object: 701f8b3386f1c0b7871dce4dadd59e8e259c2a9b + src/main/java/com/formance/formance_sdk/models/ledger/Config.java: + id: 7a00bc85c455 + last_write_checksum: sha1:470a95ee6e553f89213f28b19687da05063f6ce2 + pristine_git_object: 0d47ba4fca2b7f87ec4053e3f00cae2f7b6862b9 + src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfo.java: + id: c1582657d35c + last_write_checksum: sha1:1dafb879431ea5448c847dada1155ba94a4b9cec + pristine_git_object: e0ec72041146c637c183bd50c8d1efd08a073e5e + src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfoResponse.java: + id: 2b4822bdd511 + last_write_checksum: sha1:51f3f6c6ba69cca84704c4ad860d0ae27d346527 + pristine_git_object: 04d3e93187e97fcf90526154516c1f1213761173 + src/main/java/com/formance/formance_sdk/models/ledger/Contract.java: + id: 8f2732162eaa + last_write_checksum: sha1:0ff6b9385fc7c212d0a4776b97146682fae89486 + pristine_git_object: 3d78dc94d27f29fb8d5776111ee418135427da73 + src/main/java/com/formance/formance_sdk/models/ledger/Data.java: + id: 14a2dca6791d + last_write_checksum: sha1:9eb39a70b993113f283881cf113ffbed4788b51e + pristine_git_object: 0224f02394b8a54eff540541a6c691c4e76074b9 + src/main/java/com/formance/formance_sdk/models/ledger/DotSelf.java: + id: 6a7e4b00fbd7 + last_write_checksum: sha1:fb2e4ced7791572a155b344cee149a7187e1ad8d + pristine_git_object: b5c4e7ec621db0377fb694d60fc8ffc6a5bdb057 + src/main/java/com/formance/formance_sdk/models/ledger/ErrorResponse.java: + id: 031ebeb792d8 + last_write_checksum: sha1:3293be4e5661920a8ea5c8fdc4ae71c8704d8d93 + pristine_git_object: aa284b9f58e058598932a681cf001ea2610741f8 + src/main/java/com/formance/formance_sdk/models/ledger/ErrorsEnum.java: + id: 1a25b6cc1afb + last_write_checksum: sha1:64a1f309b9b89796160b3e4533074d22db08bfba + pristine_git_object: e3314c5fc631f3d5eb31bcac85631532329d5867 + src/main/java/com/formance/formance_sdk/models/ledger/ErrorsErrorResponse.java: + id: 2878af134fb5 + last_write_checksum: sha1:b7dc784af67f48dfc90ddbd117951bb9497256f4 + pristine_git_object: 16c9639de1f358348fdefb0d320082b72d270691 + src/main/java/com/formance/formance_sdk/models/ledger/ErrorsV2ErrorResponse.java: + id: 0b601e958bd1 + last_write_checksum: sha1:2809f961193797517159a7cf9353b7526d399b2a + pristine_git_object: abdfb8c3e33abbe596238e7d1233513304c6bc5e + src/main/java/com/formance/formance_sdk/models/ledger/Expr.java: + id: 926a08fd9711 + last_write_checksum: sha1:0d514a8765ae137bbc4ddf0ddd1e034f5246b4c4 + pristine_git_object: 0aefd13b7807d3990854f584e7a98d041f3ac4b8 + src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfo.java: + id: e33ed7f4f853 + last_write_checksum: sha1:e2314c5a54cff0eed02725fb054dfa0e734c461a + pristine_git_object: 36fa3d0fea8bb1b3b7df1a91d9eb162a7683c283 + src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoResponse.java: + id: f2cc4ae1e567 + last_write_checksum: sha1:03eccce6c02b951406b46aa679fce8742b1f963e + pristine_git_object: 61507ef40c1262eb1ba7ff8b39afbf78c2e7c157 + src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoStorage.java: + id: eabf268b1a5c + last_write_checksum: sha1:803eab7a44e77308fd849558d979f37ffdd84e52 + pristine_git_object: 74befe3678d789a11eb3ff13b8116899d65c452a + src/main/java/com/formance/formance_sdk/models/ledger/LedgerStorage.java: + id: 17924c6da3a3 + last_write_checksum: sha1:aed21ab6df21108d15017878f696fc96d37e531e + pristine_git_object: 0e0b04efd3a1f4b765be63b1fd38adef6ece11df + src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.java: + id: a082481f46db + last_write_checksum: sha1:b1772e15dcfc351129ff3985a44878fe556f0d71 + pristine_git_object: 4d38d29f2daee6f0e410d796ea833c94ad7da6c9 + src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.java: + id: daf71f03c126 + last_write_checksum: sha1:e345f8cfa4d8daedbd8ec340f321923054b4d87e + pristine_git_object: 7e7651f708d6f3956a51196c673872960e2960ed + src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.java: + id: 2ea832a0df8a + last_write_checksum: sha1:cbe6a7a4c5b6582b63a178a5b5870db3dc2ad84f + pristine_git_object: 9dab03fd9d5ea4b37b38b2747e4d31cb404f4687 + src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.java: + id: a4e501e768c5 + last_write_checksum: sha1:ab71e4b5b4d298baeb908871e8d0c457bd48b021 + pristine_git_object: 4f089794fe00705297a6ea10ccf54191ea1f0d62 + src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.java: + id: 0196a84b64f3 + last_write_checksum: sha1:bc92169201e20270cda574cee43a83223315e7f8 + pristine_git_object: 4970a692b73e9a0b76d18f4ea8be72efd915c72f + src/main/java/com/formance/formance_sdk/models/ledger/Log.java: + id: df332b3e67ee + last_write_checksum: sha1:c849c9810fbfd62572504517199da2ace303c3f3 + pristine_git_object: 650a52676c60053099dbf7a22c40226599960a63 + src/main/java/com/formance/formance_sdk/models/ledger/LogType.java: + id: 2fcd5163eb7a + last_write_checksum: sha1:479c5b609053c66aba5bc83ca89ce0a5a3e942d3 + pristine_git_object: c8550adc36ec9d918dad2bb090647f929b30b250 + src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponse.java: + id: 8373c90b46b5 + last_write_checksum: sha1:958d8128ad78d6aebf03fd6f7f28a5cc534bbd29 + pristine_git_object: 9bfef7d14f0e1c6a0a73df2de46580128fc77624 + src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponseCursor.java: + id: f739c1f5eb99 + last_write_checksum: sha1:9ac8ba9410a8a751e91366d45f3797cc47daca2f + pristine_git_object: 9326c764fede1ec72818361f25bc79ec0e28ddbf + src/main/java/com/formance/formance_sdk/models/ledger/Mapping.java: + id: b8f003423fe1 + last_write_checksum: sha1:e676f2f7aad963645429c0e81b2bdb7086448e63 + pristine_git_object: c0b18f0d8f829e4fa7bd5c69b05b17e2fd07fabd + src/main/java/com/formance/formance_sdk/models/ledger/MappingResponse.java: + id: 3372a080c896 + last_write_checksum: sha1:37d8b62d1344e894ef97e79bf1787ff472dafe9a + pristine_git_object: 16266d3ce517b5d410966769ad4bc2aed4b1406f + src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfo.java: + id: d2d60eb9dc10 + last_write_checksum: sha1:e6417ddb803d573f3d555c319382d942e9d67450 + pristine_git_object: b2c06a67f891f6b8d1f8e40cf859998aa3ca52f2 + src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfoState.java: + id: 50ec0c42a635 + last_write_checksum: sha1:e37944738a8808ce38406ffb580fa1bbb456cab8 + pristine_git_object: d640db67df819a5eab8fc2523c4726381f359dda + src/main/java/com/formance/formance_sdk/models/ledger/PostTransaction.java: + id: f6668de0f8e5 + last_write_checksum: sha1:9204e2047d9f59aabc34d1c1aeeb0ccfdbd28071 + pristine_git_object: 4addc4c24d81f43fcd95601cfe4232475ee4cd51 + src/main/java/com/formance/formance_sdk/models/ledger/PostTransactionScript.java: + id: 6788a159098b + last_write_checksum: sha1:99c24b0d27ed32f71e457e355b16e103204ddc39 + pristine_git_object: 49c1d7dcb2963ad9060c12228a74a8face5413da + src/main/java/com/formance/formance_sdk/models/ledger/Posting.java: + id: ca14ee003750 + last_write_checksum: sha1:a144fa0d25d5ad78623a79eb91c00d224f1761fe + pristine_git_object: d1faf0cc9863592a7f8b372cc71eb02ac66eb1d7 + src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateAccountParams.java: + id: f344d26d08cc + last_write_checksum: sha1:6db505fad8327b15b54d780502a0f7ed430f16a1 + pristine_git_object: ba8902b528092c9bfcd3493e4e1f9525d1834ce2 + src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateLogParams.java: + id: 54501165ccc1 + last_write_checksum: sha1:b0d68308c5d3a0c87389ced52a0238f601b0f18c + pristine_git_object: 0ecb832daafd37139a8f4eafb890b3aa5499d230 + src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateTransactionParams.java: + id: c7d3ded6ef4e + last_write_checksum: sha1:1a08835411b77ba2e5e13094c52ceb735bdc101b + pristine_git_object: 87e07d8fdfadb2a85a77f777b4f92eacf3e179db + src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateVolumeParams.java: + id: b87ddabb5d76 + last_write_checksum: sha1:87faaa8d415de1fdced16f1c6ed626e3d347acf1 + pristine_git_object: 1dc07cdc12f5149537a26ced8e016b3190a300d5 + src/main/java/com/formance/formance_sdk/models/ledger/Runtime.java: + id: 7357e9fa6acd + last_write_checksum: sha1:9700d793448b6ade010cfcb6c6ac313c481624f7 + pristine_git_object: 3be79cc957d74b2b7f18b5bc7729e3e29ec79415 + src/main/java/com/formance/formance_sdk/models/ledger/Script.java: + id: b961b57bef3f + last_write_checksum: sha1:344600f4ae28395be34b02c47968645cd65375cb + pristine_git_object: a073bbd479609c80c56396cc598dbd915847d2a1 + src/main/java/com/formance/formance_sdk/models/ledger/ScriptResponse.java: + id: ac62943195d7 + last_write_checksum: sha1:3bc5cb6e8b2bfa5959daa1ab110259c5fdaedb5d + pristine_git_object: 292a95c051c57a67d08b2ddfc3206b3255f31dc5 + src/main/java/com/formance/formance_sdk/models/ledger/Stats.java: + id: e561e0371978 + last_write_checksum: sha1:0622dfece1755757d104c199ed29e92b8aff1e56 + pristine_git_object: 3fac665ddf52e203871b4be5391115a18abd8b7d + src/main/java/com/formance/formance_sdk/models/ledger/StatsResponse.java: + id: ea634023aff5 + last_write_checksum: sha1:9a0d2e3b52ef0bd62f58550579ffda1117e20570 + pristine_git_object: 556df4d042cf47d71f72854e644f0b944f14d826 + src/main/java/com/formance/formance_sdk/models/ledger/Transaction.java: + id: 6e8825317cfd + last_write_checksum: sha1:fbbfc78602e8759885d9b8b05b24b71cf7efd5e9 + pristine_git_object: 517fcc78ec6faab111e814bdec38293c07a7e7a2 + src/main/java/com/formance/formance_sdk/models/ledger/TransactionData.java: + id: f691c7e12dbf + last_write_checksum: sha1:d23962489280b0cf86f9cc985951694a49db5670 + pristine_git_object: 82e55e4da2c2349c22784ff90d62abd88afea53a + src/main/java/com/formance/formance_sdk/models/ledger/TransactionResponse.java: + id: bef0c61d82aa + last_write_checksum: sha1:973c9526eb59a5b72dbf40999f6dcac03c4131a1 + pristine_git_object: 38f7fbf5989fad9da36069dff754b511aac7842a + src/main/java/com/formance/formance_sdk/models/ledger/Transactions.java: + id: 4d7a38491754 + last_write_checksum: sha1:b5537636b498ce059c4acfc83b8e8b0e471f63a2 + pristine_git_object: d72fa6f44ae17f668e5b7d40e8cc677001427004 + src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponse.java: + id: 43e1d3dfd8ba + last_write_checksum: sha1:d774eea4dc5e6f6eb29a39333020bc7463366ede + pristine_git_object: d18411fe8511d62b572bc0409adc28118e175522 + src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponseCursor.java: + id: 99d626f42bf8 + last_write_checksum: sha1:08fe8d49397a0c5155ccf53cdc6c9378dac7bb3d + pristine_git_object: 7b5f74722c32b72d8ccba8ef1bdee149dd8fc05d + src/main/java/com/formance/formance_sdk/models/ledger/TransactionsResponse.java: + id: 808b8f14cdf4 + last_write_checksum: sha1:da4d17d01405e0283cdac2d1244205719edcd160 + pristine_git_object: 276f8d0b46cbcb0b363c57e152d8f62f139dd554 + src/main/java/com/formance/formance_sdk/models/ledger/V2Account.java: + id: 920f9129b2cf + last_write_checksum: sha1:e3f59f3629926aa644b5b2acc9cddadb51f3a9c3 + pristine_git_object: d0422eb6209b87506fc81d5da0554d7d2f3661f4 + src/main/java/com/formance/formance_sdk/models/ledger/V2AccountResponse.java: + id: 0594a3edb82b + last_write_checksum: sha1:c4ebb3e16c30732da434a08e9323f90d1347cb40 + pristine_git_object: 2cd0d4eea9d2fd54110e3bff60cda35ee116e63d + src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponse.java: + id: 090e2741e0a3 + last_write_checksum: sha1:35f08976f15c2e54d20a4fef3d09df10a1bc9bc5 + pristine_git_object: 295dcf80bb7154cd7b240ceba7893d4f56d44c0a + src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseCursor.java: + id: 113b0b09f3f7 + last_write_checksum: sha1:d82834a6dc7173e1b9ab3df1980bab665e4e03dd + pristine_git_object: e898a013eb97b09d02122d58ef5d6786fd837e38 + src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseResource.java: + id: d4cf98a4a334 + last_write_checksum: sha1:1cdf37a05a047f039c431d47e6149cc1a712db2d + pristine_git_object: a164117fafa823f8b9db572d282a1d25bd7659da + src/main/java/com/formance/formance_sdk/models/ledger/V2AggregateBalancesResponse.java: + id: ed80d9c0ffa2 + last_write_checksum: sha1:25876eedc133063be6eb6fa84bc2d1780bd4b3c1 + pristine_git_object: 2ab1d7e5f00ef345107ae145d5024e516f0a4e87 + src/main/java/com/formance/formance_sdk/models/ledger/V2BaseBulkElement.java: + id: 512c5d1e9f5c + last_write_checksum: sha1:51531adc0ea3fc530453718f8cd3aee61fdeb08c + pristine_git_object: 84b3e88a9642e7be8009f03fde292f228fff02a3 + src/main/java/com/formance/formance_sdk/models/ledger/V2BulkElementResult.java: + id: 89bfb3896cae + last_write_checksum: sha1:83a5c762229543d2364ff43107bad002186cf313 + pristine_git_object: f42403a4a35b85a73a5e5b3a31245680acb0f5e3 + src/main/java/com/formance/formance_sdk/models/ledger/V2BulkResponse.java: + id: 2ae7a6d922a1 + last_write_checksum: sha1:49034adc992c1e133f9fb79c5c888ff012aa276c + pristine_git_object: 3487e7966b52810a601f0c07dc2c4998e566b2db + src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountMetadata.java: + id: 07cfa3ffb4b5 + last_write_checksum: sha1:8a69b48e79d16e1f24186478ce2bcd281ae73b1a + pristine_git_object: ccf567553acaf25666f4a179791d9928602e3525 + src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountRules.java: + id: 29f4823a908f + last_write_checksum: sha1:3923b3db4cf6090ec234c9a761f716521c67e319 + pristine_git_object: 3463c70b02cda0a24f0fdf6b47767a2f7c869947 + src/main/java/com/formance/formance_sdk/models/ledger/V2ChartSegment.java: + id: 911ca20f3761 + last_write_checksum: sha1:10224f271c157b63935e3ec8b54fb2a1a67c2ec4 + pristine_git_object: ce819ea34f6292885423ce9b98d0f708e65267b7 + src/main/java/com/formance/formance_sdk/models/ledger/V2ConfigInfo.java: + id: 066e7aebf996 + last_write_checksum: sha1:d79e3961413f17b6315643915002dfe7a041169b + pristine_git_object: 111377ed1755089574a00e8fc7296abb92c9bc04 + src/main/java/com/formance/formance_sdk/models/ledger/V2CreateExporterResponse.java: + id: bac1ad4a97b0 + last_write_checksum: sha1:b558dc71c3e69ba6f1d0f269ad5cece0db332b3c + pristine_git_object: 26038732245c6823e9a0bbc91c11e8e838917d9a + src/main/java/com/formance/formance_sdk/models/ledger/V2CreateLedgerRequest.java: + id: 06ca79f4a541 + last_write_checksum: sha1:82b4d3049ebcc469bbd9da5cf9e82c92956074f1 + pristine_git_object: 2b4a5c478403a352c276b15a53f5bed9629bbb80 + src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineRequest.java: + id: 69c6911bdd43 + last_write_checksum: sha1:dcd09cd6058cd21dea6877241141041df663a0b1 + pristine_git_object: 68fac4ca51ca4f35879bf315d61f268887d25adf + src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineResponse.java: + id: 51d9dd0fb34e + last_write_checksum: sha1:d982f1fe6738ba02ab5eb0785db303694b681dff + pristine_git_object: ffe13ab5c4cf08026f9dc1ee1f39a3cee86a3f2a + src/main/java/com/formance/formance_sdk/models/ledger/V2CreateTransactionResponse.java: + id: fee0e0bc7ecc + last_write_checksum: sha1:2158efd8b0b8c2ea2ff5760ed4c5dc3b83c3fe21 + pristine_git_object: 43d9ef21c6a6891e16400741b7ae2753ae6ad4db + src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorResponse.java: + id: 112c31e719d5 + last_write_checksum: sha1:a88904b502db36e6190109338a3bfb8c39ff444c + pristine_git_object: e37cbc97a45cbf28380eca7840b125baa8e9b535 + src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorsEnum.java: + id: 439837b99aa2 + last_write_checksum: sha1:eb1ce79036adb0dd8025bec56199da7ce34a60c9 + pristine_git_object: dadfa1489f50c8a6441afb8f1d9b6ce125ee7bf6 + src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration1.java: + id: d5148074c858 + last_write_checksum: sha1:b60030cccbcd8dd60de0893c5821b86fdf9224af + pristine_git_object: e312a1dd84209059cb3f50a554d6ec0028e34cc5 + src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration2.java: + id: cedf8f5687d9 + last_write_checksum: sha1:6d0aacbf8b52572a95bba091cc8c91a836efed00 + pristine_git_object: af8bac299a156ab43dfdc5d65e8a3c6c06df982c + src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponse.java: + id: bd2cb3beeecc + last_write_checksum: sha1:3086ac1a32ca0d8fd1fdfd839dfc03d2a5c816f1 + pristine_git_object: fe17321dd0e848c14b00acf39860b629a42711f2 + src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponseCursor.java: + id: 3e6cb9f620b7 + last_write_checksum: sha1:5e95db6eb18665efa115d722593bae5506a9e56f + pristine_git_object: b706ade55665828b786afbf480f5b4e8201a475a + src/main/java/com/formance/formance_sdk/models/ledger/V2GetExporterStateResponse.java: + id: e03cfeaa2da2 + last_write_checksum: sha1:58ccd4359aa601212fa6b99b8dcf66767e16ce12 + pristine_git_object: 522b526ae28a06832d9aebc13e2de0e69ddf2b43 + src/main/java/com/formance/formance_sdk/models/ledger/V2GetLedgerResponse.java: + id: ec95024d4582 + last_write_checksum: sha1:1fe8325d4149e0b64cef3678d4b7b9abe76cb8fb + pristine_git_object: 5e0e5c12da828318b976eace73cf3fe971d01df5 + src/main/java/com/formance/formance_sdk/models/ledger/V2GetPipelineStateResponse.java: + id: 585cbd99ed0d + last_write_checksum: sha1:4479eff4f62d646e9afe2ac606a71ab2fb8b6734 + pristine_git_object: 4d0e7d2a2fef11bd01c5b04fba69031ba902e0a0 + src/main/java/com/formance/formance_sdk/models/ledger/V2GetTransactionResponse.java: + id: 2e7176089fa8 + last_write_checksum: sha1:3d674540b94e0f5e6e0f51556d56b719ce07b987 + pristine_git_object: 9905eb8d73d15843c8d97bebe0f5d8893a3b5d1d + src/main/java/com/formance/formance_sdk/models/ledger/V2Ledger.java: + id: 6f6430f1fecb + last_write_checksum: sha1:530c8d1c93377c6876cbcea19409001c6f7e61e6 + pristine_git_object: 1c5bd4c230f70a112ef263657756935b7c68e3ce + src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfo.java: + id: afa2ce34eea9 + last_write_checksum: sha1:acc66ec40943f1ddfd9b9e45a94f6c246db937f1 + pristine_git_object: 76939587028232d7d175a4abb6d1490391dfb6cf + src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoResponse.java: + id: fc5fc95c41fd + last_write_checksum: sha1:71ceb0a52863c0bd4c0bb0e43b33a84a3acb802f + pristine_git_object: 8a142cf3459f11de7df85188d60ac62a27ab0ff2 + src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoStorage.java: + id: ed537d52dde8 + last_write_checksum: sha1:227a3efbd046e2e36b9bc32e012834c45258b122 + pristine_git_object: f5553d9b2428acef56750d3f624ec98191ad1b88 + src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponse.java: + id: 4ec77258d646 + last_write_checksum: sha1:9444a77022209dfcc3677e4f94db6dfe018702f6 + pristine_git_object: dea7b1102480d3229cf24c197ebfe1ad81b22f72 + src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponseCursor.java: + id: b132d7853d8d + last_write_checksum: sha1:3fa8a938ce874a4fd64941af37dd5233d8852809 + pristine_git_object: e23b43aa8819e1b2f4396d80e37371a9ec496a5e + src/main/java/com/formance/formance_sdk/models/ledger/V2Log.java: + id: 92fd342792ed + last_write_checksum: sha1:f8dc2da22592f5aaa432c7fdf99de30e5cb61614 + pristine_git_object: 2b0e899da99195d3ba1d4a059344f65685e1091e + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadata.java: + id: 6e180181653e + last_write_checksum: sha1:6ecfe8e503643a8358d94f07ecab71b7a448ae29 + pristine_git_object: b8729762159cfa4a26d382fad2593fd99f2039e6 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetId.java: + id: 6da42c529b75 + last_write_checksum: sha1:0485f623acf5371642c61867bad6496d38f2e728 + pristine_git_object: 53bc564401e05c1d819ff1fc4ba138a5463ba492 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetType.java: + id: ed02c319cc6e + last_write_checksum: sha1:72cbec0a8039947f4fbb3112affa1b1101c4f89e + pristine_git_object: 3da5edc7d60c17a9458b7dab324d807e75646c6d + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataInsertedSchema.java: + id: 1030baae6043 + last_write_checksum: sha1:97b7006950c69d4e1ae9b45b78e94a22d9d92faf + pristine_git_object: efe925b7b1f2a77aa642c48c8def9b88c3fdff7b + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataNewTransaction.java: + id: c29097a730be + last_write_checksum: sha1:7e301fb81b274c394a2b7706088f7ee14537415c + pristine_git_object: 54c055e193ca165ee87bcb8b06e4029fd88a873e + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataRevertedTransaction.java: + id: 451afa0d4ce6 + last_write_checksum: sha1:8c953c7d9c0ca0eb5df866185a8540a43e441fc4 + pristine_git_object: de101472cf316e3108cd5dbf794f8b816387ab28 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadata.java: + id: cef5a343b556 + last_write_checksum: sha1:eff46aeb1a37d53436f37ca3a585c4d7e42e7cfd + pristine_git_object: fe0af3abbf6b72b2f6a7816975317876bc09113c + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetId.java: + id: b815b6836537 + last_write_checksum: sha1:c6c06ca839e3768dbbbfef68ff332d0215d805d9 + pristine_git_object: 5aaefac3d70f584331a1e90872a079dba8409161 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetType.java: + id: 4fc01f33d6ee + last_write_checksum: sha1:e4ff2be1d3d74e9b001611db71e85074f76489c6 + pristine_git_object: 4f0dc8ef808878399d85e4a7a75ab37f67713ae0 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogTransaction.java: + id: 4451df25c065 + last_write_checksum: sha1:621a12baaeb6baba0064cfc170e131225593170f + pristine_git_object: f0db12a5f33b7c9bb8e881d4a7568778093cf805 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogType.java: + id: b7da2cf2ebe4 + last_write_checksum: sha1:024ff477e7fd3526a1ce96ee3b3a89ecaf2f96b2 + pristine_git_object: 2c3ee6fd547fc45cc9938713a47dc44e9ead7263 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponse.java: + id: ff546ec13dff + last_write_checksum: sha1:a0023fb9e55e536ac7903d71aa014d65409bf9e3 + pristine_git_object: f703d5b181b1095818e92b9eebd6e5a75c8253c4 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseCursor.java: + id: 18c435a74b7a + last_write_checksum: sha1:e2d714932432274ab54cdc709502122ac05eab2a + pristine_git_object: 21140e72b54a2c5812f5b23129c71209007e3770 + src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseResource.java: + id: 373b5ff48d4d + last_write_checksum: sha1:e16ef0f895daa19c1c30d643d157057696acef16 + pristine_git_object: 9fde8e588ca0034f7bae7d505adf451851a90436 + src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfo.java: + id: ff4605e396dc + last_write_checksum: sha1:dae3b33a2678ca66df7c376705b649db1d432670 + pristine_git_object: 1eda05a54700b52148540f11b86fab4b28b0066e + src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfoState.java: + id: aa4ea0d5f725 + last_write_checksum: sha1:5f6a05977963ca2a9c850dc2877d442e1435c7d6 + pristine_git_object: 0636d7be70842f36b72311416127601957993b36 + src/main/java/com/formance/formance_sdk/models/ledger/V2PipelineConfiguration.java: + id: 27c7cae66fc9 + last_write_checksum: sha1:9bbb9584ddc956373fd658e9ba0c98b8f5088a08 + pristine_git_object: a0a8763c6af06b2409d0843094976eff1a193083 + src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponse.java: + id: 91f00473ec16 + last_write_checksum: sha1:58cacaa7c75610cc9427e384bfc3f19fdf65c8d5 + pristine_git_object: 55b4480c7e5c68ee6c0cc5a7876cb4e4a78cf196 + src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponseCursor.java: + id: a0d11c0b4b17 + last_write_checksum: sha1:ef171f2fed554e886dbe7daaba294b30cc3562fa + pristine_git_object: 3d3e0d9990de3f67bd7bf8efb5d178065d2df7f9 + src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransaction.java: + id: f89f7f600aed + last_write_checksum: sha1:913d18e1af32590e571da144474d4c42a747fb56 + pristine_git_object: ae63425acce8f0f3cdaf7b00575cdfa295863c7f + src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransactionScript.java: + id: 2bb4c4a1cfa8 + last_write_checksum: sha1:643f04e14d3294d9562612bbd15f404541e7e9b4 + pristine_git_object: da5ae39c04d16f9aa8380c5d0352ccee3f7cf36b + src/main/java/com/formance/formance_sdk/models/ledger/V2Posting.java: + id: cdbc7e4e8f26 + last_write_checksum: sha1:a50ae83817e410b32431f31657129ab9455b32c6 + pristine_git_object: 56eb6a3b54cced5bed0779df13a22a1c096a3abe + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParams.java: + id: 91eea28014a5 + last_write_checksum: sha1:0c4b46dd9bfdce83493db57b3fe2c5f5d6140b70 + pristine_git_object: 43381f8a68ab6447d53322fd30433c180fbcccd5 + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceAccounts.java: + id: cf9a2cfac94d + last_write_checksum: sha1:2c0c04e00b18c4e64f9468b7b03091c2a4eda9e1 + pristine_git_object: 95a00f8593ee5d2d40756e754aaa5e5023a2fb1d + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceLogs.java: + id: bba8e60eb9ab + last_write_checksum: sha1:3f87fe3e987b0d82bded06bb1f2e00c5c4cfb60a + pristine_git_object: 7bf6be01672eddbbbbd377225ae2ccd61952046d + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceTransactions.java: + id: a0c29e143542 + last_write_checksum: sha1:5b883116f67383690b50607eb49665f118868a7d + pristine_git_object: 44ef74298497172f71a6e1a56de517d5bde18a92 + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceVolumes.java: + id: 86a763913bd1 + last_write_checksum: sha1:3549341c2809f1af0abddc0b9e38cfd175c25e0e + pristine_git_object: b9958aba1ed9690026fd34de886867fefd409c6f + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryResource.java: + id: f4114caf95ec + last_write_checksum: sha1:5e53a1f6929090044d9c050460ad73606c2bd408 + pristine_git_object: bca6af841625ca7fc964b4b8e99e2622de197b33 + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplate.java: + id: ab82b2160fca + last_write_checksum: sha1:497946875c92e449ea613d09834457b78f424d11 + pristine_git_object: e8ed0b3a5c7abb7ca4bebcd79dc6cd77a893cf74 + src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplateVar.java: + id: 161927a5a82f + last_write_checksum: sha1:8c75d7a57a4f59833add31ac2a2b139d19d85574 + pristine_git_object: c97c356a0c19ca9174855a7815ae998af52a83c3 + src/main/java/com/formance/formance_sdk/models/ledger/V2RevertTransactionRequest.java: + id: be47fd00d16f + last_write_checksum: sha1:36e63ac71092916312a7c5666b414f76d5a088ed + pristine_git_object: 8ab992829a5ba3181459551b4b3b1ffc1e1c5eb1 + src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData1.java: + id: 757373a63927 + last_write_checksum: sha1:d1ae3681b521f83af50bf5876b02ecf39b62078e + pristine_git_object: 6088e2ba503fd8dd6c2e9bef57a43a360c469706 + src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData2.java: + id: 708aa1deb635 + last_write_checksum: sha1:790a24f9f95acfef875e68bb0c15f9a5f9891eeb + pristine_git_object: 402c3a56911274f53cb71297f01f3b873743102f + src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaResponse.java: + id: ecc1d7753a78 + last_write_checksum: sha1:ecfbd2017bd3959e96c658d352e8cd31d67c834e + pristine_git_object: 3c0c388522bb291171c96de8e4ee72f06758aa75 + src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursor.java: + id: ba7523cf3121 + last_write_checksum: sha1:cc4ab52742a9a4f70f547958cced21df39ef6558 + pristine_git_object: 32b806ad5e5b49b8b7578f43e6035a6ab00ce5d4 + src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursorResponse.java: + id: 47fedb244dec + last_write_checksum: sha1:570ccd48ca34dc901011c489320235ba6fc70b7a + pristine_git_object: 9d6fe6556f0d19ff460014c88f65679b02121aa4 + src/main/java/com/formance/formance_sdk/models/ledger/V2Stats.java: + id: fab703e895d6 + last_write_checksum: sha1:6e659e3f332a6e7e83ce9ae7b268f320789e9fcd + pristine_git_object: 3ab02076d814bf042a66ff58e7a1687ae4f5e605 + src/main/java/com/formance/formance_sdk/models/ledger/V2StatsResponse.java: + id: d6919dee32d4 + last_write_checksum: sha1:cba442635f0fe42a6d37c1047f8ba38185d5c325 + pristine_git_object: 5ceb83a915ab2c9742f8eff0d90f9b4bd466be28 + src/main/java/com/formance/formance_sdk/models/ledger/V2Transaction.java: + id: ba3db46011d3 + last_write_checksum: sha1:6e8970640eaeb5908ec4d8126b5473eafaebd858 + pristine_git_object: a3d9efb685fafe25ad24fcf941552efb3ac81837 + src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionTemplate.java: + id: 7b7bb15d494c + last_write_checksum: sha1:89a4e2da932eee628735e37f4917dfdece86e076 + pristine_git_object: 1be24cd1f643f847e118899e4916d525383f2499 + src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponse.java: + id: 85e0366d9208 + last_write_checksum: sha1:e7cf3ccae0ff4b45e8cef7f859829146462b816d + pristine_git_object: 2255ec0f85da3e6f77718b03d2e9cf35cde21761 + src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseCursor.java: + id: ff45e59b4ed8 + last_write_checksum: sha1:063c520bcb024928fa8c42162c796ce79a62f7f9 + pristine_git_object: 0c90bb84cc6a2607c4411700d2a13dc829684b8f + src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseResource.java: + id: edf2b753d2b6 + last_write_checksum: sha1:8c974aa3879b917eb609dcc1c951cf5b3d3c7cf6 + pristine_git_object: 05d02628a5473dad5ec8cd6ec33e46c8c2bc67da + src/main/java/com/formance/formance_sdk/models/ledger/V2Volume.java: + id: 7668184fdd9c + last_write_checksum: sha1:501c493a4a2d9bf449c289f52089029c5ecf60fc + pristine_git_object: 3f861868b61bd52f168fac882c61fb1c0e4aac96 + src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalance.java: + id: b7a3842eb201 + last_write_checksum: sha1:4067323f237c1ac0fd4e9f95fce7ab4eb03f91ee + pristine_git_object: b13f80aa772f1f7f4c7a33c11d63f9d2bbad8cd0 + src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponse.java: + id: 5c9ad8a635ae + last_write_checksum: sha1:3e6b27d3986ba9de07ddfabc723c12c4b0c2604e + pristine_git_object: e831d65414cf19493fb6eee74f3046fa9f06ad5b + src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseCursor.java: + id: 5818e42b4788 + last_write_checksum: sha1:679239375d82d283d574143fe6be651f091a2fc2 + pristine_git_object: 66bfb3d9090df77f82c7de2682938a36b3ab46f1 + src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseResource.java: + id: 0a0040f840fc + last_write_checksum: sha1:ba24d4461d0f41a08728770d0e54fb2a5e0acbfa + pristine_git_object: 282a8a364d8f51b96ecc14c3ed4f751f2679c85b + src/main/java/com/formance/formance_sdk/models/ledger/Volume.java: + id: fc224c2abc29 + last_write_checksum: sha1:fa593edae53fde93560db27a3210d7623ad58198 + pristine_git_object: d0e04c3b8c3e0c4059d3d676d88a79430f2b5aea src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigRequest.java: id: 25d00a441444 last_write_checksum: sha1:58597a32842a9f36c4ae9aaed2fc6bc7f22409fe pristine_git_object: 83db7a355ed21647ca6b11d424ebdb418489168e src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigRequestBuilder.java: id: bc9ede9e250d - last_write_checksum: sha1:482eeb83cc4e5aca14b9947735b5dc6e88d7c72d - pristine_git_object: eb7c74e13ace211a9a0c2239be2c2521a0a37259 + last_write_checksum: sha1:a6cfde0d2f18907e51cb46bac66bad2ecb08aa52 + pristine_git_object: cc9f8da330b84116224f92aa068a6041cef1c707 src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigResponse.java: id: 9bee53141553 - last_write_checksum: sha1:bc1b5d1a4a8339bc079dee239eaf46859d791d17 - pristine_git_object: 9f6cfd848b30833459fd5595f0610ae514b7a635 + last_write_checksum: sha1:296bb972fa67efbdeb22ea396aee0468c0423436 + pristine_git_object: c66626d9d004a24cea8e7d088a79b054eac0c64d src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequest.java: id: 1803aa57f66a - last_write_checksum: sha1:0e77c769daaa0e4d38625e172989805765e06daa - pristine_git_object: 5c570a2d3510fee2702246210106da9e2e256b23 + last_write_checksum: sha1:94a65809c4f05370276fb9adf1998a66e4e5db69 + pristine_git_object: 48cad687cfd9a6a005de8eca71436ac4b80948ce src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequestBuilder.java: id: 7388e82f923c - last_write_checksum: sha1:27a3dd9c886c34a75fe560673c334f0c76f276ab - pristine_git_object: 5a1b61e2f90298d1824b10e30005d10e262f1379 + last_write_checksum: sha1:bbf05a081d44a5f72f473702e1ceec2dccbca9e2 + pristine_git_object: 4a9e499258f2074428723fbbd683a75c88d357d1 src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolResponse.java: id: 27265562f2c4 last_write_checksum: sha1:b314aaa5149c9e252d3f2cc5f1a207bfbc5d9e89 @@ -4798,8 +5288,8 @@ trackedFiles: pristine_git_object: 31a7be46d188ddb50181a5756597feb521475c15 src/main/java/com/formance/formance_sdk/models/operations/AddMetadataOnTransactionRequestBuilder.java: id: e9d57f75b418 - last_write_checksum: sha1:299218053b3ef3488a6d95559db19e93afb35d2e - pristine_git_object: 046c3de396efc51e46ecbc32f988d0fd76018863 + last_write_checksum: sha1:10a5dc78ed994a878c3adacd103b7a13b40ed73f + pristine_git_object: c5cff80c298789dc621e2c05c15968d26a85415d src/main/java/com/formance/formance_sdk/models/operations/AddMetadataOnTransactionResponse.java: id: "891265751e78" last_write_checksum: sha1:7c31a2663cb4475efe4fff0335e29cf3837cbebd @@ -4810,8 +5300,8 @@ trackedFiles: pristine_git_object: a5184566b6a2b83218a74d705924e491f4687682 src/main/java/com/formance/formance_sdk/models/operations/AddMetadataToAccountRequestBuilder.java: id: f0fa82bbf068 - last_write_checksum: sha1:18ac6e55429bfcef5dd7b90174455c41efbff10c - pristine_git_object: fccb7eb58809813a026fa9308a1b5d4e9f45aa16 + last_write_checksum: sha1:de368bee8a9c7535da771f299416f0c1b536093a + pristine_git_object: 5f9705e08580f7f5aebc5320dd85e07a75663925 src/main/java/com/formance/formance_sdk/models/operations/AddMetadataToAccountResponse.java: id: e7fc63d09271 last_write_checksum: sha1:3cc169dad971ef065c068c5271d212b0ef530cb1 @@ -4822,56 +5312,56 @@ trackedFiles: pristine_git_object: d0bcf24235c157151f260200080d2a7ae3499823 src/main/java/com/formance/formance_sdk/models/operations/CancelEventRequestBuilder.java: id: eb4dd0c2e2c3 - last_write_checksum: sha1:1c433cb9294509705175f5a83bc7e3125323d1b2 - pristine_git_object: 4ef9a32ac9e967cf7a28e65e1d6cc98f1051ce3f + last_write_checksum: sha1:c39a2580e272e3a8e86668d4b99814bf44256c73 + pristine_git_object: d27d01d871582dd76b62e3e00b12282d54685e87 src/main/java/com/formance/formance_sdk/models/operations/CancelEventResponse.java: id: cf86206c2424 last_write_checksum: sha1:02a24fcb45895fd32bfc0719ffa024848a23aa90 pristine_git_object: 9437f28669417f309139b4511b39a391ba17d172 src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequest.java: id: a62fef529dcb - last_write_checksum: sha1:631fbd60fdce24019071b1ca58d6236ca3126c57 - pristine_git_object: a784ae70971e88782d34b8a6e40bcc8de2e59540 + last_write_checksum: sha1:803ec0884de378071aa7a0e4eb8e2f19db4e3883 + pristine_git_object: ed5288e89ccf6366e39aca5e728afbd1f2e1b2aa src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequestBuilder.java: id: bf80a9275712 - last_write_checksum: sha1:6ffe01336078d6386542258c56216227593a535a - pristine_git_object: f0f72acde79ad7532a7a873e95a96abaa0701753 + last_write_checksum: sha1:843df935f29fb023c27a060652253dbbb28f0331 + pristine_git_object: 0f846162d65d9be5dc845cee8a7164ddf71aa8e2 src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretResponse.java: id: 8fc769ff6fb6 - last_write_checksum: sha1:3c788930afbdd7e5f4bb6b7944bd2b20caff5692 - pristine_git_object: 13ecaab6257276fe8c2f0f3818797a5d8f408641 + last_write_checksum: sha1:aa4f4fda1de16baeaf7ebf0c0a8354f8e580c287 + pristine_git_object: 1b4c631bae52d942e5aeab0f4169897e732773c6 src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequest.java: id: 884387900bbf - last_write_checksum: sha1:b3c4a5f4d27877e09f7ffafb8ec1f73d053e3cd8 - pristine_git_object: d2d8f55257dc96e27d8cac125075fcf30aac58bc + last_write_checksum: sha1:63391ec30c376599fe05ff76dc24b00ea7e39a81 + pristine_git_object: 8d06591c18c4dcf465412aafb7b29ebc01bec99c src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequestBuilder.java: id: 7978aa6146a1 - last_write_checksum: sha1:5c46a7c0a73dbaf51131a7ae7466c77be10879c6 - pristine_git_object: a42616a1ae9b72b5a82dd369fddbdc42e283b3ea + last_write_checksum: sha1:2d6720ab79281918d2b58046b795cbee45f9483e + pristine_git_object: 6282c8485fe5e4bb162a04918c3c93b0900573cb src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldResponse.java: id: 20bd9f8cbfbe last_write_checksum: sha1:fecfe99f7463fff86beff68190001670a86ce2e4 pristine_git_object: 35f226e8fd13dcb321a095969a80aff7f756813f src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequest.java: id: 46ae86faac70 - last_write_checksum: sha1:6b86915197d8fa5de6d3fa8afd5529775cf60a7e - pristine_git_object: edd423a4ddef11e37e78c692c296b8d0964505bd + last_write_checksum: sha1:b3b253f6057b1082d162e9f9d5e73aa0d6240261 + pristine_git_object: 987a6d7eb99d5f1e70c20e228c6efce14934092a src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequestBuilder.java: id: b7b78a1a2ae9 - last_write_checksum: sha1:2b3e184451320f36da9dc912b54b431fedc7b7c1 - pristine_git_object: 4734d732665c655b528171484c1c7f6810699281 + last_write_checksum: sha1:8b8997ab21cafab8057af72a8a82e5c40681654c + pristine_git_object: 72ef6481ab73f7e82f7589a96c840ce60832855c src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferResponse.java: id: 896db208923f - last_write_checksum: sha1:4c05ab562c598301977888cb642b285d47b8b45a - pristine_git_object: 195f4942d7e0fb49ba94b26236da3714b0318ac3 + last_write_checksum: sha1:55e4f9a08e37df1c07b9167af006da26d5133e4f + pristine_git_object: d5966929d408b16bfc05844149c6934daa7c71b9 src/main/java/com/formance/formance_sdk/models/operations/CountAccountsRequest.java: id: cf851ea777d2 last_write_checksum: sha1:0479e4660590da3d32a046cdf3a393a11e68a23c pristine_git_object: 212d5f2f056a58459d2194d1ec67dc17ac279eb8 src/main/java/com/formance/formance_sdk/models/operations/CountAccountsRequestBuilder.java: id: c4fafd672399 - last_write_checksum: sha1:991fa3d22485db5796a6e766a3f09c88308ac477 - pristine_git_object: 68c884a86698c8ad3b1234a33f6c665a07ee7376 + last_write_checksum: sha1:b84d1a9f7a72f2b3b23c8ab2ea568a74cfbc5ffc + pristine_git_object: 9d72a5dc8008c8e77d99dc17a50b980bc4d6dd31 src/main/java/com/formance/formance_sdk/models/operations/CountAccountsResponse.java: id: abf7bf7436d4 last_write_checksum: sha1:493c0452f828bdd5ceeeeca403569c5158d29d2a @@ -4882,152 +5372,152 @@ trackedFiles: pristine_git_object: ac7ca1ecde7a0b57c39f30017d42eced42aa265e src/main/java/com/formance/formance_sdk/models/operations/CountTransactionsRequestBuilder.java: id: 3849810bf705 - last_write_checksum: sha1:9f9ecccc07d4629815467646a17f900ef8679d22 - pristine_git_object: d329d1c9924c8ef647b5a41b015144a8b0f8fc5a + last_write_checksum: sha1:92558cf9435264fd2699c44775bbebcc03454401 + pristine_git_object: 45d75abd6e71c4cfe2840e696642ea6c8cc5e8d1 src/main/java/com/formance/formance_sdk/models/operations/CountTransactionsResponse.java: id: 3a1a93311b93 last_write_checksum: sha1:84bd172c0d619ce9a920574852e05df5d772d074 pristine_git_object: 604d5cc8bbc346e326f5e8993cb94de173c46d9c src/main/java/com/formance/formance_sdk/models/operations/CreateAccountRequestBuilder.java: id: d5dc00831f50 - last_write_checksum: sha1:ea780d78ac88706cf32c3516175589c59ff53f1a - pristine_git_object: 7d7a0bca559f554a0326c5ad29f91f6dfae3b29f + last_write_checksum: sha1:3468cf6cc4b6c51a2814eca8b0bed89e6cc84a91 + pristine_git_object: 1e119a1c46bf693881f5f1f8b4b94ca8830ca4ab src/main/java/com/formance/formance_sdk/models/operations/CreateAccountResponse.java: id: 53d9d0a2df1d - last_write_checksum: sha1:e9601f46a4bcdabcb470afcf5a0d669c415a5e89 - pristine_git_object: 965a248f0ce54c34da8ffe46ea67e03a8c6b8938 + last_write_checksum: sha1:914f555123a1e481dbfde9fd7d181be75966ffb4 + pristine_git_object: 4a4eed9dc2377805520814be595d74fa33534435 src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequest.java: id: eaa50b49bc16 - last_write_checksum: sha1:dd0d5267e171a942165f5b90b4b1b3a49ec60b09 - pristine_git_object: f28c975eac5901d5b01e257edf7d4956321401c9 + last_write_checksum: sha1:6d84278c33b66ae98c49ba97b5747da04de8532b + pristine_git_object: 73307f204e03cdfefacdf01b88c6b0f3adee16d7 src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequestBuilder.java: id: 4801967ea7d1 - last_write_checksum: sha1:168694b793023d4478c63bae4c8f95acac2803e6 - pristine_git_object: aa3dc780af70f468c8ac2c1234027837a60b4b5a + last_write_checksum: sha1:e556f0e98438c667b5cec9f92a435789d2fe4e4b + pristine_git_object: 3192ef3a3123c5165a19ed660383a4dcaf25bc81 src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceResponse.java: id: fd7baeb64c28 - last_write_checksum: sha1:393660ed6d4383fdfaa32dc486e14c5b45351c4b - pristine_git_object: 6777fda4b89dc2bf805e753b0200025af05b1028 + last_write_checksum: sha1:eadf4e5673ffd3ff9cc25692385a0747ddee7704 + pristine_git_object: 0eea620818ad4fbc60dd89ee103f4e3631dc0273 src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountRequestBuilder.java: id: 0b9444c25c5d - last_write_checksum: sha1:35ced52aeb66d5a72db48822b77ae4d714426c48 - pristine_git_object: 631ce3ed1b23df01444adf8193e7b849183a7928 + last_write_checksum: sha1:e5daf0671657c70e6026e9cc7f59fa80ce85f96f + pristine_git_object: a4dcd3bffdad644285313a75aa6822efdb5c9c32 src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountResponse.java: id: ec862628e95f - last_write_checksum: sha1:2fd5a9c5217e5996380bad5d92165745f75aaf36 - pristine_git_object: 77989932473e46f8bc9e9a6394cfe10c3a59545e + last_write_checksum: sha1:cd4df0ce4e597a9d9dd1c52458befa7c5059fab7 + pristine_git_object: d8ea86e34e257494f5fb81acb508df04a5c7d619 src/main/java/com/formance/formance_sdk/models/operations/CreateClientRequestBuilder.java: id: 4da122e87f17 - last_write_checksum: sha1:10894e57688a5c2ee2670450984fa9d7d20dc9be - pristine_git_object: 3097ff7ed9e339a805c99b4a05ab00aec67260da + last_write_checksum: sha1:663bc4a2f9d981592aa7e60308c1db6bd2bbc1ef + pristine_git_object: 4f14b1219fd56a5c49de2dae84430e63db28f119 src/main/java/com/formance/formance_sdk/models/operations/CreateClientResponse.java: id: 59def1e525fd - last_write_checksum: sha1:c882bf244216d19237dd32829a00da69156d5fe7 - pristine_git_object: 2dbf04b775a37a979b4b66e0c697e97b84ffb914 + last_write_checksum: sha1:b0faab1ed3a1142b405fa9e45f9a04a57921a8e4 + pristine_git_object: f09d7047f1bf656ff78cb92e39bc128274b5dfa2 src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentRequestBuilder.java: id: 57009c7f701e - last_write_checksum: sha1:b06e56e5c96e9e1bd0783251cdb967fd01c6a7c7 - pristine_git_object: 007d5522746443d434b26f435bfa3579f69b93d1 + last_write_checksum: sha1:3c882331f6c6a2c0fe2191c3f374bb2bc831156e + pristine_git_object: 9404efcf6b2cc7fd10962c08226a99cf30b01669 src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentResponse.java: id: 553b2ebbda0c - last_write_checksum: sha1:3c30c6c206331d3d1ef364f3269f62660ce3bc0e - pristine_git_object: 4306dc7b2b06ccee34aa64681c79f4c2a81e4835 + last_write_checksum: sha1:a9549b450b6298f16f8be39f9607172ff566cfc8 + pristine_git_object: f522792d2c2c3f63e85811f33aeefbe98fcd7ed2 src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyRequestBuilder.java: id: b8ef222afc06 - last_write_checksum: sha1:53232b08a99750bd15a811f1db8a8ae41db12723 - pristine_git_object: d0a476d5dffdcd16e0f6b4ff90c813f8a42e48ac + last_write_checksum: sha1:6756a56a5e44127088567b63b58c55adfea3c2fa + pristine_git_object: 499c5c820ba060dd631014268cdedfcbf6c34f0c src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyResponse.java: id: 2afaaf615f4e - last_write_checksum: sha1:4c821ee3070727a3cd593c4261ae20c8791cd92d - pristine_git_object: 5a3d17ff5fe15e37cfc6629ba88d6fc5d34c3b30 + last_write_checksum: sha1:89cb7139b4cf8f792d35bdbdfde0e93cc7d5f1cb + pristine_git_object: 71363c182c76d2cf379e5304a04ddfe7729c7716 src/main/java/com/formance/formance_sdk/models/operations/CreatePoolRequestBuilder.java: id: fabd9e5bc36b - last_write_checksum: sha1:0f908eb9fd23c47c18d5ac74330f76b9ed02b872 - pristine_git_object: bde79dccb2d4b396ab359e551f0a267555055dfd + last_write_checksum: sha1:abc1cee7240c38da90ab51d84ea0605cded6e0b4 + pristine_git_object: d6943448e6d4230247c6e93b0398ac9a0a9da6d9 src/main/java/com/formance/formance_sdk/models/operations/CreatePoolResponse.java: id: 34fb90850ac6 - last_write_checksum: sha1:f74833ba480b7a85d42716588eda2b5216f86077 - pristine_git_object: c7c9dafc2b85614ff13557a2eae14f275b9d1bda + last_write_checksum: sha1:d054ee2fd90b3ac917a5e9f5bb70e85ef06a31b7 + pristine_git_object: b4645e7eae98d62cc0d984f5a4475ea18e725d75 src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequest.java: id: 838db5ff855b - last_write_checksum: sha1:cd5edf23505e8791f8443800c87188507520662a - pristine_git_object: 7a3385b921c488a350b0aecfc7ae84441b276f98 + last_write_checksum: sha1:2ab5f0e15e1768ec145521d32ecdc836e801cd6b + pristine_git_object: 6eb022b55e24030f956276b9f5a9e313adbba46e src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequestBuilder.java: id: bf461c62f3b0 - last_write_checksum: sha1:46326091039b523aa253b34b9dea9e35c89dde24 - pristine_git_object: 20b682ad4225903be4bf39fe0a81f6b53752798b + last_write_checksum: sha1:75a7d5eff071d506702be3fc3ccd19babaee9c2a + pristine_git_object: 1a68ec5f1e04afb346f68df57dcc7077cc0a33fa src/main/java/com/formance/formance_sdk/models/operations/CreateSecretResponse.java: id: 20bca1b8a13e - last_write_checksum: sha1:1ccf8cac77650a68674981e709de895fb6aebd11 - pristine_git_object: 926af2f16835764cd9c511077c72533cd6af0f79 + last_write_checksum: sha1:cf3958749c489b65d2983f6f67965bd1a330f26d + pristine_git_object: 49080b559bbc1fd574e6057034b519606ea6b614 src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequest.java: id: 3cf95fdf8b7f - last_write_checksum: sha1:eacd00b26a025a5edd2c50390dbcc0b09c243796 - pristine_git_object: a91a9afc0eef897bdc1d6d6ce091eb777c372e1a + last_write_checksum: sha1:a8ad9a120b9689e9b803b2a60dbf41018138196a + pristine_git_object: f7e9144b4ad7d633215bd1e543b1a62d7c564cb1 src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequestBuilder.java: id: 62be4454315b - last_write_checksum: sha1:550abe53ea1b9ce2766c8d8194c2d3848f338085 - pristine_git_object: f7134b4e543f7ee0f4a0db4958f534685e5a471b + last_write_checksum: sha1:6c132bd14c50f3a429ab1d9bac14a1c697b4b3b3 + pristine_git_object: 4a6e91920a84663e886cc93e9ad3c4cb864a27ba src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionResponse.java: id: d9f83e477c70 - last_write_checksum: sha1:20ddbd033f70a8f499f44cf36d7ad950f67361f4 - pristine_git_object: 812675d2788f9d98c602655899158e3e2d054af6 + last_write_checksum: sha1:40d970be091f0a671be2fc50db78879a1d28a2de + pristine_git_object: 778c631ef6cc6182a3a6f2e13664c87f04ba283d src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequest.java: id: 612f899a42da - last_write_checksum: sha1:7e65cd6895daad5eae818145474b2c016393f2b9 - pristine_git_object: 52feacca856902dbd86f53d6d5919050a4020f05 + last_write_checksum: sha1:fcba0ec579e13f1e2ad598ac3600f14a546ef565 + pristine_git_object: 178d000719adbaec51b5217df7bfae2a4abfe74f src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequestBuilder.java: id: b80373b82799 - last_write_checksum: sha1:146e5852a0546a37cf70db53f5dc517c4f87196a - pristine_git_object: f84079ec76c98311defd3bd6cb70a9bdf6f84e7b + last_write_checksum: sha1:b929c48ba9aa7c7d4675ba6488f497964026d841 + pristine_git_object: 2ecae09ed2031c51c061ee49c228f8fe97867941 src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsResponse.java: id: 042e45fd45f2 - last_write_checksum: sha1:3669caf55917e370757bcecfbe2ace82e8097e7f - pristine_git_object: 3829d8a29f72aef11b4431c542dba0f160ea5f53 + last_write_checksum: sha1:744f42a2f60c4ce272fa2ae7ee48ff5c95fb034d + pristine_git_object: 346e7148cdc1b97d1f73223cd1ea19e6ae8f420a src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationRequestBuilder.java: id: 9d13be42ac53 - last_write_checksum: sha1:403daf912d67bc290cbd362db9df236371dc4e99 - pristine_git_object: 0e580312918ce5144a241815514abfa194da8ca2 + last_write_checksum: sha1:fd160d5f240b82c8ba928880b4b6bebf635501fb + pristine_git_object: 4ac9dd09dfacd4936eb951421724c8542b146c92 src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationResponse.java: id: e9885064bcf5 - last_write_checksum: sha1:4359a0a74e88adee767b1f3b5bf9264ff380ddc6 - pristine_git_object: 54d0c6c22fdd668db67b5d11273bd0fb8789a913 + last_write_checksum: sha1:21cbe0149d16ad938bc64b9ad97c274d4f366ad0 + pristine_git_object: 15014116d97297bb2b64bfea60092526a60ed3cf src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerRequestBuilder.java: id: 51e4c3bbc22c - last_write_checksum: sha1:1070d3b461f45d35e35b9e6e2dd3cb9264c27606 - pristine_git_object: 5a55661aecaae32db536bac73ad7de8947dceef7 + last_write_checksum: sha1:ab93432af1ca6555a49a548d837f1904d49e3b7c + pristine_git_object: e97f8c240effb7c93283af4f217672136de178ed src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerResponse.java: id: 76fd5e02b627 - last_write_checksum: sha1:8b012901f839b0639293e56c3e9e84306eb0e8c1 - pristine_git_object: 7b92676529540d5bf2431a71104c35577be20dd3 + last_write_checksum: sha1:6c29026a8aedbf41a78b33de35875fa2f432264f + pristine_git_object: 6a9b9f2753a9e2447ce9cdd6f14a9cb2b5ff559f src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequest.java: id: 15347d73e357 - last_write_checksum: sha1:a0a27498e6d5c53327a186c22fb18e7d2c747833 - pristine_git_object: 1f0c8fb02f4d9bcbd0577fe4b2ea34c39034a7e8 + last_write_checksum: sha1:9929e07dba16f46b28048474cd29c33dc0dd3fb1 + pristine_git_object: 9e35efb87ac6360a71de69e70badf5fa8cfbd227 src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequestBuilder.java: id: 8d404650d06b - last_write_checksum: sha1:6577eeae529e86a22e6c18bf3af9c036ce658e39 - pristine_git_object: 5dc260cf1c0ae716ea0197d07a810ecb795dfe45 + last_write_checksum: sha1:d60725c1cca44dc80fc1fa50ad5e4001ad76be9e + pristine_git_object: caade91c2693b40376ef519dd1ab250dc2d2dbc7 src/main/java/com/formance/formance_sdk/models/operations/CreateWalletResponse.java: id: 1bd589f262ce - last_write_checksum: sha1:aa532100f34f5cfe20dc77b832ded601b2f83229 - pristine_git_object: 8db9eadd45342c7149ccea9d9a3824ad764de6b3 + last_write_checksum: sha1:c89e18c069a64fa73ffdc5f256e669678e938eff + pristine_git_object: 6803a72e7738d3fb49442853d0f803c956ecf0a3 src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowRequestBuilder.java: id: 29da818baf57 - last_write_checksum: sha1:d88a1d5c3f65db90c99b561d783714fc0658be38 - pristine_git_object: 4b441266583c152c211c929412c143bbdcbb71e7 + last_write_checksum: sha1:9184f6f4bae37f4352e105bbe7b517905200d4a3 + pristine_git_object: c62f1a9abbc6d90214944cc6513d924a5b0842c5 src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowResponse.java: id: b307aa0b6bee - last_write_checksum: sha1:a9c9a4f90e911eb8228d7ccba7b0eadca5c69587 - pristine_git_object: df24f14e56e160e208c074ffc92be4438b9d2da4 + last_write_checksum: sha1:bb459df3ef6fdadac259f7d4f98bf352922cb589 + pristine_git_object: 9456b7e91a5f0997861770dc4e64f3287bc3eebd src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequest.java: id: c80731f40979 - last_write_checksum: sha1:1bf5460bb5200269da2b72f20fb83d3eb71be38f - pristine_git_object: 68706ecc0a7177117c1d0ac749cbef75bc302e7b + last_write_checksum: sha1:bb6cb2164139b268ff51fa4b7760f30d48baef0a + pristine_git_object: 41cc1eebc02900ffd2c970c50d55ecf548c2f737 src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequestBuilder.java: id: 18f8cc837a84 - last_write_checksum: sha1:611fe32c48f89e6a1015dac1df6d529515bbbc07 - pristine_git_object: ede37f89635343ca60d8785339444ab52318c610 + last_write_checksum: sha1:133915e3860b3b24fd98a20be1fe97c7a836569f + pristine_git_object: dc9f7f36ec409ade3bf17cf5a1af787e0351d900 src/main/java/com/formance/formance_sdk/models/operations/CreditWalletResponse.java: id: c3d0020cad45 last_write_checksum: sha1:218db9544cab6e7bd0e1c778b947916d850fe692 @@ -5038,32 +5528,32 @@ trackedFiles: pristine_git_object: d842584824e44b763e9631bcba26a6c4fda41780 src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigRequestBuilder.java: id: 01663a922c08 - last_write_checksum: sha1:063397157f78ae76f8ba14eadd733e62104adf46 - pristine_git_object: 45b1f689f3b94e42b3caa72fb65298a6cebf8267 + last_write_checksum: sha1:a23d5ec44c265410ce4f586d3dd345c1719f7cb9 + pristine_git_object: 0e2bb964b603ead83d8294c77978ccdf9708f4fa src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigResponse.java: id: 1c0880816bf2 - last_write_checksum: sha1:8cae5de118c15226b38d08204c3146577b82824c - pristine_git_object: df8180fc63eaf3bcc4c24f846201ad3b55a81e4d + last_write_checksum: sha1:25b12710066b1e752fcf63356af9e0d61ce6be67 + pristine_git_object: 0f30f41caedf13c8e1cec33ade0fd21fa10c3fcf src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequest.java: id: 06ee9097485f - last_write_checksum: sha1:a09918b40bbaff58fcae81b4c17d49245355aac1 - pristine_git_object: dec4152cf9a54a81b9bdf969ce10c883d5c36fec + last_write_checksum: sha1:b582cd08f51bc387e5a4ce5de201c5b8f5d4c0b6 + pristine_git_object: e4bcab2e003adf7035d055f10fe6cbad6f7f10b2 src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequestBuilder.java: id: 1ab9e6542f25 - last_write_checksum: sha1:5ff2b207ef7ed973375fe307127b069783311689 - pristine_git_object: 5f9c98b2cf4cdc4e3d9c1e144124e7f7091e04eb + last_write_checksum: sha1:661bb189e6a25cd7f022b9c5a6952c28067de1a5 + pristine_git_object: b3d42022cea3fead437064c1309c8f54c3ac74d2 src/main/java/com/formance/formance_sdk/models/operations/DebitWalletResponse.java: id: 7734ecdde96e - last_write_checksum: sha1:e193c0adf959ac37d4e35d1c64bf693dbad8dd5d - pristine_git_object: f828c4800fb09069999d66ff78c8545b3f6b456f + last_write_checksum: sha1:973d7f84fa0af72d3305911f8d1b9ec90cb8f8ea + pristine_git_object: ac5d6d61673a31409535cb0510e4800d33cc95a1 src/main/java/com/formance/formance_sdk/models/operations/DeleteClientRequest.java: id: e45f02d56eea last_write_checksum: sha1:7dccb3ab8be9aa4317ffe258c28a6b8021352877 pristine_git_object: a1d8d185af951b3bbf0eef7b0e82e6b1ced49d1c src/main/java/com/formance/formance_sdk/models/operations/DeleteClientRequestBuilder.java: id: 801904e749e8 - last_write_checksum: sha1:f31e5a88000ff69a5facf762f1c174118b6026ee - pristine_git_object: af284620f6e2c7b003b6fffa6eb87f1ea5e86dc7 + last_write_checksum: sha1:ce3da912325deef1e469504deaa3135e6d20135b + pristine_git_object: 42b23fa844c3de70adea8377e06e2255e408dfd6 src/main/java/com/formance/formance_sdk/models/operations/DeleteClientResponse.java: id: e95f38db5c9e last_write_checksum: sha1:fa7c25488dd4e2a4d84f70889662b19e82d3b1a9 @@ -5074,8 +5564,8 @@ trackedFiles: pristine_git_object: 86a83316204009681f4cd5e641c423a81a6f3983 src/main/java/com/formance/formance_sdk/models/operations/DeleteConfigRequestBuilder.java: id: ff0cebad605f - last_write_checksum: sha1:46a15f097755edf4ed85c439e00a81aa36c3e772 - pristine_git_object: d1b2e4d0541f947dc807aa98ff3818316ac35dc7 + last_write_checksum: sha1:a7a9928f00100c21ef892268a8d1fd96c1e6fa9a + pristine_git_object: 0b7193a4483392bcb1f6e8fdc72b1e2340fe8981 src/main/java/com/formance/formance_sdk/models/operations/DeleteConfigResponse.java: id: e42e5dab1cec last_write_checksum: sha1:067d7ed0fd88b422872f13a65abde6520cd5e1ee @@ -5086,8 +5576,8 @@ trackedFiles: pristine_git_object: fa16d1710436a8b96ad67fb14b284ba912336137 src/main/java/com/formance/formance_sdk/models/operations/DeletePolicyRequestBuilder.java: id: 38c3b8b8cbdb - last_write_checksum: sha1:5c0addbb32775c6bbb7c362e2facc64cd506ada7 - pristine_git_object: 644708fccfacc653f321ea4d4267f00f7eb0bd72 + last_write_checksum: sha1:a37cdc1e51215a318724afd593c88418615a3f83 + pristine_git_object: 7c98290bae112b2855b60877b3de001a674201aa src/main/java/com/formance/formance_sdk/models/operations/DeletePolicyResponse.java: id: 1c664f3aae33 last_write_checksum: sha1:8c0ae7058a69d553b0da24ab5cc918e53edb6bda @@ -5098,8 +5588,8 @@ trackedFiles: pristine_git_object: eca11aa9518ab204a8fc4e5b5779aa70c6cd6d90 src/main/java/com/formance/formance_sdk/models/operations/DeletePoolRequestBuilder.java: id: bb5f90776762 - last_write_checksum: sha1:b50fd1dccc34bf8e7bd40a283b2ef8cc82d65143 - pristine_git_object: 5a25dfaf4c70476990e41546f9a73a01020887e3 + last_write_checksum: sha1:bb54374a937158a7323c7d86dd29708a8744315c + pristine_git_object: bc39fd6ac5b15949d20d4caf0c7604cf7ae76e49 src/main/java/com/formance/formance_sdk/models/operations/DeletePoolResponse.java: id: 6d6088b1bc06 last_write_checksum: sha1:c7c8669bbf1831f8a46d3170e3ba24d58009144a @@ -5110,8 +5600,8 @@ trackedFiles: pristine_git_object: e14b2f9420dc099c2880738c6857e12c9fe79936 src/main/java/com/formance/formance_sdk/models/operations/DeleteSecretRequestBuilder.java: id: b6a2c45deea1 - last_write_checksum: sha1:29a4ba2a7b711503f4ba0323276fc82968541df2 - pristine_git_object: 5c1848ad56ec51b4d21cdb7d754b119576547864 + last_write_checksum: sha1:86bd396d755679549712e0278b6bfc3d3958a8b1 + pristine_git_object: 291f405580ca7aa60fcf172fdfd5f15ae4bb4945 src/main/java/com/formance/formance_sdk/models/operations/DeleteSecretResponse.java: id: fb50ac3d8e26 last_write_checksum: sha1:7214252e4a5531fd500ee9a602694b6a562cb498 @@ -5122,8 +5612,8 @@ trackedFiles: pristine_git_object: 48d38ac78f46793f6998289310dbbcb24e8e67a4 src/main/java/com/formance/formance_sdk/models/operations/DeleteTransferInitiationRequestBuilder.java: id: e4fff874f6d6 - last_write_checksum: sha1:132cce6dbec4d7ceb2bb222777584dca6cfecd04 - pristine_git_object: 5ac3c5c85c0dc3dbe0dba2babdbb706b48f6dcf2 + last_write_checksum: sha1:7237e35e9310459e29d68a3cdfc6f1768dbe15cb + pristine_git_object: 4418d73ebad67f3788b23f4babeb8f99a919d62f src/main/java/com/formance/formance_sdk/models/operations/DeleteTransferInitiationResponse.java: id: 2b25c3a7b3bf last_write_checksum: sha1:747a83092e599f342867221070af2625ecfde9e7 @@ -5134,8 +5624,8 @@ trackedFiles: pristine_git_object: be3dad8b20999d177dbdca59e6faa1f963fdc567 src/main/java/com/formance/formance_sdk/models/operations/DeleteTriggerRequestBuilder.java: id: 2adc45ac312e - last_write_checksum: sha1:c04543746609026b52fe4f24d745ed8882d3d748 - pristine_git_object: c56f810fd543525a8fb183e085ecada776eeee4a + last_write_checksum: sha1:a4d90ee42993ba225c5300db9da4d17b77ed28bc + pristine_git_object: 5a06fe7fee6d2f98b861548cfcf926c78c05c901 src/main/java/com/formance/formance_sdk/models/operations/DeleteTriggerResponse.java: id: ce8b17d4bf01 last_write_checksum: sha1:2eb7e109cb747ad00933ec82251f8c988fd5e62f @@ -5146,236 +5636,248 @@ trackedFiles: pristine_git_object: 305e6625ca3095505ba269a23a7bc8e0edd2c15e src/main/java/com/formance/formance_sdk/models/operations/DeleteWorkflowRequestBuilder.java: id: 47f644d1a5ec - last_write_checksum: sha1:6574be93e4f6d3e5a8ecc3ed07415c4592c40a99 - pristine_git_object: ac2fd669668241f983df76cec85e504e0eda3c1d + last_write_checksum: sha1:dd2acc084128ec9407cf7f7de434367acce11258 + pristine_git_object: 9946115e875c3fce7ac5be16768dcea360478207 src/main/java/com/formance/formance_sdk/models/operations/DeleteWorkflowResponse.java: id: 18b1504f606e last_write_checksum: sha1:c5cdf752ddad9df2c07b9898ce03c0caa318cb83 pristine_git_object: cfea494d80edd0cb0bc34caa415ac2a68b983c7e src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequest.java: id: 395f7809f6db - last_write_checksum: sha1:39e62fd843d77e88b21b4850082ddc27316e1f39 - pristine_git_object: 1d19ecaed10e7cdc167098412daf7774b4dd7d16 + last_write_checksum: sha1:b05bf9366be9478fe4d147d908c456c147cf06b1 + pristine_git_object: 926439492f657091b5f1b82aaa423fbccc0d6b1d src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequestBuilder.java: id: 373b7289af5f - last_write_checksum: sha1:ad05a5bcfc6b1d6e01d2791546911dded0af5181 - pristine_git_object: cef9c57a1e3e77cbf82361278901a2c78b5d2c6c + last_write_checksum: sha1:0b2fe29d0ef993ffd1842f751d9ccd157296f7cb + pristine_git_object: 2b6b395248f1019415a443df4dc346cf0d470f00 src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountResponse.java: id: cea87b76da02 - last_write_checksum: sha1:5ce8f0e0e64efc05a37cb8ad28b78c922673d60e - pristine_git_object: dcdc7d237b22ed814d811f644b7833813dee46fd + last_write_checksum: sha1:7e679b6070ac3bb3d91e6a31a6ba44de1074ce03 + pristine_git_object: 56fa8e558b65ba4059cdd5e320cc44f8460719a1 src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesRequest.java: id: 9be1512c836c last_write_checksum: sha1:52f8a0be1109ab5e522ea7ff12e1a3e10effefb7 pristine_git_object: 77be09ea2aad68b64153c1f3d7dd69337ec6275b src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesRequestBuilder.java: id: 2cec8e25224f - last_write_checksum: sha1:6bdac8bb7008d2e3a38b3a387a594f86e15bffe9 - pristine_git_object: 2ce3bbfc0fc858d59ede0712c57740eabb4ce884 + last_write_checksum: sha1:99b2e4ec209f5a5f96e2fa6c48d8730145909593 + pristine_git_object: 68bca9e973503204353603ee6768c812878f0495 src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesResponse.java: id: f56b583fe127 - last_write_checksum: sha1:b5778374dfcbf579af368ea8133cff734f29e496 - pristine_git_object: f7c9c99e7fc23e8e8f9efee0bc48098583cd73b3 - src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequest.java: - id: eb3618096951 - last_write_checksum: sha1:186df5fd0449ef99c6afbe8d79ee14aba6779e8f - pristine_git_object: 18764ed2c2f1117811f7b943e1e7a5cb09100322 - src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequestBuilder.java: - id: 67bca3645e77 - last_write_checksum: sha1:f71790523a02c962a0628dce29a911f384a4167c - pristine_git_object: a141c2c5a89437fe9b1e081468a4ee47add172ee - src/main/java/com/formance/formance_sdk/models/operations/GetAccountResponse.java: - id: 56559696ce1a - last_write_checksum: sha1:2eaad7c990297815e3de05d6e085756e22485ab6 - pristine_git_object: ff944fa87df740db1d31f3d25bed02f0e662e480 + last_write_checksum: sha1:4b2f07af62af6e641919021bdda278fb8570d5bb + pristine_git_object: be16c352b8b45a4c0d4ee114dca3295bc9d9491d + src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequest.java: + id: ef00b1441b32 + last_write_checksum: sha1:9f872242fb5d28058b46dd3e6b5262aaa2b68809 + pristine_git_object: 67cd92006c9327692eaf0afcb0543b3b1e624571 + src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequestBuilder.java: + id: a3f05ac05cf7 + last_write_checksum: sha1:88323bc44a65ad0469571a5ef63fba432b0220c7 + pristine_git_object: f5d3716f9364b45cbb16e57cf32f1f4eb18decc4 + src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerResponse.java: + id: 0dbec7b0c373 + last_write_checksum: sha1:fce5249af4f60e8ef2ef89acc851caa8d70af4c1 + pristine_git_object: 243c01fd31a71dd524f51baedf219e5f19d68ed0 + src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequest.java: + id: f34b4fd41372 + last_write_checksum: sha1:944d386a679405fcbe719cb7a3bdfc0f6486f579 + pristine_git_object: 86cf41f6b3721d5620a31336c6326b9d7b75c4fb + src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequestBuilder.java: + id: c200bb26bdca + last_write_checksum: sha1:5fe571f2fee382ba22c6430ec126e5e0af97b9c8 + pristine_git_object: 01805d50aa6f23f879ac39682f7907afa15865b6 + src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsResponse.java: + id: 01f2cc851cf6 + last_write_checksum: sha1:55239a135f251c7ea5b2f71bcc6325d30cbe4d38 + pristine_git_object: 47b5f71e2656d0f6ead3048e21b46140efb220a7 src/main/java/com/formance/formance_sdk/models/operations/GetBalanceRequest.java: id: f4f4e97826ee last_write_checksum: sha1:788e299f6e1439cacf063088b64384b9f60c6379 pristine_git_object: f4424d389ab8f1241914e4c60303942e022d373c src/main/java/com/formance/formance_sdk/models/operations/GetBalanceRequestBuilder.java: id: bfb77eb32228 - last_write_checksum: sha1:94c58ac8eb812c00b169c134752c0b1c71ec3202 - pristine_git_object: b77581a6413105783c75c91a5c21f014646b60a4 + last_write_checksum: sha1:86279ffd8ce11fc175bf97a62915f83d2f7ec88d + pristine_git_object: f799a717a79ec541ae1e17d14d0f2bbaed449aca src/main/java/com/formance/formance_sdk/models/operations/GetBalanceResponse.java: id: 41f92de83763 - last_write_checksum: sha1:cd15f5585b8d2416bf1b4cf9ec83f80d3bedbb8b - pristine_git_object: 92f17dfd88ec58d1a95414221f22466559370a1c + last_write_checksum: sha1:33d0b6ce302376b29543e3fbc9f5c0bd5f7230f1 + pristine_git_object: 8d2c5b058838b63d256e4c1ce2ba9422ce71cf2b src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedRequest.java: id: 457ec49d9691 last_write_checksum: sha1:1fa63c8b271e28bbdd3cfed6c4cf375905d2fb15 pristine_git_object: 3c7f8ff54bf1b7e0c9a34391a2647c2c8adda76a src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedRequestBuilder.java: id: fa128a3a260b - last_write_checksum: sha1:aeb9947f98105985bfba9b1c0e0fccbbf6a2644d - pristine_git_object: 2f51a2987154923b736016b57a0e9da1dac48bf8 + last_write_checksum: sha1:ad5e8ef1811b81cd5115f78a3ec3a25ecaeeb7c1 + pristine_git_object: 57a486df438e5b9d8c2ebf6f76eb5c7cc96b8a28 src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedResponse.java: id: 30ca711ee71f - last_write_checksum: sha1:014d930927857780277553c4806c02c2ac52f840 - pristine_git_object: 328eebad11485e5d6b9f78591160f2de57a874be + last_write_checksum: sha1:37ef6b058ac418996ccda32ba9e295c04f05ca96 + pristine_git_object: 04c961c3b0c9d4e9d3810744113d7eef265869ac src/main/java/com/formance/formance_sdk/models/operations/GetBalancesRequest.java: id: e8c91df8e089 last_write_checksum: sha1:3b948eeb81145160641a3b96dcf2429ae98fe51e pristine_git_object: abdaecfa0c9054e939011c72e6de6fd9aaab408c src/main/java/com/formance/formance_sdk/models/operations/GetBalancesRequestBuilder.java: id: cae0f1bae417 - last_write_checksum: sha1:c545243dabd3c4e0b286380f3391b760477d6a8f - pristine_git_object: 9cc8f1aa62427b704faaccae5e6935331e63d264 + last_write_checksum: sha1:f7d614666c0ac8ce6e3c4c10bb598f4eedcf631c + pristine_git_object: 7f226d8b38200b0a9bac152da5a85a8f63111eef src/main/java/com/formance/formance_sdk/models/operations/GetBalancesResponse.java: id: c3800b71f610 - last_write_checksum: sha1:9b22963071e20836df0d43740837f5130b90a231 - pristine_git_object: 3080dbf2b53516e1d11e0e38740f317a6710836c + last_write_checksum: sha1:b540bcdd44510e9537f40ff77d2cc4d453b1d9ce + pristine_git_object: e8adbb0b0a3e32671981faf6b469b562a08b1c2b src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountRequest.java: id: 84dc85c07ddc last_write_checksum: sha1:3969bc3e3ddcb73303bd38ed15b498a72af3d3fb pristine_git_object: a9260bdc6ad94681318a60c5d782c671b0912b30 src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountRequestBuilder.java: id: a6a671b48cee - last_write_checksum: sha1:028f935d5528e6746e18d5aaf8e4f91d1990bebb - pristine_git_object: 81e1a798fc9999c483a0c97d9a9afbdfd415b770 + last_write_checksum: sha1:a656837ee0f9204d5fafc7c2e657be437a5e44a3 + pristine_git_object: 24f1b1241aa76182a949d6c8e025f154c6e50e66 src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountResponse.java: id: c6a7c8e8d257 - last_write_checksum: sha1:4e4e7d6bd5f8c0d2a3835c5f73bcaf63326a74f7 - pristine_git_object: d5dbaf0a0e2a43fcf343d51b6722828664680138 + last_write_checksum: sha1:1eee31400421aa1cb5d6b53fed0a9594c53c1e28 + pristine_git_object: 6b8a5cfdc205eb0e50a82b7d2fcdeaf22a1095ce src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequest.java: id: 883dca1554b7 - last_write_checksum: sha1:94efb0c8fea7f6ca0f0c8efda6471fb70cfbae6c - pristine_git_object: a70befdeb7ac329b4c27589292c4caaf9740234f + last_write_checksum: sha1:fc70a41c415556221ba2eeb95c7c85c3b13fc008 + pristine_git_object: f1d7fa9db3b9f978aff78443f799b2be43330eec src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequestBuilder.java: id: 88301c75c500 - last_write_checksum: sha1:6a43df66551ddbf8ab596fd5d272f45d3a19f55f - pristine_git_object: c71c41eb613304ff206986bdb3ff15ebd3a49566 + last_write_checksum: sha1:5c2cba6a45e9585557e68e4a6bff2d5e75220015 + pristine_git_object: c5961b543064180c93338e4bb711e66ba29b88d1 src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskResponse.java: id: 226de272ec6e - last_write_checksum: sha1:33fb10c65818aaa1973daa163cf635b530d155cc - pristine_git_object: 8cb2d576a108f2c0bad9368b203772c151397cbe + last_write_checksum: sha1:0c0c4856c39e4b41a78b3d51ccc13e1e4e1f4cc1 + pristine_git_object: 8e2197e5abe2eae1a1ea6b10375489dabb218739 src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Request.java: id: c7a94e951fa8 - last_write_checksum: sha1:f5611eea499e85bb5340fc00043605dd095d8d76 - pristine_git_object: 6406e3f731432ee881401abd6b4a25d122af6177 + last_write_checksum: sha1:987c47dc8d7ce425faf0de0f8ed173a454414200 + pristine_git_object: 2ad6d21d7c9e3b20a488a0d9c784cfc5e5a584a6 src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1RequestBuilder.java: id: 8851f0604cee - last_write_checksum: sha1:9348db102129d55b53c174cfda5ce052f7715ef5 - pristine_git_object: 428ddc797ca34162773611536573b42e7f3a6fb1 + last_write_checksum: sha1:64f8fb3f31c084fde4086c8ac006150bc16603d3 + pristine_git_object: 5c23a4206f65b1ffc6523196df8f808cf3f1569b src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Response.java: id: f7c524f620f0 - last_write_checksum: sha1:0cff9282956646ff847aa5c4aa7f393974b62666 - pristine_git_object: 30081dc285005e41fcc6c72bc5e62b2fd4e0549e + last_write_checksum: sha1:c041e007cd385d9b6973696a61a6e5528700fd55 + pristine_git_object: d92ab36432d4e7aa2b3fa69c77a3eedf0d3f3e7f src/main/java/com/formance/formance_sdk/models/operations/GetHoldRequest.java: id: d8513aeecfff last_write_checksum: sha1:bca69b92d46808182860a31213342b9f49f23ba4 pristine_git_object: 1e8280b5bcf208b434fce008bd2a1a6bba039402 src/main/java/com/formance/formance_sdk/models/operations/GetHoldRequestBuilder.java: id: 35c48b43d586 - last_write_checksum: sha1:f43b518c0e57852ca8a6a82c1b62e2b8ff786e03 - pristine_git_object: eec4764cc84dd6d84580d91032ed917460d14e2c + last_write_checksum: sha1:4d4116ebed20777cd5db7e8e36e6dc4d56c3c227 + pristine_git_object: 28fa8ef4dc1c478e8ae28f69c79f8b2c4a364194 src/main/java/com/formance/formance_sdk/models/operations/GetHoldResponse.java: id: dd3600456178 - last_write_checksum: sha1:a170cf4b700ab21dcd858911106926598663e888 - pristine_git_object: e4ff1d2662ef88eb7bf3324d81ac752dc068f189 + last_write_checksum: sha1:2594250318fa548c6b5c46603d2bdea230876c8d + pristine_git_object: cb83e1f665d6564e41bb389d893aab9e7fca747f src/main/java/com/formance/formance_sdk/models/operations/GetHoldsRequest.java: id: 0b34f9187ef9 last_write_checksum: sha1:753b195a192534c4820e7ebc9088e7664e9c8b3f pristine_git_object: 703cfdeb9988dd933cab0a535c78fe08ddc313bb src/main/java/com/formance/formance_sdk/models/operations/GetHoldsRequestBuilder.java: id: 877d3a6e3498 - last_write_checksum: sha1:9c5c210c17f589fcd5267de4a9ed733251f0b80a - pristine_git_object: c77e63fc603f4f012790669ea071540c6b487289 + last_write_checksum: sha1:c98126a0f0c3f5ecef642b799605576b0c4dfa37 + pristine_git_object: 55108bccd8adc3ea2930a15413b1404b9b51d6a6 src/main/java/com/formance/formance_sdk/models/operations/GetHoldsResponse.java: id: 145d7533ac78 - last_write_checksum: sha1:bfd990af352bc01d5b680604947a609937b5d5a3 - pristine_git_object: ae75c4b918fddbcdf9c465960b3086ea09a44b63 + last_write_checksum: sha1:dfea879b315721a8ad3549fab17bed19ab218043 + pristine_git_object: c61125be1651f2a9ca55caa4c9285e36d70cbdd1 src/main/java/com/formance/formance_sdk/models/operations/GetInfoRequestBuilder.java: id: c07be4e7f64d - last_write_checksum: sha1:5410d1f3dc6713cac02aaa0165924c6a12276874 - pristine_git_object: 8d7b4d4fd7ee7b5c463944ee6098d1f532956400 + last_write_checksum: sha1:52389e02d3cebb1cec223ab8d6d134bf54a377a8 + pristine_git_object: b983460dad5698c7ca5c2121ca10756a61a20bb1 src/main/java/com/formance/formance_sdk/models/operations/GetInfoResponse.java: id: bebe5b27dbf6 - last_write_checksum: sha1:6a0c9fef1a4598778707a36397f463b1d4909151 - pristine_git_object: 53ae7b184e8eb492d73bcb15a2b235bd80f869e0 + last_write_checksum: sha1:94caf3cb616d45c91fbccf5dea0d7d97d8a8f819 + pristine_git_object: 856797b2e0ea0fe97d2ac28f02a30219e057a10a src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryRequest.java: id: 793791623bf4 last_write_checksum: sha1:0396549dec4caac49e5f30888bc556a143ac5bb4 pristine_git_object: 6bd167dba018a5a322d1fe1b70197c1ce6082531 src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryRequestBuilder.java: id: 28b8a1eff075 - last_write_checksum: sha1:8741a2beca05786bd0cb74c49d20d17b055270d3 - pristine_git_object: 1d7fd5eb0e33b94c7a0b32c2e470908a875def51 + last_write_checksum: sha1:40d0d2c1816da25ee9e33e15e985bcd94af26f3d + pristine_git_object: e526115209adff44e346cd0aa76215e969d7fdca src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryResponse.java: id: ab549dfa6b6d - last_write_checksum: sha1:65a8e1913163783288b8c4f8b12bf393d351001d - pristine_git_object: bfeb5aa98177265beef8ef19d0a8734fc0b1f62e + last_write_checksum: sha1:ae3f2795fdb2c51d5a41b30ca6e751fb15668bf1 + pristine_git_object: 1e9f6aad66e7706b85668072d6b252c28b4bf499 src/main/java/com/formance/formance_sdk/models/operations/GetInstanceRequest.java: id: 82a80442d145 last_write_checksum: sha1:a26b81d18494e84426999c554e17af5b484f9f1b pristine_git_object: 2de87576f971daa751e26c776732f25b258319b8 src/main/java/com/formance/formance_sdk/models/operations/GetInstanceRequestBuilder.java: id: c152b51a3f4c - last_write_checksum: sha1:7f74d8fccd62acbbeee0479bf96617ece5edbf11 - pristine_git_object: 9967ddfa83dc31cce633a995cbb6849078242ad6 + last_write_checksum: sha1:7b14481a121a438c2735d75824b13d8513acfce3 + pristine_git_object: 22b2f89c7884f57f23ae49b5181d99ead4c9a9f5 src/main/java/com/formance/formance_sdk/models/operations/GetInstanceResponse.java: id: ffb9763873ce - last_write_checksum: sha1:6482ad7b46b8b1c576853d026bd7eeced7efdca7 - pristine_git_object: 6e2881468992429ea50179daf808d2707aff7945 + last_write_checksum: sha1:c44be20116bbb2f30c81a09f88bd2b5f9c07c118 + pristine_git_object: e7ebfb8987d6c6fff6a9338ef30e020bd559ba7c src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryRequest.java: id: a276f2289ac3 last_write_checksum: sha1:3a98773a5910a618a6ea79846701a8f4474eda25 pristine_git_object: aed647e42f40f3e774c7bdce2d29ea7567777cfb src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryRequestBuilder.java: id: be7441a58280 - last_write_checksum: sha1:9b8cd189e51b7a4b12962a74100604345e04a7e6 - pristine_git_object: 25048ae42db0d9a1698e6ebfe7033b613365a457 + last_write_checksum: sha1:e4e30957dbf813a18481ffb357ab2782f56c6579 + pristine_git_object: 8126f34a470fc166ea30cffb236d5898ab8c535d src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryResponse.java: id: f27b6e8665a8 - last_write_checksum: sha1:da85089efba84f2f4e5ae1c8efed9cfea1a7b44d - pristine_git_object: 6bf3a4be8ef0052b65e687005d5c4eceeb75d7f0 + last_write_checksum: sha1:33e41d29cad38507d2118ba058dff9250c31812d + pristine_git_object: d04d2a2c0e6a73188ce376f237f7155534cb4abe src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoRequest.java: id: f8724c7338fc last_write_checksum: sha1:8128616aa7d9ba75168932c31015d75a1753b267 pristine_git_object: 5e42c0311a0d31a6d638c51e02478f8b9af06789 src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoRequestBuilder.java: id: 196929da67bc - last_write_checksum: sha1:276cc7d74e39979bdb820e9a124463bf40cb8a4c - pristine_git_object: dff84b9433d02d58fe92bb16e8a7a88f2d66e842 + last_write_checksum: sha1:028f22937844e92d9bb662834053247b3a5fe341 + pristine_git_object: 54ad014b71bb5121e074694736b4bf6ca2d87088 src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoResponse.java: id: 427ccd0aea67 - last_write_checksum: sha1:34aacca9693df26a934bce4d47a02d21f4706669 - pristine_git_object: 55d08f2968db75b12f7334acc3d64d824bdd7227 + last_write_checksum: sha1:36ffa9840eb7153bb2c363b66005b4997e32c47e + pristine_git_object: 9f0a7b712b97ef6718e80d366c65dcafae454d69 src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsRequest.java: id: b7be73cf5838 last_write_checksum: sha1:19093553bd0c1f3d626451dbf0cf9588b97dbbf3 pristine_git_object: d2b8aee49c3f74014437f41a68b4d32d8b660c28 src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsRequestBuilder.java: id: 6094a1df4839 - last_write_checksum: sha1:a0b1edfb766c57674ac252ff135069403f787c12 - pristine_git_object: 878c44adaf787428e7704408438ee3751c8d7868 + last_write_checksum: sha1:8e38e4841fd1c56d9148bef94099ee0013de224a + pristine_git_object: a1d6b6421fe55fe16e7973b9b9db8d08586bb759 src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsResponse.java: id: b035e4960b39 - last_write_checksum: sha1:7b11792dec14d4101628b004503a6e599004d79d - pristine_git_object: 155f603c0d4300d838930da91c169a86ac878349 + last_write_checksum: sha1:d7fd958acf264938e4a5b819acc908093e7f1ddf + pristine_git_object: 88e290045faff1024045c4d167bc82ccd407f2e9 src/main/java/com/formance/formance_sdk/models/operations/GetMappingRequest.java: id: 5aa828f88a09 last_write_checksum: sha1:056796d5b42a8c73af39124ac55efc021fabc6cc pristine_git_object: 1a95a22e18a9d25c51b984471d210799b97b1bc8 src/main/java/com/formance/formance_sdk/models/operations/GetMappingRequestBuilder.java: id: 98f2761665bc - last_write_checksum: sha1:3195a4a7625be6b0546b4bef0ed8e5490e9fede3 - pristine_git_object: 0af47f375bd72dab3587a3963e59afbbceabadd7 + last_write_checksum: sha1:b95be570a288f51ac0002e695ec8f151b8ddeb05 + pristine_git_object: 74e9ef0de74649303692ac95035078ab1ae2c7b4 src/main/java/com/formance/formance_sdk/models/operations/GetMappingResponse.java: id: 485f3a512ccf - last_write_checksum: sha1:7983ad992bb1167b4bf5bb165885bdcdab257072 - pristine_git_object: 127336cf8af396e47e1f172c18227c7fb7f3e7d3 + last_write_checksum: sha1:025b6e0f81019be872c876d353c49d9d31b26dbd + pristine_git_object: b301640549d4faf6ab16bab4d0fc0eb5f3cabefd src/main/java/com/formance/formance_sdk/models/operations/GetMetricsRequestBuilder.java: id: e56efb1e82ad - last_write_checksum: sha1:aea75f156d7075a702f6aec6b4149cd10a11b65f - pristine_git_object: 6d6f275ee195b5b3f991ca2c510f1d982e97ff89 + last_write_checksum: sha1:c3efd3b2603cc1b0a1632957ddcae64beb13b0d8 + pristine_git_object: 721a0581c9609c465e471496adbbab7eb3d3e273 src/main/java/com/formance/formance_sdk/models/operations/GetMetricsResponse.java: id: 0ff7a7ed2e8f last_write_checksum: sha1:dafd791aa23bec9f195a31df76da8e218e3bb1e5 pristine_git_object: d4bc18fec0f45208fb92e364d6829b93f1b70b98 src/main/java/com/formance/formance_sdk/models/operations/GetOIDCWellKnownsRequestBuilder.java: id: e97e72864465 - last_write_checksum: sha1:f574a4bc1be33914d7788ded696d2ccec863425c - pristine_git_object: 75ac467653d407ef739f13da93f437a169fc8050 + last_write_checksum: sha1:39afab60976686dee4b1aaffc26e06b32adaabf8 + pristine_git_object: c9667fd79633dd81de21ae5a4566db4f09f0a000 src/main/java/com/formance/formance_sdk/models/operations/GetOIDCWellKnownsResponse.java: id: e2a8f92aa902 last_write_checksum: sha1:638106ea53a5684a49c5eca99427d7d3b5a514f0 @@ -5386,580 +5888,584 @@ trackedFiles: pristine_git_object: 23546e5b2084f4182528bbcc7ba15fa073e60b82 src/main/java/com/formance/formance_sdk/models/operations/GetPaymentRequestBuilder.java: id: ed264ca818a3 - last_write_checksum: sha1:b2acccdae7a4f9bc580b9a0e20c163cb67ab64b5 - pristine_git_object: 0a9e100283277d7d45798ffbb0a0f799f3e0a5e0 + last_write_checksum: sha1:6f402e71cab7db15a92b1e65426d467da617c245 + pristine_git_object: 355510107ba5642037dfea6443cfa073fa42fdbd src/main/java/com/formance/formance_sdk/models/operations/GetPaymentResponse.java: id: 711e79d7d56b - last_write_checksum: sha1:c1fcf579df46bd9a506be1c07829ef7b25e4f7c1 - pristine_git_object: d0af36686eca94b6317bcd96158488e116a4c68f + last_write_checksum: sha1:b544528f850ffa6d82ea98b27d906b9013d1b34a + pristine_git_object: 11832f12646766fda6f7ec0e126f13c3ab5f4916 src/main/java/com/formance/formance_sdk/models/operations/GetPolicyRequest.java: id: add0009caac6 last_write_checksum: sha1:001eabadc9fe6a344319f9b5fee75168abbfa2e0 pristine_git_object: 50d93740052487bfd4b801a0ecf99a809d9e579f src/main/java/com/formance/formance_sdk/models/operations/GetPolicyRequestBuilder.java: id: 199e21f607bd - last_write_checksum: sha1:565c5509c795ba347c43f5682450bdf4ead79c7f - pristine_git_object: 0dd10437d14954067ce9aa798701fc1564ff7923 + last_write_checksum: sha1:e27508bcf462493529dd22782cbb29b57fb1c07c + pristine_git_object: 4e4158a01461f79cc3576f2963a68329f18502e4 src/main/java/com/formance/formance_sdk/models/operations/GetPolicyResponse.java: id: d5bb5028012b - last_write_checksum: sha1:71bb3dc06cb8e2514756a352f52a9d52fe0f8b86 - pristine_git_object: d104246295aa5f9dc93bc384ff4cc5583821481d + last_write_checksum: sha1:686c424f3c11a21de6b2b0cefe3d514b378b1f9c + pristine_git_object: b980dd17c51485acf68beb7f17ea0d7922d5b472 src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestRequest.java: id: 4437d3925dc2 last_write_checksum: sha1:4dd23441396a10faa771fec1edb20bd90ce35542 pristine_git_object: 0ec53f9550a58b56b9f34512a9529524f54f4be5 src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestRequestBuilder.java: id: 0178ea5f7be4 - last_write_checksum: sha1:9fa18bcbbbe94541297adad79f98b354cdbd8c66 - pristine_git_object: 642df1ed3451327135cba0366b27b767fd439265 + last_write_checksum: sha1:dff2cfea4f0713da82781d080e29b998a0360ef8 + pristine_git_object: c7917c66d9c4f6e97c1ecf290b30aef6d2eb8757 src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestResponse.java: id: 641bfec229bd - last_write_checksum: sha1:768bddcb3bb542a86fbb1bf075e2c794946e0ae2 - pristine_git_object: 433d77aa7df8a8388b0cd3ddef7b30b5e507860e + last_write_checksum: sha1:7e29c3630e9623926b0b2b8ecf9a94d59a8a61ae + pristine_git_object: 237e415ec6a02f1d6962fb99aa81fe44535ed78b src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesRequest.java: id: e7d30e266a81 last_write_checksum: sha1:0b593692c60d708d96422cd0db8994181ccac714 pristine_git_object: 1702b5bb3bdc517f456d730ce1057d2e93436d5a src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesRequestBuilder.java: id: 95e8846cedc6 - last_write_checksum: sha1:c1f51ed9bed790611351469254aedf8b986b7853 - pristine_git_object: 104363e4d6ba22b3bf500ce7fde38e8b15e21a71 + last_write_checksum: sha1:68b8548a39fa1dc063fa8530a7626a438b11d0e3 + pristine_git_object: 379ec02c72aea5cedecbde6c75fded032c76a5e4 src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesResponse.java: id: 82af80f9796a - last_write_checksum: sha1:d1de5e92b17c0c5e673fbc3186e6cda597dc5010 - pristine_git_object: f39a33d3b73b45b929de9237961fa12a8916068b + last_write_checksum: sha1:94d6acf85911ab3d4f981ac8fc3db5f99cdd770a + pristine_git_object: 4f8ae8b788d972a3036d39fc125524eade9e0cbb src/main/java/com/formance/formance_sdk/models/operations/GetPoolRequest.java: id: e72906c25b0a last_write_checksum: sha1:ed14730fc4cb6f9e5e6ce54bd921a447e7dc0bc2 pristine_git_object: 1ab7513815c5a3157a142573d0c8d25ab100bd1e src/main/java/com/formance/formance_sdk/models/operations/GetPoolRequestBuilder.java: id: 027487aff84b - last_write_checksum: sha1:d0261e3dad93adc9ace0a7ee7101d029b6278bfb - pristine_git_object: c1c2a1fd07340cba378e74be2aba180a2d7f412a + last_write_checksum: sha1:9b9c9ca3e8e8b7865d1cfdfeb64aaf2a4b5b9e6b + pristine_git_object: 15d28e9640376abaae3ad0a149f2e8ff6d6e32ac src/main/java/com/formance/formance_sdk/models/operations/GetPoolResponse.java: id: a4fa79144c08 - last_write_checksum: sha1:79bdd83421d35a4165277b9b9f0fe06744197a51 - pristine_git_object: 6cc0a42af4c7c4fa1cc4e10ad97ecfd4c2e5e95e + last_write_checksum: sha1:be13694150e23de3ff977b9440eb81d4d94251d5 + pristine_git_object: b2f0cca7180fe7561f8ba9401c79e653c5fa5d3a src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationRequest.java: id: edbff339ad08 last_write_checksum: sha1:0d5690f725dcabf1938bddf77b00d15e0746e53a pristine_git_object: 91494f9256d5b457db5591cab5d996cfc5dce2ee src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationRequestBuilder.java: id: 890c7219a81f - last_write_checksum: sha1:c2dcf25d5094b4fcd163e8ee12b6c2292b90f08d - pristine_git_object: 990e0975b5d7fea311886f466232829c959c5d20 + last_write_checksum: sha1:2a54859486f598a180825b8ae6f345189fdd082e + pristine_git_object: 49fa5ed83c4c0c44286618eabb85e7730f8a29c5 src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationResponse.java: id: 6200e5a326be - last_write_checksum: sha1:bd0d806e31823a4c9ee491a407ee462c78a5851f - pristine_git_object: f30a06c9f0c8a9819e6226c6240d2bcd98e66652 - src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoRequestBuilder.java: - id: a33a76f8c5b5 - last_write_checksum: sha1:e79d65a2ccf530cae8a4827a3866a08aeeae7431 - pristine_git_object: 2bd73860003e8a0e2b22fd7180e483a016424743 - src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoResponse.java: - id: 773118735b8f - last_write_checksum: sha1:52fa3c98516cb0bc897c9e1440917a760a6349d1 - pristine_git_object: 401a324074d1acb0516ef2bd50864ae5c0d5014c + last_write_checksum: sha1:ae4dec559d388cb7bbd7aeb7fdbe0784200632e7 + pristine_git_object: 945e840918e71191fd5a43ef68844d7f88ec0a76 + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthRequestBuilder.java: + id: 91265a33f67c + last_write_checksum: sha1:8a0a635a888c2d5a5a5a7c076c7aa719ef316fc0 + pristine_git_object: f90938ea858eda3e7d7f79aa2e5e6d544e250afa + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthResponse.java: + id: 10d950c3e449 + last_write_checksum: sha1:f409afbd4a14835677a550f0d89a00f6f3bad97e + pristine_git_object: a0cddfdd99bc7de87947b61cc66dc2ef060b33fc + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationRequestBuilder.java: + id: 0205f3a8a0fc + last_write_checksum: sha1:f77dbaf4c5a6788aba7a31a4c11a0b0db4a535b0 + pristine_git_object: 93107ed8e3c4374a0ea2ff56b4e994cdad643e43 + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationResponse.java: + id: 9944fbb85f3e + last_write_checksum: sha1:f67cd8071a1b646416a438d66e46497c95b4f8ef + pristine_git_object: 8ce789b28cfd590f47b43086a54b69461d9a251b + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsRequestBuilder.java: + id: 64e90fb566ef + last_write_checksum: sha1:25e27af18e998d537c3fe767e473e2645e700e25 + pristine_git_object: 1869c413bd5fd72434021f329148d242f186052e + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsResponse.java: + id: d47d0c3de3bf + last_write_checksum: sha1:2362bdca9266cfb49de31f04b2baeceb9033000e + pristine_git_object: 5193b04f198339c89daa5756df3a0c7587815e6c + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationRequestBuilder.java: + id: 4c6ed4c5298d + last_write_checksum: sha1:fbe4f3233b3bd891c42a69ec198b104f8d342ed6 + pristine_git_object: 2cb59f396ca127e12c885b80a8ad1c94017c9ed7 + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationResponse.java: + id: 6224bbf35f27 + last_write_checksum: sha1:f4e7f206909c521b941c2b0f34bdb531eea965e5 + pristine_git_object: 8cc47542d70e26a4831d7e78a8e8647ebb55abf5 + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchRequestBuilder.java: + id: 5b114b423ad3 + last_write_checksum: sha1:1fe08c3ee4863ddc827afca28ab93310be7af82b + pristine_git_object: 7876c71231572601832d8eabc73c90b4cfa9fe7a + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchResponse.java: + id: 29539f2c6586 + last_write_checksum: sha1:86ba6ede2706f91df15673059a9de2f5b00f723c + pristine_git_object: c7ff18866851c8aa9b60b990a54a7860313417bd + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsRequestBuilder.java: + id: 69f0181907da + last_write_checksum: sha1:7be28868fb465cac06496a49eec841d650973e3e + pristine_git_object: 397093c6f9adca2abda835f1cf5aa50168c7d13b + src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsResponse.java: + id: c5b37ffbadec + last_write_checksum: sha1:05412d402a459472fde48136c277a5b04cd4a1a8 + pristine_git_object: dc3241207c9d68ae937fc4d61582bb85243ecf02 src/main/java/com/formance/formance_sdk/models/operations/GetTransactionRequest.java: id: a58a9452abfc last_write_checksum: sha1:74362c495fa23d467131cae1e2e6562a4ea8310b pristine_git_object: 64487726c75aea57c0304c517cab86d229edebeb src/main/java/com/formance/formance_sdk/models/operations/GetTransactionRequestBuilder.java: id: 4629e8986068 - last_write_checksum: sha1:71977dca60cfe786a8ab5a5c30624ec017b1c668 - pristine_git_object: 6dcbf393e702ad3a27edeb04c742496164305c69 + last_write_checksum: sha1:ce7777f6e2598cb63d0be85f9134c55a92ae3b2d + pristine_git_object: 310a28afeaed1a9588dd37060e8b6c3ed48fd8ab src/main/java/com/formance/formance_sdk/models/operations/GetTransactionResponse.java: id: 26f65f3a53e5 - last_write_checksum: sha1:48a2b9ffd05a020f7d88895f5b38b8405255e2a5 - pristine_git_object: 48d0ba21198042e65dc462616f0efce92d8de780 + last_write_checksum: sha1:8ea73ca32d9bf0ac8b12ceca7d6bbb35dbffbabb + pristine_git_object: 9dfd472781ea8ac5824c4186a07231eb30ea055c src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsRequest.java: id: 7076c38a94d4 last_write_checksum: sha1:247fb1225fe9c032d262ef42d1b9a5a38c435db8 pristine_git_object: c0ed1d6e4cb38f707d86c9941866223f62a73c0e src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsRequestBuilder.java: id: 1fed3a7a3e8f - last_write_checksum: sha1:769129f0ec7ce243ebeffc9b42e059d2e0ede48c - pristine_git_object: 8ebd6550daef6df3cb681f83eb6df95bc9fa426b + last_write_checksum: sha1:308c94083f49d811abc44a8b757ebb13bf9983e9 + pristine_git_object: e193950eff18ae5dc57c1ed6d3517d305bda33ee src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsResponse.java: id: 99b0ea076d89 - last_write_checksum: sha1:e61891fc2d3c7695390f7a285a1cbe175539b90d - pristine_git_object: 4439fedc29d026d582e38f66ebc338b50a2ad8c2 + last_write_checksum: sha1:47d4dfeeb421df3593bd4eb80a084dc6babb85a7 + pristine_git_object: 490844d4c28ce28f3f2e6a999e3dd1c060bb7896 src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationRequest.java: id: c26e47fba965 last_write_checksum: sha1:ba9eab246a6c18499a1fbce9cbaa2c19b6eae514 pristine_git_object: bd980aaaf5f492a069c004ebc0d0ec095a9125ad src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationRequestBuilder.java: id: e8fdfd8b22dd - last_write_checksum: sha1:0058249aa692b99aa73d94ed7b26131858275193 - pristine_git_object: 5956b6d07cdec293315f00c1caf7a5ef69d1a447 + last_write_checksum: sha1:a7a9a286204715e6820ecde83681f6f3d9fedcf9 + pristine_git_object: a9cbccba5a07e8dec352b6bd9d2edf1586cd0a93 src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationResponse.java: id: 73f673458740 - last_write_checksum: sha1:e4dca6e742f4dacf882fe430f30d47b1ebdb0ee7 - pristine_git_object: 31506c2160b6e518f1e949560e399e425ef236df + last_write_checksum: sha1:a23e721db4d540923a5cb4a9cc70fdb826264439 + pristine_git_object: 6b4671e7bdc6558de194a75fdbf1f76c62ceeba0 src/main/java/com/formance/formance_sdk/models/operations/GetVersionsRequestBuilder.java: id: bfddd024d8c0 - last_write_checksum: sha1:b08a139225e5d207a26377d81735b52febf8bee4 - pristine_git_object: 8e53cd795643facf95b76b1993fa8e7e00cab285 + last_write_checksum: sha1:795a46f396ed74f5bcf94ee2caeb24c313fdf727 + pristine_git_object: f1ccd363decfaef23e3152603a90d84cabfc221a src/main/java/com/formance/formance_sdk/models/operations/GetVersionsResponse.java: id: 6543a5b7255f - last_write_checksum: sha1:b2f4614bf89837570e9acae18cc507a496f951c2 - pristine_git_object: 8d5aca0d3504e6523dbafa197ee0d1ddf0873915 + last_write_checksum: sha1:5250b8e79779290845154602c7754564f39569d3 + pristine_git_object: 749271c49879e7568291890be1037e84e46ff24f src/main/java/com/formance/formance_sdk/models/operations/GetWalletRequest.java: id: cd404596af4e last_write_checksum: sha1:ab28e70e851bcc0c9e724662009efdc81d595f0d pristine_git_object: bd618aa0610e7548fb43c23faab2cd5a3453e1e2 src/main/java/com/formance/formance_sdk/models/operations/GetWalletRequestBuilder.java: id: 697531e284eb - last_write_checksum: sha1:d95fc0bb764aeaf454e5e20bdd66fcc1c5dfe694 - pristine_git_object: 027e1ed1299e2e111215995fde7a88e597688bb7 + last_write_checksum: sha1:d879a4dda39334e2e3d1076cd706675c2a9ec54d + pristine_git_object: a805c0dc3b8f469608f520b024435816632ecedb src/main/java/com/formance/formance_sdk/models/operations/GetWalletResponse.java: id: 228e5ec5faa2 - last_write_checksum: sha1:98fea3c8c47c08712eca14bc51f50d9acce3ece5 - pristine_git_object: eb85c90729e76b71abd6b82b9058f573181c189e + last_write_checksum: sha1:58891748ec1671b47d3173447d371b385c9ff854 + pristine_git_object: 008b5bb6d2806274cf9564aa0f003f81d602b69a src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryRequest.java: id: 5ef9f9ff2b43 last_write_checksum: sha1:6dc3fe0ef1bad162fb8f549de58dd46d33315e0c pristine_git_object: b6bd789e1856ff61895551918ffbbbee9ecc8548 src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryRequestBuilder.java: id: 65dcc5b0ea1c - last_write_checksum: sha1:861f5bbc09645c6de89c54d13de5d3013a6692d1 - pristine_git_object: 1f777f1e09fee5883a177f18c5ef2b76bf51b338 + last_write_checksum: sha1:06970a8e5fce190e5dffa30ab44c631847baddcb + pristine_git_object: 5bd747f5f6080bd30cd7c090f4c36c6cc8c700ee src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryResponse.java: id: daf7ed877e0b - last_write_checksum: sha1:4b1e2afbbeb7b0e77fecba9f02abb139b5770f2e - pristine_git_object: b6642b7f5dc2ebf2addfc4dd626863fef8271966 + last_write_checksum: sha1:a59f6d0cafa9a3460f0cea81d322ffa87bb5262c + pristine_git_object: c3ea265a7c6b98ef14216f9442d222ff78e5fe17 src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowRequest.java: id: 91b6c727372e last_write_checksum: sha1:5e6317fdff7bc368e6a7426daf7f7c41c954adb5 pristine_git_object: 44baf540098a0a97c4e37ae6b1d97b96698e912e src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowRequestBuilder.java: id: cad73571ef23 - last_write_checksum: sha1:0bc1ce628bc602aaac42f9073429696591b734c9 - pristine_git_object: 7106d9f638da6d184b0958919da023edec337423 + last_write_checksum: sha1:ae052e2e8af53886edd6adbb8706422731b45368 + pristine_git_object: d36c4ec004a2f033c9c2b3c920261a38d581d987 src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowResponse.java: id: 8c90e98efe44 - last_write_checksum: sha1:9811df9e525b61627ad97c81f98d0bd4a1afe65f - pristine_git_object: dd7d8aaa65672781f1d92e2650518fa5e4523d41 + last_write_checksum: sha1:2bdee4d67082927e378f5f06a939456e487f1604 + pristine_git_object: e4eaf33dfb992c02b8e6da9f02029c6a1690509b src/main/java/com/formance/formance_sdk/models/operations/InsertConfigRequestBuilder.java: id: 0b2fb78ca9f3 - last_write_checksum: sha1:ad9ae1843a2d866737f22a50eadd253b5ff271e8 - pristine_git_object: bd9c35c1a649025b781640a2e0290c64a0ac9991 + last_write_checksum: sha1:48f860d9e5b64a38bffe5b09ec5e0539c4895c3b + pristine_git_object: 9720de9233e3d342d883040a18d9247435c98c39 src/main/java/com/formance/formance_sdk/models/operations/InsertConfigResponse.java: id: 46cefb8ef21c - last_write_checksum: sha1:0dc3ec9e228e77094a4c1d8bea62ca4dda7ad011 - pristine_git_object: 087c42e3b0c7473281cae7e2467f34629c8bec71 + last_write_checksum: sha1:6f7c42336a43fe42b4d4f804e08de820bc843f47 + pristine_git_object: c8949d9eafadf985473ea56825e3741585a19bd7 src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequest.java: id: f4f76a47b874 - last_write_checksum: sha1:bae1f777f6d0dc08880d21b90a2c4b04ea8f6eda - pristine_git_object: f6f6526d1ee22d609dcbe8d6aa70b2526f01b82d + last_write_checksum: sha1:9fb152a03528681faf3bbea037d8a4d1ecc7e319 + pristine_git_object: 484715f2bba09073d340670df4308ae33f391dc6 src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequestBuilder.java: id: f5bcf9713332 - last_write_checksum: sha1:624bfd67560c2bb80769542bdac1a8bc9ebfff01 - pristine_git_object: 2d5b8392f935aabd7d264f0917edb16205b8d261 + last_write_checksum: sha1:a1b1d730a3569c52af3f3c037b34403933a49773 + pristine_git_object: e032d196dbca64e781cb80c1fffe67b65104ab22 src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorResponse.java: id: e076727d41ce - last_write_checksum: sha1:0b455a6c0b397b0ad892a77a2c2f47bc4086a9c3 - pristine_git_object: 2378a134de0c37b7ecec5703b0c53f61d69f096d - src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequest.java: - id: c5415e58db60 - last_write_checksum: sha1:dd5a3b7d389e67a2499bbc410738e1e9e8c875f6 - pristine_git_object: ba9b738d10285b273539359e0a1335d5c2bb0304 - src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequestBuilder.java: - id: eda6b52ff4c5 - last_write_checksum: sha1:f06953293c40a7f508f39c175ad510322232eead - pristine_git_object: f4dc98607ef2d554aa3f813e032625578d2d0e23 - src/main/java/com/formance/formance_sdk/models/operations/ListAccountsResponse.java: - id: 569c2b944cc6 - last_write_checksum: sha1:e50b315de3dd8a00166aa4bfe5bd74b20ee8ce45 - pristine_git_object: 9c8001d743f74f29e201ea79c8b0792910b5d300 + last_write_checksum: sha1:ea4f5f34ad52a4e57531483f875a7cfd302e833b + pristine_git_object: 8f613a5f031b7f92100bd8e9039d8b844fc277ea + src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequest.java: + id: f8826618f9a7 + last_write_checksum: sha1:67b2bcc879f9248a12eb87155c62294c51fd3a84 + pristine_git_object: 500d2c79a1a6dd6712018a7a15f024691e84b084 + src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequestBuilder.java: + id: e425442456e1 + last_write_checksum: sha1:4d5586066d5788176cdb4e9e89d430d4ee357c2f + pristine_git_object: c7a1be380f9ca82b16881021955f05b619fa0357 + src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerResponse.java: + id: 62e8c11d45b1 + last_write_checksum: sha1:f5c7d3fdef1cf5ae318f435911e140a02b6a50da + pristine_git_object: 169193412e857fe634938c974a74b8e38e765fb1 + src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequest.java: + id: 64b3843bd1c8 + last_write_checksum: sha1:d937f0bc1cc139949ab07b70362d52aa9149665f + pristine_git_object: 13998164b687ee7121a76d49ed6ebdcbef37e229 + src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequestBuilder.java: + id: 0d65db6564b7 + last_write_checksum: sha1:992aa6227dd4bb18b359310df39d9824eb9cc533 + pristine_git_object: b12c38dad07e14a3c0c4cabe512e8ba7b4ccc544 + src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsResponse.java: + id: da4e7250ff5b + last_write_checksum: sha1:3735a177c68fae53ee13a9070260b64320bd24ff + pristine_git_object: db847df2e56f450f48741d5f09dd5b775d880519 src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsRequestBuilder.java: id: 13905f2898ed - last_write_checksum: sha1:b3849c4eb92fd7be1105c601a9b91d172bfd6eda - pristine_git_object: 7815c4e589f169b71f4c60b11adc7ccce3f1726a + last_write_checksum: sha1:6d580ced0625cbe2dac5ccbbdcd9aa54b4b93362 + pristine_git_object: 214a091cadd5ad1d70d38ba7ae17e4120e058c17 src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsResponse.java: id: 1d8b14626c85 - last_write_checksum: sha1:8bf9be121ee21f7a08b0ed855855d74ab49779d6 - pristine_git_object: 7f2664016b372a8203efd8963537eaffd3ca0af9 + last_write_checksum: sha1:f0d4e6d67730f4dcecd86d6176f42b2dcf56bdb9 + pristine_git_object: f3a3ac54d408a2926a9ec5024864085aeeecd5c1 src/main/java/com/formance/formance_sdk/models/operations/ListBalancesRequest.java: id: 356fe1d7d309 last_write_checksum: sha1:7a32fc239df4ed03eda7008c2dc6bc1416700dec pristine_git_object: a9480026091347abad376a9c445892f7ba0bba87 src/main/java/com/formance/formance_sdk/models/operations/ListBalancesRequestBuilder.java: id: 18b5855b63b8 - last_write_checksum: sha1:8c92724a6025c072ba67280f72510a62a1d221aa - pristine_git_object: a9e83ae99763b1fadd2f1ea90d44d50de9063235 + last_write_checksum: sha1:8c06e3a22a669f81c9660c114a9225ea15496e59 + pristine_git_object: 46635ec90caa3bbdf94ff38038a20945b2d2aa52 src/main/java/com/formance/formance_sdk/models/operations/ListBalancesResponse.java: id: 77e6042d969d - last_write_checksum: sha1:66658ff1bc32e9ae43ce74bc8895d44610da23f6 - pristine_git_object: 781744cb1ccb2cd4d87e6cf56b141369d3a4eab7 + last_write_checksum: sha1:c422bc30c56442e9ed6222ce87140d08dded3ba3 + pristine_git_object: 609c668ad75895640b68548210a3db27dc458db8 src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsRequest.java: id: f380e9e56aae last_write_checksum: sha1:799fb8a792a4e367e6b9a27f10005c34c76c5c19 pristine_git_object: 92d370ffa0be9ef4f7e425eb92a16a4ee1ad001e src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsRequestBuilder.java: id: 11236e34dbaa - last_write_checksum: sha1:6fe50ceb630dc78e6c4e35b9aeb74f61b1130c97 - pristine_git_object: 7ca696a654a79375525a8a0198b0a29eed1c511c + last_write_checksum: sha1:a9255ed58e02db78afcd75d23eff3611c6695989 + pristine_git_object: 2542ad750037bbd99e5a977debc3c6ed3587ade7 src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsResponse.java: id: a469f4dba794 - last_write_checksum: sha1:97f32f86f2a0782e40d8584098a5e425952e3d8d - pristine_git_object: 998981d08327841dbbd38462f3153b79da29d5d9 + last_write_checksum: sha1:5068718ee398d2d13f8192302c2cced20c7183a9 + pristine_git_object: 0ebc159f65c36265143ca39d0eb5f9b3afbbd963 src/main/java/com/formance/formance_sdk/models/operations/ListClientsRequestBuilder.java: id: e54a7e61c428 - last_write_checksum: sha1:fdac3a62c564c62e5ae5f75d80896e446c4f1e8d - pristine_git_object: 0f70f9c754e17dcaedbdca3fa48e876b3050c2f9 + last_write_checksum: sha1:700e2951d5dd98abe1e761afd7be133124d13b91 + pristine_git_object: a6fa5b41cb9eb151733ce42b4e561c3a2f3741cb src/main/java/com/formance/formance_sdk/models/operations/ListClientsResponse.java: id: 95bb940d8bfc - last_write_checksum: sha1:c8b703af112308b46d9e108d59adc9728ad70c5e - pristine_git_object: 8338f63920c1dfb15a57aad751584eefc2105c90 + last_write_checksum: sha1:cb71d2690434d082b32f59f8dfd645a486937c00 + pristine_git_object: a924c19d4cd766882af6334077473eb8d804f3bb src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsRequestBuilder.java: id: e0b95e71a2e6 - last_write_checksum: sha1:39f971a16e10800d821319ee4689e0841ddcaacc - pristine_git_object: c78bfa33ecbcfb11a7e81fb06b2527016802c39f + last_write_checksum: sha1:82f949851037fdf3d03543cac20eaf09bc70d1a0 + pristine_git_object: 2da84f76002c6b2f5e06033751c627b578b8daf1 src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsResponse.java: id: 37c0f1c46516 - last_write_checksum: sha1:aae9b31d71d333dc067db6beef6c5fa8e99ba1a2 - pristine_git_object: 16061588f60558e155728d9d95c80e7dad303280 + last_write_checksum: sha1:ec0808644cf29373a8fd40763ac71adbcc6e1583 + pristine_git_object: 97acf5e0acd7aa2c0615dd030a03828b8162e674 src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequest.java: id: d593abfefab1 - last_write_checksum: sha1:75c6995a8c601d9e4f15daaa97b1471fdd1f89c1 - pristine_git_object: f9a7dbfe6da6ce99126b69bce6107a14789afb7f + last_write_checksum: sha1:4fc6f06ac06c718ae84fe9279a11cc2d39801457 + pristine_git_object: 75aec880a02d5c2d8c6765b7aa5cfe6f30c87c9e src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequestBuilder.java: id: b4972d028126 - last_write_checksum: sha1:438c033091a93beeae9e072eecaab420e5cb745d - pristine_git_object: 182da95558322c57e06d8212c6b6714d986a9c75 + last_write_checksum: sha1:f41566cd5f417228c3c7afaa7177365a3114130e + pristine_git_object: 4ad166a725d24d3e2449c8694965ff43e5895f21 src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksResponse.java: id: 02fcb5d467cd - last_write_checksum: sha1:9b46065ff0c0d03a09f6a17cfa583461a91ac88a - pristine_git_object: 10a12d68b5407d6928d4bc37a694000214cc91a2 + last_write_checksum: sha1:622d9682a428939b242f2168f1cf2c3702015360 + pristine_git_object: e8341bc90cbf43a4010e95936544ab0526297f09 src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Request.java: id: 9840a661a3e0 - last_write_checksum: sha1:ea65254de605f59102f5777e17a4510616f527b8 - pristine_git_object: 94085fae7c98860bdfdc7993f60f90931704d5cd + last_write_checksum: sha1:acd508a64e07f60b96a00ffb5f665b25e5f44e83 + pristine_git_object: dc8b23cf301b87a852c06f3bc4fed62de96d6aed src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1RequestBuilder.java: id: ef93aa617a6e - last_write_checksum: sha1:eaac625359d2dfecae3ec27d30358a35e105a03e - pristine_git_object: b4c63860929a5281a805f1b7f8c0bf808101aa11 + last_write_checksum: sha1:2a2b7843550e5d5b35e78a299cd7da7b32956859 + pristine_git_object: 7e8f539529b8c385410f521c2d4d0be022049d4a src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Response.java: id: 1fd0cf1c90c6 - last_write_checksum: sha1:3d876ac5898c4362e221f9564707760de572997e - pristine_git_object: 20401c012be514d9b3f06c3dce07b32a3cddd47a + last_write_checksum: sha1:9dbcf60b545a708ee26e827f92e752e1fd368e56 + pristine_git_object: 9b77257e8c5432eaad411d5bc7f736eb359477d2 src/main/java/com/formance/formance_sdk/models/operations/ListInstancesRequest.java: id: 801e1d6e0a8f last_write_checksum: sha1:7ec2fafa564a696302af2de29aa5b5e07455969b pristine_git_object: b528f606b64cf1777c3985946c0080707f264db3 src/main/java/com/formance/formance_sdk/models/operations/ListInstancesRequestBuilder.java: id: 19ea46dada58 - last_write_checksum: sha1:45e64918ae1170f2d7d21d627baeba45ed9f1788 - pristine_git_object: 94df51fae9b36385d9b389447d65d27f4c0c72db + last_write_checksum: sha1:8098a040f6d73235ef36cd2357bb69002ea2db81 + pristine_git_object: 90e1d4d7c28206b3194852ec6d81d4f710bcb55c src/main/java/com/formance/formance_sdk/models/operations/ListInstancesResponse.java: id: 18d7ada2f763 - last_write_checksum: sha1:99e1617c4c6c016bf88150d5ae5ac1bb60652ec2 - pristine_git_object: fc846626ee9a6babe233fd594dd05ef8ef0f579b + last_write_checksum: sha1:03b05a31453620bce52c4271f32739f32340b78b + pristine_git_object: 3ab26411b5782a8f4ac32f35166a0b03ad6cf943 src/main/java/com/formance/formance_sdk/models/operations/ListLogsRequest.java: id: b80580b73ec0 last_write_checksum: sha1:711a50270eca87a5f4c5fcc8a4952a02aea57e91 pristine_git_object: 1a1a4c7471194a8b4c85c19ff823e2d625ac7d6e src/main/java/com/formance/formance_sdk/models/operations/ListLogsRequestBuilder.java: id: 68308ca5cffc - last_write_checksum: sha1:f9faee7ae8083feed46a5534d05e692d40df2116 - pristine_git_object: b35314fb4e5878beb48b82a08f4a5b953f791e80 + last_write_checksum: sha1:e1aa4e52aca0d3f49ca155d0b7004426426b4b22 + pristine_git_object: 97d2568cbfee8bf07206e487abf95c15b0ebd002 src/main/java/com/formance/formance_sdk/models/operations/ListLogsResponse.java: id: c6f42e14e637 - last_write_checksum: sha1:7454fb88b9abc9350c389613e76441608ed7275e - pristine_git_object: b008d60d6383353ad6ebb0001198729d365d3717 + last_write_checksum: sha1:3513cbcf78f55ff2406338ad1d72b389a156b75e + pristine_git_object: b5e34450c40af8fd137325528d4292629e6229bb src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsRequest.java: id: 94b746a5d02e last_write_checksum: sha1:e27a1f48a8e513ebb0388d5dc3b6b5afd4ada8ce pristine_git_object: ccc4342ed42aabb4f3ac26668f7abc1f08612db7 src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsRequestBuilder.java: id: 107140233d58 - last_write_checksum: sha1:a1bf60049fcce697548edcbb2dab48f62cb9ce09 - pristine_git_object: 24f51a356cb60ef9ffa13f9027f1698ec2b56ed8 + last_write_checksum: sha1:d93da12a25794bb5765877a38bfb42a03d873ee5 + pristine_git_object: e7ec3096d512de2a196939f370691696599748de src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsResponse.java: id: 837f8e8f1477 - last_write_checksum: sha1:a2f994920662d354a751124736302e8168f1b215 - pristine_git_object: 9e8ed2d42061d2e135981e4c73f1ef5602710eba + last_write_checksum: sha1:989c93b0ec46f6a662c94ff785d7fbd39dddbfda + pristine_git_object: 9fa5e3d9b3648d79f194d70d026ff2c000ab20a4 src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequest.java: id: bce97db589e8 - last_write_checksum: sha1:1f9e2c3e726792e780367de9208a0dc2fc6539fd - pristine_git_object: c5f0af17a3fa22aa0e6b1dab3ab7eb70a64015af + last_write_checksum: sha1:13cbced5c54af093b03c2156a0645040c18c3b8a + pristine_git_object: e536480fa965712c758aab1147a40fbf17c89416 src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequestBuilder.java: id: 06857e45770f - last_write_checksum: sha1:b761648df4902175d1f4466f211dbb41ffab67c1 - pristine_git_object: e98311a63a5cde28db241c07b21c0e0b5b49ea13 + last_write_checksum: sha1:befc310b9c0f14d10f49d2eceee0cdb5e00377f6 + pristine_git_object: 530c1f269a45c588279e96a15f1ec9244d5dc048 src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesResponse.java: id: ab206f57b379 - last_write_checksum: sha1:49db41cd92e7685d1f36faf579d04721dbb6171d - pristine_git_object: f63857650f62933e51d133bedc9190bb89782507 + last_write_checksum: sha1:8b8e4f9e3d743427354fc2ef5525f8d68fcf8367 + pristine_git_object: 81aa5f77a19ee23475d4307b9cdbc551c36b9ebb src/main/java/com/formance/formance_sdk/models/operations/ListPoolsRequest.java: id: 2279117fd7fa last_write_checksum: sha1:a6092aee5601cc704b83120a0e029f438a36a558 pristine_git_object: a775ac28689030dd9e342168f6b4096a2e75b344 src/main/java/com/formance/formance_sdk/models/operations/ListPoolsRequestBuilder.java: id: 707c2be2fc6a - last_write_checksum: sha1:2b79fd0ab95b1a2047c53171e43d3b05c4d2cac2 - pristine_git_object: 1272eea6b17343caef090997fd8bdfb580ba334d + last_write_checksum: sha1:e8ad8795b5e8322be2fbadff677cf6a2360c6dfd + pristine_git_object: 0481c4757b0d284e0c49b512c8a5d47f3c3da03c src/main/java/com/formance/formance_sdk/models/operations/ListPoolsResponse.java: id: 125fc1a43ef0 - last_write_checksum: sha1:caa76f73080ad9f4fbbb36bcc3ceb42e8fb1edf4 - pristine_git_object: 6bf50721b4b3a495c995b8f02822bb590ebddd9e + last_write_checksum: sha1:bd59fcf80f3353be186c84ab3958bb0731f55599 + pristine_git_object: e469ef7feeebf463bd54c947072ba5cdd039e222 src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequest.java: id: 99fd91ca4906 - last_write_checksum: sha1:b8b4781d0c42078a32eee53e3c73ef97a84e0577 - pristine_git_object: ab1a0834495e717e9165f180805bf3e604e1e693 + last_write_checksum: sha1:1384df1de42c100111dfce39fb805db78cc1f497 + pristine_git_object: 227fd1ad9dfdfa8e1097e67c0a22c0db82984bd5 src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequestBuilder.java: id: 80e06874b83e - last_write_checksum: sha1:201b2d09c9df80a13dad050bfba99c344636eb3f - pristine_git_object: 038ed30a4616d9e52a61c229c400be58f342b5ef + last_write_checksum: sha1:b8885599eadef5fb856fe23c0b20b3eadb0bf40b + pristine_git_object: 87e21b333014cce846bc2be79b6ff45eb7e37bd4 src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsResponse.java: id: 2dfc27afd5cc - last_write_checksum: sha1:fe280545791f8b3e4baba1baee584f554cbe37c1 - pristine_git_object: 4eb7a4ed81f87e2948f4d2c67f959514eae7a296 + last_write_checksum: sha1:ee5688906db1a6946d73042ce3f858a33496e0b8 + pristine_git_object: fc737be47061992ef3e233f7599be1e8271267bc src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsRequest.java: id: 827a94ec30ab last_write_checksum: sha1:b3e6203eb1de687ebebbd80a47ea947112f96f05 pristine_git_object: 2cafd78f85b88a9bd9c9e91afd08cb883a810f5f src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsRequestBuilder.java: id: 0f25ccc742e2 - last_write_checksum: sha1:43ba126ae571190e4b28453515f7834e04a603cb - pristine_git_object: 77060fd28df7a10a0b18bae44b1a6b38f8178c8f + last_write_checksum: sha1:94e59ba710281720dc636a000ed6c96df21da994 + pristine_git_object: 304366ae964e799825c5054d1a025138905dbe39 src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsResponse.java: id: 71c970e9595e - last_write_checksum: sha1:bcf18efbdb9edf394ea1e8746c19262bce601579 - pristine_git_object: 9915076213ad5373b0cda24d33d68ab00346f171 + last_write_checksum: sha1:972a1db1d0edd6b7c538c00a05015a0a315d473c + pristine_git_object: 66c2ccf9a972449dd10fe5f8df254f5986dd873e src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsRequest.java: id: f0a83212a6a8 last_write_checksum: sha1:c3b45d7bdac1eace713b9f4f3be84562b10547b1 pristine_git_object: 318d7ea9191ebf9b2989b8b17cffa1199f98423b src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsRequestBuilder.java: id: 39119237e924 - last_write_checksum: sha1:73fdcca40bbbebddfcf6f499ab2290b17ec42435 - pristine_git_object: 0632cc6998f3ebddc2d69fee9797a0d57fba4531 + last_write_checksum: sha1:28d4c60705dc6da6be1b613786a4d0c18cc19062 + pristine_git_object: 717c0e48087760cdcd499640b436bed741c16b77 src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsResponse.java: id: 99b6b819180a - last_write_checksum: sha1:dde60859247d66b6e6c2580addea841effb63734 - pristine_git_object: c5b749e19d140c3321acaded1f03cfedec58c02a + last_write_checksum: sha1:5e5c705b7834ef25c8661db3e1904ff852bfdda6 + pristine_git_object: 916d2b86618559b26188b5b12dbba95e2719b606 src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesRequest.java: id: a9cbab1bf329 last_write_checksum: sha1:302de592f73a2f47e2c039227607e5cfe40f8138 pristine_git_object: 11bc0a02737d5aa7a3118b757aa7033d266b6c76 src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesRequestBuilder.java: id: 99f38e5bdc91 - last_write_checksum: sha1:1fa7b34087137f44d854caab7e1a6e5dc0d29a80 - pristine_git_object: d0a62ea7fb4207a305f404b8c35d93153afe959f + last_write_checksum: sha1:e654d20e003fb648353832e18bab822e204efa5d + pristine_git_object: b2ea8b3f212f6cfa425816f341bb059f772ed240 src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesResponse.java: id: 76b30390a8bb - last_write_checksum: sha1:9590fd7d97322edeb01a05bd92e8a97e940ee493 - pristine_git_object: 4958d96a3dfeceb5b8268e8de56a12219a3f6946 + last_write_checksum: sha1:75ec97fe722ad6d55ca48c6670eca7bd38fb6bb5 + pristine_git_object: 775b64aceed7468a2a8a833a11a44f15df6ea4e7 src/main/java/com/formance/formance_sdk/models/operations/ListTriggersRequest.java: id: 917c859a1e06 last_write_checksum: sha1:941a586e7003ff44b2f404cce829ef5e1aaa5f6d pristine_git_object: a4c3e368cf9494226e610b28dd166769424a4c62 src/main/java/com/formance/formance_sdk/models/operations/ListTriggersRequestBuilder.java: id: 4694b6294fc1 - last_write_checksum: sha1:f975535edfc161b3f3c6dafddc8a07ac0d79603d - pristine_git_object: 1b67048469ee7dca59241a60d35cfe5c7bb9e966 + last_write_checksum: sha1:ec43de6f8bbd19a4d68d8dd32cdd4a581d3b0516 + pristine_git_object: 46c4fa4a0786622f3c65fac5729c292b3a68721f src/main/java/com/formance/formance_sdk/models/operations/ListTriggersResponse.java: id: 0e93e6cdb122 - last_write_checksum: sha1:165f98d212ed641a3c1218b70be554852383ac0e - pristine_git_object: 3b9f27e2ca7c18a9a2e822111bef34c6cbb2d582 + last_write_checksum: sha1:95d972918c3aededbc291a55a28ac6ed25f710ea + pristine_git_object: 0b1936d6941439379feb34f237099a0f419c2dee src/main/java/com/formance/formance_sdk/models/operations/ListUsersRequestBuilder.java: id: 9490f6b33f15 - last_write_checksum: sha1:a4cedb6cc405a98715b196e0c410426aeacd7279 - pristine_git_object: 60bb6262c96df084148ef68d39a4b5ead4706851 + last_write_checksum: sha1:c986f6b72823eff463b89447bd45235b50494f61 + pristine_git_object: 423891a6bfa1d2e87550c0e8752bff8cf8ecc900 src/main/java/com/formance/formance_sdk/models/operations/ListUsersResponse.java: id: aa6c125b8bc0 - last_write_checksum: sha1:610a5d9b122f84bdce6ea27cf12c7c41fd7bd96e - pristine_git_object: e0baca7867e03d36ae9cf6ce4383d9fa232f58e9 + last_write_checksum: sha1:0b6adf27133cbcb2ce6b5b7fe944d8129fec7498 + pristine_git_object: add6e3319f650460f998a0dd90f416053fcd9075 src/main/java/com/formance/formance_sdk/models/operations/ListWalletsRequest.java: id: ef75882c798d last_write_checksum: sha1:55d6bf460c4bf10e23c6a65a8a0e19f1f5b2a32a pristine_git_object: 7c177355e16b8f410dad02ef28e713e713c50dbf src/main/java/com/formance/formance_sdk/models/operations/ListWalletsRequestBuilder.java: id: 79b9e1f43f27 - last_write_checksum: sha1:5f0710c4daef909fbbe3d919bc957646caf3b8e3 - pristine_git_object: 64f9dd3acd93c382dd1f92f10c868b03d4775aa4 + last_write_checksum: sha1:55a3ddc4677c1d2fc677b2770f91030fd96c1bd9 + pristine_git_object: 65075b2cb4fad59d670a98a2fb0a51d1d1774a92 src/main/java/com/formance/formance_sdk/models/operations/ListWalletsResponse.java: id: c87cdf9a10ea - last_write_checksum: sha1:525dcc0560fa2f3d48710928cc3d611397086563 - pristine_git_object: e617351bd00948cbbd6e0639368f1ae466a9bbdd + last_write_checksum: sha1:e82c5490c6de5fa8857db4bafa903b5cb96ab27f + pristine_git_object: 994f24c0df3520a7dea9e4a4a8a74f0acefbfa95 src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsRequestBuilder.java: id: 6b787c831790 - last_write_checksum: sha1:8d39a9fa16ddfef41e94dd1db38f84d19aca9bfe - pristine_git_object: e21f1a4a508e956cb7fac86f832ee85ecf4c7345 + last_write_checksum: sha1:4fddf3d5ce8a613dbbe6bae05f6c57a51986b86e + pristine_git_object: 03856b50a539f0ce10de78425d362b2a14898e37 src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsResponse.java: id: bc49c9b14d2a - last_write_checksum: sha1:7257f24601a052fd139e7ca03b794aa4b7a7d41c - pristine_git_object: 275d996e316dadcd3689ddab036023c093e10c3f + last_write_checksum: sha1:7216ca0587c39131f6257f9513f440b7cf797c79 + pristine_git_object: a27e6a78ec466213626f8feff8715009b4e4f88e src/main/java/com/formance/formance_sdk/models/operations/Metadata.java: id: f0b8e0768b9b last_write_checksum: sha1:62652216cd6b2409cc25ed08939417a6c24e725f pristine_git_object: 3c5d51a974412c9e7b763bc9f1103c8b6cfb57c1 - src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoRequestBuilder.java: - id: 26b7e38a7ae1 - last_write_checksum: sha1:e6a06f340d4f5381b0f8de8cbada694aeb35afda - pristine_git_object: ab726455f33b0b6cb624ff7bdac5c43f874dc661 - src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoResponse.java: - id: 73690d7879b2 - last_write_checksum: sha1:4ca664b27c99e388b06c58c990e40af842732f6f - pristine_git_object: 257f589a99b00d7652e182e074c1846f9bfd22cc - src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequest.java: - id: e7f286efa212 - last_write_checksum: sha1:58fc5552005f4c7f50442e5caed27ab072c1066f - pristine_git_object: 02e497235f7e5d581cac2991c4f436a1cfdb2d68 - src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequestBuilder.java: - id: 89f722a04829 - last_write_checksum: sha1:62d6dacab7d9f9bedb987ed1d1087dd6793b740c - pristine_git_object: 98cadfa2923ea7b8802bc776f6696712cd1361c8 - src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountResponse.java: - id: 1000517118cb - last_write_checksum: sha1:643bf1902c8d248759a2cfeaddb0fb6bda855938 - pristine_git_object: cc9c3e8a033fd5f134bdf1908c51f318ff733cb3 - src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoRequestBuilder.java: - id: 72bb3fb09c0a - last_write_checksum: sha1:cc1828953e4a4f757afe7fac71811c8670905312 - pristine_git_object: ba454a8a4c3b80010cd2dbba8c3aa27299e42603 - src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoResponse.java: - id: 3d94f40ade00 - last_write_checksum: sha1:38b026f24ca7e85e73d05d9ca198d4669541524f - pristine_git_object: d68386b49e0bdff27c527017ea616167f2fb143d - src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequest.java: - id: 95e6cf89d3fd - last_write_checksum: sha1:92275ad1ccdd2a3fce4289e4f8216d5023a3fb26 - pristine_git_object: de0d841c6def195a2734e9d143927c0e0e725fc0 - src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequestBuilder.java: - id: 8b2895ee62ab - last_write_checksum: sha1:13bc57d77e2b2b9e87f790a51e18c426626f5c65 - pristine_git_object: 9b788b51a2fdb8f5b40d31c4098f13ab181dd554 - src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsResponse.java: - id: fe081b8b9644 - last_write_checksum: sha1:12af7a8fb6a430e3b2d6e8a54b91172e1138a06c - pristine_git_object: cfe70e52d7123526c089cf143bd15c48e72a6fa7 src/main/java/com/formance/formance_sdk/models/operations/ReadClientRequest.java: id: d3532fe23f18 last_write_checksum: sha1:8f5ea478edef7b354bfe9cf91117a06c51871cc8 pristine_git_object: 6edf3f8e693a98723595c024c41f628ad1e0bc8d src/main/java/com/formance/formance_sdk/models/operations/ReadClientRequestBuilder.java: id: 6cf0b9d6a9ce - last_write_checksum: sha1:b07b19a9d3017418877a38c074fc2b9c6cd9dd19 - pristine_git_object: 3369821da40de87325ff447b28a50e2da77d63c1 + last_write_checksum: sha1:4f1ff7548bf5d82830b759c97f91f1eda686c512 + pristine_git_object: 970e783552827256d3eb39872e11c5313e760c5c src/main/java/com/formance/formance_sdk/models/operations/ReadClientResponse.java: id: 45de9aa22128 - last_write_checksum: sha1:4c8e20d57d12b9de71345594ecde6f0efeecc68a - pristine_git_object: b50f33293ef73f8895f14e0d745a7f4119b735b0 + last_write_checksum: sha1:d04e90ac3089671eb6e4d7274547f9e2887126eb + pristine_git_object: b6b89a26fca36325325c407590a49587db592bb6 src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequest.java: id: 6962fc8a52a8 - last_write_checksum: sha1:2c4cb378d9258d797ba074b6d867bd6a69bc3319 - pristine_git_object: 5c618a3e356fc3a51928ad4e16c1e86628ff922f + last_write_checksum: sha1:cfc47c88420e64e9b587dad080127d1d124a9e4b + pristine_git_object: 1991076c2beeec7a64d13de2749f250527793421 src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequestBuilder.java: id: b8907f76e561 - last_write_checksum: sha1:851521d8ab08389d17c1dceed6e7b42cea9e6f2b - pristine_git_object: 1664320bec90055e0f218439875a80ded3471d7b + last_write_checksum: sha1:b7719ac983137e54405a069d0852c99f39a6c29b + pristine_git_object: a4a224b0d73f64c7b488eddcfd473b56d4d741d9 src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigResponse.java: id: 33dc477aa6d8 - last_write_checksum: sha1:971a23927aa267a6434060c87906221c12591fd2 - pristine_git_object: 97d92ba5d720172ba41a7d72adac03afab217b83 + last_write_checksum: sha1:6c46594cd17b4be506ed334ea17950ef6ffe6f4c + pristine_git_object: d7af48e31acb7ab9fabb5b9ffe4f7a4491f51fe4 src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Request.java: id: f699ca031a18 - last_write_checksum: sha1:f9d0f7390b6d4ad3b0458259ca1952bb4fb1b035 - pristine_git_object: 3337c34547752f9e905f03102be7f71da1ce9f81 + last_write_checksum: sha1:de1740f28628db5061d51ddb98524f5cc92ada8d + pristine_git_object: e30e08788979ac1f8724118343f2596b3127a2e6 src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1RequestBuilder.java: id: 1164c3f526c7 - last_write_checksum: sha1:7b54ae349716826a8f4f987ba859cd2664175078 - pristine_git_object: 18d72a927bd3c8c982a9d3caa76b5f336b512b4e + last_write_checksum: sha1:d4185695f5503b58e24ee8816ec15a11b94d470f + pristine_git_object: 773e88fb73ed177a6dc4dd4933a61243c8456c8f src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Response.java: id: 910b6519a8f1 - last_write_checksum: sha1:8647a3c70f94a10d91733c79d0599de4c5085d23 - pristine_git_object: 29ab9be917458ca79d942aaa60fecf979c66747f + last_write_checksum: sha1:ac63a8ae5b43f02e8af6145fd7f14c9bfe33c4e7 + pristine_git_object: e55823cf31f9faa9aaf7f4281a7f7c6e7df0643c src/main/java/com/formance/formance_sdk/models/operations/ReadStatsRequest.java: id: 960707e66c63 last_write_checksum: sha1:6a1381c8d249bdc53dfce36a6a8fb737903c7291 pristine_git_object: 289249234c9281b5da4ba4645687a283ba1167e6 src/main/java/com/formance/formance_sdk/models/operations/ReadStatsRequestBuilder.java: id: e3582002411b - last_write_checksum: sha1:fe235a00d470b03c4ddc54f6a9c727ec87067813 - pristine_git_object: 8c77b128ef9f9ee4ba1390ce21b7e3d9475572e7 + last_write_checksum: sha1:f850f3a908ca2850a36eabfcd9f3d2b5ab4b9e3c + pristine_git_object: 6ce5c82b605a6ea899607e386f835999cc7fd653 src/main/java/com/formance/formance_sdk/models/operations/ReadStatsResponse.java: id: 13e5e9f882a1 - last_write_checksum: sha1:376cbb3b5d654b71e0e38b3fd1e3e5a66dda2ae0 - pristine_git_object: c80afc21497e0068e57c5569414ccb19f96dedc2 + last_write_checksum: sha1:92c03b7438522b2c3fb7d9f79fc9c4dab28a8ea9 + pristine_git_object: 63465c5419380ae2dca514e1f9c0e2eab0da89db src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerRequest.java: id: 86fab81898eb last_write_checksum: sha1:f076ee7cd9b00b3a0ab55358b158c1e30865ad89 pristine_git_object: ba9e76e26a1f730111296074aa3262aa1a449d25 src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerRequestBuilder.java: id: 7ccf9f3f3e11 - last_write_checksum: sha1:7ba462a45d146c9455afe60789925668c068b00b - pristine_git_object: e847c9d4677d1d20d0891a9d08d358e36066345d + last_write_checksum: sha1:5a5cca4a9033ce6ace17da25b1a3004418d33456 + pristine_git_object: 8d689025114b2b3466579c0045e0ba0b01d40e5e src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerResponse.java: id: f2f53d71cc17 - last_write_checksum: sha1:ce64e5aa27d3a30448d766d0a5d19f44e12a1b3a - pristine_git_object: b05ae9f673661728edbe400c9408e4c7b9287915 + last_write_checksum: sha1:883f2290126bb708f144f6f6223d782fd48c35e6 + pristine_git_object: 00a2284d2b5124048e688133fb35c91e1d373f95 src/main/java/com/formance/formance_sdk/models/operations/ReadUserRequest.java: id: 3376503aa2c1 last_write_checksum: sha1:193ae67e20e523cd2f622e379bc89ebd116216dc pristine_git_object: a8a1cadb147f0976a880147b095a39728550a7d5 src/main/java/com/formance/formance_sdk/models/operations/ReadUserRequestBuilder.java: id: f6d0c0a147e2 - last_write_checksum: sha1:d139c8e45de93656d8113280b932748ec876b5c4 - pristine_git_object: d226923b931cf5d7c10005185505d5418b6a1c79 + last_write_checksum: sha1:4b916a3430a6ad0be22fcdc1577cf76f98022523 + pristine_git_object: 7148f3283f94e904caa5340483f80e619e9433eb src/main/java/com/formance/formance_sdk/models/operations/ReadUserResponse.java: id: 916cc1e2dcf5 - last_write_checksum: sha1:aefa0fe8dbbff78eff8fcb6d39af06cfc495f302 - pristine_git_object: 7e234305ee390e1fd9e81bb143667895e1c0a86f + last_write_checksum: sha1:79facaaa77a231453963d0c462bb690ff22b3504 + pristine_git_object: ee86f933d3a4481ad7542b3cb72ebcc3ca7a3376 src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequest.java: id: 0774bc172cd1 - last_write_checksum: sha1:63c960819fa54262edf05b6f837966a207fdf542 - pristine_git_object: 6bb11ab24ecca889476acdf94fb9218cbe4f5aa0 + last_write_checksum: sha1:3f045eaa00278b5aab5ca2c5a57489aa9a70408d + pristine_git_object: cef7a575c91cfbe043ce22e397930a0e39f2880a src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequestBuilder.java: id: 282e1c30d201 - last_write_checksum: sha1:8710fb6ebc5ce68a3e6a07bab462a321f2679448 - pristine_git_object: 9f7d1142899e930c8ced7157fad19c3c2241cf4c + last_write_checksum: sha1:e42f0ec8e2bf309816add243746a649120872d2d + pristine_git_object: add4ae93d7035a348e531a96c0f636938a87f49d src/main/java/com/formance/formance_sdk/models/operations/ReconcileResponse.java: id: 2518db7bc484 - last_write_checksum: sha1:926e53cb58d8c4c68369abac7ea689b99dcd7847 - pristine_git_object: 0726e461008b5e511e424cd6cfaf3e43baa88757 - src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoRequestBuilder.java: - id: 49937d5efc4d - last_write_checksum: sha1:e6f543648dd1d7a26dfa55f034d06d79ed23e6cc - pristine_git_object: d6d9ba0526433d2bbe29d38be8cb1bb01f9a52b8 - src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoResponse.java: - id: ffb021af2850 - last_write_checksum: sha1:ca63a76343a135743a74c181579481b5024c2a39 - pristine_git_object: 53119d39a7fa4c8586f8a36e2b1264e6b33242b4 + last_write_checksum: sha1:541ce73048c72903b3f46475d647c1ada41fac88 + pristine_git_object: dc1e4c2459dbaf200a2f93c5070f5b93932410d9 src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolRequest.java: id: ddfc6b1a2391 last_write_checksum: sha1:17ae64b4ab0fcacb9b92312b8e99de2df31b771c pristine_git_object: 97160dee71f755c52ba22ade6d5fd51cb779dbf7 src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolRequestBuilder.java: id: 6ed37ee49164 - last_write_checksum: sha1:dff47752209caf54a3c5ebca7b07aca4302cb77f - pristine_git_object: 60e3f75482abf4c698b1f164e0a06b3c6ba13d14 + last_write_checksum: sha1:449ddf2d1390a7f0fc3407c291517a7dc9cfbd03 + pristine_git_object: ee0d0fcb560abdfbe884441909325bcc0d3b4f3c src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolResponse.java: id: 878d45afdf0a last_write_checksum: sha1:4da225114780eab1f0465cdf99258575a57b400a pristine_git_object: 00f672ff89999b93dd03812522bbae8d7a53e50e src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequest.java: id: 2d4a453e572c - last_write_checksum: sha1:f45aaaef621e664542172fd6f6a92e6b069d306e - pristine_git_object: 1c87de9e4f105b2506bc41e853b4b5069fec8018 + last_write_checksum: sha1:aa0eae947de951d536bfb2f40687a3257f02cf44 + pristine_git_object: 3b96802ce11ff0454007878b90817ff962588faa src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequestBuilder.java: id: 6f7828574b8a - last_write_checksum: sha1:b08de43e0ef16d5f9cb8b0f0e499d2abf5d0c012 - pristine_git_object: d32accdb6eae6fda7454557e374e463ca10d3e1d + last_write_checksum: sha1:be841acf29528205caa1919a4f7e45430c331fc1 + pristine_git_object: d86f557730161ca1ea9a3255cc711fb7ceb2881c src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorResponse.java: id: 7cc400ba52a8 last_write_checksum: sha1:60f94ee080c6b45c0c11ae7b9c075cc93edcbd80 pristine_git_object: fc650409d50aaaf560e847bf8dcceea4e6e112e8 src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Request.java: id: ac7f2b39b42f - last_write_checksum: sha1:b558e2860340c2781c1682700b58e65d120bc804 - pristine_git_object: a132574c15a04689facde9c523984400ef7662e4 + last_write_checksum: sha1:76703c0716e173cefc94fa59612e34c243e0aec6 + pristine_git_object: e6612706f8469e70ecd94fe3b205f5546ca21d1e src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1RequestBuilder.java: id: 067a2a5f9111 - last_write_checksum: sha1:e56b02e0a25a12b444ba0d6fa2ec7dfb0e6dc33d - pristine_git_object: 897052926ff566577f060d5583c3e1220cb8de60 + last_write_checksum: sha1:fac086b40e7f5ad310c9b72d5ba0c3c025ba017a + pristine_git_object: 2eb9889f5b0d34aaab7ef58f3a37790c9f4ecfe3 src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Response.java: id: be41c13df9fb last_write_checksum: sha1:4e0edf4637f008c72c87dc7ff87b09ffa716ea61 @@ -5970,20 +6476,20 @@ trackedFiles: pristine_git_object: a5c890649826c9bab949be0d6f93cbdad8f74240 src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationRequestBuilder.java: id: e19839e6b6fa - last_write_checksum: sha1:d0d6ccdb5245ccf7055538422e8293f2768dfe1a - pristine_git_object: 551493e6565bf97aa8795d21a96450308cb8e69b + last_write_checksum: sha1:80cbb753bb70537e9c5ad0bf6ade6b0fc9798214 + pristine_git_object: 30259c3526f9f6ae69ee4dfa638c3dc3c8748f82 src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationResponse.java: id: 4f29b49bc113 last_write_checksum: sha1:7cf59bac227adf06d50f6bcfc56590df5f31c66f pristine_git_object: 9beb72a7da4937b5502c575231daaca641785aa9 src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java: id: 906572d7f867 - last_write_checksum: sha1:3367d17d6eb342ffc920ae4c58f8280afd6478b6 - pristine_git_object: 710d6d273f17d064aa9911539ea50d9b36418f37 + last_write_checksum: sha1:ddd082bba7376c850a50ff1620eeed0345d6bb93 + pristine_git_object: 4fe794b20ebe094d1f6f794c6764ff53aacacfb4 src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequestBuilder.java: id: a99677c11d6c - last_write_checksum: sha1:1fdd70c03f1b7bb781e2d4228d55f3adb985fc6b - pristine_git_object: dc0391d5c68cf4a2576d755905f2698c56554758 + last_write_checksum: sha1:0839937693da54f8b8df20c522163238eef0e2e6 + pristine_git_object: 931efd06decd57b53278672ab089c9995d6d9b04 src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationResponse.java: id: 7157810c018d last_write_checksum: sha1:246160ed1112d4c35d8b8d274861511e37dc9b36 @@ -5994,52 +6500,44 @@ trackedFiles: pristine_git_object: fbc33e82c87f1b85b26184dc8d93cb0fad9b590e src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionRequestBuilder.java: id: 76352856f1db - last_write_checksum: sha1:47109126f6144a7916093f2a18fa41cb25c82ae3 - pristine_git_object: 441a45866f7ded54ab2e71a073827a26101faf9f + last_write_checksum: sha1:2777f6fe76de02dfe602edbd71d7d20536956c12 + pristine_git_object: 2d6c65793b37f250000ad25ad477ebcc22995bfb src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionResponse.java: id: 69747d2f0cf6 - last_write_checksum: sha1:96d7d5c384c93bd059b8bbc2c210e177171ac830 - pristine_git_object: 9566a7d09454c595c17263f134ad364b050d57a4 + last_write_checksum: sha1:7224e7d6abde476d8ba97db22e7631ff64e477c2 + pristine_git_object: b9cedc9fe5da185203eeea5e048cf39521636e93 src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequest.java: id: 7b2a659cb3f4 - last_write_checksum: sha1:8c9664a8cd146ca3a5c3b4ec43ae83203b9a8596 - pristine_git_object: b09dba4b9cc7ddc4996d6b49e3ae3815727b2972 + last_write_checksum: sha1:9132ca12ce3548bb380a6b18a1ca3507039498f0 + pristine_git_object: db98189530594612f7f31315340d76ff700c4a77 src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequestBuilder.java: id: b7b6cd968c0b - last_write_checksum: sha1:3c11053fb15ad8abf2423c44db841ef0ee883005 - pristine_git_object: 56c5bd93562900ab522d014373f4ef993da1c19b + last_write_checksum: sha1:7e648a98ca8ea487b9e90321f8a2122548ee98ee + pristine_git_object: 1aa893e04b45e5e7b030fad52195866aae7ac87c src/main/java/com/formance/formance_sdk/models/operations/RunScriptResponse.java: id: 35ecf0eabb36 - last_write_checksum: sha1:06cc6b4056eedf073b89ddae7b926e7fc2056844 - pristine_git_object: bb297f911a676f2f3f84b209a20ab923247b3526 + last_write_checksum: sha1:d161656cf2217ee87788c907a83d71b930ee5186 + pristine_git_object: 652ab4c1b8413544230ed98b918f5d16c1577048 src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowRequest.java: id: c3c30c232334 last_write_checksum: sha1:07d7aaa57aa0d99542268b679dba01d84b3cc4a2 pristine_git_object: 2e061690c29764e4bf0b00567447d82fd67f537f src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowRequestBuilder.java: id: 36852d293565 - last_write_checksum: sha1:929a4a356281f4e0fad324d5b26f27ab5e1b34e9 - pristine_git_object: 7f87eab08d13c6fcb843d07bcf288c5296fb9881 + last_write_checksum: sha1:4661d2330c8d32552fd4b560fe83f09a041507de + pristine_git_object: 0bf279431a8a095be1fdb052c5365083a792ba3e src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowResponse.java: id: f5b5988820d4 - last_write_checksum: sha1:5ea2caf7c826d0d46f47bd648440456d9e4e0084 - pristine_git_object: 857b84c19707a33dcf858816eddad7260cde34a8 + last_write_checksum: sha1:c483afd5c16f6091d742fe3a335ee13b37445fde + pristine_git_object: c410308b903fcd58d194719a704157a4dfd53400 src/main/java/com/formance/formance_sdk/models/operations/SearchRequestBuilder.java: id: 7f40f6a4f74c - last_write_checksum: sha1:4924ff521d954139647c81945f55208d15b1a060 - pristine_git_object: f781c5a7fa7471ee6563e97591c54e0474bfac16 + last_write_checksum: sha1:aa6394f05e7dab44400875a2e7f4ecf3490d303d + pristine_git_object: 194d29ba5bd4e46636758b75494aa33035399db9 src/main/java/com/formance/formance_sdk/models/operations/SearchResponse.java: id: 26eab6ea26fb - last_write_checksum: sha1:88423bfce0a1fcf78ea06bf1f32bf4d878a7b368 - pristine_git_object: 0438a1f11e688f8737ab31d6db72035d329aac2e - src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoRequestBuilder.java: - id: ad6b86036fd2 - last_write_checksum: sha1:ea99c7f5b225857c50c3ab1451191cb35fd36a6e - pristine_git_object: ceb5546be33ab02dc0da65d32c4332100ada1ab6 - src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoResponse.java: - id: d4e5baa6b207 - last_write_checksum: sha1:cb95cd72f0532f3bea36b0cd0f8cb7ef36b6bd35 - pristine_git_object: d19ed94002b548ea0c3787fccfe508e51e328578 + last_write_checksum: sha1:5e31e4b56e97044bdb4843e5fdd0368c7244aea2 + pristine_git_object: 339110e4b11cf5f4c68312d535b34ce3478d6e9e src/main/java/com/formance/formance_sdk/models/operations/SendEventRequest.java: id: 26e3c43aced5 last_write_checksum: sha1:abfbd6c8220422666d6b391f699893ba0274cada @@ -6050,8 +6548,8 @@ trackedFiles: pristine_git_object: e88eb9207aa18264a1bbc92c864501c73d98761f src/main/java/com/formance/formance_sdk/models/operations/SendEventRequestBuilder.java: id: c59a2195f8ed - last_write_checksum: sha1:e2117798082ca0dcd3d086704a76489a359de0f3 - pristine_git_object: 8b57100349ef5efdcb1f33a579dcc46990b90188 + last_write_checksum: sha1:b6ed3ad6f35cd426ab40903379d98c8bf1eb473a + pristine_git_object: 94452e14464a1350900936a8fb6500dde3a93281 src/main/java/com/formance/formance_sdk/models/operations/SendEventResponse.java: id: 87473dfeded3 last_write_checksum: sha1:4de4067015e78213781ce3fa38369a6c1e95717f @@ -6066,140 +6564,140 @@ trackedFiles: pristine_git_object: 3316236ef0418c88cfdda7b992dd122d45a7f848 src/main/java/com/formance/formance_sdk/models/operations/TestConfigRequestBuilder.java: id: 46d066ffc716 - last_write_checksum: sha1:2e49d6fe3d3e8784cfb6998be541f38437a14b16 - pristine_git_object: 3bc7a2feec0c472e1fff6ab343e0f18b943a4ff8 + last_write_checksum: sha1:4471335a89bbe021a541427480bb0f167991e688 + pristine_git_object: 679b1863eb541ac471715714abd59b4ce00f6f49 src/main/java/com/formance/formance_sdk/models/operations/TestConfigResponse.java: id: 256b8e11feaa - last_write_checksum: sha1:30caf290673ade4c8667fa6c5c20e636e5e29271 - pristine_git_object: 51582678a5d1b6e6a5db77dc1aae559da5f65706 + last_write_checksum: sha1:790d05c00fda0895e832bed7e31680803b853995 + pristine_git_object: 2191f00bf6d9af66e7a2f8ec4d95b0f3627863a7 src/main/java/com/formance/formance_sdk/models/operations/TestTriggerRequest.java: id: 03be0c994c84 last_write_checksum: sha1:6f3139fc2f2ee4af8a1ca9d7df1d5b04e61d1f2c pristine_git_object: 1ec0ff13540f715de880c66f0789028958846b8e src/main/java/com/formance/formance_sdk/models/operations/TestTriggerRequestBuilder.java: id: 16c2a907b103 - last_write_checksum: sha1:ea15f730ef5bd216006ea290897951cb72844981 - pristine_git_object: 15adf56e65c6ec5deaf19c5cd338198d2f690aa3 + last_write_checksum: sha1:51ecc3fd47f6a48432368171386d9c875629a290 + pristine_git_object: 27cbc53a517cefe4efcd4a634f75e70a6d6099df src/main/java/com/formance/formance_sdk/models/operations/TestTriggerResponse.java: id: 7665087d5306 - last_write_checksum: sha1:e89b10fd45acfd86e5819d85e778e027fb2b25ec - pristine_git_object: 7fabccf6684cb8ad6978a5e4d71f315dd6cc0e1b + last_write_checksum: sha1:9400e4b388675f4b952090ae185153315beb0e3e + pristine_git_object: 2235ad10813b735b53bd6a6f13cb8c63677d9f99 src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequest.java: id: 33f832371bea - last_write_checksum: sha1:a03085adf78cdb399e864679ae8e015da56a6507 - pristine_git_object: b7f5f4e93efe27b1318584704fcb6ede56916f8c + last_write_checksum: sha1:f10a88e654096343b4cf2ca94f9cc83770ba7eed + pristine_git_object: b49b66557d64c67829485026e94cb14e9f7839a2 src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequestBuilder.java: id: 7c255731f727 - last_write_checksum: sha1:67d561c30ae8ea6290015a874ae1cb4d93253c3d - pristine_git_object: 8099e7b525ac158e37f9edf95d752b863077407c + last_write_checksum: sha1:8a0febe43c7ddaf0c42d480855a89dcc7d5f2ad4 + pristine_git_object: 3af5fe7e3ea837f12e9fd7abd693532cdb1c9091 src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorResponse.java: id: d751bbc77daf last_write_checksum: sha1:25344fd98d23cf5d6b6773fa8257a9bfd857df90 pristine_git_object: c59f30cef7c89668eddc997a076166174997f09f src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1Request.java: id: 31cec35073e8 - last_write_checksum: sha1:65075ac374c9600521278182cce8163aa16f466a - pristine_git_object: 702ad3b8f2c168ac803ddf0ad317da79c55ad0bf + last_write_checksum: sha1:d968f744039989754dbff3318df3aa6bcb74ac5a + pristine_git_object: f7c1ed917be5190ab922bc35b45f2e51666778ec src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1RequestBuilder.java: id: 41cd9c557b26 - last_write_checksum: sha1:39ca6a3961a57ccb819c795948563d7f5b4fe3c7 - pristine_git_object: 2aa48ad287a06b96f903535b7a53b97298bd80cc + last_write_checksum: sha1:c3d7fad159895f8eb838eb89ac6c300b0d044222 + pristine_git_object: a20f2103c7d0946a4e70bb0989336e9638c81e12 src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1Response.java: id: d6b7ab066500 last_write_checksum: sha1:132f49dcc2ecad048a6b9f8fd95b32004fd0fa38 pristine_git_object: 945e9811e8b3dcbfefaa959b552d54073db54ee9 src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequest.java: id: bdb7e09c9e54 - last_write_checksum: sha1:74fdc62f9c6c40320537b0960ff05a2af9c2fec4 - pristine_git_object: 91984389c587bf7add1a722679145d713eed62d5 + last_write_checksum: sha1:db998221ddb409eb6288689b125e2fa127f92f42 + pristine_git_object: 77fbfe88f9fbe97f3ed224355fbf98e20b4dad22 src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequestBuilder.java: id: 2e51607f9f7d - last_write_checksum: sha1:46e1ca1618e062dd37f1c5d150b74a8ac31a01a3 - pristine_git_object: ae532feb6beba3c59df669ef2a4260743c3c8eb5 + last_write_checksum: sha1:a8c48357a39fa6f000a49887fc05f5261e6ace47 + pristine_git_object: 8c9eb3b01f9c8f3d012a6854cb2f335993f4c385 src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataResponse.java: id: 5e783b73c104 last_write_checksum: sha1:beb8472ad2d1ae174f9fc672279062961696192c pristine_git_object: 8a29344a3a40e17c8b4ffd90a9f592e5b7acd9a8 src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequest.java: id: c4fd16423166 - last_write_checksum: sha1:f67dc6b778b283c4a847eb2b9aef43c43af4c294 - pristine_git_object: 737e0eb5245994304e057230349257723ef09e2d + last_write_checksum: sha1:e06398c2c25cb5a7368ca6538e964aca4587e6fa + pristine_git_object: db81ebe6c09711929332ade7eaf8cb78f5c8b9aa src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequestBuilder.java: id: 32721b166f0a - last_write_checksum: sha1:7b34a11d54ee12e266914e33b81cf9cea431b503 - pristine_git_object: f4ff7dfce3f641cd33c3193412e4202ca4662766 + last_write_checksum: sha1:3221fa11cc1dc1049a9d23ae48ac17ddb563d95d + pristine_git_object: 3ffda40d649bc96c9b4d051421d4c6732d9d66bf src/main/java/com/formance/formance_sdk/models/operations/UpdateClientResponse.java: id: 6b5f2638937c - last_write_checksum: sha1:fae82e67761ab09a49bdc011e5edd09b4eeb9549 - pristine_git_object: 727c8bd04ca5544e88659c9f2f5d029f77c7900c + last_write_checksum: sha1:5da2ee4e4498a250f3c9037c7e8c04669b3af3a8 + pristine_git_object: 1492e4dd86a135b15055196fc92a14b5f9496eee src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequest.java: id: b3b73c687ec6 - last_write_checksum: sha1:3a7d66a1505bc61475642e96f833b3b5a00be8ce - pristine_git_object: eda02239a3a86cf7a80820f215aeab04b651517e + last_write_checksum: sha1:165293d1446cfa27e0391010438087d7150acca2 + pristine_git_object: 05db8b7b5a06bfd58249ba2ebf81197fc720851d src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequestBuilder.java: id: c309107bc09f - last_write_checksum: sha1:07600b2a032aa5a7d005002f1f5a56139664ab06 - pristine_git_object: 855f124bb50b0c496a9b1a901549bf9630374057 + last_write_checksum: sha1:2db99ac4e700d4ab5ca9474efd90db9640de612d + pristine_git_object: fca118cbedfbbfbda7870169da281a0edf00f5dd src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigResponse.java: id: 3b62a39decb7 last_write_checksum: sha1:29ecd1f6a1d5c27586d68e83bdb46d6b44c3a1ec pristine_git_object: 311b4c7c7931e42b8299fd7ce17ce59a2652bcc2 src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1Request.java: id: 4ae961ea556f - last_write_checksum: sha1:ec82e4ea83495bc31e6f91e74e7328b4f20ccb5e - pristine_git_object: af7a3c000878a338ef0817e72fc0b47b6683159c + last_write_checksum: sha1:d77bee54d2290d58be87fe80b2bb3336c13c4ffc + pristine_git_object: ce8138306d57cd78077aaeccf244854f1ef39a4f src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1RequestBuilder.java: id: f7e8db1ae03b - last_write_checksum: sha1:7eb209f205073cb7c4fc246502a70192e93f5e1e - pristine_git_object: 20732ea93f1cae4303d90571b2dd516f1cd0db2e + last_write_checksum: sha1:5f16e6c0c5c1a4dcfe69c73b33de3f4a85a75c74 + pristine_git_object: 7ea53edc97707e52b8973a8137577a1fbe966490 src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1Response.java: id: a70664147737 last_write_checksum: sha1:3ac8ae0ea73b33cd410791f7dbfe30325be4a62c pristine_git_object: df290c316a07255f88aaf34d2e969002ed3a4b4c src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequest.java: id: b6e4feb887b5 - last_write_checksum: sha1:bea758df0e4b368531efdf5008d1132bb3f40ad6 - pristine_git_object: a63c3f295e11f671e9c6d6f457298d3dd5706baa + last_write_checksum: sha1:a2d5ff0dbdbe1bb2caa83ddc2c84a9f7b0a9480a + pristine_git_object: e35797029eabea8b5e72098aea3c7e1ff0af9900 src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequestBuilder.java: id: add7a6149fc4 - last_write_checksum: sha1:e57b8c4f3e643efd73d86f6eb752d30f722945fc - pristine_git_object: 0528cfa1e63f987a21a53517d5b046fadbfb1a4a + last_write_checksum: sha1:7209a13ee348ad5bfbebbf9efb925df1d74f1582 + pristine_git_object: 83a961b7771eafceb80da53c2b58b8768b7457d0 src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingResponse.java: id: 7b80860d9632 - last_write_checksum: sha1:8b37cb7b98daa59048056038430cdb1392fc0e5e - pristine_git_object: 501cacb472846ebdaf39a1f797895636304b8f41 + last_write_checksum: sha1:b45bfd54db823f89939e54b30409365419825937 + pristine_git_object: e861a6c96c8e59704802637b62fa23ca0c6fe933 src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataRequest.java: id: 6006f389588a last_write_checksum: sha1:28faa17beb97a9b3bd818983011caaa1f855a29f pristine_git_object: 1dedcc8603ff2d8ea57afb2a1dab31e0c0012f89 src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataRequestBuilder.java: id: 26e3d2136d75 - last_write_checksum: sha1:cb26f789bab0fef3251e8e2624ff13259aa173ac - pristine_git_object: 827d8b43fbb096254a6b24a7d3bbbc513da94fc2 + last_write_checksum: sha1:958fa90e79c1ee0c1c23f9a86ec844be089a7dc7 + pristine_git_object: 4c4e42624095a9adf4b25304c16ac43f93b93d74 src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataResponse.java: id: 84a4719236a0 last_write_checksum: sha1:6172aaca20bef003156c1183e35da6372c5d93df pristine_git_object: 8d1ac0a2d4f6333ee1b838607548d5ee172a6515 src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequest.java: id: d21d83915c55 - last_write_checksum: sha1:8d9ec1009508e15ee2b678d2c1578ebb47e5b28c - pristine_git_object: 58c68c6010f3d62cb20a5d323d35c10024d721a5 + last_write_checksum: sha1:16fb4d4e45d3f4dabb2e8badc134c987b8ddc891 + pristine_git_object: 9be9e5270bedb35638eb1a7c72a5c000961acfe8 src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequestBuilder.java: id: 50d9260de0ed - last_write_checksum: sha1:c8a648739efe75af80dcaea6c476daff5e68397a - pristine_git_object: 0dcee708921cb251d4b9f5f7d01e5ce901631f9c + last_write_checksum: sha1:85bf1567a901e480dc6961bb9a785730779bdb1f + pristine_git_object: aa62fbea5be74b2a7d76f0faa06265943313eb88 src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryResponse.java: id: 03a704ddcd4d last_write_checksum: sha1:078058f8c0d35e6b61f6ade27d5bd1a3f2859fbc pristine_git_object: 044d95d752e1621061b4b0dcaec6c25166b61140 src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequest.java: id: bba09a4c44e9 - last_write_checksum: sha1:f7c18b6d38dde49ff8cc93d6fe0b18c338b8dde0 - pristine_git_object: 10079e89e2e47f4eab983b11e92d88edd7e21f8a + last_write_checksum: sha1:0b116b1e2bdf2a1baf5c3e033834365960dde621 + pristine_git_object: 8a6257e55a9ce93195dc3a1a30aedb99f4dee834 src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequestBuilder.java: id: 7deb149749a1 - last_write_checksum: sha1:12b3dae073f274b7647b40e84927f05192b00fa4 - pristine_git_object: 33bdbe5fa571a67e9a43bd5e7b29c10c84064d09 + last_write_checksum: sha1:c4ea0c4d520ef662e96476c53445a933946898fe + pristine_git_object: 41b8f258880145aa8793f81756671be1b04055b9 src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusResponse.java: id: 41f68b23799e last_write_checksum: sha1:c9d58cea24766005c328334f474c006683c8e7d1 @@ -6214,8 +6712,8 @@ trackedFiles: pristine_git_object: d3ee544e64d7daf05e4b5e7709d8153dcc277241 src/main/java/com/formance/formance_sdk/models/operations/UpdateWalletRequestBuilder.java: id: 6103101fc5bb - last_write_checksum: sha1:2abf57a0ac69766170734562a2848145ddfe0ad7 - pristine_git_object: a15ac03e52426d132aa7654b78c25b5ecb7d7893 + last_write_checksum: sha1:7b4b8898ddd3c03317fd5b9980bdc92bbddd0308 + pristine_git_object: f1357e15f0d1cd309a5740d34ea7eb6c6aaab25b src/main/java/com/formance/formance_sdk/models/operations/UpdateWalletResponse.java: id: afd340ba7418 last_write_checksum: sha1:dbddf2d85baa5ab9ba4488347c1b1c39f86aa916 @@ -6226,8 +6724,8 @@ trackedFiles: pristine_git_object: e166011e0295607fbaecbfe7afab0c4ca6c64329 src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataOnTransactionRequestBuilder.java: id: 30e9f858d46b - last_write_checksum: sha1:51be4bd1ec245fde0891ddde83e8121721a56574 - pristine_git_object: 8efc425451cefa1b604ea5667dff341b45f3ae73 + last_write_checksum: sha1:e5a5679464ee0c299e583e765248424021c8bbf2 + pristine_git_object: 090e96d741f10ba16a1045d4ce5a322c037884af src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataOnTransactionResponse.java: id: 4e01668be3c0 last_write_checksum: sha1:3984685e3d3cff96a424181af1ea56ab398e090c @@ -6238,8 +6736,8 @@ trackedFiles: pristine_git_object: c4a07318e4c275a951630fcd266add854a2c7da2 src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataToAccountRequestBuilder.java: id: 84652b91e083 - last_write_checksum: sha1:6b53d1ad2567bf5043e2870c5610804e5b52c932 - pristine_git_object: c294df7d32ecc6023bc1286a8ebb5f15d461342c + last_write_checksum: sha1:efe3c484b85ebd19de6a150f68388bf82fafe53b + pristine_git_object: d2057cbb0999959438ff584ad5ad35de1c72b92e src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataToAccountResponse.java: id: 5e7fc0441aaf last_write_checksum: sha1:061ababcc441a620e437d5b156a1aed6f2daed09 @@ -6250,124 +6748,116 @@ trackedFiles: pristine_git_object: a43e96a1d0c9154271fa74f3532c92f6a7471908 src/main/java/com/formance/formance_sdk/models/operations/V2CancelEventRequestBuilder.java: id: 13234728c737 - last_write_checksum: sha1:b3baaed80f24ce97adbd3c6c55a4f1d1e3f48414 - pristine_git_object: 602395931b94138de63282d2e71afdc4339fdd58 + last_write_checksum: sha1:97f143d914a1375c53c06ca45b863fc069366dae + pristine_git_object: d545e5fff1ea2fb0e1c3ab6751ed2a69b1b1c1e5 src/main/java/com/formance/formance_sdk/models/operations/V2CancelEventResponse.java: id: ed13854812b2 last_write_checksum: sha1:e8eb428f3b24e0ab320b51ae3ab62e67549bc6d9 pristine_git_object: e3b043129e3b070d593502cb99a37b710429e2d2 src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequest.java: id: fb81763c0625 - last_write_checksum: sha1:b0ced27a9494d430ba45afd540982b6537cb14f6 - pristine_git_object: 2e4c7933162ed5f8c7f1b3a5e3eb13cd7d312db4 + last_write_checksum: sha1:c0f62f17f9b2e42b7afccc2e62744accf7c6d72e + pristine_git_object: d85ea9ce839a7f7ac2e8169d70194b4b453e2bf5 src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequestBuilder.java: id: d0cef59de48f - last_write_checksum: sha1:1ccf49dcc4cc472ecdc3b4d32b15a99c1166a4f7 - pristine_git_object: c15034143d6f29c1515cd3977b44436bd47adc4a + last_write_checksum: sha1:5b166ba2720165a3841e6c234de8c1a0c5363cfc + pristine_git_object: ada53e4f3d2590c8e88787cbecbb6308925b6cd3 src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsResponse.java: id: f19cec2530ac last_write_checksum: sha1:a0a83c253dca8730026156025f28532d81efec5c pristine_git_object: 05930cd8438c6d9236476b03555b578446d499b7 src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequest.java: id: 64ea23305f90 - last_write_checksum: sha1:95763da414c8155651b74963a1cfe6f752f55dc3 - pristine_git_object: 3456051443aefc3c4299c7b1b73095d4d97483b7 + last_write_checksum: sha1:2d9ad49b1640dcde5cb0b892b3cebe0258b6c81b + pristine_git_object: f773b983c4f5bed0f74fb7f80a7af7c98f63ea76 src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequestBuilder.java: id: 7cbb1f421c86 - last_write_checksum: sha1:d74ab23cc249a3439271c5e7a7259bda0aad11de - pristine_git_object: 08eeda90740e62f3d72032b25fbdda6c7b9a83f7 + last_write_checksum: sha1:cccdafd392fc14e5a1991b4ca2543cee399ce81e + pristine_git_object: 068760b60a1228a0b6550ed117265d87cd0376f4 src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsResponse.java: id: 2c52ac384092 last_write_checksum: sha1:7c5dc6e28b7551c4acd3cf7d5a19031a2a5c0223 pristine_git_object: ac1ad8986959d295b232d5dccfe9d574b736a7fe src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequest.java: id: 546c8db6dfd2 - last_write_checksum: sha1:39032155f958bad5a8c86618df1cf1cc5df82597 - pristine_git_object: 04a2296f4290fa482b6e667fb88fd87de95de437 + last_write_checksum: sha1:b84390378629769cce4ac357c102eb6e603d19ce + pristine_git_object: 1b323b14d5684d47c54b9ee139b3c0b147e18d7f src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequestBuilder.java: id: 32f144ee9e39 - last_write_checksum: sha1:d0fe91d00ed3da490b602bff8d34629d98fcf7ab - pristine_git_object: b8b25903e54842c4e4ecbd07e6a655bf2786baad + last_write_checksum: sha1:53e81ef927a9faf88af9492ab3f0e8b9d3e14f95 + pristine_git_object: f1774cb39740113ccce2e41ed547035efb5ae03e src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkResponse.java: id: f6792705c112 - last_write_checksum: sha1:7c4e260becbca019674c4943505be48556c68de1 - pristine_git_object: 652041a8b69a2362fb5c9169f3566d5b62cd5dca + last_write_checksum: sha1:ab8a73bfbf0d3de90754e1eb945ba167ebc0440e + pristine_git_object: 7b4cbd85187e6de9ae24a5de6044d33a952a9f93 src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterRequestBuilder.java: id: 00e121a1bf0f - last_write_checksum: sha1:838de1613077ecf14fd0dfa5617fc901caf6da55 - pristine_git_object: 00ccc6eae1eaff2d78e5466980e3249822b54753 + last_write_checksum: sha1:521d80bddd4613d93a3fd7f6d4f01c33625c9366 + pristine_git_object: 203466a15e4839ff9b36158c92365a2a75746dd4 src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponse.java: id: 350f14d42141 - last_write_checksum: sha1:b7862d50b197a89f4b45b0a391e44c72a060b258 - pristine_git_object: 9281d9adcf0112cca0c230c33828809bd8ed7452 - src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponseBody.java: - id: 1c989810ed51 - last_write_checksum: sha1:3ba0c4f26cc2edac6f5fda0f5bf73530945b0c83 - pristine_git_object: fbf820da121213a963c0765e458c94c3772100ea + last_write_checksum: sha1:05a1f8694185f726cb86e7e936d8326ab8c34d59 + pristine_git_object: eb8d34c964e7337a0bba98750be0a826a71f9b22 src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequest.java: id: 06a56ce45068 - last_write_checksum: sha1:1790e108ca0b456b46c8ef1f7666a53fad30574b - pristine_git_object: 2b278aa2e5cf45785806193d77862cc5c60f3d76 + last_write_checksum: sha1:2b9e4312f6e8aaeca51952dcbda0aaa5de376890 + pristine_git_object: ba3f9ae8baaf1bf75eb929e85d0126202595fe4a src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequestBuilder.java: id: 798782a0b011 - last_write_checksum: sha1:f63a90ea8c21dd118973db89e945bbcbaa6f59fe - pristine_git_object: 0c4dcc44f3f0129cfce7af4c6ced5c7fbf0f1397 + last_write_checksum: sha1:37800e2dfef363a6b3c733e09c241c57d5d7bee4 + pristine_git_object: e2a92fc8f7752ebdc54ec10cd0dd252d96c6bf61 src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerResponse.java: id: 012058a924ee last_write_checksum: sha1:1fba514b4a54d7f572aaad1766554d8794dc191a pristine_git_object: fd6d81c7f940a440a0f77869fc80c391758f2b0c src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequest.java: id: deedd01eac5a - last_write_checksum: sha1:91322ef0ec3f85dc0153ddeeb34f80105014dba7 - pristine_git_object: c98ca5b7cb43de93853749b2632d9a538264833a + last_write_checksum: sha1:ca58cf418472f360cb439e614d9842e1a5d1fedf + pristine_git_object: 6b8c0287d4d6207e40cc3f8ce40d23a2d2cdce77 src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequestBuilder.java: id: ebab2dc4fd6c - last_write_checksum: sha1:fae7c09a439a105d8eb9d5299d7701b378b952b5 - pristine_git_object: fd25d8f6ab46336b483c038506487beea52aa403 + last_write_checksum: sha1:b5c2eb3f040fc98fa8347ae3576676727de2650b + pristine_git_object: de28f7ae74b6e91d37af41a532d9c0415b1125c3 src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponse.java: id: 0c04b88ff904 - last_write_checksum: sha1:8353ddff4bcce8ea42e07364241fa65bf200b924 - pristine_git_object: f21e72809d172319fe52688e18a2598556f27f74 - src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponseBody.java: - id: cf0831d7bc50 - last_write_checksum: sha1:abeeb7662fbabf753faf81028900eff19e938763 - pristine_git_object: 94fa1665f428267bfcc484e30046928a688a473a + last_write_checksum: sha1:262efedc0568596974ca503836521a7b5db065ee + pristine_git_object: de114f11ea84ac7120f32129c4d87b2ed289d78c src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequest.java: id: 5bfc9a9e17cd - last_write_checksum: sha1:9a02e0887d0e3c79c0f804bef5371df6d377f252 - pristine_git_object: b0b8242cb1f01ab612f8d8a2a8f9a451e55cf310 + last_write_checksum: sha1:699b7fb11b449a50c0a367c4e129d994574e93b4 + pristine_git_object: 20dc212f90def6c3fbf2436fccf1e673904a3b5a src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequestBuilder.java: id: b573623db1a0 - last_write_checksum: sha1:ff6c1b39a3e0c61d15f73f9dec2c013891de876d - pristine_git_object: e18aedfa380db828587cef704dfdd259e5026b9f + last_write_checksum: sha1:c7485627f0a2b17e8bccf49b838080b739af53c3 + pristine_git_object: 6d429ccb707f5ff7be947ab98ea6ecd904444bc0 src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionResponse.java: id: b1a6b623417a - last_write_checksum: sha1:452480d8fed2963ae6c3f26e56c855eb651500c8 - pristine_git_object: 2f2d90f2d8af284dd7fa66d3e553ca57a6cf20c5 + last_write_checksum: sha1:245acc87afa9f0ef7f7f1687bea3a056a8e68b1c + pristine_git_object: 2c4eb168a3db4eb345f507567494e4168d2dff0d src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerRequestBuilder.java: id: 3c7f1ab43d5d - last_write_checksum: sha1:3be150c3d46870ae8e5e2ece0b8d3051d0125f61 - pristine_git_object: d9128d9290391416f0520333e326ad6c5e217d17 + last_write_checksum: sha1:bcbcbade89963d3642a2572da639c44b1dcef27d + pristine_git_object: 09ec23edec676675010e0e14e5c569a92cec8c2d src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerResponse.java: id: f5d21ded247e - last_write_checksum: sha1:db9bcad9f81dd497f847e99765ec0faadb4d3fb3 - pristine_git_object: b70a930a8f98324ec79e81883796426ebe3074b4 + last_write_checksum: sha1:2088f82972ce0ffb9f4dd79ec138b83f6efe565c + pristine_git_object: becae7fbafd705eaf341ce152954ee328605096f src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowRequestBuilder.java: id: 95aed2560cfa - last_write_checksum: sha1:3bdd9ff93b4c36cbc99e80f9ad9cf2a5de6f61db - pristine_git_object: dc59c5f9851c6fceb55017e435b50bcec47964fe + last_write_checksum: sha1:13d1b5bc4562244138440388a52160c05789d356 + pristine_git_object: 1da21ca62e3ebb11fb67c2e5ce6b7228c8a51c8d src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowResponse.java: id: e9d1d8512a90 - last_write_checksum: sha1:385d14da1ecd1f1a867d6da5f3f132e594452e22 - pristine_git_object: c60ed11386b70dfd981368f93efbbee079e0a992 + last_write_checksum: sha1:ca4f65d472bd16afbfd1c1d2f3aeeced60a5eefb + pristine_git_object: a6d5e7f18662811dd49aa2cb5fc3f9e6bda760c7 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataRequest.java: id: 3e3e112385f7 last_write_checksum: sha1:156da19bf01da7d7eba6c0c9bb87ef5eb6169491 pristine_git_object: 9be691354f612ff51fbaa8be84ebfc218a6557e2 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataRequestBuilder.java: id: 9b653e82c999 - last_write_checksum: sha1:1f50c46b17d483caf990086c66457f2ea83a10d1 - pristine_git_object: c4c518fa9d8ebfc6ff2a98b5aa0b2b4be741609c + last_write_checksum: sha1:522dcc0207c7ad23e7aa275ca632e5eae7eb204f + pristine_git_object: 408278bd08f1bd0aa66c57cbff4aea43ed4d0c76 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataResponse.java: id: 4331adcd21f5 last_write_checksum: sha1:7b94339fe53867a2ae0ae2dbd7506d03ecf96ad4 @@ -6378,20 +6868,20 @@ trackedFiles: pristine_git_object: 873ac334809229ec7742e44bbee1af81a4ea4179 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketRequestBuilder.java: id: 2a6757ed2ffd - last_write_checksum: sha1:f316ee1566a0debab4487c9028f8081beffc6ac7 - pristine_git_object: 36c9584907b8a660e76ef1a1f1bcbe17e97b8d92 + last_write_checksum: sha1:16b3bd9ef55b97e3954e8b1aa1c265603281bd06 + pristine_git_object: f11b7dbf5d19dfea1eea9701dc9a5cd251ca02e2 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketResponse.java: id: 767147982b59 - last_write_checksum: sha1:121377ff7fdbf8f22ede924dfb6e27b2b09fced0 - pristine_git_object: d3f450dffaf972363e068e7fa60095bcc73146f4 + last_write_checksum: sha1:0868360874aae53249538b2ee9ea9386c34530c1 + pristine_git_object: 3605501d73cb1adc8e8abbf45605104b2b1c1564 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterRequest.java: id: aa1bbeeb34f1 last_write_checksum: sha1:96f7fcf5a6d8f0eec01ea3fc557598cc82fe2ae7 pristine_git_object: d7a6293cfaef164e8b4efc4f1b253c54d8dc5138 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterRequestBuilder.java: id: 168719bbbd33 - last_write_checksum: sha1:165e5ce7424f386d3bbfc3bdb5b4980bbe8d1c85 - pristine_git_object: 7ccdbeb452b2bfa9072a2feae465d59ff0f8896a + last_write_checksum: sha1:e3f2be7df6ce590d93c4401bf0b22584c34bad14 + pristine_git_object: fc18e462969aa22465bc4ed04c4c4769bfe972c5 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterResponse.java: id: 1192722b1a19 last_write_checksum: sha1:a0e078357bc53e9164ea12cb0dc122b1b6abb048 @@ -6402,8 +6892,8 @@ trackedFiles: pristine_git_object: 1ca659a544ccfe0b2a769db07044f176228925e7 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteLedgerMetadataRequestBuilder.java: id: ee5122d7629e - last_write_checksum: sha1:e1a60759457369ed7422afdda056b3f3dda4d518 - pristine_git_object: 075bc8882df29bc5b796b650934658d703143244 + last_write_checksum: sha1:781866851e53014a54f01957d0b66b98d428a084 + pristine_git_object: 103bd27de9bed6f551f643d34bd3351cdfae3e76 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteLedgerMetadataResponse.java: id: 5cd91de86157 last_write_checksum: sha1:147fb1f0715426f7f5a24fcddc246e50d87552fa @@ -6414,8 +6904,8 @@ trackedFiles: pristine_git_object: 780b7e162eef49633844abba620ddd0b1c2f125b src/main/java/com/formance/formance_sdk/models/operations/V2DeletePipelineRequestBuilder.java: id: 07714c8336fa - last_write_checksum: sha1:e410b8e885192e63422637450e8b46ed7beb0ff5 - pristine_git_object: 841207e0fc758b0f4457595ed8d7af61f0152466 + last_write_checksum: sha1:78fb6d6412b6c8b18db24dbf0e33e3f7660b4190 + pristine_git_object: ed7162bc28f2efe884fd221ab6f4f9f4719691ba src/main/java/com/formance/formance_sdk/models/operations/V2DeletePipelineResponse.java: id: bb75e9c6b9a3 last_write_checksum: sha1:65d8224b026596b185595219a4a7ade809781acd @@ -6426,8 +6916,8 @@ trackedFiles: pristine_git_object: 6ad20bada9590730f0a56eb950cbb1b289f1b68c src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTransactionMetadataRequestBuilder.java: id: 787e9c3a5c04 - last_write_checksum: sha1:ee367538b3d56fb29a33b7dddcc02b7510a2490b - pristine_git_object: 15d52221f69f161e9e10e48f8cdb3fedcadbd876 + last_write_checksum: sha1:456913a7c2a1a77d41eeb331a6a48675ad94586c + pristine_git_object: 78c743bfd5233f84e575a1783a25241f8a024482 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTransactionMetadataResponse.java: id: d3a9efc9477d last_write_checksum: sha1:e46c4938897e7556ff1e3bc3a42682abcead30ca @@ -6438,8 +6928,8 @@ trackedFiles: pristine_git_object: 114332fd9f9c210fdc6b4230ed9006f2ce46579f src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTriggerRequestBuilder.java: id: 2a97d3a1a27f - last_write_checksum: sha1:54a8dc7f23b7a4cb9b514120bdb46ebebda18f53 - pristine_git_object: 8bac78de266ce01e4bf8ae9980d8b53473be158d + last_write_checksum: sha1:ff48213a414bd1299ab4b14b39c8343d92c45ca3 + pristine_git_object: c25b2edcd4626d8b0a54ace5b5975a89d2e4b675 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTriggerResponse.java: id: da54f839e786 last_write_checksum: sha1:506c08db2415be83d8e5663703504041ebc24935 @@ -6450,8 +6940,8 @@ trackedFiles: pristine_git_object: 40e29c974b75778ac147eb2ec1b5ea1f6ef21b22 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteWorkflowRequestBuilder.java: id: c60a4c6c7e4d - last_write_checksum: sha1:a89843ab89b6f2d49c0d11ce2816dc52de6a8805 - pristine_git_object: 18811ab18e4da23a5c0ab8b992e443af38dbe185 + last_write_checksum: sha1:64ed1a23dde58206bd1cdc7772fbd48342b3b567 + pristine_git_object: 5a874c4b3c12b043fbd72ac5e59c34c4eb00bf75 src/main/java/com/formance/formance_sdk/models/operations/V2DeleteWorkflowResponse.java: id: bbd870b7b157 last_write_checksum: sha1:83a25744b933b900f3b24c120c78c855c958147b @@ -6462,8 +6952,8 @@ trackedFiles: pristine_git_object: ade4bbc6e25676a748dfd1d349a39be87461fab3 src/main/java/com/formance/formance_sdk/models/operations/V2ExportLogsRequestBuilder.java: id: 55b01f54ad91 - last_write_checksum: sha1:a40253c9fd487176ece1cce05433953fe341e41e - pristine_git_object: 8720c86a35f6af4c3ddff09e9c4abd6451831555 + last_write_checksum: sha1:04d4fb70626a5e4bf897549d7017f6e4d15c4979 + pristine_git_object: 0f018ede9990e6e4db1951be0a548ff7bafabccc src/main/java/com/formance/formance_sdk/models/operations/V2ExportLogsResponse.java: id: 95f406b683cc last_write_checksum: sha1:ec503892d3ac36d25c79ce4b9255d98cb2e329b6 @@ -6474,292 +6964,260 @@ trackedFiles: pristine_git_object: 0e31a48ab11845faf02273dedce195f3e3475fb7 src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountRequestBuilder.java: id: abd430a0b263 - last_write_checksum: sha1:df253569bb9ef1a87e17cf55fbbef74fadc3ef14 - pristine_git_object: 70912f7142343ca850e7b23f28b08ffec3c10af1 + last_write_checksum: sha1:dbcf27a39eaaa49480b36b00a6be01703aad6068 + pristine_git_object: a7de70c8e7d116731929b34ba1f40c7add0938ef src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountResponse.java: id: 0535e0922592 - last_write_checksum: sha1:028ffa8887d61ee05c11605bfa3f03adf005fa32 - pristine_git_object: a1e4343a7bd3462604faced893d0557e20878c20 + last_write_checksum: sha1:6242bfafb4362e237168a37c27f256a875e41573 + pristine_git_object: 85fb8ef6a820eb97eee5faada29eede8f1754d9f src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequest.java: id: 8b305d00237e - last_write_checksum: sha1:31a5ea1ec0e2a7fbb73a0e2a27eff055266f6f6f - pristine_git_object: e863ae07716d43703fb4070d3cb95533dd69c3a4 + last_write_checksum: sha1:5f5770b84e35fb4a0a22f48ef325e2770437f6d7 + pristine_git_object: fcb96a607007f45909ad46849f5d93cea13bac75 src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequestBuilder.java: id: 800a27d639b1 - last_write_checksum: sha1:cc78d600f5be8763c44b5e571e01a314f230eca8 - pristine_git_object: f259a609465ee5da64dc3da6cbadd22d05372b8a + last_write_checksum: sha1:a44fcc683fe72a9aa8c3d225344ee56d8aa4c24b + pristine_git_object: 65c7910818872d26175dd7906f42dab2f69b9707 src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedResponse.java: id: 52021823ce8c - last_write_checksum: sha1:3d62d5e4346bd05617d304f1dea48580af8325e8 - pristine_git_object: 937ea161cf047a27554d5fd74f9862344fcb77f7 + last_write_checksum: sha1:d0cf3d02cdea370307837e25933085daf8b948d7 + pristine_git_object: 1a83c82f959b3ac8923b37e51859642affc55e6a src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateRequest.java: id: 7c94ca8ac84d last_write_checksum: sha1:8af61ba2441a86f3e3b90d0884d7e2cf59ae7069 pristine_git_object: 6f4d8770acc378f716152aeb7b05ea78099c3a6d src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateRequestBuilder.java: id: fa654e96b2ef - last_write_checksum: sha1:28becbc1e45b611426ada427fccdf27c81b89c24 - pristine_git_object: 25eb3d15ebc61464a9652973530712173bb132ba + last_write_checksum: sha1:ce292fe267a0837e9e1c186d1e49f644d92a46e4 + pristine_git_object: 9ac3f59513af82e6fdedc41216f53bb8529bdd96 src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponse.java: id: 7960b3e0c781 - last_write_checksum: sha1:481ad81a7d2f081ec5d20ce01869977f206392df - pristine_git_object: 34626902e9a99772039712bcbce2f1653b1fa0d1 - src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponseBody.java: - id: b58af02a1b64 - last_write_checksum: sha1:18ec429e190aaef1535857986623352183aec02e - pristine_git_object: 3ef5a61911dd75763062a5bc71294d7ca6b99440 + last_write_checksum: sha1:21042ec1b6b248be9b043315baaa89f1070cd76c + pristine_git_object: b8e1bda8fb372585b8455f074d38f23523ea3c51 src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoRequestBuilder.java: id: 3c4b4a95cef8 - last_write_checksum: sha1:1c2917740f7f26cb168af6fb0c7ea0e44665b52c - pristine_git_object: c8717994d382693b898e5faef7e4852961ffd022 + last_write_checksum: sha1:3310de1cbed2cef3cf6dea37aac3ae446cf902ac + pristine_git_object: b9052812df2186df92799f07cdb8b21d4975bcbc src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoResponse.java: id: 4be87af5cd41 - last_write_checksum: sha1:acf74cc056cabdbdba2e04b73870b42f81290b67 - pristine_git_object: ad8f3f22e14da76aa386bf6302df6bd9dca441f4 + last_write_checksum: sha1:bbf661ed88cf2f432b58e2ed411adce309516c8a + pristine_git_object: e0674cd3bd434e74bec72481aea304982d36c58b src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryRequest.java: id: 52294d821fcd last_write_checksum: sha1:2d187f1eaba613259a1e02907bb1771a3b9c3498 pristine_git_object: 8d27d7a1803269613a2ea8fb6c9741266f9cf84f src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryRequestBuilder.java: id: 09290b39d60b - last_write_checksum: sha1:0252580c04d12b204e6989344bddb7c703a7dfef - pristine_git_object: a349603aff4b72a68197a6d96272fba6946c6b08 + last_write_checksum: sha1:5d41dc422939a66256a1086e210d7b9c212bfb38 + pristine_git_object: 4f5557161a54682a2be90c1df0e529d3883be88a src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryResponse.java: id: 75e992216f98 - last_write_checksum: sha1:780981307ae79ac04952ad21b64978da067c41c1 - pristine_git_object: 2d52080cb75320813be7149a7163fbe34f6fc864 + last_write_checksum: sha1:e41ba61cae4c31674c8644f5ef7ec508a5e8ee63 + pristine_git_object: c9618869d136414fd18ec9b6ebd12d6373909479 src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceRequest.java: id: 40074c1cef03 last_write_checksum: sha1:d3f906750b2ebe78d4e7985b0ad189db81ffc3f5 pristine_git_object: e27728253ebcaaf9bacf5eac88aada3936c06515 src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceRequestBuilder.java: id: 6429dbe4df9c - last_write_checksum: sha1:7e6d965827df6bd76d7c029012596afc9e0e0521 - pristine_git_object: 523293dc5318a5f3e1f3161f7367fc1445f8902d + last_write_checksum: sha1:3fadc89a9a4d5b87a6046e6608fdec6238b15a36 + pristine_git_object: ca4cf906f8f93ed466c963dd52b58f12e8c3d8ef src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceResponse.java: id: 371aced51001 - last_write_checksum: sha1:329f0fb8f6c7f9c4dc64d1062e3f34d74beee7bb - pristine_git_object: a7270e3da4b9ba22e82cc08c0b6ba5ae121b67a4 + last_write_checksum: sha1:a6bf5f0e4db4bb37762569b2f224f42278244567 + pristine_git_object: 3f01448918bb65b7f4e3082b8244c8a4426a6309 src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryRequest.java: id: b2bce08c3335 last_write_checksum: sha1:4c633970c8063d4d6b96593c2785c92eed26d384 pristine_git_object: 978a1e4735ada9140de3f353a5f194f8ca9754ee src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryRequestBuilder.java: id: fa0f0d4f485d - last_write_checksum: sha1:9f65575f047b27ea8167ba20f9127b6df1d84bda - pristine_git_object: 0f61eba2ddce5138d1c8c357ad8cd99ee15e5410 + last_write_checksum: sha1:902f0b061eb5927cd09240c3602946bd70b0e21b + pristine_git_object: 002e6e093d3eeba450d33c643512c54c615f65c2 src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryResponse.java: id: f0a2fa575b97 - last_write_checksum: sha1:ae0f196179acddef30b2fa14805d1af665816d5c - pristine_git_object: 20eec556361ac50d4036c3f02a378cad4054b835 + last_write_checksum: sha1:49fc4040d31800658d260169d68c36c8aff84602 + pristine_git_object: 1193ee53a3424341c4406f1b690bf034e2670b0a src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoRequest.java: id: b64db3ba7d3e last_write_checksum: sha1:d66eff5a00ddfb5c2ac152dd82dbce255dd51e7d pristine_git_object: afb005b61a318d4ab63c630125641450b1db5746 src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoRequestBuilder.java: id: f9241037f03f - last_write_checksum: sha1:6777db05a0f66387faeae32469be8ab6a86a00d9 - pristine_git_object: 03b0e713bb6dcccc1a7711cbd7587ddb9d58b703 + last_write_checksum: sha1:9b2cdc8d1e2745de4ccb784bb7dada1b2cf19834 + pristine_git_object: 290bb7925997c43d01597f00a291958d24a6a1c8 src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoResponse.java: id: d3c0c6c9a10c - last_write_checksum: sha1:b72ccdcacb870fd62018fd87d334bcae78f8a5c1 - pristine_git_object: 7d1caaa956eac7b251fcd96ca0687ee194dec3ce + last_write_checksum: sha1:16a90fe8332c153179e93fa020a8426e2ee02b24 + pristine_git_object: a8aaac8ba0e6d55b5dae8d650a68131fdeddb933 src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerRequest.java: id: ddb58e3d5649 last_write_checksum: sha1:a4124a1395333deb11136bc1f2bccc1f705af383 pristine_git_object: 4e276a973babf8e46b934103485d1dfb269c4758 src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerRequestBuilder.java: id: 1bd184b5a669 - last_write_checksum: sha1:413074d5173e1d1e05adec3cdb0f72117729fbcd - pristine_git_object: 4e4c525b5766a6ae0d45e220c0d8fa1174c4b07c + last_write_checksum: sha1:249bab95644c06814c61a0c06f6b991054b25cff + pristine_git_object: 004a0899cf3cccccaf48894d97b446e1423c07b3 src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerResponse.java: id: 99c1060eb9a4 - last_write_checksum: sha1:a9b4460bdcc11fd806db0922352b745e3a24ffe9 - pristine_git_object: 99cd80411689172bd36c7495cfa27bffbe66b6c5 + last_write_checksum: sha1:5c8074e82766b9d807c143d2a4ad90924f6a06e2 + pristine_git_object: 40d384126a00ad56de13e544e33db8a34415035c src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateRequest.java: id: fa39fe5712c3 last_write_checksum: sha1:23824e037ba24e58a325ff8eaa695dd88fe667b1 pristine_git_object: ef28882e4c983d54533a0f711cda482757bc6a3a src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateRequestBuilder.java: id: 2552965b3b82 - last_write_checksum: sha1:b44e2c825ee57b0bbabda769bd781ebefcb7d96a - pristine_git_object: 5c0ff7d34d2e241036d925e4ef2468fe0b53b15f + last_write_checksum: sha1:d6b6ff159c2146bd732b89e2d8c2727c0edf672b + pristine_git_object: be435e8934481d55293a49045ac806460ecc9a23 src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponse.java: id: 551fbf9982f3 - last_write_checksum: sha1:512a5a977333a74f74c352de71ed4ef42cdbae31 - pristine_git_object: a90a5253eb2b5c189432243ed2eec74d52e93a02 - src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponseBody.java: - id: 753327aa7f56 - last_write_checksum: sha1:34eb00fd60ba7c492cba2ad218c392bfb4251672 - pristine_git_object: d1143ac578ce27ed0f23433bdb66afb6b4729e1d + last_write_checksum: sha1:6e6b390af06b806974120905ad2f035fbe38e9ce + pristine_git_object: 626958abbd36d9eae4b8ac6ea5d483e15e6002ad src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaRequest.java: id: fb760d596758 last_write_checksum: sha1:a90a4cf79167b566ea8c29c52b76a3eed1154bde pristine_git_object: 9fadb51361ff398d02db4f9541c2b52a43fa4a18 src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaRequestBuilder.java: id: 4532826ed42e - last_write_checksum: sha1:ea39cc2e9d9f6dc569cc9ecfc8706a3972384d42 - pristine_git_object: e925cd502157274ce64441ab42eb63d5b7ebee85 + last_write_checksum: sha1:aaabea211fd8b9a5c5f9d74140408b2e5a366ccd + pristine_git_object: dad7cb26c7e652242e04ceb1c64204262ac48536 src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaResponse.java: id: ed35e4063ba1 - last_write_checksum: sha1:6d4f86aec30a7229d231d3e07ddc4754fe2bdc01 - pristine_git_object: 04d72c3cf5acf0215ab656281c2f019c1ee672dd + last_write_checksum: sha1:1a0ea86c918e6da5601936edac4b0ac4bb497764 + pristine_git_object: 28a0c0811c0f9b1cb1f222ee023d4ef535d2c71a src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoRequestBuilder.java: id: 5c9f87284a51 - last_write_checksum: sha1:e583f9a5a94d845c11d92af32a13ace0beb187bd - pristine_git_object: adbb92f99c79b02f36053c174365c6edda27587c + last_write_checksum: sha1:c671f8339496da4228865b74fa0904a9bdb2a85b + pristine_git_object: 03fcc3449cad15c776d091a24eb70f2074aad5da src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoResponse.java: id: 56882080f5d8 - last_write_checksum: sha1:0442108b5a170fa18319514a4fb637364717d238 - pristine_git_object: edcb3dba4b057e234206e0aa00088224ab3145cf + last_write_checksum: sha1:e1da10869bafafbdbc8f19cb27c30033699de1f8 + pristine_git_object: 6dde7dc95321425bb56123f721de373cb01331df src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionRequest.java: id: 62d285971831 last_write_checksum: sha1:c1bb102510a819c496c644b24f72894a1af6e494 pristine_git_object: 7f813630ac02df3208aa3b3a3cdebb9fe8e852b4 src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionRequestBuilder.java: id: b1d158f65bb3 - last_write_checksum: sha1:7eca01c0f5a451580b7226fb96941f7a6854782c - pristine_git_object: 4742a26366431f672a52d9900e4aaa799c875aba + last_write_checksum: sha1:96e6ed53ec25b541bf30fd5bba6de8cf630b36f1 + pristine_git_object: b3db0d3f7720ed71ea3ee40eab7c9f685b5f3b9b src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionResponse.java: id: 99b9446b0650 - last_write_checksum: sha1:800ef921e25bd0297858c7b340a202d369e4d40d - pristine_git_object: d02aa4a16a8e248b229f1b47b04ebcedb35c7c33 + last_write_checksum: sha1:1db43f61dd87858db1466bf140aef82f1327bb87 + pristine_git_object: d759b0bc3c78e3ceeff4df5ac64c4f162172ced1 src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesRequestBuilder.java: id: 55c343238fa8 - last_write_checksum: sha1:5b7690e4df58e28c7e7e59502e2da183e07aae6c - pristine_git_object: c9b79b0858319ff99fe3a2985fbb4bcf7377af9b + last_write_checksum: sha1:cfd2001dd502ddb362831dc9dff2f0468f471bd8 + pristine_git_object: 8ffe74a044b3b5fcdafb1cce88c4c434e6b3d945 src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesResponse.java: id: b99e0c38b63f - last_write_checksum: sha1:b3475e02e7e18e9df1eee726098464701a110f87 - pristine_git_object: fbc279055e98b727d395a8187f2f0b5971c0f91f + last_write_checksum: sha1:8713120ca259839aaada4ef40483c5f5e5ab0d77 + pristine_git_object: 947a2b43a6247c7de8d9fbd7bdc4e6209fef87fa src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowRequest.java: id: 2560f9da1e03 last_write_checksum: sha1:17924bc5d46f728149c6f36e01c4390183be7fa4 pristine_git_object: dab23d74a44c6d23d3890cd29c7439c593145d29 src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowRequestBuilder.java: id: 4a02e2397c73 - last_write_checksum: sha1:46cf246c6ae16e4f700e9964a0592eeb1a7c36f3 - pristine_git_object: 3aa09dd61f1ad4773e83e1654a243cf246696c40 + last_write_checksum: sha1:5c6f88bab110c70bd9e96003c5fe29953ad02185 + pristine_git_object: cb91e279b29ec8044177eee6787b4695fa511d4b src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowResponse.java: id: 278bfcd597c1 - last_write_checksum: sha1:52d24a181e0f67c92388e4bf77df268e5bc0f3fc - pristine_git_object: c96e01558bfbb32df5b427b969deb80fa6722a66 + last_write_checksum: sha1:2ccaca1b8254b034d545a6fb4767f57b9c1c8606 + pristine_git_object: 832ec1729bf62297e3b1394b2f67b426e6148ee1 src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsRequest.java: id: 610ae2c5fd87 last_write_checksum: sha1:43ae0058a6a18a14c5c117c9412807447dc7521d pristine_git_object: ea4a74f985c430ea3a4d2e7205884224e363da5f src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsRequestBuilder.java: id: 868491b84ddb - last_write_checksum: sha1:2b687f1aae8b494232f44c930c33d2e3dc31b02d - pristine_git_object: b6a6bd6d2ba2d251b74fe074bba55f214a95bb73 + last_write_checksum: sha1:a4c657b0d7204dea8b9d69821559f287c67d9536 + pristine_git_object: ce234dc604778d0d6a4233d88e421b20c564225d src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsResponse.java: id: 8cd2391df61b last_write_checksum: sha1:d9ed1f5805ee02f9babcb578ce1f08ec56bf5c5f pristine_git_object: 030b534cef655ace778da44a5ca319d0c05981ca src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequest.java: id: 66226776ec33 - last_write_checksum: sha1:019b716918e92330052d5247fffbe292df9a700a - pristine_git_object: d0be861c3d5b626de8ec751009c5ada3f60e09df + last_write_checksum: sha1:ac0fa17cd57c0f814baba89d307f1e8b76fe8ea6 + pristine_git_object: 33e67857b378bab9ec096b125e0fafd1dca576d3 src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequestBuilder.java: id: 5c618ef783cb - last_write_checksum: sha1:7b44ead4b1b5db1e507f9b9e2903bd5ad0601d51 - pristine_git_object: 56e31740b453a0c1c30384767826576269fbb397 + last_write_checksum: sha1:6a5a95b24994131a9fe90ed9db856662b5fa47d5 + pristine_git_object: 89f8ddc6c9db2ac04da13e88109dd19a9f67440f src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaResponse.java: id: 1235b8455812 last_write_checksum: sha1:e0e65ac21e9d19d58dd4bb7b165070a24dc98e46 pristine_git_object: e75283bfe51e769421c03eea78415d7d19f84ed2 src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequest.java: id: cfa14937ae29 - last_write_checksum: sha1:77208593e8b4e722760b9146380353079f6c2dd4 - pristine_git_object: dd93db32a6373383126ffe4845b3aada59dcd0bf + last_write_checksum: sha1:aa783eb6ce41d8026aa97f9de968630921d44737 + pristine_git_object: c7e60789cac03b0e1e125a135e1d5637e23e603f src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequestBuilder.java: id: 0faafb623fd8 - last_write_checksum: sha1:015ae0158e07e7c3d5bedeee43c83ba09e59a4a7 - pristine_git_object: f9018d2ac73e89b8d067be01104011d522cb6f29 + last_write_checksum: sha1:ead3aa83bfdeeaca891b825c551eab6d8f2b57e2 + pristine_git_object: f6b5836c834c69c916146afa35921043d0af6350 src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsResponse.java: id: 23033d0bc29c - last_write_checksum: sha1:f00a66f79127f9e7472680e7712f3f547daa38f0 - pristine_git_object: 3a64bceefc228a00085ddbe4e44e21b956f3a1c9 - src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor1.java: - id: f7b1cf10edb1 - last_write_checksum: sha1:5d4daa479d250fe489e4c06c485552f47843d9cf - pristine_git_object: 2d4a805b95b09e112d81f3e481faf2deefb8b7a1 - src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor2.java: - id: ceec010cb9d9 - last_write_checksum: sha1:7a294d57fd0ba44b9ebe2cdbbabbb3de8e6d121b - pristine_git_object: a2d60a4f92530b271ed00de9eb0dc61fb7921821 + last_write_checksum: sha1:1f77b2cbcc0d1d52c30c3991a76e425eff7a3c05 + pristine_git_object: da538370a9602c22f21cf74ef775c6c9a1c1f426 src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersRequestBuilder.java: id: c657ed529dbb - last_write_checksum: sha1:946b287b487d618adb350c491349264feca527fd - pristine_git_object: 4479fa30dc60f4240be1e9774beb395554b9f497 + last_write_checksum: sha1:c802d16e70e8c015196ac9ddf02c9127d7bd2d95 + pristine_git_object: b3311f656f07f705f02989bda03988aaa378fd7e src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponse.java: id: 612916f028e5 - last_write_checksum: sha1:688aa65cb4807f5f24075dafe0f8d317d21eef34 - pristine_git_object: 42c74ca5d7ddad3713138f0dc93bf9475b650dba - src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponseBody.java: - id: 9bd6d008864c - last_write_checksum: sha1:66936fc4ce3e10cd2b11677afc3741072914a5f9 - pristine_git_object: c1b281c86ba674a322131c6691792a65e924dcd1 + last_write_checksum: sha1:ae69a90dbde9221e8e280112959d40e89fec6c26 + pristine_git_object: 7bb3554c330bfb4a2ef48581b9f8700caeeb36c9 src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesRequest.java: id: 59ec59d9cfb5 last_write_checksum: sha1:c9cb402d6db53c4983fc6cae96eb494d3a864b35 pristine_git_object: d6ea3064defea7a4860d7822d07d75c07583e377 src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesRequestBuilder.java: id: 22316a6b5118 - last_write_checksum: sha1:ef26a9b5d2992a735e4e7866547788a3a27603b7 - pristine_git_object: 89bde93000f2a624d7917a7343ed76735102b94f + last_write_checksum: sha1:5a0d2d29b893c3835b3bf670a81599c528f9dbfc + pristine_git_object: 931f4a8e7ea4265f9a55a065ef217b8be1ff4bbd src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesResponse.java: id: 89103537b791 - last_write_checksum: sha1:5b53506dc7364963aced5976ceadaf7198ad6b17 - pristine_git_object: fd09fcef021bda829c0499edfec0010ccab42e85 + last_write_checksum: sha1:a8d6d82f55e3b27c9692d5e56ee2ed0b22dca575 + pristine_git_object: 3639108daa0b85d4b7a445139095a8c4f7210ea3 src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequest.java: id: b6e10bc598d5 - last_write_checksum: sha1:f5bf0b35c99ce41cd5580543fa78a94859123e1f - pristine_git_object: d035ca06f43089652ce049d902ae94b33cf933f9 + last_write_checksum: sha1:33616a3a938eccab09c3f5c3ab76b40c718cd6ea + pristine_git_object: 12b6c5d5da31ef0e4fe92e9edd3ce07390a4973f src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequestBuilder.java: id: 347bd1f7f9b1 - last_write_checksum: sha1:43208e27650b1615dae324bb1b8da04529480855 - pristine_git_object: 57948a793fe2f05a46de6f3da766396e51876250 + last_write_checksum: sha1:1cf781cbb7c7103305c6dfecfa04a9c5120c9ba8 + pristine_git_object: eb64f53729cde4de778cb9c8c8d7656b0c1fe8ca src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersResponse.java: id: 18b76a3262b1 - last_write_checksum: sha1:6c689fc14d507e9045fa54890f9c663bba89da3c - pristine_git_object: 77be1d1b47f5f9815e97358fed1acd562b34ab21 + last_write_checksum: sha1:5cfdde88f57ecf132a6a0b4d42a6e5271553596c + pristine_git_object: 6f5ef40e7d8b72bfe819d9f140693869c768fd45 src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequest.java: id: dbdc7c01274e - last_write_checksum: sha1:164d0352be5db33438fc9cd2ecc118327ae5e0c8 - pristine_git_object: aa462c46a1f114d6f2b59bcac6d28cb89287817e + last_write_checksum: sha1:1360e03ae720b856fe3a4acbdd0e8edf4516d946 + pristine_git_object: 91613b8e5d9f9695dfcb6c94fc1331497f2c9290 src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequestBuilder.java: id: 3afcee0214c6 - last_write_checksum: sha1:75ab4bf3ed09b61f63335a76c66e75369e946ed5 - pristine_git_object: 535aa80e514f6278073be5fef917ffcbefb60bf7 + last_write_checksum: sha1:80a112287109635879b3277072c2cdc1f5e362b8 + pristine_git_object: 768b63bf96e66f746d667c2ce13e12f4572b9cf1 src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsResponse.java: id: d2b81612900f - last_write_checksum: sha1:5b0ccf294afdaaec6384ef72fb99ccd51d7cb630 - pristine_git_object: ff5da01b43057c69276c5ce7edd8a0aa80efb33d - src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor1.java: - id: b0f50891f968 - last_write_checksum: sha1:21c893ff05bac1b85be5245e1ce8f31daa26b677 - pristine_git_object: 757bc31a1e3b682372228596e3387517eb7554cf - src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor2.java: - id: b5ace924fc23 - last_write_checksum: sha1:f62e0d361107a66db61d97f7d31edee687534d37 - pristine_git_object: 68648608d9b285b1de23d2a155baac1a9d5533ac + last_write_checksum: sha1:0065624a57c7d73d846d3d4459d8b55e20725521 + pristine_git_object: d005d378a6c7164be0d3691ea39e6a80df8bedeb src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesRequest.java: id: b51eaa97f727 last_write_checksum: sha1:12ef97b07d3b178226835a136f63b23ac9cde4cb pristine_git_object: 2bb38bc28d88d2cab7b21dd8931e0aca411f821c src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesRequestBuilder.java: id: da1ad9cac977 - last_write_checksum: sha1:6d668d331182178c5386b3d1179559bbe039f0b7 - pristine_git_object: 362a1afc6ea1ca1a93b7f63f8cc395824fcb99c7 + last_write_checksum: sha1:066d0d87765b7b7354fb54790c9f467752cbe248 + pristine_git_object: f31a32f7ec2bc4d5c6d7b83ff7c9a7a68ffceb0e src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponse.java: id: fd3fea68bd6a - last_write_checksum: sha1:f798835e421d20b7de6562102ee9ddae21354ee2 - pristine_git_object: 1ea8037127737248a540c2285a8ba00a6394606f - src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponseBody.java: - id: a1bc967faa6f - last_write_checksum: sha1:be4b5e5625105a3a86606969e25acd77322785f4 - pristine_git_object: ea1cfbd26b402cce980730719a1f2dcd8960f1cc + last_write_checksum: sha1:0970d36fbbb7a56f1b45dccee1edea9e96c131f7 + pristine_git_object: e3cfbc6201e4c777fd48edd7a6e169462403cb88 src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasOrder.java: id: eabbb8f0906d last_write_checksum: sha1:de60d22d2f1572d9dc82e8aec7ec101a48d310ee @@ -6770,96 +7228,96 @@ trackedFiles: pristine_git_object: be8aba47e61af7ced9e7fce52100b637713656b1 src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasRequestBuilder.java: id: 2eb652f822ae - last_write_checksum: sha1:800c143dd02a6673b67e797e5d966c332dd94391 - pristine_git_object: 349a83f42c4a8aa48513c2e77d46bf8708a0c15b + last_write_checksum: sha1:4b04b9e3b8ec5357d4141b4d65f1f8218a43bd71 + pristine_git_object: 5a7f3c16e8b569f84d38b7953370f0af164db83d src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasResponse.java: id: 36cc11d424c5 - last_write_checksum: sha1:ee907557422b4b6a274e159eef59d47736b38118 - pristine_git_object: f2cc959b37bad279504beb8d8a7639fad7970f91 + last_write_checksum: sha1:10cb4aac9527a1e458e53ff00ec1ff4e9eb630a3 + pristine_git_object: dc9118f34ad09a0048f9072b95559e0991d87485 src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsOrder.java: id: c338c71c9868 last_write_checksum: sha1:50d586236ed302fca6fb3862bba17145e3ee9bcb pristine_git_object: c5ed42b307367c73299f919c4d4cfa0b0fa3c19a src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequest.java: id: 32bf28eb1a27 - last_write_checksum: sha1:e77d6496f6ae6fd3fc57383ad6c0338e4757c01c - pristine_git_object: 9192bdb7acde084e4597927a93af4766fae45dc0 + last_write_checksum: sha1:0daa244ac7f4af022d969cccbef66cc0a63b92b0 + pristine_git_object: 80cf0acd694bc5dffa6e529cac771759241a40c3 src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequestBuilder.java: id: 5ae47ac854d9 - last_write_checksum: sha1:823f3cccce780c18b4f4871647b73cc546258808 - pristine_git_object: 6d45a13fa1c5be20db8cef6a84872a2f957d09c2 + last_write_checksum: sha1:544c80b3b8810892ff267596d4eef30b89769b8a + pristine_git_object: f0342224f3d05dbcbbc98bb386c66117f15dcea7 src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsResponse.java: id: fcde4f6df8cb - last_write_checksum: sha1:a10821558887b474c0a18c3101cde41ff6754043 - pristine_git_object: 371809f51a8f7855bf15d90713425aaf7b37fa68 + last_write_checksum: sha1:782ad9ff4473c10139b0036ca7d8b31c882dcc26 + pristine_git_object: e1984d7d4a76b3e50eb890a975f24b8d70a9a992 src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesRequest.java: id: 89517bcfeb8b last_write_checksum: sha1:9cf30553b970f0dbd184611ba359c3f2cd9b3e2f pristine_git_object: 259f3ec431b35d3324863c9297fdc6be9ba0d320 src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesRequestBuilder.java: id: ee696e79de47 - last_write_checksum: sha1:a03d94280ecde059ea5ccf558a864aea0a4b2362 - pristine_git_object: 8efa707826f8101d2b070a35b99b278c04179839 + last_write_checksum: sha1:b03f694b8aa50a992f94d5cb68fb7feadcd4df4a + pristine_git_object: 98a564d47610b1e933ba7c01a199e0a0f4e6c890 src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesResponse.java: id: 9663d6ecb5b7 - last_write_checksum: sha1:9c57d7a7abef4c27777c7f33434e871fa50a03d4 - pristine_git_object: 97753a01aa7f9075063568a98dde48384f58b1ea + last_write_checksum: sha1:4534c98b44254e03ab2e5ae803675d7190d26ce0 + pristine_git_object: a761476e45a04b19398a12bc1215ce0bf882bce3 src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersRequest.java: id: f6cff1ad243d last_write_checksum: sha1:afa9a4b17092abbe5b9d2ae05f5199d599e6654e pristine_git_object: 7875cf0a88222cc5e9323cc20927ea81cd44c61b src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersRequestBuilder.java: id: 669448746b5a - last_write_checksum: sha1:fe95acfc56df7d67dccf0cfcc3e7264b405295c5 - pristine_git_object: fae2246f2f35d27170d50f6db67227a510a3fca8 + last_write_checksum: sha1:cd964358d9066c6ea6ec5cf084761118497d4c6b + pristine_git_object: 48b9263e0bfa162a4e577d0afa02f5956da601ff src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersResponse.java: id: ebf232124f66 - last_write_checksum: sha1:93b6ae10c2a83a81e3eb1ef6c62415d135007c6d - pristine_git_object: 747cadec4e4cb76c552887546508322c951bd565 + last_write_checksum: sha1:2a53c40d446c8a381a972c91e97da51487432698 + pristine_git_object: 15da975ea9c2adea582324beefe409b4fd92187d src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsRequest.java: id: cbb4f8afc2c0 last_write_checksum: sha1:1eccc3b28872d73a2f055927aefe932ea2261b9c pristine_git_object: b56c4dc807cb2468da3ca4fc9d308f5ffa5d94d9 src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsRequestBuilder.java: id: 618a5138507c - last_write_checksum: sha1:30d896dc519d58ba880c923c49285a4002df8698 - pristine_git_object: 7eb871d0ce721d58ec68ac03c42d798dba9d5260 + last_write_checksum: sha1:d1c3398442ea2f2924c2b62fecb334f8fc0e8022 + pristine_git_object: 511e5c8e5594d0f17e7a8651192c541907bf992e src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsResponse.java: id: 2c621fd4499e - last_write_checksum: sha1:38450af53d275ee9e0d3bddd62c42851f2ff626f - pristine_git_object: 15982982b0717ca8ee4d11386a92842549b6d362 + last_write_checksum: sha1:43675e2dfff776dc87e8357c503c972e82d810bb + pristine_git_object: ec1675d57b34c418f7ceeaf8bd6746b9a3c07f07 src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsRequest.java: id: b3f2280c8adb last_write_checksum: sha1:f2cbeb041f994a7e9061c2f409a5d5524a4ef5f0 pristine_git_object: bb0bfc9ba7cb1557519c490ff81af19fe4ccd2eb src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsRequestBuilder.java: id: 74abe31f513e - last_write_checksum: sha1:306cd91229dfffa4fc13a48fb646cd560aec3241 - pristine_git_object: 6adbe2df94f6f688193fa79afc4ee91fd1444509 + last_write_checksum: sha1:3d65414367a0e0b32e6d06fe282e5f4ebbf6fcf5 + pristine_git_object: 67b43a9ff2293a6fbd6d146c654822e0612c6579 src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsResponse.java: id: 673ee9697f42 - last_write_checksum: sha1:24b04907820c7024e1169fa65c267ba7dc47f532 - pristine_git_object: cbf9c3bf09405c9be7498a0c92bb28c6ccfa299a + last_write_checksum: sha1:467258e53612c8bb65d988395b4c3df0d0d27509 + pristine_git_object: f9f9d7773802f010d3822cec54b976b53ad282fd src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerRequest.java: id: aedd4ded459b last_write_checksum: sha1:72e7ff2352e425b62f688d93bf726debc2b447cc pristine_git_object: 2be4e865b20c1383098b15da13eac77270646fd0 src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerRequestBuilder.java: id: 6c3acf45c8fb - last_write_checksum: sha1:c03d6dc6baf1e232cb516bbe10f1e0f296563277 - pristine_git_object: 6720ca118e758ed9eea338dd52dfec113bfd1fe2 + last_write_checksum: sha1:c7cd9dff53472cb4874eda372d031b7d7b6b92ce + pristine_git_object: 78f9c93045b61fc339ab5e6c652c38b76bf4f2d8 src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerResponse.java: id: 7dd4c89efc00 - last_write_checksum: sha1:5bca3ac5effd8e28e1fa2786e47f6725ff483141 - pristine_git_object: 4638cd4dd005a95dfdd488f58a3a9b6c38af583b + last_write_checksum: sha1:f74546b99f9c5544dc17ba404100e421768a514f + pristine_git_object: 319853f19d54ec0593758f38eaa3e3624f04c44d src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineRequest.java: id: 91a36445b1e3 last_write_checksum: sha1:6221209db92909af83e637e2675ab9e0dede4c68 pristine_git_object: 1cf1120e3ddaacb188048d71f6ab5b8815cf9c2f src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineRequestBuilder.java: id: 6da8bdc12880 - last_write_checksum: sha1:6b7500ac27448c69cf20dfbe9d22efd98f0d4693 - pristine_git_object: e7eeed7c270cd7e6c10800432978d20ec338977f + last_write_checksum: sha1:0335ebd1b9a5d47be65347ab2b6dfcfefe9671ca + pristine_git_object: 53ad6a9ec5aac42d8e38c8db7d0b47d77bf721cd src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineResponse.java: id: 049178cf8728 last_write_checksum: sha1:9657f06f3bffd11bd7c128db5beb61d29c938489 @@ -6870,24 +7328,24 @@ trackedFiles: pristine_git_object: 87a6424f2771776b12403f4f997c6c42e63583d9 src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketRequestBuilder.java: id: 360f2d7bde54 - last_write_checksum: sha1:ca7d0665069bbdc15afdf26eedfd6d1d68a97881 - pristine_git_object: 22b731b9f089f96b2cdd0e2658672ce9ff846ec4 + last_write_checksum: sha1:08df50c5c4a3dc87f1052b71b7d725760d3cf07f + pristine_git_object: e119849935d95ca20b9e62e83daeb41fee1d3048 src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketResponse.java: id: de754ed3bbb7 - last_write_checksum: sha1:0f4c2d94a647f9a95deedda13e098968d49b1544 - pristine_git_object: cfeda8013af1c1165ca0e857c73577141bf97d18 + last_write_checksum: sha1:a07c2ee26ecbb1900660380b5ad7778f7ed75d2f + pristine_git_object: b98e95afd7eeddedf259123d2b2addc661b4a2e6 src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequest.java: id: 39b86fd579ab - last_write_checksum: sha1:a3349582861dfee50193c3bf049a4d7bc29e0cf1 - pristine_git_object: 91ab9cd08c53dc802b1e7324ac51174b114fc48b + last_write_checksum: sha1:fb4b481178a663e27e9c66f24bd2d0259cfa41f2 + pristine_git_object: d8cbea5f4501c66450c29f6aa0f7097be9151b1c src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequestBuilder.java: id: 889efc3c2d7a - last_write_checksum: sha1:c866381a131e054c0200079f73c40eb4540602c9 - pristine_git_object: 0eb1f25a0eaaaf092551907edf559791a98ab4f6 + last_write_checksum: sha1:61ca1f650d4e2c4949bc2ffbf8ed4f076315bfaf + pristine_git_object: 7d8b0dcc77ed619a93e2a5e2fa2a70b04cadae96 src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionResponse.java: id: ab34bcdfca16 - last_write_checksum: sha1:ef06e793d2eab11e66967326417c2ed23eaa157a - pristine_git_object: 21cd9947a580b7fab2255967891c89c6b7c198ff + last_write_checksum: sha1:40f5b5d41b6b9389ce7fcf6d7307a5a1ec68e30f + pristine_git_object: 3ab8081c3fa855d0a74fbb911c43ad748c8935ad src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryOrder.java: id: 32e03ecbcca1 last_write_checksum: sha1:dba90050ad59a87f34333817da5c60e5e78bf851 @@ -6898,32 +7356,32 @@ trackedFiles: pristine_git_object: 6d29cef23c13d3bd258c2da4ab4768927d40bfdf src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBody.java: id: 98142b8aa602 - last_write_checksum: sha1:b18e3e1fd97c6e5fb2de1b017caf74624adaf61f - pristine_git_object: 96273276f1dab0b5a58f1be33d79e716b5bd0dbd + last_write_checksum: sha1:cd1e3b7436e0a935036bba1651a4c26c3cfd80a5 + pristine_git_object: 34bd5aefd637bfd03abf42aeb9c47541db2ebfe2 src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBuilder.java: id: 83799375cc18 - last_write_checksum: sha1:4d270f1f19e6f2f40142fbbd70e9b9b5648c1e2f - pristine_git_object: f2800954fafb09b3be1ba58eea1552502cbd12e3 + last_write_checksum: sha1:c3adf9dac75eb50b407daa5e1621018c5cfcf389 + pristine_git_object: c58e43b65a4f7ce4641317725a2876f2de624c51 src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryResponse.java: id: 835d7fe60022 last_write_checksum: sha1:c3cd5a3a87694fb4e3418e87f9fb66f1f04d44d5 pristine_git_object: 3f52893b99f3e8274cf825bd834a021486958faa src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryResponseBody.java: id: 90eeafe3f356 - last_write_checksum: sha1:f2842301abe436b965d0b41ca0bba7ffbdeb79c4 - pristine_git_object: 2708fc01f76ddbd0e53ba91e1f8641a6526b7b92 + last_write_checksum: sha1:89845af7913f7f1339dafa96905204ede4f5f8f0 + pristine_git_object: 7da60e513c509d85d66eb2595d52449cfdc063a5 src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowRequest.java: id: 85934f925bca last_write_checksum: sha1:e73995639fbd6b7d06b6ecec69e0b1f67b8bd187 pristine_git_object: 2fd99db24bf79ebe46402ac6948baf6713c8dff4 src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowRequestBuilder.java: id: dbf56b5b1e69 - last_write_checksum: sha1:99816f397eba0ac2f4144870c5a21cddeefc0389 - pristine_git_object: adf1a141f4e0e4948e102578e7f41a6cabf8c878 + last_write_checksum: sha1:38162e3cc48fa588d6196bd9501257f2d1cb65ac + pristine_git_object: 4b8b918ff3c2cb692b1926ac39086c9056c04030 src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowResponse.java: id: 5e9dd2eeae91 - last_write_checksum: sha1:be9d8c91b9feb3570150bb4d3a41056b20688d47 - pristine_git_object: cad042a90d421c4a1ce59b4c9ab1ac2f482f100d + last_write_checksum: sha1:a0a9a6854fc2800ac93a1576eb34eb455d39faca + pristine_git_object: 2ce6688560a2fc01e0dfda99b1e8a3af0a00492c src/main/java/com/formance/formance_sdk/models/operations/V2SendEventRequest.java: id: 8552ba845dc0 last_write_checksum: sha1:d5784e1395005e87d761d4e7434f44faa9570b16 @@ -6934,8 +7392,8 @@ trackedFiles: pristine_git_object: a407e0da550ea09830219ae1357c9e8ea730fd87 src/main/java/com/formance/formance_sdk/models/operations/V2SendEventRequestBuilder.java: id: caea3f70008d - last_write_checksum: sha1:2f4f5daef6def67041f7540a011c9acdcf3c7905 - pristine_git_object: d19116e9781fbf4f871976769c8e8999f72adb19 + last_write_checksum: sha1:44c7277e11df8bb275386a4c46024271aa39003a + pristine_git_object: 52bed21ebe481b4b5396051af3c0043f7348e5f7 src/main/java/com/formance/formance_sdk/models/operations/V2SendEventResponse.java: id: 911679e12b27 last_write_checksum: sha1:8fa599c0a1a05d1b2ced8efd23cca49a64421f5e @@ -6946,8 +7404,8 @@ trackedFiles: pristine_git_object: b0e7423a94f40f033795b8cebecec6a462476530 src/main/java/com/formance/formance_sdk/models/operations/V2StartPipelineRequestBuilder.java: id: f2351ba183f6 - last_write_checksum: sha1:65c0b97409a5d1e35529ea8eba10d4d8eb0b627b - pristine_git_object: a7c26f18132b8cf574f4dd811d881e5d396786c1 + last_write_checksum: sha1:a26f968868b58d1f9b3ec941708c4dc593ecf4bd + pristine_git_object: 59d33577548ed81d679f0e31d0a0de449877e3fc src/main/java/com/formance/formance_sdk/models/operations/V2StartPipelineResponse.java: id: f3e645c14e4e last_write_checksum: sha1:75f62b589a82910a0ad140f3151beb650a220594 @@ -6958,20 +7416,20 @@ trackedFiles: pristine_git_object: e7cdc1ff3dbeb4e439f1dfa64ad497d27ca77fcc src/main/java/com/formance/formance_sdk/models/operations/V2StopPipelineRequestBuilder.java: id: 792a29b5b926 - last_write_checksum: sha1:bfb65949d9ec283ff97f54a62670661bda099e69 - pristine_git_object: 8727426f49ebfdfcbb1458510df044e588fa340e + last_write_checksum: sha1:1f33c4aa41c64f0e3c58b93b98c7d7f6e382693d + pristine_git_object: 2bcb2036491112b1bbd3d6dd1a16300545e62d88 src/main/java/com/formance/formance_sdk/models/operations/V2StopPipelineResponse.java: id: 9d9da096aeb1 last_write_checksum: sha1:db090972229a378167342ed2f7a8852c6785ed17 pristine_git_object: 2df80cf752107a5be8268cac9a41923caf0d5948 src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequest.java: id: bdb62394aed5 - last_write_checksum: sha1:c16416abdea6aef84cc02c9ebe870cc6e7e74248 - pristine_git_object: a33bb9336a29f2416313f71af96a3f02e2eb58f6 + last_write_checksum: sha1:46ba8b004ede45391eded12d2bf5d51a033b1771 + pristine_git_object: c51e3f8d01af081cd693f150e7950ec2f94e17ef src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequestBuilder.java: id: e25c0a19c879 - last_write_checksum: sha1:8b9682026a8c50b5960b826dd0a6995384730791 - pristine_git_object: 8eb99ef1fcfcb5b5579cf98085a13480887be46b + last_write_checksum: sha1:ebac0f412799c1c0f560d1cf3ffb90bf2d0eae5a + pristine_git_object: 7be16581678821b233bdf940cda8e0d92c139eb2 src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterResponse.java: id: a7a13cdbf0c4 last_write_checksum: sha1:3715e201aed6242cf4990da0c9bfeac8c3b4a6b9 @@ -6982,20 +7440,20 @@ trackedFiles: pristine_git_object: f5ce7106cd92fe2a39bc5754bbb0407f3f796e8d src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataRequestBuilder.java: id: b9821e5944c4 - last_write_checksum: sha1:36013d428ccf2b45da6eee03ef00ebc2b053ed10 - pristine_git_object: 5cbe74d553bda05b7693e088e1a50c6a8b92cafd + last_write_checksum: sha1:3c92aecdf931edcb79b1029375f646908f1cd444 + pristine_git_object: db2de44914f05ca54d5b25dfb8c141f89fa12df8 src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataResponse.java: id: d2e42b9ac51b - last_write_checksum: sha1:a834090fd4866c14d02db94d6da415b42b9f2a91 - pristine_git_object: 1df2da8c69e68e3140226828c20232fe7e9b5470 + last_write_checksum: sha1:ba4bc901170678b49f48e63aa8a1ac9990398355 + pristine_git_object: 11635db9da9a3a26b955877887bb1b2427930383 src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolRequest.java: id: d7fed7c89bed last_write_checksum: sha1:3a2d3aa8b5f314559bfcc750543663ae00f5f3a4 pristine_git_object: 545e50a9ac4bf4c01bf62b88484e6d3e116a575c src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolRequestBuilder.java: id: 94a1b84dbc0b - last_write_checksum: sha1:3c2c0aed6f5c2cbdbba8e475f75e36c95bb2e91d - pristine_git_object: d38e303e0fc954057675aea4bb782958bac9321b + last_write_checksum: sha1:69688aeadd6f3bdf1b40d2f5894404da0da3c645 + pristine_git_object: 0b310cfa3f9c350157ef2cc31a2b75bc0ecf305c src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolResponse.java: id: 58792248eb04 last_write_checksum: sha1:89da96c323036881118e3be759db308c53569c5b @@ -7006,8 +7464,8 @@ trackedFiles: pristine_git_object: 3835ba91b58f0997f04481ee80dab2f7b625ff65 src/main/java/com/formance/formance_sdk/models/operations/V3AddBankAccountToPaymentServiceUserRequestBuilder.java: id: b1321ee647ce - last_write_checksum: sha1:8eefe7c5630f193ddb38cfc63e90218be797403b - pristine_git_object: 1f70eac33795991f21e99d9af8119d5d08969fe8 + last_write_checksum: sha1:d20fb899047323eedaf273b88748a1c0b684e3f7 + pristine_git_object: f78c94c26c9b9bcd1e5bab6b3d00278e7938e4c0 src/main/java/com/formance/formance_sdk/models/operations/V3AddBankAccountToPaymentServiceUserResponse.java: id: 1a096ae636d5 last_write_checksum: sha1:41602b0e405f822653e59832d0e26392b62488ce @@ -7018,72 +7476,72 @@ trackedFiles: pristine_git_object: 7f69b006aecdf918d5f14bae2447fbf2db4933e5 src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationRequestBuilder.java: id: 893f0aa91c36 - last_write_checksum: sha1:2198a42b87cfc7c082bec30f65a460acc12e47d5 - pristine_git_object: 141bfc6c6b42f0a61ec6dac43085770fff7b5396 + last_write_checksum: sha1:6e6eeccfa069fba1bce364ed0ad1031e45ff46ca + pristine_git_object: ad7b82f4aae37f8a7ec2d8a24623d67e68922e8e src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationResponse.java: id: 73dc9c201fbd - last_write_checksum: sha1:49f721c39b848a64e89f53431270716f31c54709 - pristine_git_object: 7168abf509be57a50ac9b097bc2387ec40e0db46 + last_write_checksum: sha1:af801ba5fc7d8bd8ea7284c2993ee2d489b788ef + pristine_git_object: a3d879d3d38c08e20cc5a6ca597d5abdd848b89b src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountRequestBuilder.java: id: ab18251b0258 - last_write_checksum: sha1:6faf4c4a81a09a58a156c680c6492d70234e5a91 - pristine_git_object: 556ce29727cef302b0ea849f0c095668abe6ca69 + last_write_checksum: sha1:742f246a012885e6f0a35e8b0c17e784514574f9 + pristine_git_object: 7858e56e52fdb67c896ef38bc1e834a8658350c2 src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountResponse.java: id: 5e708268bd13 - last_write_checksum: sha1:7184c61f7b71d6ec5cec44ec02eb2e3550d17f08 - pristine_git_object: 3af87f7707274d641eb416f1c92b3228717569c2 + last_write_checksum: sha1:5621ed3c5570818037f639ced624e625507d8501 + pristine_git_object: 92cf05de00baed63d1617f8f0a1b8dfa128abddc src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountRequestBuilder.java: id: bbf5c423507c - last_write_checksum: sha1:964cadfa0e169c3a8e29f83d7396a44a3e54654a - pristine_git_object: c4f7be13409c78e847e9dd0ac602d89574ecdfee + last_write_checksum: sha1:2aa01838052f7cbdb1aed5c3b413766fddd56497 + pristine_git_object: 5aa2c1db103808d6fdf7ab50778fca3714ca988c src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountResponse.java: id: f8179c676fa4 - last_write_checksum: sha1:c6a703d6514159a942368fd0588697cd6323b5b8 - pristine_git_object: 61c7e15aa6094404678bc003160b1548e93f18de + last_write_checksum: sha1:b4c816e2d4139a80d25f682b92938d78b92550a7 + pristine_git_object: e96e2630753a45475c28b251a4e8ab751ca914f1 src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequest.java: id: 52df82cecaaf - last_write_checksum: sha1:d9cf106b904c3157ee1b76dc73648086a4076602 - pristine_git_object: acc4762cf3d59d5e2aa6a4a6d130456b8c5aee9c + last_write_checksum: sha1:05eddaeed4cd9135c89d6a3bd60d051a65f38735 + pristine_git_object: 93b2c283ac65b81533cc83aca1ac522417c22ae9 src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequestBuilder.java: id: ba43e159695e - last_write_checksum: sha1:73203975afa92d477c19d4ed718857db61d91353 - pristine_git_object: 5bba06946c64e6b9911859252f146cdb00e2208e + last_write_checksum: sha1:25729b125b1eaa4a9a591c6012ef08cae5da3572 + pristine_git_object: 684f4f5911d60c477fb580c7549c2459cd48e349 src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserResponse.java: id: "314858021553" - last_write_checksum: sha1:4da4bc7a0b41e9b82bb857b17374ce131e3d4406 - pristine_git_object: 32e2e8d6eae490982f1852f86dcb6f6fb7d790ad + last_write_checksum: sha1:91e0b54cf9b2048973f9a5ec5add7694bcaa8c9b + pristine_git_object: 9216ee42cc77d17680d38ab343153766c8205ef3 src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentRequestBuilder.java: id: 7cbea850f102 - last_write_checksum: sha1:d23bbd78ae3a3fb5cad2932492d1965c5afd42e9 - pristine_git_object: 1f64e47dabcccd17125e785ed6f200796e5e7f37 + last_write_checksum: sha1:8bbebcefef7a1b76cdea410b5f83d19b09ed8ed6 + pristine_git_object: ece4124b4eda561ae1dacab992aafcc5aa59f1f0 src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentResponse.java: id: cecf70cbd349 - last_write_checksum: sha1:b078370e3f7d751daafa1ee1f1c9b971576d28ac - pristine_git_object: 7ccfadc7dd8f4fcc7a98eefc76b6f6e5067b2f54 + last_write_checksum: sha1:651638b4064d8f6b89b7e86dc38c45ffab50df23 + pristine_git_object: fcc924cab06cf83986dd9b9cf233d991a7307e29 src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserRequestBuilder.java: id: 768275ab0473 - last_write_checksum: sha1:a21930958de32b787db2075e5106f7cf8c8bb437 - pristine_git_object: c1b35da40fa7fc7f1848c05277a4f469fd68a353 + last_write_checksum: sha1:741a9430b9fdc41dcde5624e2d7cc1a36c2578c1 + pristine_git_object: c444f7c2b70980eecdfc3f4ba2b74ad48f46d39a src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserResponse.java: id: 477108530fb5 - last_write_checksum: sha1:71198512a434a0ba14fac752798e5547e7510e40 - pristine_git_object: 8ebe30c8d51822fc37f7744dc336ba619528d075 + last_write_checksum: sha1:95c54497fcbe79fe036d3443c9973fbc8344a543 + pristine_git_object: ede1639e372af663e27d66edca7a47fe2d01ebbe src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolRequestBuilder.java: id: f0ba821cc780 - last_write_checksum: sha1:5e597d438b4873f16142c79ba712c76b90b12e51 - pristine_git_object: a1301ef9ba6969cd531550b93b18307eb1b3c69a + last_write_checksum: sha1:7cf2c4202b7e1bca4535d3b73963b711489b4611 + pristine_git_object: 196ae0324b0e4c7d6c0fec9392d63c684ea9e3c0 src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolResponse.java: id: 3bd0ca4fe3c7 - last_write_checksum: sha1:e191de54b9bdaa67ce7eeb2b09701bc41ad170b9 - pristine_git_object: 896dedf5a9bd493ca31c1e224e5e7dde9744764f + last_write_checksum: sha1:340755087e49047f076bb27109183c2e025ef17c + pristine_git_object: b5b574ccaf0d85450d783f729fac47ecaac9d05a src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationRequest.java: id: c256fa91e9ac last_write_checksum: sha1:d55f9883b0a1a668cc107922b885fac31a485896 pristine_git_object: ca8d650134b168986795771a3544b6164d0966e5 src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationRequestBuilder.java: id: b9ec3140cf48 - last_write_checksum: sha1:81457306104e1f41656b6898f5d0277577275519 - pristine_git_object: 345972ebf5e5d5dced2c84d37da02569fc298213 + last_write_checksum: sha1:a7801387462d3ffbb8423253fc3fe0f0d74d0825 + pristine_git_object: 635e7c56b3b16107813bd445c8aac9db975d4e53 src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationResponse.java: id: 73e9887b13ca last_write_checksum: sha1:c43d371b86be9d7c56d9f871faff8f1cbdc35e7c @@ -7094,80 +7552,80 @@ trackedFiles: pristine_git_object: 79821c20ccde23d62f8b64df8f52bf5dd2b4418c src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder.java: id: 1f2011b6f0e4 - last_write_checksum: sha1:16756262aa5e2e59e6df862294c1590fc5f0e4e4 - pristine_git_object: 2eda3f431d854e24d4f67b34def76a414f5c6209 + last_write_checksum: sha1:e7e9b60b9eb9aa1673a2807fbaf0a949ff077f40 + pristine_git_object: 46900ba35df89e797e5f8181733dabce53a5b7fc src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDResponse.java: id: c58a90942a95 - last_write_checksum: sha1:db3ab16e432b2bc2442e4ffc6fac7234a26c11ae - pristine_git_object: 6f60fcf56f13dfc4a1cecae15d0a1734867887d1 + last_write_checksum: sha1:6ba06afb52ee25d8771ec19e415212525926381b + pristine_git_object: 7a2c8ee1c9aef1e8600a58f596be1e2f89b4b8ff src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorRequest.java: id: b29d6849bcf3 last_write_checksum: sha1:8e82dce0816eda8854edbf3654d2ee7ab622b0be pristine_git_object: 00c4f5e0ae682e0d9872ee507286c6f371d0386e src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorRequestBuilder.java: id: a04119054040 - last_write_checksum: sha1:31639118dde656b91debc9a2413d30d3faa9569d - pristine_git_object: 978fd13d22ca03b91c1517285c33bc170f409aca + last_write_checksum: sha1:01e22cef6789aef612ea36f592053936fd49b2d9 + pristine_git_object: a02841dcd42182ad36ceca6b7b9f768fecc59646 src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorResponse.java: id: da65db0b64be - last_write_checksum: sha1:b4d26f857ada72f5cd9735fddcf5ef03a8c4217f - pristine_git_object: f76158081754c2cd69f7ef859841a4596f13dd8d + last_write_checksum: sha1:09a1ab35c898bcabcb12dc631ebc7832dfa24ae5 + pristine_git_object: 8583af5d7ae31b9627e7ebc04c4eba088dc8f63e src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserRequest.java: id: 5e23ce3e669f last_write_checksum: sha1:fc7bfa7f0528635216aefe476f7f56340dbb8f11 pristine_git_object: d7977872aa182d9b5f9b5d4ddf3ae69dfcd53e33 src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserRequestBuilder.java: id: 03586624e498 - last_write_checksum: sha1:139da179441f01bd4c0a5687f11609f7ac84f10a - pristine_git_object: 9b7496cf2020118f2f490b0e2778824d1a1ecedd + last_write_checksum: sha1:24f4776c03964520a49f6d95114f28e2cc87e9a0 + pristine_git_object: a9529609409f8f0b53ce77e31bf8242aadcd89df src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserResponse.java: id: a446124da675 - last_write_checksum: sha1:365505e656f2827d740f942f038ec2f442449f5f - pristine_git_object: ac5c2f52125e8dd32394994ec111e2b53dbfee2f + last_write_checksum: sha1:dba0555b27a7bfbf2e164bfecb15992ac6b4ebed + pristine_git_object: 66a2e13e3fe31fec169a11f3ceb63551f1ad6c80 src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolRequest.java: id: 6000caf0d844 last_write_checksum: sha1:21a41ce6a034559ab19eaf7bc5a19412c9909c98 pristine_git_object: 4ff67dad7345680546504fa1b6dd5e8766941428 src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolRequestBuilder.java: id: 84832a3109a4 - last_write_checksum: sha1:a3471d8255737d9fccfa111d5edb4c46d56c6453 - pristine_git_object: b08176d424d3254789cd9900467bbc49c08634a8 + last_write_checksum: sha1:4c94a57a86c8f74403b09ecc29924e862c686c5e + pristine_git_object: e60aa5820f2261a2969a6cd99ca9b9f6707b144f src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolResponse.java: id: 68f6c529b7fa last_write_checksum: sha1:4167bcc5115fc65ccf60d31480a3d961c26a9f2b pristine_git_object: 711ce84c63626cc8a28626a1225d0e985915b8f9 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequest.java: id: 40da0ae6dd6d - last_write_checksum: sha1:1544f0b6fa167d776f217f4cb286cda230d17af4 - pristine_git_object: 0c5867f3916fd5059c2c246c36413b78cdb449d0 + last_write_checksum: sha1:849270bd99e75cd6922bc844adca7f7712ffd77e + pristine_git_object: 6c2db8f66fa41583ae6ad722a324ce514babc0de src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequestBuilder.java: id: a1b24a90e5cf - last_write_checksum: sha1:f702e611b55c208c4a59b5ff86570df8f37af3a1 - pristine_git_object: f5ba6f03ea19c772bf2e7de57f0da48f00fd9d95 + last_write_checksum: sha1:364837ff2ee7ef0f95e8948d31bdbd3518c1cc17 + pristine_git_object: 1cb2c18e0c5304ef5b43e565f69f7a01255e1f49 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountResponse.java: id: 296238c5fe44 - last_write_checksum: sha1:628c702635aa6c2c77d8cca5a81df0a98b741e76 - pristine_git_object: 01bd56757046224a32b4daa1e3403eac65dfb7e8 + last_write_checksum: sha1:bf26f87a5aca31cc9f8898aa4d42f015057a4062 + pristine_git_object: 9e30fb97497b586bc28c4ffbe9b4dff6c0e7b853 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequest.java: id: 19a5d5e3f41f - last_write_checksum: sha1:732bbd6ee92d44a84ebf7e2f2b672bade639a89b - pristine_git_object: 58b1d3e0b87df6dadecd92de134ead7b0ca4e235 + last_write_checksum: sha1:350944dcb0ecd5c29060eb8e6caf8b1cdf0d4888 + pristine_git_object: 3358ceb98ebc813b40e9b87befa08afcdc56f918 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequestBuilder.java: id: ad0ee6c311b0 - last_write_checksum: sha1:005b9374a443f389569bcabd65b3b4cced4177a6 - pristine_git_object: d2700f36a351a9542c6b62cbb4b8b0c8760bb151 + last_write_checksum: sha1:f450ce08f6e5615f119142327500c6a73ce012a2 + pristine_git_object: 4933549c06f166598a2677a36b890d698ba1b241 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountResponse.java: id: 0d69f56bc21e - last_write_checksum: sha1:201c01f201955ca69d442ad5b56a7afef2438541 - pristine_git_object: 9559c39aa3c13d9415c0ff17e039ba27c4c13b20 + last_write_checksum: sha1:d13e4e76574c36c4c0bcd41a769037a609999be4 + pristine_git_object: 1e84ecb3124a62d2cb49c7c6a5d9ce443ac9e273 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderRequest.java: id: f53cddc18e5f last_write_checksum: sha1:dda78b8db60a79e7e68ebd2f980d44fd72bf1788 pristine_git_object: 78de923a0035af0d7219e64226cb85b55d89246e src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderRequestBuilder.java: id: 7dd7e787d36d - last_write_checksum: sha1:4e81ec44fe8d3723c713012aaaca4f65af846762 - pristine_git_object: 4d534bf1f32c176ad44a634925a1400e7edd4b01 + last_write_checksum: sha1:ab86dcad6329e1e85841dc43d6467cb1a829f259 + pristine_git_object: 6039593cc5dcbe061e5b2a7225cab2a16495f189 src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderResponse.java: id: 768fc501de96 last_write_checksum: sha1:e60e4ff8150fb0f1c55ed4535af6b45f4c3af4de @@ -7178,364 +7636,364 @@ trackedFiles: pristine_git_object: a6c2cfbc8b27fd454e271aa681debc509e2a529f src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesRequestBuilder.java: id: 9383071b4cb0 - last_write_checksum: sha1:4451453425ddbe0e2be354874e953839e602e77d - pristine_git_object: 7ea4dc442725a7ad29cf7bfb2252a20892cdbbbf + last_write_checksum: sha1:e855850051f99ab8b7c8df9a53a78d4abcd55277 + pristine_git_object: ac1a7b207c35f44dd0e7f10149683d2d749dc976 src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesResponse.java: id: 667547dd90f5 - last_write_checksum: sha1:255988801a54fabf588397677d39815b5322cd6e - pristine_git_object: 13eba96e388f37eb5d994d681e5c7213607ef5a6 + last_write_checksum: sha1:33f3f14e29b0b184b5cb6f6b48da7976ed4ee387 + pristine_git_object: dff58e184c08d7a82f1f8ab971480acd46bf1562 src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountRequest.java: id: 6c7aebaba8e5 last_write_checksum: sha1:2dfd590d722657d1a9e1adc838568058b6424f43 pristine_git_object: 9d53422d975bbff20169e7cb00cd950616ca6dbf src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountRequestBuilder.java: id: 85941e3bc76d - last_write_checksum: sha1:801ca548991b5257c654b4828633ff0dc6dbce35 - pristine_git_object: 5f6b6be4ddfc173d0ea93534262d61ca6334b303 + last_write_checksum: sha1:5253a491aeb780cd2a4c246f77f3508d5226df18 + pristine_git_object: faa4975efabc71adc218846123af718cb76414f4 src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountResponse.java: id: 18f1c0f810f0 - last_write_checksum: sha1:d1df10295b6ee078071b0732f30e1da1a723a05c - pristine_git_object: dea32422003393faec9a806947db057b3c4aae5e + last_write_checksum: sha1:4994df0d6fa93ae00d22285b4840b647e3d5426d + pristine_git_object: 0b4e2870b3bc6787ae3978303263b64dfeeaf256 src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountRequest.java: id: 05bb1d8c3e5c last_write_checksum: sha1:02a3331678b4b4ace50a33b5983765e693d7e35c pristine_git_object: ebc8462bbaaedad52feb9c55e4dfc098bca5ebd3 src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountRequestBuilder.java: id: e4d6b7a650de - last_write_checksum: sha1:071adf461ee07096dd563579db17b9b66e6cfaa0 - pristine_git_object: 627ac44891a01861259e1149ca9481bc09fc8e51 + last_write_checksum: sha1:8bd95049eacd2b96a061ea687ee19897eb8ded7c + pristine_git_object: f21824cab05b9d7885627f0f4fdfef5690438494 src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountResponse.java: id: 9820d8a46f2e - last_write_checksum: sha1:9e0fc0601695e027aa01c6349e07070b38499bbf - pristine_git_object: 97c99b32c0eeafc3dc92189e5a7a87dbdc08d810 + last_write_checksum: sha1:dff793159b55d92f7f3f07021beb8588b2b091de + pristine_git_object: 2ac82c685dd5dcfba7815fea186b17650ce07acd src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigRequest.java: id: 0f52759bab65 last_write_checksum: sha1:aa0b6adf5db53c93baa81c66c87133176f67330d pristine_git_object: 476ff2bb5627550d907cd1b5052b7e7aa8488f37 src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigRequestBuilder.java: id: b89be2fe5982 - last_write_checksum: sha1:73c7c1f130ad445b45fde2ab813ce7f98db4acd0 - pristine_git_object: 44207802539fbd23216e1e0a3631103f99f78ca0 + last_write_checksum: sha1:31c50afe97040778958970b83b54b4fe972e592c + pristine_git_object: 7a9bdc6971c4ac04b2c827ebea4c8aaa442d424e src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigResponse.java: id: 8c321a9c182c - last_write_checksum: sha1:1e1201f69d51b63495fddc6a764e40de762c144d - pristine_git_object: 6e66131c56a111b99b227ab21bf3dc819c77c7c3 + last_write_checksum: sha1:9924fa8ac2f1d4fd2206118a3caf6b484bdbfef0 + pristine_git_object: 45cd4349dbbfe6e01214be86c7b3d60781b03002 src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleRequest.java: id: 714d18ec9ae4 last_write_checksum: sha1:df53cc5557dd56871065a68788cd0103f1a7b518 pristine_git_object: b71ad21b10dc7c1e68283fb860ce6b34a0fdbcf6 src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleRequestBuilder.java: id: 21431f4d4a68 - last_write_checksum: sha1:06100cb54eff2bf0366752c36a58459017ff3d58 - pristine_git_object: 37cdfe835845250c03b9626d4e876a07c417e17a + last_write_checksum: sha1:a3818ca1a386df0ed5ee14d74fd66cece8a94fc1 + pristine_git_object: 12f0f430405efb76626f238892d06c8976646a04 src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleResponse.java: id: 031e32f8f2f7 - last_write_checksum: sha1:aceb805ea0977144b63a645b8584d5ffb370ffc6 - pristine_git_object: 1d7d8bf20dd615584bb89d40063d65c759174a31 + last_write_checksum: sha1:040e8f1608447f525668e5a9f6b350ce227844e0 + pristine_git_object: a445fc1df507e60fe51399b7b2057f4790ec67ed src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationRequest.java: id: bf071d42240e last_write_checksum: sha1:39fe50dd08aec45ab10fd906f73a5c2b76bef7e8 pristine_git_object: 6cee6e9e2760c8c61fd41e5f766731a49e017695 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationRequestBuilder.java: id: 95cf7595deaf - last_write_checksum: sha1:642d83a45df8a798e27d6a95cb4415582a46282d - pristine_git_object: f531c63ed892d8f45457e86b55d91acce6a9c8ef + last_write_checksum: sha1:488929f9f4841d912c09e86d4428794edf07ff9a + pristine_git_object: 97da5203638f5ea75f1cbceb73e0599ede6c7cb0 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationResponse.java: id: 542fb7469049 - last_write_checksum: sha1:7557b8886b636a14c47d4eabbab83a53816c2ff6 - pristine_git_object: c7b52e7daf6cc948abbf3bd195e5564317d7e76f + last_write_checksum: sha1:fdca2560cde171eaab42163eef33f35b8dd7655c + pristine_git_object: 9db799e8e999e14b820e1428d8ad80e675dcbf8e src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentRequest.java: id: 0ad80dc71bce last_write_checksum: sha1:5e4a1fca5e8f26ccd6e90d41f83534b08f6142f2 pristine_git_object: bc5260ad1da2088b0e74c677e1923babbbcae82c src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentRequestBuilder.java: id: e5fd7586b203 - last_write_checksum: sha1:165145baf53fda947eedbb983449deab2249b8f9 - pristine_git_object: 4dac5b5c25f193f6d722006f7fbd89284dcb3ccd + last_write_checksum: sha1:93a4b95bcd62dfffc29f6b2aeb5b40c290097336 + pristine_git_object: 82878792cb7ee6fd97b158f552d83c03496e6679 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentResponse.java: id: a619a840d5fe - last_write_checksum: sha1:c562009954a2426f66fdea7d195c747d2e978f38 - pristine_git_object: 0ca3c9dddad39c056233c8f92bd546b2b6accc73 + last_write_checksum: sha1:0a3f9e6cfc6c2a96f752a0038f7c34cd863ed623 + pristine_git_object: 7649976555763bdc41b2e83623d6fc095dad0956 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest.java: id: 795242899e0b last_write_checksum: sha1:0f233e148a96dac6c5bdbcf685f1c18b5806e003 pristine_git_object: f2d20d3f213a1aa57499592d0dead3f2c1fe1d76 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder.java: id: c93727861eaa - last_write_checksum: sha1:94d3df55ceedf326df83ee0b2a5c08924a52d9ae - pristine_git_object: e22203fcf87b799b91a05efc6ba306f5690e4570 + last_write_checksum: sha1:dc15ebd6b3908fc5979e13d0c39bc1172290054d + pristine_git_object: f6c8357da4bab439a96fe4535c379d2f73b69fb6 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse.java: id: 44b5db15d73a - last_write_checksum: sha1:a202edcea0e349b68f4a3a7001d2d6bd9356bbeb - pristine_git_object: 4848c329e34c6f3cee245a11819c57009df7a853 + last_write_checksum: sha1:b8c21d291f5fbf4b33752d5ce82fe9ae040e36a1 + pristine_git_object: 6798951c95cb40ac3a19f06745979214c6f84652 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserRequest.java: id: d2c6135b7988 last_write_checksum: sha1:893ead82493c722449f8c6b31d7c39ffb1e75a60 pristine_git_object: b83364cb59d3aa7188f7d613905471fb163acbee src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserRequestBuilder.java: id: c7ddfdf4aabb - last_write_checksum: sha1:ca571cb20665019da809a0a9ff588ccfba3eb082 - pristine_git_object: 1a78bd3924ba3bf7e290702e719734dd8b2e8120 + last_write_checksum: sha1:eafa6c6189d9ef90b2aee241823bfb628d27850e + pristine_git_object: 8b5d309cf0378e51b093e3b3f1d24dcbb77c1bf6 src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserResponse.java: id: d731f6d479ec - last_write_checksum: sha1:29adcaf259aaaa5d1221b88177c8c4ff14818fa8 - pristine_git_object: 74145f4f0c54b54916e0aff197d5e1cf2db900af + last_write_checksum: sha1:73f4179ed63ba35c373d702879e839c87d490e7b + pristine_git_object: 50f08998f8cdfa017f64e793f7a1142aa9e2e714 src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestRequest.java: id: be3c7f1d3d1c last_write_checksum: sha1:77695d1b19e57c0da2927171be409c317984e59c pristine_git_object: b4195b8712c1ed21f179145ceb8aca1eef02d53a src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestRequestBuilder.java: id: 109012ff3d82 - last_write_checksum: sha1:dfd28e29f80c916a6ceb0d5951232b93e32a617b - pristine_git_object: 2d1475e5a07d0158156b1eddb4df4c1589f13466 + last_write_checksum: sha1:faf5238419805d6acf6f1fab0ce7e5c4dcb51101 + pristine_git_object: de8c49237a7540c4ab4150714ac9c9fbf0976f05 src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestResponse.java: id: 4ca3239fda89 - last_write_checksum: sha1:20b088fc58b0375e34914b19506e7cc38ceb9fcf - pristine_git_object: dcce953d6afd3023c215813a7bbc14c66f4218b1 + last_write_checksum: sha1:21dc3a8d5ae58f19ff85213fdf5dda682d7f5414 + pristine_git_object: 270609f5adb0ba667b6b4e42ea1542fb431fc30d src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesRequest.java: id: c322761bb074 last_write_checksum: sha1:ce6e30761402d4c44cf3dd75cc80bf6cac3da4fb pristine_git_object: c1dddab4e6fe0ecebf91cff7430e46f1f43f2861 src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesRequestBuilder.java: id: acab0391d2ee - last_write_checksum: sha1:ae6c6809134fb6b5cdbc1e38c91a3f5bec87e824 - pristine_git_object: 4933b160af33c3cc84568de2eba5cc3f530b1940 + last_write_checksum: sha1:90890bb428ec5670b3c5edf69c6ca660bdc5972a + pristine_git_object: a8264bb4703367ac6f742cc8d17708325306c7a1 src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesResponse.java: id: 73efc88366f4 - last_write_checksum: sha1:8fec0dbd95e3f64bcef52b6dc444811fb0ffa071 - pristine_git_object: b3c6e391e267499ca1b25800568435c4f4398163 + last_write_checksum: sha1:02b516347da3994166ea3f13a79d71b7b56fd828 + pristine_git_object: fe799fc0cefd60e4d8b1ee8282390004c94210f7 src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolRequest.java: id: ddfa1890481d last_write_checksum: sha1:66adf0d0ad410f41e7427909ca1b1ca00cff2429 pristine_git_object: 86128a83eb70bad70808e09e0fd15fd95217029a src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolRequestBuilder.java: id: bfb7c076ff95 - last_write_checksum: sha1:7f49974d9320365203df9bfe8ff4306235f757cb - pristine_git_object: e263a0ee5f148c4c8019d31a1e0ef4ae99115631 + last_write_checksum: sha1:eadf349d91e46494fe4f17b7af7657bc019f60fd + pristine_git_object: b8ba6a5cfe9d6d43f9cd3c1867559cd18ae17cd9 src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolResponse.java: id: 2ac5b5488a65 - last_write_checksum: sha1:5df6213e2770cc65d895ec111ba052cc77d88300 - pristine_git_object: 89533060e0f0a0c357ac25d6c8242d0a7a063649 + last_write_checksum: sha1:bb45b87df1f665904be999ab2a4b2487cabe603a + pristine_git_object: 06dc4bdd39c4ed89a0e07d8931d2b9f6911ce779 src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskRequest.java: id: 7de2ab33a11b last_write_checksum: sha1:cc7b5d739dc393c84117115afe8082615ebc6c06 pristine_git_object: cc1a6ae5ed0e7a47632dc533b428eac44ff51f47 src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskRequestBuilder.java: id: 4c82a0aa3d73 - last_write_checksum: sha1:f2db772f995ded5f6305f6732d091ea97c405f31 - pristine_git_object: 99fc3e9ddaf3ee8dd46f929efbc04dde6a5f43d6 + last_write_checksum: sha1:5879452441b4b978f0bc93b7b87a0420da795e12 + pristine_git_object: 2eda3699812ea0d55acfc1f7e6080fc5b0a6504c src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskResponse.java: id: 38a100cf77e5 - last_write_checksum: sha1:5e3ce0bc1589b64a848155076f7570a57041d46c - pristine_git_object: 3cf9f3fb8b07126a1b7b9f3ad577d4a7be00ef9d + last_write_checksum: sha1:0e7b8e6d86f5abc2573d4244449978f719fef0e5 + pristine_git_object: fc99b6019cbed147b4091a13931c15d0e87bf818 src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequest.java: id: c62de2793e4e - last_write_checksum: sha1:0058b19de8ba42ffdcb68c63666128cf323cbe08 - pristine_git_object: c23a29cc20d1b28daa2c568b34bde140815189ba + last_write_checksum: sha1:bd5802ddcef1bdb0d5976dc753a99b652dbc71e8 + pristine_git_object: 843692cc9ed36ed34783706ca82a18dac8c3323b src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequestBuilder.java: id: f66df814c47d - last_write_checksum: sha1:63ebe60c051c95e6a88fea5133d3a52d2e60c845 - pristine_git_object: 85e7216c56ce0d9699b081d68670b56b61080f71 + last_write_checksum: sha1:6681ecabd4ba1953d893e856cf30efba8f349be9 + pristine_git_object: 478ead229b522e5c4ebe0b800492b19f95182c61 src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentResponse.java: id: 15f8df57daef - last_write_checksum: sha1:4322327a932fc9e7ad1acba19f3d729e04b2fe7e - pristine_git_object: 971e6d6f4792d2f394b4ea1c450bfe6bdd4850ba + last_write_checksum: sha1:7260a23ea8dd42db38e654127a3ab19b52e453f7 + pristine_git_object: 1501d9081e305b97b57949a765de4519d70061fe src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequest.java: id: b39ee74cc892 - last_write_checksum: sha1:0733a8b0607f9a41fd044bbabb64a9ebe19a2de4 - pristine_git_object: 08dce35d60a4dcab9e286efe65e40c3d7da3dc19 + last_write_checksum: sha1:f4316038c5b473556328d5f38cb0e196f8e64ecc + pristine_git_object: f80fc97a6dafdd789fe44c4fcbbaf011ca539bcd src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequestBuilder.java: id: 1fbad5d7c1bb - last_write_checksum: sha1:a3275b695fccc8ea4eaa3b2c92bf025bc96165a0 - pristine_git_object: 57303e097922c7f290a6b3197e511eaea857623d + last_write_checksum: sha1:677a6763fe763082fdd1df6445ba5f8173cf8f11 + pristine_git_object: 3619a4aec8142293a5643806f9c09b08b56d5e58 src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorResponse.java: id: 239cf5236399 - last_write_checksum: sha1:a46617627fae9ed0eeec8946df6fa3622c8dd589 - pristine_git_object: 5633a9eb4693ea276ae9653535862ce14b75f2f7 + last_write_checksum: sha1:3f3d4d8c00ec6ed1d66b528cc4a17b7b25cf8bbc + pristine_git_object: c2db70e1e43fd9120d65ab4883f363242a3e59e3 src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequest.java: id: 1c7304b3ca10 - last_write_checksum: sha1:a3c07a7610228bb21c6c6efaa3a15df88304a8bb - pristine_git_object: ba48b9fc5be690d16b1d575596a6d7a393864272 + last_write_checksum: sha1:770c087c473f4cb6630baaeafc8abe0b7e4e92ec + pristine_git_object: 90b2660990ec9cae976ae91049768173ca8bb718 src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequestBuilder.java: id: da588428a1ec - last_write_checksum: sha1:c7cdd6a3dccaacb40b84068f723bd6cb9c0536f5 - pristine_git_object: 32bf2e6463da838727c3bd57cd793009109176ed + last_write_checksum: sha1:6e52c7a7121e31da2df4433de8be237d9c997e17 + pristine_git_object: 2499edf0a308281768d896c510beef4090837ac8 src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsResponse.java: id: 3fda92a58749 - last_write_checksum: sha1:f81d8e16267a626bada39e97bd91807748897ce1 - pristine_git_object: 0aa0a21c1641875be2e883ddd27fbc51d7d6eea8 + last_write_checksum: sha1:f9c72fe7ac798e56ce1a128787bd07e6a2f8d8c3 + pristine_git_object: 714e7d815883bc7ce900d8244237c3612b895c74 src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequest.java: id: 3797edc5dbcd - last_write_checksum: sha1:19dc5c5974930cc4425ef14dc1ab94139e7c41bf - pristine_git_object: 9a6f4122ae04215fe3fcf4af45a8e6aa2175076a + last_write_checksum: sha1:5e6db9052a3114c5809780854aa970e7aeb0f304 + pristine_git_object: 2abfba4580f6acc919cc68d3924ccc061590c89f src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequestBuilder.java: id: ac2ec968fcb1 - last_write_checksum: sha1:1651978977c054abf36614f3e5b37ca5decfaae4 - pristine_git_object: e3ff6bfdc6ea03d85a88a8e9f877f31e4d87ad3e + last_write_checksum: sha1:ba2bfaecbab9a84e18fb79e1954141fa23e13e50 + pristine_git_object: 6a664f374edfcaad626a1dae4c2205ea467dc78e src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsResponse.java: id: fc1517eef515 - last_write_checksum: sha1:cdb9a805026d4491925b2f3ce7c8470b82d2cc1c - pristine_git_object: dd2d18b41fc9b1c377070a949e978b8ba417c074 + last_write_checksum: sha1:9f5dbc61b84afac365bf41669908c56b0b16523a + pristine_git_object: 0474c73ce0325bdfc0cba1983a8c0165653caff2 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsRequestBuilder.java: id: c25b3694c05e - last_write_checksum: sha1:eba2cc05125127ad8241c97547bea3671896884c - pristine_git_object: ddf08379f4a99c42536d3894eae3a09efc8bce0e + last_write_checksum: sha1:416b590c0821eb24a454bedfb9c9224919674b4b + pristine_git_object: 74f1dee3484c03975078cf0deb96caf1ce344824 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsResponse.java: id: a9452413a44f - last_write_checksum: sha1:39d97eb450a630d1fb9b8fe7ec7f421189c945b8 - pristine_git_object: b9cd637e0181b73527cb55314a178f293e1191c5 + last_write_checksum: sha1:c72b25b26284856a86f2d60cf078522e9ffb7be1 + pristine_git_object: d11e31f8b471e3fdb2f694862b611fc56098b2c6 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesRequest.java: id: 0fc9c153b0fe last_write_checksum: sha1:646710449e4c5bb931a8107702379a9aff36214b pristine_git_object: 1cc46784f790ade9f467b4ed5fa41942b618a60a src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesRequestBuilder.java: id: c2dc16538845 - last_write_checksum: sha1:e80b85ac2f183dc4a8e53ae3a310a5c601dec7bd - pristine_git_object: 94b7dca85a4284d726a74b43b3d495908720c5c5 + last_write_checksum: sha1:8caa4827c48ec2bf4f35ddd556b2c523d2accba0 + pristine_git_object: aa28ee865427b8be6b2e0094f9156bc702da924e src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesResponse.java: id: 43ea3e02853d - last_write_checksum: sha1:571ed197764b9641834e35b1060e32c7491463ba - pristine_git_object: 420cf9345a1493a51a869f576cbbec707072d666 + last_write_checksum: sha1:57f7f1bb1f7395a3109d4307205d92b343f43d23 + pristine_git_object: 9e2bee73163f82220029e323557c637fb756c450 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequest.java: id: be157b6b8579 - last_write_checksum: sha1:8dcb4b4f1c046b896e0e3bd59b83392dbf0bd364 - pristine_git_object: acac38bc6e7221a61f72d8badd3725dcea416562 + last_write_checksum: sha1:409637432e3cf88e541a42246c625da046068258 + pristine_git_object: 69fe0d6aade587c39e309a2c125704b7b8bf1d3f src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequestBuilder.java: id: fd9f694a703a - last_write_checksum: sha1:ecc4931a9e3f724f4f60fdcaccbf0a40e8ba1490 - pristine_git_object: e4193df9e15dc31d9524041a050c4de3a6d891c6 + last_write_checksum: sha1:b95d83310e2ffc53afaa4bdaac8f37cd738a8927 + pristine_git_object: 3801b90dfa8884a4d0a828cb39f16873e03076c2 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesResponse.java: id: 9dd6fc59a52f - last_write_checksum: sha1:b756f0f553c3d23773fa6dca4101ecc1e7abc598 - pristine_git_object: 5047042df587fd5c848010c8ebc05fb6686ecd00 + last_write_checksum: sha1:ff38ada8666435be416085a3e047aa895d671908 + pristine_git_object: 051fc07b9c0bb59aa2f4e4dbe9101282c079fb25 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequest.java: id: 354cb90e09dd - last_write_checksum: sha1:18beabd1a34702adfba61535db1f02e5d1207443 - pristine_git_object: c202fad06485406cc578c540d125e53f7947b07a + last_write_checksum: sha1:a29e7ff381b150ae11bbcdbe68cae1f364e42f7a + pristine_git_object: af7a5ab271f59b81e555704a614aba4578744854 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequestBuilder.java: id: 27b0ed05faf7 - last_write_checksum: sha1:31d283ba3791ed93d06cccdea4bdf6bc0178a4a2 - pristine_git_object: f22ee7b01238a4754be2dd48eaae3be75639faef + last_write_checksum: sha1:815b88aae69c8982b386f95310cb4ec8b955ecd6 + pristine_git_object: 36760a9feb5625013ef52ba6c8feecaa86b016b4 src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsResponse.java: id: c5d241dfd67e - last_write_checksum: sha1:a37efddf80241e9369175160d4e80465e8722584 - pristine_git_object: ad582556888400540adf9cc1e62d417a5c716655 + last_write_checksum: sha1:0ab4cef0a9ca74a0578b2c3979045a34093abbbd + pristine_git_object: 8bcd7f5df70264149f8873b092c1587135458108 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequest.java: id: 9c5c04541d40 - last_write_checksum: sha1:427c48cb00476debb8c78996bb34462685b91d1f - pristine_git_object: e4535184e48d14ab5a728ec696e5713e9d218440 + last_write_checksum: sha1:47b6e8a3c42585164050eafd7111918a0537a27c + pristine_git_object: daa0ff9f275e5d3382e9a95e8ae94dd755746c1f src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequestBuilder.java: id: 37c7c46e2a27 - last_write_checksum: sha1:34ecb17b0c0f1dafa7e499ff1364fa71e1f26d96 - pristine_git_object: 435cb749971f5e12f06b70b15c620f4cceb1d8c1 + last_write_checksum: sha1:0db31ac5a731fff05d2e088eac9e6bae7c54fcac + pristine_git_object: ce1986f299384216dc574df7169a192fde5053d1 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsResponse.java: id: ad80ed1743ea - last_write_checksum: sha1:64eedc2705f008da359e4bef699270700ad7a3ca - pristine_git_object: fe47a20ce305261ae651a012eb4cd7b3598ca9a2 + last_write_checksum: sha1:cf089fbca0a531a5660a1eb224b1674cff0ce122 + pristine_git_object: 5daa61407048f16060241ab22d19c557445264cc src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.java: id: 3ceba7d30292 - last_write_checksum: sha1:a55567c3b7ff870849b65c3fc8224073edfdd84a - pristine_git_object: fbdf833a05e66ea76d9f92256a4f6f9f56edc84b + last_write_checksum: sha1:972cfc3904b1adbf6704655fe028c675acedacd3 + pristine_git_object: e5719ff43c34e3aaadd2c26d4c6ca31d2847717f src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequestBuilder.java: id: 3ce67da6d388 - last_write_checksum: sha1:e763ed47b4a64416cf1716dc13bc188c88da1ff1 - pristine_git_object: 15e4580b6af56d7694655d44609e1287caf88c89 + last_write_checksum: sha1:3fabe52480a272ce6a270afbf4797612f2016cee + pristine_git_object: 7d14b33f10ca2d3e710d2d888b65976fab8c77d7 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsResponse.java: id: 1f2933b76c08 - last_write_checksum: sha1:83c82049ecf2ed6a78ef931c996468cc9186223b - pristine_git_object: cae7f4867cfe98b02a596273c05dce9f053a5cf6 + last_write_checksum: sha1:92b4459b7806136ed8630de58339a5be72c0939f + pristine_git_object: 67b8877ab4d76e2f7ce46cc26573909e77c46489 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequest.java: id: 49dbd29e5515 - last_write_checksum: sha1:25c992847a5fdf28185370d61e9f2150231a7f65 - pristine_git_object: 61c63605ebc422178b08e0b21de83782788641ac + last_write_checksum: sha1:a4b21d5d04fa908d6062b55d528fee95d3e80e59 + pristine_git_object: 7177caf9ee0805c947d954421fd665f0e71ab05c src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequestBuilder.java: id: 84760563c4fd - last_write_checksum: sha1:612ec843f81ec0b6d0fb7a7f6137fff99de63cdf - pristine_git_object: 20a914c44784908646fa4c46f1c2913d37ec6d79 + last_write_checksum: sha1:936e7416f68e440f6cda7e502108ccd6e230f5b2 + pristine_git_object: 03edbba2b2043a84168fffec2366a36e8544d869 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsResponse.java: id: cf86ea0544a3 - last_write_checksum: sha1:1fa1c2a28797cf410ff9febde641eb38b32a5eb8 - pristine_git_object: ad20fb503f9c730cc8d3416261f23d51089650e4 + last_write_checksum: sha1:d889bbe430fa87cf3c24f7d3a8321374f149175c + pristine_git_object: 0a246e9f500831f84b2ccfcf6bbdfa1be74d6bf7 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.java: id: 2a57033765ff - last_write_checksum: sha1:a495564b2b5af8608555a64357ae6a8698f8a30e - pristine_git_object: 7a88afe55ba760e89598fa2add61cb7ab0b5dc81 + last_write_checksum: sha1:5c344bfdcb2f0ecf392bfbe206bff7923f30bfa5 + pristine_git_object: eefb519132c72473b9493e208cee11975c91d9dc src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder.java: id: 26f0c14e2142 - last_write_checksum: sha1:7be21dbebb3d38a54f2349eecd12154cfe6e48dc - pristine_git_object: 4e1cd6e812fe7bafac80d6895266a56d640526bc + last_write_checksum: sha1:3ab7555e951a9c4a30f4e13c32ad5e0c7d88def1 + pristine_git_object: 039630e89e8d5ff1263e8d4cba1ad3ba93a21f6a src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDResponse.java: id: 92415450d779 - last_write_checksum: sha1:5f3cf71afce52f8af33604a0d0057e4cc74f4bf7 - pristine_git_object: 1d8737fe7e4f529faa33bafecd28e6c6037bd524 + last_write_checksum: sha1:0be42f988c1c1b4643b46839f1cf06f1e181e4d5 + pristine_git_object: dab4b0e1015e86cc60a509d2d23f5c28b40120b6 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequest.java: id: 0304491b6669 - last_write_checksum: sha1:6d08121e258e957584404feb976fd7d225e6f8e3 - pristine_git_object: 8e1ec09355d849238d331af756288c2c101b3d26 + last_write_checksum: sha1:28c4628b7fefadb2205fe14f744ecbaba5c12b9a + pristine_git_object: dcf12e9d337f4c6c7209410ae23d4ae2d31e8e50 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequestBuilder.java: id: 844906969f9b - last_write_checksum: sha1:a98d736aacc751c076a1c919e7143eb7f3de0943 - pristine_git_object: 4c7a119b3a1af11a6968cf5ced3790362fb1d46d + last_write_checksum: sha1:557c67be059d931ebf2c55a8e8a6c0f5adb97df5 + pristine_git_object: de26c26552844ce90fdaa8e89d04e42f109e47bc src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsResponse.java: id: 84bb5f58bf65 - last_write_checksum: sha1:733f3b3c2e99e38739232490ca93577e6d2c8ae2 - pristine_git_object: 817c0bd91c73dc1dd189b53f28250ef1f7bddf19 + last_write_checksum: sha1:b885ed5a334f8c0ec18b68320bb668b55890d325 + pristine_git_object: 942a02b29ecc3d5f3dbbe11572545e84bcabf335 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.java: id: de0d8de92a8e - last_write_checksum: sha1:c870d5588c5b278bb11b1c066e5a2d997bfd6cf0 - pristine_git_object: 8dcc24065fe0599cbfd0a6fcdfcce5ae24fc3a87 + last_write_checksum: sha1:3b01a9dc92e0940ba470d06eb8b633e8bc972684 + pristine_git_object: 4db29274d630262b41202769ee6e6a670cb9d9b2 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder.java: id: 2eb5f2d79def - last_write_checksum: sha1:951f6e4370750b0e87ef18a0602058426552cc32 - pristine_git_object: 205ecfcbc55d847f9229983cb995167dfa2ef99b + last_write_checksum: sha1:6728d869769d62529973ce8e6cfe089492e9b07a + pristine_git_object: d1011422281a1cd8b0769f8fc695111f19b2e54d src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse.java: id: a9640ca0fbd9 - last_write_checksum: sha1:6f1d97f83892c0519ab1a35600ff35377102ee36 - pristine_git_object: ed0721e2cdc83d415e0ae87029fe5e37ce21959b + last_write_checksum: sha1:2f864dab649eb119c647a72dda918c8830f5eaa5 + pristine_git_object: 175f427720bee24c4f16413563650d1f90a2420b src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequest.java: id: 358b46afa9f5 - last_write_checksum: sha1:0192e1c8de817e4808a8b6cabf2a9c1bb46c04db - pristine_git_object: cd4675bf030c2c7b1f9bba264c25d996f449e72b + last_write_checksum: sha1:76fa486b261c67185c1cdf28feb5bc31160edf7d + pristine_git_object: 5c4a53ba7d2ec202c3c7ac9ee2707b6b2b063bc8 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequestBuilder.java: id: 0c838d589aeb - last_write_checksum: sha1:016d4885aae116f53aa693b0f10e4b91ae335672 - pristine_git_object: 7ae37a84b1d5f1bbe3a48018839b791717de82db + last_write_checksum: sha1:78e936283138525979c99f9eca5796b11d8efb76 + pristine_git_object: 71a3741e4fcae0e25c39780d23198a0fb09d806f src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersResponse.java: id: 5662aa4458e3 - last_write_checksum: sha1:29aa7f71a0e044b515fcb8f3b2ddc0262f630794 - pristine_git_object: a3d6febaa7e754cfb1764a0ba21c860a00844aa2 + last_write_checksum: sha1:055556c0cbd37b246b34ef4e269d9ffadfd7b53f + pristine_git_object: 03c0e39cbcf15d2ceb7418eed6e773e20b29a935 src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequest.java: id: a9150ea64cb4 - last_write_checksum: sha1:c1e9284aae4b1212f06a5a9a7b350655b3954279 - pristine_git_object: d43aade6f28c9af38572a0fe02b8715d2756251d + last_write_checksum: sha1:f7b234dcb3b4c648c0ce92b738c1c4e9b15e8ab3 + pristine_git_object: 2da85950d6997e28799b7f76db88de2af5b89fda src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequestBuilder.java: id: aaae72d2b2de - last_write_checksum: sha1:05929393485c4c6fe8eb7251b92cdac8d65de95f - pristine_git_object: aec3a61cd371f4e7bb44ca5a1dc1f7bf30e63c95 + last_write_checksum: sha1:0d1dd418052d39da4845b917278d56bd2f747513 + pristine_git_object: 229da82a345692daa1f65a1cd0fe55c0c79d4c5f src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsResponse.java: id: 8a94220caeed - last_write_checksum: sha1:306515ec327b808cfa35d4ee2bc86037e1108826 - pristine_git_object: 39e0afb5893c5498ac0183e897297ef1ebab8cf3 + last_write_checksum: sha1:aafb0bd254e23cf948521a6fc80743d5d0a8977b + pristine_git_object: e33752649579e9385d0773a72b5ed7885a454239 src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequest.java: id: 77c13213e744 - last_write_checksum: sha1:2f756d86d9f5bf4c4e3bd29c12d55aae8acceb7b - pristine_git_object: 8da84b630538d09d997335963d5f78024e4da86d + last_write_checksum: sha1:dc078cbac850920fb9373520186ecb2ecff8c6fa + pristine_git_object: eea9cf0dfabf48ea5d7f873be793c8325be57749 src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequestBuilder.java: id: 922952d2a84b - last_write_checksum: sha1:8f540d4a89774bed0ccc19963c03407fc8a4fe41 - pristine_git_object: 6ed0277b5154adf12b4d9216415eea24effeb3d0 + last_write_checksum: sha1:f4e214059be389556c165655d05627c5e1083fc1 + pristine_git_object: b93f5f63bc819d632a33ecf7db24bb3253f10f61 src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsResponse.java: id: 2e2f4cfa17e5 - last_write_checksum: sha1:47128a79e3b5ad97ffed812f6a9037c4d3dd460f - pristine_git_object: 56f641483e0af1d1d247c7d8d58ab55d9695aecf + last_write_checksum: sha1:2a03bf0a5236fef72ef0774395c07749976a4561 + pristine_git_object: 40babc84a8b3f3aae2582743b8b347223ab18236 src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationRequest.java: id: 901ee8bf8b5d last_write_checksum: sha1:d4ceca15ca0e3b4a821147c034a87af0ed3adfab pristine_git_object: 610d6194eed3523e533ba7b33567ca4356343716 src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationRequestBuilder.java: id: 195d9a0d3772 - last_write_checksum: sha1:9c8e60e3a719e54fb20033d70c6a9bf6d4fd9104 - pristine_git_object: 7a100a0c25c3598baca0683e49a7ff5e84713102 + last_write_checksum: sha1:e3175dadfa5e52b1b8a18699caeec0a16b329424 + pristine_git_object: 8b975c59d1675aeb79c7219cd99e2708dcd9916d src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationResponse.java: id: 2f90bf40459c last_write_checksum: sha1:9b564c0998854a86d2f7810af2e94d684016d36a @@ -7546,8 +8004,8 @@ trackedFiles: pristine_git_object: 5d3d4b4902f294786713c2a18e54b162dbb35f09 src/main/java/com/formance/formance_sdk/models/operations/V3RemoveAccountFromPoolRequestBuilder.java: id: f5861d03d177 - last_write_checksum: sha1:8577dd6a6503e232b8013f4e6664ebf9af204e17 - pristine_git_object: 893a5ad8d78afe5c5b68cc72ab825e13892db36f + last_write_checksum: sha1:d9d2d9ab68e601611ce8ffa3043731d4178bb19b + pristine_git_object: 474ea942469c99c11586e1ff326bded0c1fcbe7e src/main/java/com/formance/formance_sdk/models/operations/V3RemoveAccountFromPoolResponse.java: id: d68c744a0707 last_write_checksum: sha1:e21b6987d29e1bb8ee64ee98cc2bb3718cf7feb6 @@ -7558,104 +8016,104 @@ trackedFiles: pristine_git_object: e53843bbb3ea2609dad51238a16177d8c5cc892f src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorRequestBuilder.java: id: 6f3a59388f08 - last_write_checksum: sha1:3ba7519f4a89712217545c7d423a900128b3f6c3 - pristine_git_object: 31c71e86b1f614d3c60a5bcd7e9b20bfd1ce2a92 + last_write_checksum: sha1:1e09e1252f02ae1f1c0acef8915f4849741e0933 + pristine_git_object: 771992209dfcdbe228db705f24a40f7aa3072eda src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorResponse.java: id: 6b8c603d243f - last_write_checksum: sha1:75106c7c833d0ed2419abf1dbf3b00ca864b972c - pristine_git_object: 3b70da41d15d7f356919ea9b79a7f6e6dbf2e3dc + last_write_checksum: sha1:5302f409d8b50eef594290c91b7f8d0670ae168e + pristine_git_object: fcc5add9fc2429bd6926c296f07fdc7c67c50a8d src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationRequest.java: id: d3b07b5cc4be last_write_checksum: sha1:372119d20c03d5c1b3a36548ee6e446b77fb21a6 pristine_git_object: aa0fa8e1f30b20ef00790bf5b0d88c93d8e8a191 src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationRequestBuilder.java: id: 2340ede7a50f - last_write_checksum: sha1:2d0c5cde3b113f1578bc63231b650085fb2639c6 - pristine_git_object: 95a50e749e3f563e42e828c9bed7b9cb71d2fa89 + last_write_checksum: sha1:db5fe1bb2d994aa1487aaac52b74c1035793287a + pristine_git_object: 0ab0c035152f15df8368346974479c931c5aab29 src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationResponse.java: id: 5dd5c1bb62b2 - last_write_checksum: sha1:c8e0b87960b045131016498ad4a9048ee74d6223 - pristine_git_object: 52f226cafd4a7715503c66f4d1a0979cc4026ef7 + last_write_checksum: sha1:55a407f800116e10fb8d8e624f58e346fa92fb33 + pristine_git_object: ef2704ca41fc03c3f13feec773a05a08b6423a56 src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequest.java: id: 51e082c6dff2 - last_write_checksum: sha1:b165298cef89724ea19511ea675fd2e9c3d90e5b - pristine_git_object: ad1d7f10aa448207538619c0918c3fe3f064bcd5 + last_write_checksum: sha1:25384495ae09a8029ee3fc41ff24810fb42f3d12 + pristine_git_object: 30343fb471be98581da503f8ccc3e5e6d4035ebd src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequestBuilder.java: id: 8a5c1c84df5c - last_write_checksum: sha1:9125178edcd5b1793a7759624ad69587526815e5 - pristine_git_object: b8672554ec445b8dc98cbc24c1c80778ac7e7614 + last_write_checksum: sha1:ada99a00cee2205e053ae674ec2d2222406e34b5 + pristine_git_object: 5c7e0fdc567c1097e62141909dd70ca064d8d314 src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationResponse.java: id: aea87d3ecc2b - last_write_checksum: sha1:fabcefa20911badbd8609aeb5d5e2c0350e6196f - pristine_git_object: 5743632c8c7161ff4a342a1006f6d400b6cba61d + last_write_checksum: sha1:436a75f3e510c102a277167177c6bfcf685ce3ca + pristine_git_object: 229a2cf8d2e5dabc94ee57859c78a2bfb7623a23 src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorRequest.java: id: 6a16b60e0651 last_write_checksum: sha1:76c84b57cc0c0dfe34ce63ad678f759d9e1a4345 pristine_git_object: 0a664c86eee64c5cafedb50454be93f94e12a0cf src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorRequestBuilder.java: id: 52fb5d399fcf - last_write_checksum: sha1:0cea3c81bfc59733368f67b47962785253d57e00 - pristine_git_object: 113473da1c8fc44db8879eefc25a6f12fbaab97c + last_write_checksum: sha1:1f418c783f003df19530ef38dc7b20782d6372a6 + pristine_git_object: 5ab0423e7071568e33d2c28644bd58f7072d5ad3 src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorResponse.java: id: 6a4b2d6a2c92 - last_write_checksum: sha1:a52fc675472228e73dd309165b0e94e262d88d9d - pristine_git_object: 94ccec2869a7d21643863f054707eff02009cd7f + last_write_checksum: sha1:13f421c218b2c1ffc1f3efc046b75f4d3a512f72 + pristine_git_object: 1a6dd63ce26757a552bdc0fae099a71f6738a774 src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequest.java: id: 3cab497e1fce - last_write_checksum: sha1:f0edea28153afc43de1bd3d3864aa9be2e224166 - pristine_git_object: deadaa1559372d4c4206dcd4908019266ab6a5c1 + last_write_checksum: sha1:895784b99d4f4f065fa2615ddf341840ec4258b4 + pristine_git_object: 8a3104cfb232d3eeb3da30141862768683aa202e src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequestBuilder.java: id: e03b8aa03972 - last_write_checksum: sha1:310f8dd1843b8f82483e76ac3b26e9088b79e86c - pristine_git_object: 85fe7b2879dec12b046c140d3e5c1229c5064c23 + last_write_checksum: sha1:d7d81f64d536af3e5a027aea82af2169e5b81dfe + pristine_git_object: 3994439df1e6252a5cbce360bc2418a7fcb8c592 src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataResponse.java: id: df8f97958324 last_write_checksum: sha1:2ee347836b87d40c75dbfc3ff9ea979c1b4f740f pristine_git_object: d4f0bf9708800a67238d45087dafcb7c5016c37b src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequest.java: id: cf242fe27b46 - last_write_checksum: sha1:3a5cc32c704f0d7d5e37d75df98f13bff08684e9 - pristine_git_object: 830c41a5866893454b9c1f731217b618c5734593 + last_write_checksum: sha1:ee1e688a8dfd0731a8c4a26953f9a3e26df36f28 + pristine_git_object: 2d138ff318151f69fcddc68f0de27e46fdb5559b src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequestBuilder.java: id: fd0381a4ec79 - last_write_checksum: sha1:71e394841abaee1a010651148492d547c008e6f5 - pristine_git_object: 571bc8372c3fe133fb83aff7c5f51c9622f74935 + last_write_checksum: sha1:7b52bc659c73f19daed06d942563e93794c5caa8 + pristine_git_object: ab7a1c38de573994d55130737b22434a7263fb48 src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigResponse.java: id: 8d3fbed23818 last_write_checksum: sha1:eab671c9f7ce88ba4cc6d517aa7aeeabd3f9e002 pristine_git_object: 32c0aaef4efe92f9ba7e36ad7492e87e6a15c252 src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequest.java: id: fbae0c738b74 - last_write_checksum: sha1:d416d07967caf45f7d2296c95032c015241a8ce9 - pristine_git_object: 5dfb2fc978d5a5ee23d94bd52e5d18348a94b0df + last_write_checksum: sha1:ac141b13f66c4b07581aab8e5d4cf699341926a4 + pristine_git_object: 11778a70e3f8b0d0ba696f3c9ce6fc4ad517c73e src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder.java: id: dd5222e5ccaa - last_write_checksum: sha1:9d76f86b49296b67a273c1ef8be6744efac03b45 - pristine_git_object: 0eef4f0614b402729e971e27864661baa6b88101 + last_write_checksum: sha1:91fe293d41247c815843b67d8643c70faf269901 + pristine_git_object: 4f3d9d230a6d8cb28f5a584a481b9997f69f25d6 src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorResponse.java: id: 2bd68479b4c1 - last_write_checksum: sha1:3165a8b5b9fb5d6ff11b9e512504b0a14c5d4a90 - pristine_git_object: 03615e288fc0e0de14cf4d212e668ac0e07f2069 + last_write_checksum: sha1:50daa4a82302fc13e2bc1e7aee904d4e2e4962ed + pristine_git_object: bffd2c79c64202eab378538250acebde0d1f9e64 src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequest.java: id: 324b8c1842ef - last_write_checksum: sha1:a374b0630576b65329cb99b3e690b231ce19bb3f - pristine_git_object: c1fe6f52ed60e184ba42ab48b189da7dd9ce1dd7 + last_write_checksum: sha1:6c993626ba738cc45045e24ead4073249a22ef6b + pristine_git_object: 3ca81ca128e7b099dc99dd12faab84a808eb1fa5 src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequestBuilder.java: id: 4bd75efe1401 - last_write_checksum: sha1:ee20541bfdead9982cc1780ea2048c9f348d023d - pristine_git_object: 36cd8bbf25093eaa701b5121bb3c2169760d62b4 + last_write_checksum: sha1:189b962fc75e93b41a1c57971e7b796c382dcea7 + pristine_git_object: 07f7e29f15baaa616a28f56230701672fb8d11d6 src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataResponse.java: id: d832d5af45ca last_write_checksum: sha1:9500ec28eb32b2b9a8909b00f871f737dc5eb602 pristine_git_object: 24af10202123b51c9c23cb15163a47cb5c264a9f src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequest.java: id: dc1ce62ef21e - last_write_checksum: sha1:e86df774afcea48250907ca302eefc4c1c09b4ad - pristine_git_object: aaf43e21419b14dce51582f579289b1ca9e22c04 + last_write_checksum: sha1:4c17075989467a47b6f9afbf30765f8e4925fdf8 + pristine_git_object: 4d2d9ec3d05f995e2a62a6ec82e9b150f97991e1 src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequestBuilder.java: id: 299d319ec7f8 - last_write_checksum: sha1:426a719851dcf6ba4d9c62be235e336516f55c43 - pristine_git_object: ef304e1e240fc108efcbaf2143a9a867843c0d23 + last_write_checksum: sha1:10285beaee501512e1ec29afa91ade386b9d6327 + pristine_git_object: eacb7165710ba4653963cd8152fdb24c8948dced src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryResponse.java: id: b0ff1277cd75 last_write_checksum: sha1:f0e4e40c8658992f1f24e952f888226447f0501d @@ -7666,3556 +8124,2892 @@ trackedFiles: pristine_git_object: cbfe23c178b6be901d6cea50f6f2eada90813061 src/main/java/com/formance/formance_sdk/models/operations/VoidHoldRequestBuilder.java: id: ffb57f9725ad - last_write_checksum: sha1:34454321a852e07ba5b4a9dfcccdad8fcaf9e75a - pristine_git_object: a4de953a2c5cb98231fdc6a1252451ca585202f6 + last_write_checksum: sha1:a3b32e5c7e0747f93d65653785bda15e6cafd5aa + pristine_git_object: b7679d43a8ec80ee32fdeca33d8ea8d4dd0fede5 src/main/java/com/formance/formance_sdk/models/operations/VoidHoldResponse.java: id: 48197b33598e last_write_checksum: sha1:031de7275d299d1ef3421b5bf719449272064419 pristine_git_object: 84323426bb767abd9970b48a6ecd962ba93dd732 - src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoRequestBuilder.java: - id: ebb3ec8cdda3 - last_write_checksum: sha1:c11062d5205b4f6343977c0f7ebd955da5f6b19b - pristine_git_object: 386e1fedb1feb138eb8133ebc018ad2c028b5a91 - src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoResponse.java: - id: 74f6ae116db0 - last_write_checksum: sha1:a636bc848a1c337154626fa127195dc2729f3c88 - pristine_git_object: 4b2059261aa8cdf50594604c809c9341f3eb2462 - src/main/java/com/formance/formance_sdk/models/shared/Account.java: - id: 511c4a72757e - last_write_checksum: sha1:30ffe1edf2f1922b6f712de2fe88bc775efb89a2 - pristine_git_object: 14f3553d9710a4232eba50261f6282becde96158 - src/main/java/com/formance/formance_sdk/models/shared/AccountBalance.java: - id: 99b01a9adf43 - last_write_checksum: sha1:16cf527549521f65b6fc4448f59bc099ab299c7b - pristine_git_object: 781941dfa3217ee94b9a78e38ae9430f05e96f7e - src/main/java/com/formance/formance_sdk/models/shared/AccountRequest.java: - id: 750a524db5c5 - last_write_checksum: sha1:60e7a9a5d739eadf7d9c4a1eb7c282be7568db00 - pristine_git_object: a2951f2f9ac0c3eba84278b1d4863fdf3444f37d - src/main/java/com/formance/formance_sdk/models/shared/AccountResponse.java: - id: f3a4a08fa9c8 - last_write_checksum: sha1:830d391bc6a17ee8d2c840b5e38ff73026eee656 - pristine_git_object: d76774ac0ec8c11b5e230993fe52a1777c4eee5f - src/main/java/com/formance/formance_sdk/models/shared/AccountType.java: - id: c329c1d4011f - last_write_checksum: sha1:a555ec34798588a35a7ccc4df1b4653438089b67 - pristine_git_object: 28506709f5892fb9d8e18871564745e660561a4e - src/main/java/com/formance/formance_sdk/models/shared/AccountWithVolumesAndBalances.java: - id: eac8413ca09e - last_write_checksum: sha1:c1bccc92591b449c586659765c40b3346a072437 - pristine_git_object: 2fe8e21b79c786a49dff6e7bb48addc06284ebe0 - src/main/java/com/formance/formance_sdk/models/shared/AccountsCursor.java: - id: 3909f50e0922 - last_write_checksum: sha1:2ba109fd0d54548e724b6802f7a68333228f6b6e - pristine_git_object: b1f80589abc12cf4148809d7c4b3a9cc029de570 - src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorCursor.java: - id: a93d9d6eaf50 - last_write_checksum: sha1:731b0c724f5119258a7cd1f989db1befae196695 - pristine_git_object: f7579516654eb6ff75bd3314b83f660e221cca5e - src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponse.java: - id: 8a6e6611ab4b - last_write_checksum: sha1:9f4cae26e6b49cb68ba5e8565621f93a01f55cd8 - pristine_git_object: 8fb152197696157e3274502e3dbcc57691679a68 - src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponseCursor.java: - id: 2dff3e83b1c9 - last_write_checksum: sha1:0ec276361cc4a8dea5a664e2b48f324b5f6de079 - pristine_git_object: 10cc19aaa96591e71320e53b6f96916379977785 - src/main/java/com/formance/formance_sdk/models/shared/ActivityAddAccountMetadata.java: - id: b5fc3ad172f7 - last_write_checksum: sha1:e7ef98b87629633722efeeec520b13942997928a - pristine_git_object: f6e6c0596985c9e4347b11b2d4df0281a30ae010 - src/main/java/com/formance/formance_sdk/models/shared/ActivityConfirmHold.java: - id: 91e1df2d7bf2 - last_write_checksum: sha1:d6789f18f325e60202ac9427ab583da9101e400d - pristine_git_object: 47a5c4c64c15f9756ba248cff6d4ce8564d2fd06 - src/main/java/com/formance/formance_sdk/models/shared/ActivityCreateTransaction.java: - id: e1014e65ec75 - last_write_checksum: sha1:e7d6a3c7d4561c46df6c3df5967cabce4a05a4ee - pristine_git_object: 4f2bf222571e65075c15a002708f1aec85bfd35c - src/main/java/com/formance/formance_sdk/models/shared/ActivityCreditWallet.java: - id: 86b1f190d269 - last_write_checksum: sha1:dbc654ccc5c2a5988d56246a9e56e62e2607204f - pristine_git_object: 8a30322fc21506debb7fd190ba80d5408004ed32 - src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWallet.java: - id: 27943b194252 - last_write_checksum: sha1:014b88d158ffec33a5cb563cae7fa009d2db43c4 - pristine_git_object: 0915f0e90c1fc85c204ffad75a84a436c29f3968 - src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWalletOutput.java: - id: 9eff3a737785 - last_write_checksum: sha1:dd9de91e110ed30d8fce219aaef9bbfb9ff2efea - pristine_git_object: c6a9a42ba5825963f7d1a9dcd06f219b7428f61f - src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccount.java: - id: dbefb342ffa0 - last_write_checksum: sha1:f7e72d3d354fb50b93961d6f9854afa73d796014 - pristine_git_object: 563610aef6f5ec0ad1c9efed1e28c1aa1582d7a7 - src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccountOutput.java: - id: e2ac64a61f5b - last_write_checksum: sha1:fe10e7ba63c2145107ae4a2999bb6ed055992d9b - pristine_git_object: 997e052f3f5268d39be2f3939ee78fb664b2deca - src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPayment.java: - id: be16552eaeef - last_write_checksum: sha1:7ca29f79f4506da9b7829c626b98e7cfd5a9f4a1 - pristine_git_object: 1ecda12d0b0fad02aa88c03400ec60c263ffc801 - src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPaymentOutput.java: - id: ef6b37a896df - last_write_checksum: sha1:e7697455638b03a899d51d67b2e0afa13d8d38d6 - pristine_git_object: be1995fa61c09d9502848b3bc77e98e7b9d669b1 - src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWallet.java: - id: 8947f1860c04 - last_write_checksum: sha1:cc94c002f2890f64410949bfa48fe00d90ec8222 - pristine_git_object: e8b23a0cd02fa09fc36c1bb7ae870d5b78686cc7 - src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWalletOutput.java: - id: 5322e53e30c4 - last_write_checksum: sha1:d5cba418ebe57702a699547ea6e8ea78711ec2a8 - pristine_git_object: 753b59ab774969f52613f5b9b75879db5e2fa7d0 - src/main/java/com/formance/formance_sdk/models/shared/ActivityListWallets.java: - id: "371496258e53" - last_write_checksum: sha1:afc529342dd01623c37fc48dfc3bd9090b230985 - pristine_git_object: 22364afc053d3091167f9f0a27f81ba562c63839 - src/main/java/com/formance/formance_sdk/models/shared/ActivityRevertTransaction.java: - id: 64f78c7a2c37 - last_write_checksum: sha1:639caebe7d06397c96f460d90b3243c650f1b8d5 - pristine_git_object: 2978e97b5a59b71bc53192360bafdbdd4a2b857f - src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransfer.java: - id: a78c0af984ec - last_write_checksum: sha1:73e691b31ac9c3c2743a4804b30ebd2c933d5cc6 - pristine_git_object: 4a05b898796589a659826067c4912a53d003a68e - src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransferMetadata.java: - id: c1317677391e - last_write_checksum: sha1:863c80b1ad5b3317a10b4f73405984fc4233b720 - pristine_git_object: fc514300179aefbfacedca25e92e0698b2bde07d - src/main/java/com/formance/formance_sdk/models/shared/ActivityVoidHold.java: - id: e736dda5622b - last_write_checksum: sha1:5ed644f5a3743efd77c6917fc06d8c484034065b - pristine_git_object: 66030f271c009512673b654d09afb5402101bd53 - src/main/java/com/formance/formance_sdk/models/shared/AddAccountToPoolRequest.java: - id: 6f843c0a8528 - last_write_checksum: sha1:1b9d1e03269044b0f63dbd2b544a37678f64f5af - pristine_git_object: 20500eb64dc78cd03e640975470e884c4cc9cbb4 - src/main/java/com/formance/formance_sdk/models/shared/AdyenConfig.java: - id: 8710b8485fd3 - last_write_checksum: sha1:f2f6ea669203369ee4060d4f7c37bfa324107a29 - pristine_git_object: 4b319e588dc774b5ce62067eeda4bc9b5d8d3a89 - src/main/java/com/formance/formance_sdk/models/shared/AggregateBalancesResponse.java: - id: 6a7b6371b687 - last_write_checksum: sha1:6ad139bf93e6a8b20840e4a58a3632c9e02ab192 - pristine_git_object: dfea1fa4d7a0620e9c7abc87d4768bb2200933aa - src/main/java/com/formance/formance_sdk/models/shared/AssetHolder.java: - id: 70429ae69256 - last_write_checksum: sha1:86784033e7ebfdd36c923c70ce8b3d69c40e0328 - pristine_git_object: d771f5c47d8d53e312e201011b9aba7182503977 - src/main/java/com/formance/formance_sdk/models/shared/AtlarConfig.java: - id: 15289aafe9bb - last_write_checksum: sha1:f8b7fb4a296d5831f0587d59e9fbf63d32d8d268 - pristine_git_object: cb9f8efbf1884f2494e6a1a6283d5a7f9d0f7f58 - src/main/java/com/formance/formance_sdk/models/shared/Attempt.java: - id: 704979a3219f - last_write_checksum: sha1:857e7b37085221bcce95b1a8bdd72e405971c9db - pristine_git_object: b65ba31a7039d76c6c4e9719215cce35b3478d80 - src/main/java/com/formance/formance_sdk/models/shared/AttemptResponse.java: - id: 08a278e86e1d - last_write_checksum: sha1:e1ac70abcd48e4e39dda7694f08147612657053b - pristine_git_object: 6f30d14b0c8609b03b14d4583a5ce9e0a2678e77 - src/main/java/com/formance/formance_sdk/models/shared/Balance.java: - id: d575310e9d40 - last_write_checksum: sha1:df2444832cde5961f26363e5b1955e107984d825 - pristine_git_object: 9599c06306ff3f1f5e10eb4568ef0e41fbc10b43 - src/main/java/com/formance/formance_sdk/models/shared/BalanceWithAssets.java: - id: 2e253ba678f1 - last_write_checksum: sha1:3a03ee5367f038defe19251a9e235c70be93a2c6 - pristine_git_object: c5a46cbf69f270ea04d795c8a14deaeff2727ef3 - src/main/java/com/formance/formance_sdk/models/shared/BalancesCursor.java: - id: 1e46150ba40c - last_write_checksum: sha1:6f0dcbfa50db0d4f31768ec6e3d78e1d45f0b3cf - pristine_git_object: 6934568994305d8bff45a0b5d6ee4f89552cb66f - src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorCursor.java: - id: 643a7e185041 - last_write_checksum: sha1:2320479630286a8c299ac4a4e7ff189171f3a5e8 - pristine_git_object: 19b070fe0a3ee6ab7566d54006965c0056667a13 - src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponse.java: - id: 4e3f55f0ec48 - last_write_checksum: sha1:b5f4c64f11b082462782150393eb47a0d9737320 - pristine_git_object: cae2390fc10564b93fe5d0e2c70abad40284107b - src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponseCursor.java: - id: bdb33bc580a0 - last_write_checksum: sha1:523c4b89608126bf1ff9b193b1dc96746404e694 - pristine_git_object: 8d36944649e9a4244ca568a8980f7570588e87ed - src/main/java/com/formance/formance_sdk/models/shared/BankAccount.java: - id: 09953ac74402 - last_write_checksum: sha1:6f181dfee0fe1d11b9adc8ad0b76e2fdef64a867 - pristine_git_object: 290a30edeb65535e1bf8228d534e39aaefca1851 - src/main/java/com/formance/formance_sdk/models/shared/BankAccountRelatedAccounts.java: - id: cc0af7e6bb22 - last_write_checksum: sha1:840ff25f61585be76169dfeec26e2d803c242cf5 - pristine_git_object: 0995b9e4349101b03123f6ab8fb78a78e0bb28bf - src/main/java/com/formance/formance_sdk/models/shared/BankAccountRequest.java: - id: cbb2d8b7d821 - last_write_checksum: sha1:9beab1b799145b81f120c994216a34a2856fbd80 - pristine_git_object: 1de9ae85922504bb09914821a5def59910a0f932 - src/main/java/com/formance/formance_sdk/models/shared/BankAccountResponse.java: - id: 8c1ff6491f6b - last_write_checksum: sha1:1ba08028b62ba4c11c9318e90d33efaffed5b9b5 - pristine_git_object: a18acd3d64b0226ce1f9c92b04a07efa6911c7b9 - src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursor.java: - id: 5226b016103c - last_write_checksum: sha1:624988daae33302fa892a5b69464ff8a7ca1119c - pristine_git_object: 35c4945956dd29952a90b068e40849ce93ce3f7b - src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursorCursor.java: - id: a6b439bfa872 - last_write_checksum: sha1:7e6a506110b572ccac63d2711bd7953bfe67bc60 - pristine_git_object: 1a59a58146b54b7d75f7dd498c2c90df216adfd2 - src/main/java/com/formance/formance_sdk/models/shared/BankingCircleConfig.java: - id: 8dcba772e5a7 - last_write_checksum: sha1:821510213c792789043a86f1433657f82c40af90 - pristine_git_object: b615063e6eea2ebd33550556732c11fa4da579f5 - src/main/java/com/formance/formance_sdk/models/shared/Client.java: - id: 93717ad992c7 - last_write_checksum: sha1:980c684d5f7d60595140963083f6d1404ef9a4b0 - pristine_git_object: 176782ed3acd1b5cf0484f83fbd695082445bb3d - src/main/java/com/formance/formance_sdk/models/shared/ClientSecret.java: - id: 9de9e9143819 - last_write_checksum: sha1:91be5184e1064514406cefb5577e884392ebb4d6 - pristine_git_object: 834b64531e8d200cfe01263e855b832505a6e677 - src/main/java/com/formance/formance_sdk/models/shared/Config.java: - id: 29d00e8446ab - last_write_checksum: sha1:5e340f50fb37efccdae8fd61651aa60c17bea0ae - pristine_git_object: 1528628176c6673ec7c6212149cd05f5f33f3376 - src/main/java/com/formance/formance_sdk/models/shared/ConfigChangeSecret.java: - id: f4291cfc7349 - last_write_checksum: sha1:9b35771a10e2be91d5ef85eddb9a9b5ae0c56622 - pristine_git_object: 066e50fdd1507a1bd6c7ef96e9007fde0e9c36dc - src/main/java/com/formance/formance_sdk/models/shared/ConfigInfo.java: - id: 2720ae20c2dd - last_write_checksum: sha1:74540aa735c6e758f79cc728f342d918192083ae - pristine_git_object: 91f9ecbfff5cb19b53a0183fe7d75013442fd8c4 - src/main/java/com/formance/formance_sdk/models/shared/ConfigInfoResponse.java: - id: ce47d6d9882b - last_write_checksum: sha1:95ab4aad6dbb896ca78160ce4252e0f87f36dd85 - pristine_git_object: 3891fdfdcd5ee50c77b1032e9b4d90c1b25a1d75 - src/main/java/com/formance/formance_sdk/models/shared/ConfigResponse.java: - id: e3a16b382f3d - last_write_checksum: sha1:015d49d8fe2ba126a4cf99df05f4174d3c044a56 - pristine_git_object: b6f1c8832556d65192b0bc09eed17b6b992cc5a7 - src/main/java/com/formance/formance_sdk/models/shared/ConfigUser.java: - id: 9c2bb5ac2fb9 - last_write_checksum: sha1:163c0bd7add948efab62d3f5ba7a76c9b862d235 - pristine_git_object: d0e22f80793f501f12aa5036b6efcf18285d5ac9 - src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponse.java: - id: 84b4173a380c - last_write_checksum: sha1:294f57a86a00744c4965c199b4b70faf4f89e37f - pristine_git_object: 2908a5a03483a63a03e7e0d3247bbd53ecb5bf84 - src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponseCursor.java: - id: db5ea58b8306 - last_write_checksum: sha1:7caf24e7597923680790b57be4b4213395f4a46b - pristine_git_object: 39143f1ec375b5208c56a92c703ef14a1c994e73 - src/main/java/com/formance/formance_sdk/models/shared/ConfirmHoldRequest.java: - id: da6c5d5819ea - last_write_checksum: sha1:9a9a9f142e0be8a0037139613d0aacbb520ed904 - pristine_git_object: b13bc937cc8cb728b9e07aec4314e11000acfa89 - src/main/java/com/formance/formance_sdk/models/shared/Connector.java: - id: 4e7cf77ce098 - last_write_checksum: sha1:b932ea73f31269fdf2b36fe642355d60e2828846 - pristine_git_object: b6e166015b725c0d11421b300b03512fc469a2f6 - src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfig.java: - id: c5dc09b6049a - last_write_checksum: sha1:1f7416c939fab6415341cc5114ab10d296e418e8 - pristine_git_object: 09be13c8d405118f8d4a9726185400b75b73eddb - src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigResponse.java: - id: c7653d8c9f98 - last_write_checksum: sha1:e83c935dc76281777609e25753520f717bffe917 - pristine_git_object: b8b6e9f2350310d3e505ce1d5c3abf435ee96ed1 - src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigTypeIdResolver.java: - id: d44c7bc5c022 - last_write_checksum: sha1:f49685bc52008c47a8d881189574637c68e8c385 - pristine_git_object: 464d6d33c2f4b3274b7faeb9ee7f53a2bb2332ce - src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponse.java: - id: 0b46d8589e83 - last_write_checksum: sha1:156c905280e6ca95969e3f36c1ff5ba3a45d8b77 - pristine_git_object: 520fe1a574cbe10ef0c60a0bf63c0b6555355b55 - src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponseData.java: - id: 36cb6a712ee4 - last_write_checksum: sha1:8a0091c48d90606fd00a0d8899b6880727f84e0e - pristine_git_object: 3c190cc863a8812084b64b92acb86535b89378b0 - src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponse.java: - id: e0987fad5104 - last_write_checksum: sha1:91be0120216ab1fa467035ce03e252b6b2f7dff8 - pristine_git_object: efeda9a738f39776764f046d2703a035e93a327e - src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponseData.java: - id: 1b5bcc2f485c - last_write_checksum: sha1:d54558402ca11d6c7d7105542d347044dbc16eef - pristine_git_object: 87197d5b3fa98303676317ede63fba4043bcfed4 - src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponse.java: - id: 71bd27d84bb5 - last_write_checksum: sha1:1759a4ff52d9d92bb12c157dbb23f6b2459945b3 - pristine_git_object: 26eecc919c356afa93b42d270f48fb3b119ff577 - src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponseData.java: - id: 2238b89c4e5a - last_write_checksum: sha1:9ef46f3cde3b227ead9700d62fc0625d6aec53db - pristine_git_object: 85934a9289602c8f98c449e3a51d176a92f76cf3 - src/main/java/com/formance/formance_sdk/models/shared/Contract.java: - id: 93f913aeb970 - last_write_checksum: sha1:ad8675a32bf11376ae1df009a6d8773c35ee5894 - pristine_git_object: 2c0fb22ac46cf1a619b628d07a26783555848a24 - src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceRequest.java: - id: 177e079a0c52 - last_write_checksum: sha1:0c74eb29955ef7cce430ee880d2bd63c55d41c39 - pristine_git_object: 12d144a1fae89e8fffaa9e033ec06b4388f4b667 - src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceResponse.java: - id: 5811143d2444 - last_write_checksum: sha1:d40d4254af83dd9ec7cd154a07245ccb469e0d7b - pristine_git_object: 69ee6e021eef88cb7d47310e9e99e474e40447dc - src/main/java/com/formance/formance_sdk/models/shared/CreateClientRequest.java: - id: 9de1c7801db5 - last_write_checksum: sha1:5ccb362c0895451458b1a175f4c57ac25c4b1de7 - pristine_git_object: 7958a79c37bc4a202357e625971fd87946cddd71 - src/main/java/com/formance/formance_sdk/models/shared/CreateClientResponse.java: - id: 2dc39c7d3ef9 - last_write_checksum: sha1:26e44a5bda816a7840bb23fa4248c89315ae3323 - pristine_git_object: ebad2448f9a9fb420f36102f970665c01b452c5e - src/main/java/com/formance/formance_sdk/models/shared/CreateSecretRequest.java: - id: 3d4ab2eb6cb0 - last_write_checksum: sha1:f2140852eded66ec4f4669fdf5825e7dbe174bb2 - pristine_git_object: 9c352cf89ce25b8b64f72d516d2ee6004fe8b6f4 - src/main/java/com/formance/formance_sdk/models/shared/CreateSecretResponse.java: - id: b719d9c92044 - last_write_checksum: sha1:c08dc5fe26372beda98a6443a8093a5ea788d615 - pristine_git_object: aae208abfa8af3cb502d6d132932e4a076e493e3 - src/main/java/com/formance/formance_sdk/models/shared/CreateTriggerResponse.java: - id: 7905f8a90ee5 - last_write_checksum: sha1:ef1a6d144aca7ee373e6e09b10466c8af565dfbe - pristine_git_object: dcff731a9f5cc821967eb31d1e7dd8a154e623a1 - src/main/java/com/formance/formance_sdk/models/shared/CreateWalletRequest.java: - id: 2f876709c462 - last_write_checksum: sha1:cf44ad325dc4a9bfe13edcd7dedacdae70f859b9 - pristine_git_object: 1946b4f597b453ce74dd4ec970bd5b1ac47b5484 - src/main/java/com/formance/formance_sdk/models/shared/CreateWalletResponse.java: - id: e34e3e695c8b - last_write_checksum: sha1:3759a9c536aed343266f2261eebd5108e9124e57 - pristine_git_object: b1fee3512e8990354af4bb514552ec7090fca626 - src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowRequest.java: - id: 9372ef3f45e7 - last_write_checksum: sha1:2c1182722c1a108986e32f41a7aeb9ce9cc4fda5 - pristine_git_object: 5a21882bf56e050a02b36925aa3c7762b470809d - src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowResponse.java: - id: 5ed551892eb9 - last_write_checksum: sha1:9ad64b02d14f0963d58060a4ec69ba8ecc34c336 - pristine_git_object: c55314748f06fe417416f0449b59317890b9ce9b - src/main/java/com/formance/formance_sdk/models/shared/CreditWalletRequest.java: - id: e4eb2bb81857 - last_write_checksum: sha1:8db1ee27bf744732240272924ebe807f079b2fb4 - pristine_git_object: 8be69a2d2aa8e71f1618e739654b8255a220ce7b - src/main/java/com/formance/formance_sdk/models/shared/CurrencyCloudConfig.java: - id: f106ab5e7939 - last_write_checksum: sha1:8ac16a4cf725c2d9a55f7a858df2d6e8039bb6a6 - pristine_git_object: 0c1ecf605cd81e26c30c21171f9376848d81316c - src/main/java/com/formance/formance_sdk/models/shared/DebitWalletRequest.java: - id: 0038c5b9664d - last_write_checksum: sha1:a24b3602bb18ca5ab62ee72da1ccf908c624931b - pristine_git_object: df219a32bd49c52d40eb13bbb0605c089345ed4a - src/main/java/com/formance/formance_sdk/models/shared/DebitWalletResponse.java: - id: f806e92e305d - last_write_checksum: sha1:5d3b2bfc7e63b5214c3270243cbe958c65454d89 - pristine_git_object: a669b0b94d023e3318bf2301a032c665efe1ed6d - src/main/java/com/formance/formance_sdk/models/shared/DotSelf.java: - id: 7ed5216ad095 - last_write_checksum: sha1:894b693025f1236a6925ba39dc39162a95355013 - pristine_git_object: a95b630b90c02d0240f075dba5012ad52c2f52a7 - src/main/java/com/formance/formance_sdk/models/shared/DummyPayConfig.java: - id: 50e4b390dae6 - last_write_checksum: sha1:67ab1aa8b3639827ab7b4d70bcdd0d255fec8c39 - pristine_git_object: f43c8a8bc2c859c26e0ce3605fd4e1e804270bdb - src/main/java/com/formance/formance_sdk/models/shared/ErrorResponse.java: - id: c9a494b2d6dd - last_write_checksum: sha1:71daab199eb3ce9088eb32ac127ea3160ce0a00b - pristine_git_object: 1bb7cebc2f087c5c49f6a4b60b6155c4ddeb7d51 - src/main/java/com/formance/formance_sdk/models/shared/ErrorsEnum.java: - id: 7842a6a34d8e - last_write_checksum: sha1:817af699e45a11f12740576defedeb19ab3974e6 - pristine_git_object: 95361c6dcd048f09d8ae761c232b42802d2006e7 - src/main/java/com/formance/formance_sdk/models/shared/ExpandedDebitHold.java: - id: e6fc6dc8cd94 - last_write_checksum: sha1:ca83ee4618eba7d64038c95dbe12778168edbbcb - pristine_git_object: 05ccf8d50d6fbcbbbe07c6f26c6f1df00f3ca96c - src/main/java/com/formance/formance_sdk/models/shared/Expr.java: - id: e36190daba27 - last_write_checksum: sha1:0fd0c1bdcb03bdbb8137ea32247aa32b06effc2d - pristine_git_object: d5a0128a8a8d3fefc5285af012af16dd4ecc7b0d - src/main/java/com/formance/formance_sdk/models/shared/Filter.java: - id: cd40267ed2c7 - last_write_checksum: sha1:ee561eb7342d8ffcb9610f1f3c65a888adc42629 - pristine_git_object: ba7fedb7b93cf7fe44cd8d27f1b6c4841cc1b7cc - src/main/java/com/formance/formance_sdk/models/shared/ForwardBankAccountRequest.java: - id: 2695464be8fa - last_write_checksum: sha1:e02a9912f2496d740c647f773407bd7f70ffa176 - pristine_git_object: f7e49e1dc5e02e70bc32dbb0752d2136f3ac22bc - src/main/java/com/formance/formance_sdk/models/shared/GenericConfig.java: - id: 28e406e19a97 - last_write_checksum: sha1:b36fe07a9d601c8927d33f81ba5def8489b7fe4a - pristine_git_object: 752ec23edf5924722b59cef87a143bfcd40a8c08 - src/main/java/com/formance/formance_sdk/models/shared/GetBalanceResponse.java: - id: ea2a6c000098 - last_write_checksum: sha1:a78e5a1cc7df5b533b9e93e72372fbf5e5b01ff9 - pristine_git_object: ba7c8e2bc8287d5b88e007b5dd492911d50e7c7a - src/main/java/com/formance/formance_sdk/models/shared/GetHoldResponse.java: - id: 336ca6d27dc7 - last_write_checksum: sha1:c3938a1e7d22b4baafe8d693c000a34b939896a2 - pristine_git_object: ccd0a8ed07b8b248584417fcdccf6c68fbd6f938 - src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponse.java: - id: 0f0688a1970c - last_write_checksum: sha1:c50431b5ca40390e8191ad7e1504a755e306e39d - pristine_git_object: 3ded950ac99c02a359bf7ec88511c7506fc2aaa9 - src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponseCursor.java: - id: 9f23b9e35c3c - last_write_checksum: sha1:d49a3a49a6cae08abace93a551b24f0293205678 - pristine_git_object: 6e8cf2fab9c1becef0d844a752e2830c1a6cdb98 - src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponse.java: - id: 887058983a5d - last_write_checksum: sha1:bd652e18872f6748fccad39e2648d3391bb9daaa - pristine_git_object: f97565980597cccd32a9adb7f8e5e5f4e7013121 - src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponseCursor.java: - id: 61ef77ec2ff1 - last_write_checksum: sha1:ba982e29ac0058cdf747ef26d48e5b1fa0dbfd21 - pristine_git_object: 5fbd56dc09f41f5d86eb5523a126e999e3b8d909 - src/main/java/com/formance/formance_sdk/models/shared/GetVersionsResponse.java: - id: ab390f307e68 - last_write_checksum: sha1:542455e59331f148b5ef0591a0510ada8de62744 - pristine_git_object: 771cda4225bcce59aec24abed0328918c7f80d0d - src/main/java/com/formance/formance_sdk/models/shared/GetWalletResponse.java: - id: ee56053b06fd - last_write_checksum: sha1:1b3821553d5f84fe49cc965346b07da24cf43b72 - pristine_git_object: 99fa683b1dda08bf1372f6ca5612c6e90f0e7da6 - src/main/java/com/formance/formance_sdk/models/shared/GetWalletSummaryResponse.java: - id: bcbf0f4c0c52 - last_write_checksum: sha1:f29a1d63c5a6bd50dda14a6ea13c2b4d10e03a5b - pristine_git_object: 634bd0d94ae466a27388c623f717940b58b367e1 - src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryResponse.java: - id: 246846f47036 - last_write_checksum: sha1:d3cafb0153cb91fb9cd3fb6edbdfe86ada5454e1 - pristine_git_object: c0270c882b81d3ff66e992399d027eb530f0cb0d - src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryStageResponse.java: - id: ce1d70da5223 - last_write_checksum: sha1:a56911a397fa9998ea0c7fb6d0b6fbdc2234788f - pristine_git_object: b4049ecbe6b5189355ccd543d29c085dce959b61 - src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceResponse.java: - id: a0cebd91e212 - last_write_checksum: sha1:4252677471fdb84f64ab8c900b2bd519cba674c2 - pristine_git_object: 5efc5537eef2932c144b5880523ccdea37ebe7c5 - src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowResponse.java: - id: affdb65e2373 - last_write_checksum: sha1:c20cffb82a89d9b72457cbace1b125e453b276e0 - pristine_git_object: 45687537540bbbad54f98a4bab83ee6ba33b57e3 - src/main/java/com/formance/formance_sdk/models/shared/Hold.java: - id: bdf8c64b7cbf - last_write_checksum: sha1:bf325e8720ba6fc834b505b6303a3aa0e1e0b919 - pristine_git_object: bceaa65d7d84550aa2098fec95e1b09ac5082f3e - src/main/java/com/formance/formance_sdk/models/shared/LedgerAccountSubject.java: - id: 3d2555b1acb7 - last_write_checksum: sha1:a3711f28702b76b3c748b66c998bffdee681a591 - pristine_git_object: f8147c6facb2ba3095823a9de041bf0741583351 - src/main/java/com/formance/formance_sdk/models/shared/LedgerInfo.java: - id: 1693de5c660c - last_write_checksum: sha1:4e1e728e5297c9048bc11ce509a261206c49bb01 - pristine_git_object: 666cb4f4140ee15875c8a090944b5d17aadadd59 - src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoResponse.java: - id: 63f2bdd4ecca - last_write_checksum: sha1:fc86362619dcf3abfe4310a8629ec4ca86b7606e - pristine_git_object: 2aa31efdd6ea092c98837a5903b47971d103e811 - src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoStorage.java: - id: 36e510715958 - last_write_checksum: sha1:540c7eaa25ee85b1d0a317d96d46e34685c310b9 - pristine_git_object: 02156afe1a6234ff89285b4e3155a3639e708e48 - src/main/java/com/formance/formance_sdk/models/shared/LedgerStorage.java: - id: 7e24adad8cba - last_write_checksum: sha1:c2208e063b3c26690dbd55e4f1dc5b82a1a29af2 - pristine_git_object: f443b9f3b14c3e652d70a5bf5c7e3ea1831dfe65 - src/main/java/com/formance/formance_sdk/models/shared/LegacyPaymentStatus.java: - id: 739208ac35ac - last_write_checksum: sha1:da240dee712b3043895926c275be11cfa867c1fd - pristine_git_object: a3dd7117407c7d9670c2935942a44c007da60e8e - src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponse.java: - id: 8d5a2ca59fdc - last_write_checksum: sha1:32e35128467637c8440e811bb793a049b4402a4a - pristine_git_object: a5dbe166e0ecdca02e9de1e91d3f6eb1978b2647 - src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponseCursor.java: - id: 2a03efbc8382 - last_write_checksum: sha1:9e674666dbfeefc72716c44572fc6677f98b80b8 - pristine_git_object: 6808f92942a82d8de92c4d1fc81334463c054961 - src/main/java/com/formance/formance_sdk/models/shared/ListClientsResponse.java: - id: fdb3a2d00063 - last_write_checksum: sha1:1108a72a521f74a9b639586a35d8c1d38a8739ae - pristine_git_object: 58040cd005adc7af2b8991694b47e23d236388e9 - src/main/java/com/formance/formance_sdk/models/shared/ListRunsResponse.java: - id: c9579fd327bf - last_write_checksum: sha1:8570d1cff729fe558d39bb129874d95c1143c713 - pristine_git_object: 1629524ff66f7dab0134cbe5eeb08b2972273272 - src/main/java/com/formance/formance_sdk/models/shared/ListTriggersOccurrencesResponse.java: - id: e95d96fbfd5e - last_write_checksum: sha1:0f5d974c83137c89e5587e5e399da37b38fae02e - pristine_git_object: 6bb4c9128f2428d42d0cff510ced12ae597eb9fa - src/main/java/com/formance/formance_sdk/models/shared/ListTriggersResponse.java: - id: b42f31cd4dd5 - last_write_checksum: sha1:83f85485621150dcc5559a9142b8f94e67a66fb4 - pristine_git_object: 820537f2cc95af7762b8dca45be2ddc7df4f28f7 - src/main/java/com/formance/formance_sdk/models/shared/ListUsersResponse.java: - id: a782cfb73604 - last_write_checksum: sha1:39e636daf53f3f89ba6e33720d396ed08ed57903 - pristine_git_object: 1a3e66c01d957e8cd406ca2ddccbfda555065154 - src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponse.java: - id: 30c477d2970a - last_write_checksum: sha1:2ef1c656709bb3622e9deef7e810e2e14f37acd4 - pristine_git_object: 9933bc6d2bcf94b707f6910987456d8747fbe63c - src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponseCursor.java: - id: 2737ba491ea1 - last_write_checksum: sha1:76f54d00f6d1119d2a10a893faba2d317a1c31ab - pristine_git_object: f6655d2e5adf6aa364195851968bc59c1790bf5f - src/main/java/com/formance/formance_sdk/models/shared/ListWorkflowsResponse.java: - id: ea95ab82cc2a - last_write_checksum: sha1:d324ae5d146c95aac5157aa0e9ee798706c253ce - pristine_git_object: dc4492516b77be442586d531eab53038b3447c23 - src/main/java/com/formance/formance_sdk/models/shared/Log.java: - id: 8615c506e4df - last_write_checksum: sha1:bd2c240e95f1eb06e20a9277a26665d85823656c - pristine_git_object: b8ca9fcaca62d7c9c17087f93a43f16148df95f7 - src/main/java/com/formance/formance_sdk/models/shared/LogType.java: - id: adda510c9904 - last_write_checksum: sha1:4ab594c34a436f96e5eb7d8289be4544eecd14dc - pristine_git_object: b2172384520b2b36c17d9c832f468d70aa76563b - src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponse.java: - id: 9da51a070105 - last_write_checksum: sha1:a4da4cae77cd220db0a9924155b055be2fad074c - pristine_git_object: 2ead83e4556ea25cee82f1b6010e6efc1883655c - src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponseCursor.java: - id: 38382f7a9160 - last_write_checksum: sha1:a3b512ecbfd78651bb14a1e7ffa8d8412df72f1a - pristine_git_object: 5787818523f921c38e2efd2cbe8e8a852fe7aac0 - src/main/java/com/formance/formance_sdk/models/shared/MangoPayConfig.java: - id: 6d3df4af87d9 - last_write_checksum: sha1:2ff89cccb4b5c7f9982615a4111a684e29882e72 - pristine_git_object: 7519720d917892b8a2282678bc2bf083e879601c - src/main/java/com/formance/formance_sdk/models/shared/Mapping.java: - id: 57b5a2865159 - last_write_checksum: sha1:51f71c3888f854da80a4863f55a1c92e97fd5552 - pristine_git_object: 6ce36e62e1b73e297f4651fbf78fb29302b464ec - src/main/java/com/formance/formance_sdk/models/shared/MappingResponse.java: - id: 4615d9475bc7 - last_write_checksum: sha1:05d81cc1901357c068d171bce31e2b7c58243259 - pristine_git_object: 4cf38bad574f93795d1255d7982bc8b0c6bf3ad9 - src/main/java/com/formance/formance_sdk/models/shared/MigrationInfo.java: - id: dde4fb77c772 - last_write_checksum: sha1:02100c558d7cfd5a19a4316bd5fbdd891f853a26 - pristine_git_object: c038b888d99f659ac5bfa416a334baad8ba85a5a - src/main/java/com/formance/formance_sdk/models/shared/MigrationInfoState.java: - id: c291137fcc75 - last_write_checksum: sha1:95ae94c10a0d5a934c8fc8710fde31cee4697d84 - pristine_git_object: 3f4d3963e5fe8198d11f16b6ea594b5d689d0380 - src/main/java/com/formance/formance_sdk/models/shared/ModulrConfig.java: - id: 4376b3888812 - last_write_checksum: sha1:e87acf4e13419908c2d1f0ee96a706ff9f9b01c1 - pristine_git_object: 920a336dc0b807a8c11cd342e3c32205c9e2acb1 - src/main/java/com/formance/formance_sdk/models/shared/Monetary.java: - id: 9bbe4b38c302 - last_write_checksum: sha1:c04c978e74a1d9b7ab7842850835519c6ad8d94d - pristine_git_object: 310cba828b881dddd01716e90cb1ed985d83c1f0 - src/main/java/com/formance/formance_sdk/models/shared/MoneycorpConfig.java: - id: 5cc42a90134e - last_write_checksum: sha1:ae84289241ad45f68eba3b9737714403c554670e - pristine_git_object: e369dd7b3785c6c8eeb1ba54ead4c56394616957 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationAccount.java: - id: 87da88ecae0f - last_write_checksum: sha1:c15bdd855fe1c2c57676bb1e008ac2dfb32896da - pristine_git_object: 2dabb3797bbbbae363056c2b8a0029056caeb8c1 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationConnector.java: - id: db9020bb1335 - last_write_checksum: sha1:fd1af0bc9cd71b037c0a720fd5bc090f71c2c18d - pristine_git_object: 5d3da1c071e2fa38fbd56eee4e8b813123f4cf66 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationCreditWalletRequest.java: - id: 23b971b9d70e - last_write_checksum: sha1:cbe83e493c743b89d00e769f4e1266199db4ad5d - pristine_git_object: 117eb9a2da2215476b62ad59e19f10c36f4da98c - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationHold.java: - id: f8705f8d6cfd - last_write_checksum: sha1:420fd1f8c0bd27fade1b4bc4bd4a38ac724354fd - pristine_git_object: 20c2fa581fc7eb5e9d0e46ef99601e9d17a871ad - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponse.java: - id: 0599a478b911 - last_write_checksum: sha1:1edd9764fd533636f36724001d7ff57e8662c598 - pristine_git_object: 6ce8ea0b03194f65ae967ae74e25e2e12753f445 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponseCursor.java: - id: 1ee5fed47e24 - last_write_checksum: sha1:fdace4b9994364025afdc04a429412469cd878f0 - pristine_git_object: 82489dc55cdcb7be373d5cff6d48ce416e3c4f53 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPayment.java: - id: d064d713ca47 - last_write_checksum: sha1:9a2dd86eb8afcc8d730fa52bc128eeeb62e77db2 - pristine_git_object: 262c618fa50f699fd0084bd0f977176209c9f129 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustment.java: - id: d7938e87f1bb - last_write_checksum: sha1:ca6b8894261a72a01f49f51f2c6dcbdd580b1596 - pristine_git_object: 0a20fcbf22054aef6c6361c6becb8dfd376af6c5 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustmentRaw.java: - id: d31560c2bdcf - last_write_checksum: sha1:03d49ad7f7c0385447546f0b9d87491e194fe239 - pristine_git_object: 746bbe55da4340b9bdaca62ec2b1c1bbade84232 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentMetadata.java: - id: 0581f2df0a69 - last_write_checksum: sha1:346fac9292cd24a60f138ab82d6bbaf8a1371435 - pristine_git_object: 03a44a11e5d2fa287b152dcbb8f0aa9a2986a13a - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentRaw.java: - id: fb5b4b7e56df - last_write_checksum: sha1:e75cdf4fbb7370c97d8c5924c3b034914597e826 - pristine_git_object: a0199a66254d4fcfae6640334f9fc08b4ba826a5 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentScheme.java: - id: f5362e0ba70d - last_write_checksum: sha1:635ef9b7d194c84743cb3c55a29539215e1f4f92 - pristine_git_object: 0d26564bbe219d960a8ba485650da6bd89d0ea34 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentStatus.java: - id: 9d7e7f12427c - last_write_checksum: sha1:8a8e0db3397fbd02fb1a7e0d91c1a036bec4dc3f - pristine_git_object: 2cb20da5dcc39cdfad4808393d4ab206003ed020 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentType.java: - id: 015e0e240955 - last_write_checksum: sha1:700d2dd8299bce183ca2ed947a2c9651015fe875 - pristine_git_object: 854743cbe29825f5076ad486f7710b0b487e9885 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransaction.java: - id: 7a5b48ce1f99 - last_write_checksum: sha1:58c2c3c2248fabbb03b25afdc645d32555ca4dcd - pristine_git_object: d1a04de215cb082658b48726e25ac381b27cc6d5 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransactionScript.java: - id: bfd2dd51dc18 - last_write_checksum: sha1:e91a7ed0d264cdbd2f40a44c9c576b3c6eedd880 - pristine_git_object: 46095584e7fe535998b890c39cf11986812bee4a - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationTransaction.java: - id: 74e7fd83d3e5 - last_write_checksum: sha1:f8195781f71594a536f3f4d48ad9f9797d203421 - pristine_git_object: cce95c9de3b76117917134752cea044eae955aa0 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Account.java: - id: 07ff5c96a43d - last_write_checksum: sha1:f35e06a05f4523eaec23557ade2aa3bad44ee002 - pristine_git_object: a70559ad6125d61f1907fd0654d14a190e85c282 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransaction.java: - id: 732f4e2e3104 - last_write_checksum: sha1:ae483eae68ebf158168b88630247d89f63996b65 - pristine_git_object: 7e944529d19459f9563d7fbfea7da1275f5be24d - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransactionScript.java: - id: 6ccb94563666 - last_write_checksum: sha1:606792a3aa2b6e28e5a623eb2c7fe7987eb2c985 - pristine_git_object: 3fbe22ac607a038b92a45f4266f6ba294514ba8d - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Transaction.java: - id: 197a5f303858 - last_write_checksum: sha1:744c29ed36c4a701795ae1d949d19d23fa836858 - pristine_git_object: 56c7a5f79024ddf8f7e3f2ae012717a484f1bb48 - src/main/java/com/formance/formance_sdk/models/shared/OrchestrationWallet.java: - id: 6d64eb6a55dc - last_write_checksum: sha1:4cc549c5e8d2b81d482cd34708a4d8c87dac87cd - pristine_git_object: d67bb37427016f73263d9152f9f783ac27938f22 - src/main/java/com/formance/formance_sdk/models/shared/Payment.java: - id: 7d7625d4c6a7 - last_write_checksum: sha1:3e9538fa467d32eb62db173080ebff37b0385067 - pristine_git_object: 415d2e7b60c1feea616ea5342ee682f2605d0377 - src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustment.java: - id: 4cc429279f16 - last_write_checksum: sha1:219e9a10839f8819124d60600bd458b688bfe049 - pristine_git_object: 9fc2e45eb48ec7ca453e85a786d4b395c3d7fb1b - src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustmentRaw.java: - id: a2a86806b59b - last_write_checksum: sha1:8e8c618393ae9ea29f91fb58737ec5b5db60618b - pristine_git_object: eb70e1175ed57c403bc8b00c0c7d94ceae4bc884 - src/main/java/com/formance/formance_sdk/models/shared/PaymentRaw.java: - id: 50b8c790b26d - last_write_checksum: sha1:bf4bdf1a2406a67b4fc6a6d3faa4e97e09849bf6 - pristine_git_object: 8c0bc13b0e13312b3801005d3e4a5e8479287416 - src/main/java/com/formance/formance_sdk/models/shared/PaymentRequest.java: - id: 89ea577b37bc - last_write_checksum: sha1:9daeb9ffe1e07c9d862d7e6fe73d95ed2318f651 - pristine_git_object: 986a8183cc587d25b65fb9f91e47f28349bb533a - src/main/java/com/formance/formance_sdk/models/shared/PaymentResponse.java: - id: 0b8095287e24 - last_write_checksum: sha1:b16da22771a8b65e2a08878ec4ae771abcb6bed6 - pristine_git_object: 7d5045f918b9a4f63e00f958c52dd9bb637d68e7 - src/main/java/com/formance/formance_sdk/models/shared/PaymentScheme.java: - id: 2acccc4abbb7 - last_write_checksum: sha1:b101aa3c689354631ca4a8c7062587a558ee9ee8 - pristine_git_object: 2b7b48b6f340a8295b8fb6daf083541997421bef - src/main/java/com/formance/formance_sdk/models/shared/PaymentStatus.java: - id: 51b5f37a626f - last_write_checksum: sha1:4679a00da8c9fcaf48ab650500b671d1bf247f21 - pristine_git_object: f93827aad7f6b51969b2b09ea8e78ff41a9a7eb4 - src/main/java/com/formance/formance_sdk/models/shared/PaymentType.java: - id: b4d11ddae14c - last_write_checksum: sha1:72b1056778d830a7d69c6d913f680b431d6c2082 - pristine_git_object: f100c8931bd8f3b1b480757e50d59d3593c8393d - src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccount.java: - id: dc07153bdafa - last_write_checksum: sha1:c0aee8a7583f66c759626b4c34b01304b0920744 - pristine_git_object: 91c9b3898a43274d2427bf405382f6fce4532ea1 - src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountRaw.java: - id: 0b07618a7c01 - last_write_checksum: sha1:0366ca4f800cd0cd50876b7eb54abaad32273c23 - pristine_git_object: 909225de88549267a4e4475dd5d680f92c60a9c8 - src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountResponse.java: - id: 99de319739a6 - last_write_checksum: sha1:11bfcc981a7c1097397684a08d69e4f7c6b38754 - pristine_git_object: 7712e6e3d7e107dc32040a878bf79b8da3ad24cf - src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursor.java: - id: a98939ff341b - last_write_checksum: sha1:e44277cfbce423cf7e7e0229b8dd5308d5ef2f6b - pristine_git_object: 21f95a1866c7b2187e099cb0c6db186f54863bfb - src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursorCursor.java: - id: 16a4a8f1a3ee - last_write_checksum: sha1:0cbb5572c551d8b44d6cb9197d1adeccf5e08635 - pristine_git_object: 732172666401532428fee2773706fa3df300f25c - src/main/java/com/formance/formance_sdk/models/shared/PaymentsErrorsEnum.java: - id: 652bab5435aa - last_write_checksum: sha1:6f5388242639d40f9f7eb339ad7268722b32e47e - pristine_git_object: 09e1bbc4ef309c3ba1da296c5b211455387bc41f - src/main/java/com/formance/formance_sdk/models/shared/PaymentsServerInfo.java: - id: 1a46007e73e1 - last_write_checksum: sha1:f9d9ea28d4e62bd629e26dd0e0e38699b44ce460 - pristine_git_object: ff6426f23d12a952d769daff531aa4eeea3372cf - src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponse.java: - id: 4702f92faee4 - last_write_checksum: sha1:792c897bedea3759a02e063a3fcc4af08a8154a1 - pristine_git_object: 05502d8cbab5e2c01038c95c0b64bcfb3db8601a - src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponseCursor.java: - id: aaecfcf9cd61 - last_write_checksum: sha1:7ddfdafa43fb5e361b9eed95652748fc4b3ccbe3 - pristine_git_object: f8a63096c91f32687886393426f0f4b6bb02569b - src/main/java/com/formance/formance_sdk/models/shared/Policy.java: - id: eda458e3d489 - last_write_checksum: sha1:51c8108fa3d6982eaf643c3def7cdec2ade304ac - pristine_git_object: 01180c6f678800f33fc48a73aab381541178d040 - src/main/java/com/formance/formance_sdk/models/shared/PolicyRequest.java: - id: 3103a0dd8868 - last_write_checksum: sha1:fda8b81a770b5a5a5780504ed6121624eb3fe87d - pristine_git_object: d8af1f133c10d7ef50f3635919e246aca36d7522 - src/main/java/com/formance/formance_sdk/models/shared/PolicyResponse.java: - id: 0d8aef9794e2 - last_write_checksum: sha1:8beeb835f4253fd149ddce13b808f985b0e29602 - pristine_git_object: ffbdc3df3723eca28ed9168a1c55a91b25642837 - src/main/java/com/formance/formance_sdk/models/shared/Pool.java: - id: 8a78974808f4 - last_write_checksum: sha1:709af1129b9aec041bf4f8daafd8d021cd1a28f4 - pristine_git_object: be4bd6fcbd3946cf591eccf9d2a896402ecb2b3f - src/main/java/com/formance/formance_sdk/models/shared/PoolBalance.java: - id: 31e133852166 - last_write_checksum: sha1:c594572e4280e90f7d38f23c765168606195a2dd - pristine_git_object: 6a0ac295030381bff647ec5aabdd91d8ae92e0a0 - src/main/java/com/formance/formance_sdk/models/shared/PoolBalances.java: - id: 8854102afe9d - last_write_checksum: sha1:4752864dd247f1eec61abc3c975fd4f87f33ff3d - pristine_git_object: 9dedaa83375e2c52d355a4a76ee8e52dff353970 - src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesLatestResponse.java: - id: caa15f0bbda0 - last_write_checksum: sha1:132e391595e4b68dae15b95fdb3eb810141ae871 - pristine_git_object: 88b8f8173e5e7b3f26efd904e9ab52b4b63fa289 - src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesResponse.java: - id: 61a1846200fc - last_write_checksum: sha1:c85b94be22f05366500a2f9e315e80380c32dcce - pristine_git_object: 16c1e022fff72398764c8b7d551098aa3574c6f8 - src/main/java/com/formance/formance_sdk/models/shared/PoolRequest.java: - id: 5097fabefe28 - last_write_checksum: sha1:a030c53f306e8fa9e20778849c5703322295237e - pristine_git_object: 72632e862e5fc52be30e4359ccea5494fe85eea1 - src/main/java/com/formance/formance_sdk/models/shared/PoolResponse.java: - id: d69a1c7e04de - last_write_checksum: sha1:f60e0815ca0773e27be9ecd2033f79bd6b447334 - pristine_git_object: 91e6cf2192f9cc91f2d082e07ccec82f4ab67a33 - src/main/java/com/formance/formance_sdk/models/shared/PoolTypeEnum.java: - id: ff84bfc20eb2 - last_write_checksum: sha1:6f16242361531f4d983c9e6cd085ca828b4167b2 - pristine_git_object: cc3d4ac551fe77d4a30e26e63a97f8fe73dedd3e - src/main/java/com/formance/formance_sdk/models/shared/PoolsCursor.java: - id: a58577d76d13 - last_write_checksum: sha1:c4f668412ed41449cd43a6c416ffb39b75236c74 - pristine_git_object: ad472fcbbc9c9ff05c0b5e4b2fc78563007cb766 - src/main/java/com/formance/formance_sdk/models/shared/PoolsCursorCursor.java: - id: 36d009716290 - last_write_checksum: sha1:d1e4261d575f9db9b234cb8180ae105056b3d8a6 - pristine_git_object: dbb74ea0994803b2d6722f7effe1b10ef39d7136 - src/main/java/com/formance/formance_sdk/models/shared/PostTransaction.java: - id: 06511bffee84 - last_write_checksum: sha1:91ce1574764ddf9af9722628d87843bcde85059e - pristine_git_object: 802a890a3093b599628888a1b631995f41af3ee9 - src/main/java/com/formance/formance_sdk/models/shared/PostTransactionScript.java: - id: 2cca5bc5d996 - last_write_checksum: sha1:db301fcecc93238a179f376c15bc25e3ad99f696 - pristine_git_object: fed743b7fece28b4b53b8da941662f2531623261 - src/main/java/com/formance/formance_sdk/models/shared/Posting.java: - id: 8969a501c0a9 - last_write_checksum: sha1:0f27384cb321904b049033cd73e4d6ccd76b3ac7 - pristine_git_object: 5cc4f8c17ba2f0b272b4078870edd4823ced7401 - src/main/java/com/formance/formance_sdk/models/shared/Query.java: - id: 5d889c879c58 - last_write_checksum: sha1:c2dcad95964e312b0e23fd3ee51bc447fbe7abc6 - pristine_git_object: 717e46178b05181b93f959cb7dfaf25d53c91638 - src/main/java/com/formance/formance_sdk/models/shared/QueryRaw.java: - id: db582677e1fd - last_write_checksum: sha1:2e46876a6bd73d339a1f13fac0b00d0a5934a58a - pristine_git_object: 1ffc8d5de8db0b9a1b07d70c7802baf9ca085662 - src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateAccountParams.java: - id: ab2d48961210 - last_write_checksum: sha1:f456d18bef9a77843d3bb52f74234e07d91a0cf3 - pristine_git_object: 67749d1e7460a5bfae780817ebd2b2c1019ccf67 - src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateLogParams.java: - id: b10db6b800a7 - last_write_checksum: sha1:d614804935a1f2624e21b99e089a96118de7cb7a - pristine_git_object: 10369307f05e623c5847ff10b90270321ce63e46 - src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateTransactionParams.java: - id: 5dc80e3c9d0b - last_write_checksum: sha1:071bbf8f0ba250e89d1fbe6c9a1d504b59b7c668 - pristine_git_object: 622496964b1faa0dbe95684311f227fc2e4ba74a - src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateVolumeParams.java: - id: b5510db61b8a - last_write_checksum: sha1:733268cdcef485de946d9250645a5a123fd12f2b - pristine_git_object: bfb929566431ea3ed8211b90b4608f4b3ba30a38 - src/main/java/com/formance/formance_sdk/models/shared/ReadClientResponse.java: - id: c40c5356a017 - last_write_checksum: sha1:dd4a166249882acb85a965aeffcf16ad597aa653 - pristine_git_object: a1b31c941cbf68247facbd89ed12170c46416cea - src/main/java/com/formance/formance_sdk/models/shared/ReadTriggerResponse.java: - id: 0f78b1c959b4 - last_write_checksum: sha1:19bf05b9fad498b65109b17e31c4a551942dab6d - pristine_git_object: a1e2b5eb1e243df2d6694a271ee34f7148654156 - src/main/java/com/formance/formance_sdk/models/shared/ReadUserResponse.java: - id: 726e33df04a1 - last_write_checksum: sha1:4b75d5284e397955d2e4b8288717bd1b5d218a20 - pristine_git_object: 88a1c7a4e2f1c45af060687b71dafecdcd57c8c6 - src/main/java/com/formance/formance_sdk/models/shared/Reconciliation.java: - id: c89093adca92 - last_write_checksum: sha1:75d547f0c2002663f1e868dba4daaebbbaa0c9bf - pristine_git_object: 7fe2c9beb9c6f002da0f9bea1b5f23b54507d1d6 - src/main/java/com/formance/formance_sdk/models/shared/ReconciliationRequest.java: - id: fdd5306b2ffe - last_write_checksum: sha1:307d64f88bda995c018a0f7c7ff0cb62dd80dd57 - pristine_git_object: d7b1e8ea8dbe654c4d73c6806fe06ca8b80a0366 - src/main/java/com/formance/formance_sdk/models/shared/ReconciliationResponse.java: - id: b0fa73cf3a06 - last_write_checksum: sha1:330822c3f91d09a8d09bd3a6ada38a5b7c088e3d - pristine_git_object: 49363efc317fdfd63749856925fd433edd2e13cf - src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponse.java: - id: 371a5ba599ff - last_write_checksum: sha1:c4289e00a944e0bd11ab586483e1bd938eace493 - pristine_git_object: a79fa51e7b8a071eddf97c9b3fe5aaa8b3048c69 - src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponseCursor.java: - id: 0e04c5520c19 - last_write_checksum: sha1:243f40d56da5c803b3a00e3fa8545aa6f5969faa - pristine_git_object: d3fb1e1284b4c660112aabb5e7460020e5aa8310 - src/main/java/com/formance/formance_sdk/models/shared/Response.java: - id: 72008e1f996a - last_write_checksum: sha1:c7a09b9451f84c3056a22f5a7f2df46c09d3d7cf - pristine_git_object: ebbb7315fce475cc12ce36efd5ef65cf3df9d969 - src/main/java/com/formance/formance_sdk/models/shared/ResponseCursor.java: - id: 82d20ad3e3d9 - last_write_checksum: sha1:8e5ec2d08744427676724c4b05e0bd4ca9e66cfc - pristine_git_object: 216af59a8438cf876c935b8c2860bb33c18aa359 - src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java: - id: d4831c2f07bb - last_write_checksum: sha1:9e04297a72cf341322553e2f65c18f04ca9e36fd - pristine_git_object: abac226a48f37e6d37e2b738cc0d941ed0711ed4 - src/main/java/com/formance/formance_sdk/models/shared/RevertTransactionResponse.java: - id: 3ca2a2302bf5 - last_write_checksum: sha1:8b8b259449987b0796b0b57ca021a51510a1f8a4 - pristine_git_object: 9c4914227fc79589b36e86025e7427fb5ec10e2d - src/main/java/com/formance/formance_sdk/models/shared/RunWorkflowResponse.java: - id: bf1f953e0264 - last_write_checksum: sha1:76528eea1cbf52cfa2dd8fa44a65c6c9c8bc7277 - pristine_git_object: 323b61e93b21cbf151e27bfe7a3f412afd7d9abf - src/main/java/com/formance/formance_sdk/models/shared/Runtime.java: - id: 919de132c3cb - last_write_checksum: sha1:2aa166582a4881fdeacd0a2f282e0af6c200ca11 - pristine_git_object: 0282b239a9a329844cee12c0e884668f4335ac27 - src/main/java/com/formance/formance_sdk/models/shared/Script.java: - id: d02676ceb5ee - last_write_checksum: sha1:93c0a21e430e1af0f1a3a5cf4b5ac6fb923eb433 - pristine_git_object: 2982a324020269829d6f36d0512f57a5aa5f178f - src/main/java/com/formance/formance_sdk/models/shared/ScriptResponse.java: - id: 352cd8dbc837 - last_write_checksum: sha1:88d4b2d03c548b01e7131c3658b69e115e2a9c96 - pristine_git_object: cbd672ec251946657835d3eb9a66ddf1593b1a69 - src/main/java/com/formance/formance_sdk/models/shared/Secret.java: - id: 4ff6f2212bd6 - last_write_checksum: sha1:8621cee8895ecf3f0bb10e7dfccf9bd5bfe8c538 - pristine_git_object: 2ae9f74256d2964a0938c249c1044b19e22e5dd0 + src/main/java/com/formance/formance_sdk/models/orchestration/Account.java: + id: 092efc21b4af + last_write_checksum: sha1:b91f4e8f1960b8d88d7972fef03fbde885ea2200 + pristine_git_object: 66861e6fdfe7988f365e7fcd18ef7f31d8c65af1 + src/main/java/com/formance/formance_sdk/models/orchestration/AccountResponse.java: + id: 5bfe04efb0c8 + last_write_checksum: sha1:5aa8e6e8ce426012deee82972ce82f9831f9d0e4 + pristine_git_object: fa4dd49c0d56f2241690ea34785a50efa7220ec6 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityAddAccountMetadata.java: + id: e5d85305579b + last_write_checksum: sha1:7801edd3c1ca901ba3c74eb8dfb8cb2d0b0583e9 + pristine_git_object: ec55c5e2ece5c0ab34b35e52f11e942d601693bf + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityConfirmHold.java: + id: 27172ab60ae1 + last_write_checksum: sha1:0e20b47f7234879e3a218db513dae2a94f9f2868 + pristine_git_object: b2b4599d1881a8de3fab2d21a6929fa2e5995e12 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreateTransaction.java: + id: f6bfd5cc3dde + last_write_checksum: sha1:f8c1d87e29c5a91bbb4202092bf62056d547d54d + pristine_git_object: da765447b86cab0ab240135ae7fde9ef8ddfb7eb + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreditWallet.java: + id: cc05e2036ee6 + last_write_checksum: sha1:4a34537e2935d4d529ac21937dae2ca7fcea8707 + pristine_git_object: 591b6b1a6263d22fff8d5f50c18eeea4a4272665 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityDebitWallet.java: + id: 849fc4b7e574 + last_write_checksum: sha1:81ae7291b0836e6702cef18f3399bd5ff0b73c6c + pristine_git_object: a6bca0c399849772a70710689387f75ac2e7694f + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetAccount.java: + id: 0906d35e4019 + last_write_checksum: sha1:e7d634a8d5f31498bc4aced1055cd57c293a152e + pristine_git_object: a6b8d1f392fffbaa4457e6af9c0eab8cbccd5379 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetPayment.java: + id: 146910f27fb8 + last_write_checksum: sha1:f7a6d3ee35fd3ed34d3caa27dca6c00300e5d479 + pristine_git_object: 79574e8cfedf838315e13a7d33eabfa0adc24c54 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetWallet.java: + id: 71eb19e0d884 + last_write_checksum: sha1:7db83183f076e69f9066609de8eeac5169cbbf1d + pristine_git_object: c1af4acb4049c5be8a77c46cce61ae81ef08a5f1 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityListWallets.java: + id: 1aaee59f16a0 + last_write_checksum: sha1:ea76f284b01baa9db0f591c78d2384013a00dba0 + pristine_git_object: 8247df631f84500f7ac5b0020a75ea95ae4d4698 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityRevertTransaction.java: + id: 46c20269e8b2 + last_write_checksum: sha1:b798ee48481c4cf3850ff33de3a19313ac8e2d81 + pristine_git_object: c15670c5d6851b055c86c3c59962255dce6008c7 + src/main/java/com/formance/formance_sdk/models/orchestration/ActivityVoidHold.java: + id: b0b3896534bb + last_write_checksum: sha1:51957256dffb225c73333d3dd36d8b225e5613ee + pristine_git_object: d3b8711f4ff97f22a2a8bd84600a6a9db2a0d30c + src/main/java/com/formance/formance_sdk/models/orchestration/AssetHolder.java: + id: aae663bf9ee4 + last_write_checksum: sha1:3eebb421751fc664c8f07ab3d8f1ff01835e2381 + pristine_git_object: ce9da039c365f011b1f6ec53a9a2a07aac4d5d33 + src/main/java/com/formance/formance_sdk/models/orchestration/Connector.java: + id: b0487a8b0228 + last_write_checksum: sha1:a5872ea8f007fb77dabbf531ceca4f95589c563c + pristine_git_object: c033cd1c70237f23c151a64c46843bf82bae53eb + src/main/java/com/formance/formance_sdk/models/orchestration/CreateTransactionResponse.java: + id: 41939f38aca7 + last_write_checksum: sha1:5f8f929ef651c42d35051849116f69a48fd6ecca + pristine_git_object: c2af33be3e6328fc8f19d4790f0c4c77ba1297ac + src/main/java/com/formance/formance_sdk/models/orchestration/CreateTriggerResponse.java: + id: 582fdd6d0ab7 + last_write_checksum: sha1:8fa26aeac236c21602b8e5b048da4e707f841074 + pristine_git_object: b723d38169e94e2b19950568ebd6957d40c0fd0d + src/main/java/com/formance/formance_sdk/models/orchestration/CreateWorkflowResponse.java: + id: ebc5735ea8bd + last_write_checksum: sha1:2acb07e64dba5dba6d8a9cde8342652a0ca61dc7 + pristine_git_object: 585edfb65f25c9d9b080cfec210f3b1f9bba7b97 + src/main/java/com/formance/formance_sdk/models/orchestration/CreditWalletRequest.java: + id: 5eb772ec5690 + last_write_checksum: sha1:2a652bc4e70e670097179f00eb6075e78dd83dcc + pristine_git_object: e377ce4ee4e09db6106f843639db22a07d40aa46 + src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletRequest.java: + id: 0d48d566155b + last_write_checksum: sha1:c861790ce0162c7d70a094f106f358fc3db2bf3d + pristine_git_object: 6a6f9f5b791fb86af8beb12ba27b4bbf64c90d77 + src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletResponse.java: + id: 56738235d7e4 + last_write_checksum: sha1:9b761e2bd424d5f1d53249a5a941695dce4c8192 + pristine_git_object: 3a91a3203025832740d5fd20d38b79434eba00dd + src/main/java/com/formance/formance_sdk/models/orchestration/Error.java: + id: e22203b7426f + last_write_checksum: sha1:e2bfbff2284cc0c7e9a52f9e20a068e64e35a7da + pristine_git_object: c84756885b827559505ef0d999ec7a4bd56bc28f + src/main/java/com/formance/formance_sdk/models/orchestration/ErrorErrorCode.java: + id: 6c92334d49e4 + last_write_checksum: sha1:b55f4697c66fcfd1075d496edf824d0b516c0354 + pristine_git_object: 8a338e7c2ee3eb087d012f244a7815672f1d0bc7 + src/main/java/com/formance/formance_sdk/models/orchestration/Filter.java: + id: 45ce845b77bb + last_write_checksum: sha1:4345bc817c090f5c18e7d9516a4c4602607c727f + pristine_git_object: e104265b3aad2d07128f7791f793cfbb3462c7eb + src/main/java/com/formance/formance_sdk/models/orchestration/GetWalletResponse.java: + id: 63098184afad + last_write_checksum: sha1:c5e5b7f5db91ecc44d1e4f91fc3f76b0e14e4b6e + pristine_git_object: 6234ab956564e6b99ec45de0a64965e7c10d2ce0 + src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryResponse.java: + id: 2ff211af4f04 + last_write_checksum: sha1:0a75b44e2d963fa372a1c8fcc8e03d728a6aaab7 + pristine_git_object: 424dcf8af5a8ea62bdb71721ff64e8af55698ac3 + src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryStageResponse.java: + id: e40c9ff9632f + last_write_checksum: sha1:f1b37bd47cc5f4067a94a15e632bd6ae383509b9 + pristine_git_object: b5be3f43b63877922eeccd3ace0afa9bfab7e715 + src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceResponse.java: + id: 0aa6b60a8f10 + last_write_checksum: sha1:dbbffd6b5780edac823ca1448b505114f5d06deb + pristine_git_object: b4fcd44cf9841a9710df9c9573dbaf20cc27b117 + src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowResponse.java: + id: f408052a3586 + last_write_checksum: sha1:9df027a8fedf2dc749fbe58121210e49f923ce02 + pristine_git_object: f7bdc9ec77bc041855f3661c128847557a9f62b5 + src/main/java/com/formance/formance_sdk/models/orchestration/Hold.java: + id: 5d400c4ed9d1 + last_write_checksum: sha1:cd914d2be22618717722cc12d788236bc43c01e9 + pristine_git_object: d58ab03a2c4db80cc43a89b8f58ed80cab4ced4d + src/main/java/com/formance/formance_sdk/models/orchestration/LedgerAccountSubject.java: + id: 48fd976e4bf4 + last_write_checksum: sha1:08b3dd74c9108030998cce2499c7fca11cc67626 + pristine_git_object: 569aafd1489e11c6db6e25ba1525653a7a59bce2 + src/main/java/com/formance/formance_sdk/models/orchestration/ListRunsResponse.java: + id: f8515aebb3b4 + last_write_checksum: sha1:a736452856e50acdd9f28ca783bfb7974a1fad56 + pristine_git_object: a64c8a2a3a14a8478fb9372dd7491ea22185fcc3 + src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersOccurrencesResponse.java: + id: ceaf80b79e46 + last_write_checksum: sha1:4545534268fa2e39d21c50e71fb49b18c7fa6256 + pristine_git_object: 8f88d3d412c75222cb51d0226900bfba1b639709 + src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersResponse.java: + id: cbfc5b9d03a7 + last_write_checksum: sha1:346f796fb530da0dc4bb7baad362b7e21a9f59d9 + pristine_git_object: e278c29777c48b07e3cebe9c603881db600c8581 + src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponse.java: + id: e33f54b8c117 + last_write_checksum: sha1:5c96d69ae6b1f0b803325597d226f3d73cca0a76 + pristine_git_object: cecac324ee1c2192756aa0860467d4a01910e7c9 + src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponseCursor.java: + id: 9bad56259132 + last_write_checksum: sha1:5fc4672312b427ac655acb5a508710ca381d1464 + pristine_git_object: 4e36a3a84ba56e4a45327d364017217037f8ebb3 + src/main/java/com/formance/formance_sdk/models/orchestration/ListWorkflowsResponse.java: + id: a1ea1059aadc + last_write_checksum: sha1:0bb6bacc9de9fac23a432b8f461dcbe6498fd059 + pristine_git_object: d5e719fc76b2c7c40697d145a04ee9d1495f0fd3 + src/main/java/com/formance/formance_sdk/models/orchestration/Monetary.java: + id: e2e20a5ccd49 + last_write_checksum: sha1:9d8d523116180c82390ce17666458a719f9cfa02 + pristine_git_object: ac172fbddfaacbf489007986113abed44c4ef72a + src/main/java/com/formance/formance_sdk/models/orchestration/Payment.java: + id: d2385197a6b4 + last_write_checksum: sha1:3374fa4404d9c98045b143217d0f6a8293937b97 + pristine_git_object: f4317116e7d9a16ab5a9b06e0ecc9987eff6802c + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustment.java: + id: 457d3cdb01f0 + last_write_checksum: sha1:06c19d292af8387c2ee4077b349ceeb0f984c451 + pristine_git_object: 84452584dc5b15ae2d58aede2f6ce3ac29cfd557 + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustmentRaw.java: + id: 8968ed564418 + last_write_checksum: sha1:94979a41d2ee7d66ddb21cfd12f2a78669b24cd3 + pristine_git_object: f7f8800bf9e74eab2f181fa17069a9ff44eaa252 + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentMetadata.java: + id: dea5edc578f7 + last_write_checksum: sha1:3fd47fef98d49df7722127b205c71fb0a42aa1fc + pristine_git_object: e5adfea7d6e0aef42fdf74ee82fc0b8a3e0a1856 + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentRaw.java: + id: ca423f9e16f0 + last_write_checksum: sha1:4ae85e118c1a5d669c1e8fc212fd532ca5d3d575 + pristine_git_object: d575f5d45e1d16d6204f7348d3ea439d0d87885b + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentResponse.java: + id: cf18b28d0e4b + last_write_checksum: sha1:66e33f71148ef54538ec8fc71eb8f5ba93c74187 + pristine_git_object: 50ec4cc39be27b316823943b276bb82e11a0888c + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentScheme.java: + id: 70c97f41bde4 + last_write_checksum: sha1:a8b96729552a6f9bdca6e12964f544879a1df815 + pristine_git_object: 9bc76e724bfd691ed3af81c52f24dd533419bf9e + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentStatus.java: + id: 867260d37ef7 + last_write_checksum: sha1:1d2153a05ceb024192daafe6ef8c36766873f85a + pristine_git_object: cb1ae7e0f45f7849e4749107122ef5da81b57d57 + src/main/java/com/formance/formance_sdk/models/orchestration/PaymentType.java: + id: 766897409ce5 + last_write_checksum: sha1:812f12e965a6e2f68d0fd51841482bb9d1886810 + pristine_git_object: 40de7b083c9e4402535d6eb90ca507db5874d1d7 + src/main/java/com/formance/formance_sdk/models/orchestration/PostTransaction.java: + id: d77d60417b25 + last_write_checksum: sha1:30482c26beb222d411c142a2b5216bcdfa879880 + pristine_git_object: d8bf5de12615595c849d706eaf91e3e736fec579 + src/main/java/com/formance/formance_sdk/models/orchestration/PostTransactionScript.java: + id: 2af4633fbc7a + last_write_checksum: sha1:7067ecb2945d9f74fd569afccaf74a19b1734e8d + pristine_git_object: 329ce0b8d53fb19df22228d01ec14dceca8a2d9f + src/main/java/com/formance/formance_sdk/models/orchestration/Posting.java: + id: 4c472d347b9b + last_write_checksum: sha1:0ced42737088f843efcadb367578224fd18e6dfd + pristine_git_object: 60fa77843b125f24bc2987e78e2c19c5d2294ea9 + src/main/java/com/formance/formance_sdk/models/orchestration/ReadTriggerResponse.java: + id: c14e8a13b95c + last_write_checksum: sha1:0abacef1d0d3bc6132c7592f5c489a4ec360b027 + pristine_git_object: 334d4b8bf15284ae08af16b15ac123b61d01e052 + src/main/java/com/formance/formance_sdk/models/orchestration/RunWorkflowResponse.java: + id: b90c2d374aec + last_write_checksum: sha1:8283a21dcc14764ee91008b636fbb1ec4658d298 + pristine_git_object: 2c525ece62ad4925a31adecfda2bb11a9d0770ae + src/main/java/com/formance/formance_sdk/models/orchestration/ServerInfo.java: + id: 80e92cdf10c9 + last_write_checksum: sha1:b29e22ba14b5d70a91c8724b8fafbff4b7a2ae64 + pristine_git_object: c2f2442d0011401adcca388956e01571d9027660 + src/main/java/com/formance/formance_sdk/models/orchestration/Stage.java: + id: 707c02933f02 + last_write_checksum: sha1:9dac659c672214ca548c835ba91a70f2b01821b4 + pristine_git_object: 8be4b09435b04faa3c29bf28b03af9d854e44055 + src/main/java/com/formance/formance_sdk/models/orchestration/StageDelay.java: + id: 0d0622008a7d + last_write_checksum: sha1:f3c4ca7b0646502d0c96962bd9f846646327b5ed + pristine_git_object: 5b151e647b7de05f0e96863c16de4babec0be1b6 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSend.java: + id: b38553a1e6b5 + last_write_checksum: sha1:fa2be26ee2f361cfb74a2b2384edd07fed4b57fd + pristine_git_object: d0162b944e717f09b1b177e9f3851a63697b2921 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestination.java: + id: 6fce81c4d1c0 + last_write_checksum: sha1:4e60ef51a2a0b9abe87c6ee3aaf528c656cf27f3 + pristine_git_object: 0f710d9d2b643f18b4eb667ea89bdde82d6b9386 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestinationPayment.java: + id: 6829ee6e47e0 + last_write_checksum: sha1:700b13f70771437b4b4f3506eecd6daa9a4d370f + pristine_git_object: 22d5ac0c056082cc6f5d299051c429873497c723 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSource.java: + id: d7ea3135bbec + last_write_checksum: sha1:0c7aa5c0a278c74718fb8afc126490eaf261a84e + pristine_git_object: 3a55843fb3d5371577be6a304a73d453d8bc6013 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceAccount.java: + id: 08c6fbe905d8 + last_write_checksum: sha1:0008b231e4f65c981c96441b7665427c2f565bcb + pristine_git_object: 8821318800445d868ca46e52d4359504c88b8d16 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourcePayment.java: + id: 1935d4e8fe62 + last_write_checksum: sha1:06ca897bf885e0aa111ea0fad43e8f98f22a6fd4 + pristine_git_object: f4954a93e3824a35deb72f171c1b38ec62805803 + src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceWallet.java: + id: 43424a8c1776 + last_write_checksum: sha1:d372a6f710b02c89954d62a39da262cd5fb06bc0 + pristine_git_object: e8ec92c0e6d9bdad51ffe44ab922a77e2f84c24d + src/main/java/com/formance/formance_sdk/models/orchestration/StageStatus.java: + id: 7e37075a4c91 + last_write_checksum: sha1:60a41e9e0fb88fd517c7cd278bcb4758704b84a7 + pristine_git_object: dc68683043d2dfb8c550e55e96a3aab8c29257aa + src/main/java/com/formance/formance_sdk/models/orchestration/StageWaitEvent.java: + id: 1cff79bc1ea7 + last_write_checksum: sha1:88e64e0c71e462c3ab589cae0d1c6b74b5e5c064 + pristine_git_object: 5451f03e4853ed67d595e3a55ad039d463954b52 + src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequest.java: + id: 98a3966c6c78 + last_write_checksum: sha1:95550e74e88d21933e12d3ab36f0955b838becf3 + pristine_git_object: 1c88391d8645911f4f2268df4401fdf3a67336a6 + src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequestMetadata.java: + id: 6ba4b4897370 + last_write_checksum: sha1:d495ace666a280ccd18578547171e892a494419a + pristine_git_object: 4a8b2ec14dde2cae5d03a9eb8d602293ebb927f9 + src/main/java/com/formance/formance_sdk/models/orchestration/Subject.java: + id: d7e85954271e + last_write_checksum: sha1:b9f8a614f9f915f5d3f910e87c6adb9547cd7107 + pristine_git_object: 596469ff1c7dce7a30ac32ff2cd49d72a91614c7 + src/main/java/com/formance/formance_sdk/models/orchestration/Transaction.java: + id: f45f53716d35 + last_write_checksum: sha1:f1e6a58723cde2ee9a1fe5a3d6a3e42f8b51997a + pristine_git_object: 8b5507577d61d6fd08df7c82a350bcce42716b38 + src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData1.java: + id: 2fd817187099 + last_write_checksum: sha1:8f6b91f379efbe60906bb61744988c8b6ee0d732 + pristine_git_object: 166f2551171234303f8be6dd211834f85f88fb53 + src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData2.java: + id: 330f2d8aefe0 + last_write_checksum: sha1:41b2380eafbd9d4248c5471fe053b3c7af2c52da + pristine_git_object: c62da13d46fc4c2a7f2e602654d3382b8a38b166 + src/main/java/com/formance/formance_sdk/models/orchestration/TriggerOccurrence.java: + id: 6dbbc20c05d5 + last_write_checksum: sha1:d97377e98fb33adc9e0e769fc24e31011cf8604f + pristine_git_object: 2fe3de7f99cc9a8b903c32f2d643aa49d574a86f + src/main/java/com/formance/formance_sdk/models/orchestration/Update.java: + id: 1b38bda9dd2e + last_write_checksum: sha1:5f665614300dfccb1e0af8ffac3cd0b6545c1b49 + pristine_git_object: c0dea1f80bf193c4ce8c8de62ea93a8a46cca14d + src/main/java/com/formance/formance_sdk/models/orchestration/UpdateAccount.java: + id: 7025f5561d9d + last_write_checksum: sha1:e944a9526c2563c64b79bc0f59b4184f8ba25eca + pristine_git_object: d99a80673fd69894746954d0ca2907ef8ed3455c + src/main/java/com/formance/formance_sdk/models/orchestration/V2Account.java: + id: 61242eb9894f + last_write_checksum: sha1:179ace718a3ae5ff6d75a3dea38895e7b697dced + pristine_git_object: 68759e7af1f7e99211756145b5bbc6b341dbae7b + src/main/java/com/formance/formance_sdk/models/orchestration/V2AccountResponse.java: + id: ed91bfc54668 + last_write_checksum: sha1:851640c05abd7c18c18e3d8c3d3d51046a823356 + pristine_git_object: f1b7f6781ebc3d41b9811b62efa06939491e9444 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityAddAccountMetadata.java: + id: d904fb88cf5c + last_write_checksum: sha1:f9b5a74e4354f0c70f07489872bf17a9d0297906 + pristine_git_object: 24c7445eb05b02525695fb8345e8126a48b4c475 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityConfirmHold.java: + id: 325996031e9b + last_write_checksum: sha1:39526a5415ed4f09f51b2f5bf344183879d5aeba + pristine_git_object: dd5b807e583a93c39f55f14dc3c4de08cba07344 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreateTransaction.java: + id: 18b5c4341b6b + last_write_checksum: sha1:6183c564b187fe009dc7e2b1180c239ceb6d7c89 + pristine_git_object: 8eb6a752f1e71751bd1ddbb92ad06b6ad1cb2a87 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreditWallet.java: + id: 09412821dea5 + last_write_checksum: sha1:5ae0447cc18e5e70e4b07462bdd25da71cdab41e + pristine_git_object: 5fa8ca45c2fdc0ae249a2886826ce855f8c16828 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityDebitWallet.java: + id: 9d7f4909d245 + last_write_checksum: sha1:4f08a1b50b4ecb27ffa8e202deb52cae4744c734 + pristine_git_object: 23804318b645f11006db55576277767ace89ed01 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetAccount.java: + id: f7f6653d500c + last_write_checksum: sha1:eaad6f3b7aedf5a2f9e985c410c0be62ac3e555e + pristine_git_object: 5bea3252350a290badaa0e28733d5a0d491beb8f + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetPayment.java: + id: 1692e935d4a0 + last_write_checksum: sha1:3cd49f0546f9aad94dd2461c49af35f8428085c5 + pristine_git_object: 5dcf04a8b8fdd783469b7b01207f27fdeeee5ae8 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetWallet.java: + id: 44ff4cc97070 + last_write_checksum: sha1:84e5ee05c8ea5d65314f798473277dea284b186d + pristine_git_object: d6bac2fdb73bd2b9c8aaa539ed68f33d4d649a54 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityListWallets.java: + id: b8090be57dda + last_write_checksum: sha1:819790c65e4986fd98a5b380ff76d5685850b0d7 + pristine_git_object: 2303231771159444a8e88be1d5cf4f0d11367148 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityVoidHold.java: + id: e1734e778235 + last_write_checksum: sha1:38c22219cbdb73cf2e3709f2c8180c4c3448d7f7 + pristine_git_object: c8aafea2a8d39aad41083de45a3d17532e547f68 + src/main/java/com/formance/formance_sdk/models/orchestration/V2AssetHolder.java: + id: 9d72a4e92ca2 + last_write_checksum: sha1:342a9d25a66257c741e693f4a643f32ba1e625c6 + pristine_git_object: 958cbeefe3b78cd5e5d76422e29438031feecb8a + src/main/java/com/formance/formance_sdk/models/orchestration/V2Connector.java: + id: 03b6c1e2d296 + last_write_checksum: sha1:7416b61be68479d44bbd568af31f56bcfae371a7 + pristine_git_object: 839a8e746a802dad1ce84dd27faecc12063af467 + src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTransactionResponse.java: + id: f77f42825ccb + last_write_checksum: sha1:7ae62ba3f59997d14db2393d8b3fc937230989fd + pristine_git_object: 16fc04413dbc9912ffd1f7a8890f228e8a279898 + src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTriggerResponse.java: + id: f0ff93972227 + last_write_checksum: sha1:b0e1db9fa82a3f89f07e66f7da410ee72265e625 + pristine_git_object: 625d06fe47226e1850132410ff056ec9f32289c4 + src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateWorkflowResponse.java: + id: 856b4e1c074b + last_write_checksum: sha1:f2c62f738f2e98ccf03958f71257bcda0aa856b7 + pristine_git_object: 1fcb45ebbaaaed7b24a79f7b6fda717c530b60c7 + src/main/java/com/formance/formance_sdk/models/orchestration/V2CreditWalletRequest.java: + id: a66d24daa99e + last_write_checksum: sha1:20e40cfc9591992c5609f7c4bbb9504a51ffbb82 + pristine_git_object: 0fa31c024ba61f12b13dadd489a70e5ebffb115b + src/main/java/com/formance/formance_sdk/models/orchestration/V2Cursor.java: + id: f496fbef81ce + last_write_checksum: sha1:b5eabdcb448810d1236722dde194bfb5af2f9c6c + pristine_git_object: 0960e623789e08787b5ec98ba4d4dc136e51e291 + src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletRequest.java: + id: be6752f23c04 + last_write_checksum: sha1:a3e9eea67ba036f3683abdbc4eee00b7fbdae3eb + pristine_git_object: 5d1ea75f32803ceb3bd03e111f2bb7c42e064955 + src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletResponse.java: + id: acc2910483a0 + last_write_checksum: sha1:d488581e47afc64b52679b41a8b0257094dfd08a + pristine_git_object: fb48f3b6fa58abd6b4f3bb4aa9d97f96a47b5a2f + src/main/java/com/formance/formance_sdk/models/orchestration/V2Error.java: + id: 1e97055426f9 + last_write_checksum: sha1:1119d31b72682492535eb00827771adcc41167e9 + pristine_git_object: c645c23a78a235d6b8badfc46e5930115ba05ee9 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ErrorErrorCode.java: + id: f65e263201c9 + last_write_checksum: sha1:66cce8006350df73b85ecd824088781320db4327 + pristine_git_object: 00a2d44cb9ae62dfc68e44945df526eb6c7a1b10 + src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWalletResponse.java: + id: 16dbbdb3e3f1 + last_write_checksum: sha1:e4df43dbd5cb20417ccbcc7c8dc782c3db6a4420 + pristine_git_object: 7ea26be7d17bb4a002eb0be9e109dbfa9c4021b3 + src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryResponse.java: + id: 6defcd914a59 + last_write_checksum: sha1:5554b16b225aed858a59e7d65027ff4842cbfa2c + pristine_git_object: c53033ea817f5f0c90b57dc24f3dc5275be80fcb + src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.java: + id: c8913e23133c + last_write_checksum: sha1:7ee6c4303941280e38dc3be5b841dcfbbe6135ad + pristine_git_object: cc08936d5ddf6e8247da0e4d9990f72e2358f138 + src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceResponse.java: + id: 2545ebc62d6e + last_write_checksum: sha1:191dd16f37c73390b2da83c9629562c1d979a60e + pristine_git_object: c3c7385ba152c1b88392eb3a2288b4a32b3058d9 + src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowResponse.java: + id: c3657726f02e + last_write_checksum: sha1:02e04234449e507845cf1f010cc9e0f2d8466fbc + pristine_git_object: d961bf76c5b6f0fef97de00da385c9b4bf3c8225 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Hold.java: + id: 67ba4d6f3445 + last_write_checksum: sha1:a4af6508a74775144059a76efc91f38c42353fa6 + pristine_git_object: a5c199082ac54f9031e479d5f14e690843dfee56 + src/main/java/com/formance/formance_sdk/models/orchestration/V2LedgerAccountSubject.java: + id: c490ceb53b22 + last_write_checksum: sha1:a17157d83163c8f0e6ebcc59563ff70e3d87571f + pristine_git_object: 7e291e0916c642b8b9491fcb4e0683a86a4cc1b0 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponse.java: + id: e390dcf9718d + last_write_checksum: sha1:7190c5cd59b88f8a3efe4eddb057e25bce556f90 + pristine_git_object: 1579e18ff53bc76306a6dbf0ad396f0f104f3955 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponseCursor.java: + id: 6848b0278057 + last_write_checksum: sha1:7fb6d505be13b3128563f85da0ca66b005bbb57b + pristine_git_object: 30b4ad5167244dca413f495ab1ccbb0c16202010 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponse.java: + id: 5ce767db8a1c + last_write_checksum: sha1:3c6d23fcef152e9b8342d237e5ab7666058089ec + pristine_git_object: 7a99341dbcd5cddc4500070dc4cde6defbb2bca3 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponseCursor.java: + id: 5dcd7573c729 + last_write_checksum: sha1:df0557ad73a56cb94f50427c3d76413fc34078b8 + pristine_git_object: 04cfadf9373e98dbc4a4a8ed27ae2a20aeb7713d + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponse.java: + id: ad928d4c7046 + last_write_checksum: sha1:667cb7a5619177862d5e802c995384759e704c0a + pristine_git_object: c52d4905b8035b65465598609625008c48fe82ec + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponseCursor.java: + id: 5974c66ad349 + last_write_checksum: sha1:bc5df2e051791727cd3c14892f1a8917c244e4a3 + pristine_git_object: a00a44e6c3277bb14e8f8bfc1ee46a63ec1e92ef + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWalletsResponse.java: + id: b698dc39d69a + last_write_checksum: sha1:118db332438c41f035b4781a8b77aedefcdd3f9d + pristine_git_object: b81fa7638b38a914786bc7c62d663027f8b1fc14 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponse.java: + id: fc817d9f7bee + last_write_checksum: sha1:85de7b1c73aa0a79113c2b3841705bdd3dc3fa35 + pristine_git_object: c390f100aa9ad854b5c195ecd0370950eca7ad0f + src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponseCursor.java: + id: 25be93487849 + last_write_checksum: sha1:4ddbfa9caa2302de728d02e7f6063d1be71f3c79 + pristine_git_object: 96efda854df6a6de10601abdc141ba73462ea283 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Monetary.java: + id: 9d256e6d97f2 + last_write_checksum: sha1:c7564ea9ed2f0b3be19bb00fb46ea618055c806a + pristine_git_object: e94a3a82b16a85d85d048fcc4ee19b00249503e7 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Payment.java: + id: 2666dbda2f9c + last_write_checksum: sha1:58a601338aae9579df0fe8ef484d5cdc751473b5 + pristine_git_object: ea9a6476819cdb3a40efccc0174bc76ce93b069d + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustment.java: + id: 78aa16fe3c5c + last_write_checksum: sha1:5b31617335f95fa6a4368669f9ecc5ad2f563258 + pristine_git_object: ef1d1c32a6d7b9840b4ecb33fa848c2c3e71acd5 + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustmentRaw.java: + id: 39dfc622e4b8 + last_write_checksum: sha1:b99ba95738007331a57ab83051a102c12eb9cb85 + pristine_git_object: 4d2c725de6c570a3bc1186d8f492128431467094 + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentMetadata.java: + id: 358f8f96e1eb + last_write_checksum: sha1:c393180cf05f4b06d36d546e1ab59d25d292ecce + pristine_git_object: 01cc7f4519d5dd36df49a355a81cb440d8c363b1 + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentRaw.java: + id: a85f1e7f6819 + last_write_checksum: sha1:ad9c9ec4525f087517220484d69e3f4c33862173 + pristine_git_object: 069b709af09300152272ade9c87ad744f6ee2b84 + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentResponse.java: + id: ab7033712c0c + last_write_checksum: sha1:25f885cacc422ad8a1cc2d1fab27ccd4bff998d4 + pristine_git_object: f99bc0ba8851578e5958327e3731e316622b59ef + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentScheme.java: + id: 2c630d2712f1 + last_write_checksum: sha1:32191ff0ea85e062d589082d27266640c6d331cf + pristine_git_object: 97d83b06a1ba59fb842f16756a116e0e1e2dfee8 + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentStatus.java: + id: 38348316d424 + last_write_checksum: sha1:4f8d210e4e11b398d213f8bd71b1cc2e3b253c87 + pristine_git_object: f7ec4b0808d574a162f19f1792e462d8ae66229a + src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentType.java: + id: 239c3d897405 + last_write_checksum: sha1:f1102dd010161a3b03da6940864c0d885e0d7f4d + pristine_git_object: a361f9ede2e424e65bb7aa68a70e251f030765fc + src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransaction.java: + id: 15002ab98602 + last_write_checksum: sha1:8be891d663a5861d182ae170aa93d53633fd5729 + pristine_git_object: d98072daf27f9fc3d91f3ef39e6ae09eac6dcda1 + src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransactionScript.java: + id: b0c714cd3be1 + last_write_checksum: sha1:ae985fa1fa7b67bff7efb22c0a5d8c7ab7d8bd2b + pristine_git_object: 0f42196ce5482c0e73fcb9945e67bff8c903885a + src/main/java/com/formance/formance_sdk/models/orchestration/V2Posting.java: + id: 731da5daa1d3 + last_write_checksum: sha1:bebf84a626d85cec370fd0b7c16dc08fad8660c1 + pristine_git_object: 984771bf5750ac45fd2053ddf74ac63752271789 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ReadTriggerResponse.java: + id: b4f398303ebc + last_write_checksum: sha1:fbf9ea242e43de511fe9408feccafba65bd23002 + pristine_git_object: 01a7855ea274235ccc45475d358821e80c796b0d + src/main/java/com/formance/formance_sdk/models/orchestration/V2RunWorkflowResponse.java: + id: 95102f62ba7d + last_write_checksum: sha1:f269d021c0e781d167c7d91a596446264c7e540f + pristine_git_object: 30b08f2e97d5f61dffa4ebae29906ccfb0ce66b6 + src/main/java/com/formance/formance_sdk/models/orchestration/V2ServerInfo.java: + id: faee76eaea6a + last_write_checksum: sha1:f770c3d6e30c53f9313dfbd0f31775ba9467b524 + pristine_git_object: a413c13bb68eb0a40bae996c6dc785389296904b + src/main/java/com/formance/formance_sdk/models/orchestration/V2Stage.java: + id: 78a55bc1da77 + last_write_checksum: sha1:41287d2b867cecf5121c4f584e6b1c03ddfec900 + pristine_git_object: 031e488a5f811986b300e924b2ce9147b527f89e + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageDelay.java: + id: 9d0fdc2b2643 + last_write_checksum: sha1:56dd47b9f3db430db59add8c0f1ff555c44d8113 + pristine_git_object: 79eeaa50777cb4e9744c5e29647fee02c50323a7 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSend.java: + id: 80f9a664e9be + last_write_checksum: sha1:18647f7a1399c836b3c1041ff484b36cab6e9272 + pristine_git_object: c1631f28867564f46bffd4fd0715ab7dbc9670a5 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestination.java: + id: dace7c509d11 + last_write_checksum: sha1:f4cded947a8a71dad3ebef1b4f968b51fd6a0d93 + pristine_git_object: 69f3c39aadf928068afbbc2ed1a9cffc96a56c23 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestinationPayment.java: + id: 4f08afdeb573 + last_write_checksum: sha1:5c5390ba4168607181c12ddecef57a20a6cb6770 + pristine_git_object: 0f81dab4ea1ddc28d6eb218bbf1396e612a4deee + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSource.java: + id: 1d2722723f3a + last_write_checksum: sha1:f651e055d07acdf415705d55718c3aadb070585d + pristine_git_object: d599124d69a85949a3b61eb42957a71f497786d2 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceAccount.java: + id: d15575b235eb + last_write_checksum: sha1:94cd2e3626faeb58885f484751ed8ca4cff73eaf + pristine_git_object: 14537342fc36995eb8518c005cd8ebe28f5bda2f + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourcePayment.java: + id: 6b64138d3991 + last_write_checksum: sha1:dd361786d5650aa91f1c1f038bc1412648218429 + pristine_git_object: 161586c554e6f27de998797decd5467c2c0b7a97 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceWallet.java: + id: 7629ab882287 + last_write_checksum: sha1:852649596fe73356501e1ae1cd487ea4dad34406 + pristine_git_object: 5c91b627358ae4b352a9ddbe4e8c65ba44174f57 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageStatus.java: + id: 69281a1761dd + last_write_checksum: sha1:db8403addf8393b632d2afb7ab1580e22037f796 + pristine_git_object: 74973050168f04c2d0148bd79e6b96e51c05cc36 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StageWaitEvent.java: + id: 926f0f434f74 + last_write_checksum: sha1:b1ede38e5f03e15fb2eee37344468e80f6897430 + pristine_git_object: 5c1fffce52bbf4e48e6ccfb9a943ae29dbf720d9 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequest.java: + id: 42756fd03f0c + last_write_checksum: sha1:c0b5f91984795f38e66ee02233b6bb0a384f994d + pristine_git_object: a024d0f32d58fb225889d0f10c4fbd6aad376417 + src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequestMetadata.java: + id: 7d8308cc57ae + last_write_checksum: sha1:5253d8215a5c5749c0fa89c89bed27b1dc80b0c9 + pristine_git_object: 9f8a3aeeacdd128da1f77c515b5ef91aba1368b2 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Subject.java: + id: b70e8ab6a9dc + last_write_checksum: sha1:51003210b8ddf06b6df00f668e855761589a2b8d + pristine_git_object: 400d0aa2cdc46b3d895c8466a97d54840dfc21a2 + src/main/java/com/formance/formance_sdk/models/orchestration/V2TestTriggerResponse.java: + id: 06b3056d8cc4 + last_write_checksum: sha1:dc6700b0fed38512a6c35bd9b24d261d796a2af9 + pristine_git_object: 682738036cd31cf5247acafdd9b02eddb411ea45 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Transaction.java: + id: 5cf30b572350 + last_write_checksum: sha1:b0e90975e0c114dfe262a6742b445ba4942bad65 + pristine_git_object: 72925cbb6471822e43b7d8af4f4e20c8c768cf93 + src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData1.java: + id: d2f68715aab0 + last_write_checksum: sha1:2bb1830d77f0ec182ed2e956de0afc6faabe3da6 + pristine_git_object: c965b886f951bc2e062e97a6208f97231be48738 + src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData2.java: + id: 64f720eea038 + last_write_checksum: sha1:3aefaf0abb7da846d5966b36533c944b5e6ed16c + pristine_git_object: 0b04e04c8b4bc3b8fc91069ce884265d9a9ed2af + src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerOccurrence.java: + id: 08320ba6e9ad + last_write_checksum: sha1:b7861afbd3285b41dc5999f15a1dccf426bdaaf1 + pristine_git_object: 87174a7d734a93c420228b88ccb42e33b26d174b + src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerTest.java: + id: 1d6877b19115 + last_write_checksum: sha1:f795ae830430c1e4669cf08303699ee80910cb6b + pristine_git_object: 97c5b9ee4ede18ab66796aff479b8ca55a741164 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Update.java: + id: 35bd7bd80473 + last_write_checksum: sha1:720a8bf917036d0ee27bb820b3e2e3477026eb61 + pristine_git_object: 1b62e24ce73df110ef15cd8b6a7370b37dd1db94 + src/main/java/com/formance/formance_sdk/models/orchestration/V2UpdateAccount.java: + id: b8a0f43bd9f7 + last_write_checksum: sha1:41fea90a03258d346f8cf6a59e596161a9e8e59b + pristine_git_object: af4b712fd6d9aeb9487747c489008e7d7c4111fe + src/main/java/com/formance/formance_sdk/models/orchestration/V2Volume.java: + id: bd2d4fa4f877 + last_write_checksum: sha1:0e2964acc8b3867c4def32553cc7b33d75d08a20 + pristine_git_object: eb077f48490c707a57f2edbcadea9fa47d1d8504 + src/main/java/com/formance/formance_sdk/models/orchestration/V2Wallet.java: + id: c9727648e907 + last_write_checksum: sha1:f9c199235aa484c7c27b6668934610ce12b5c744 + pristine_git_object: a0ebf00143347d117412bdf28bd2f8a0b1783925 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletSubject.java: + id: 6dc9ad77102e + last_write_checksum: sha1:0dcbe5d530e76779d5de0df7df8b28d56e260f06 + pristine_git_object: 668ad66f194f96641cf7c6796e81a7a500fcafd3 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalances.java: + id: ad38c85184a3 + last_write_checksum: sha1:0bde51305ade8e2f24eea9a29c1ca1ee9763e1cb + pristine_git_object: d94f53010b98f13353704b37b14cebb7d24cbab1 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalancesBalances.java: + id: cca2331d3543 + last_write_checksum: sha1:a19f19e6a681ac2c8b8ae73a90b4415c14e96bf5 + pristine_git_object: 31e2992ac5349dd36d329b56cefdcfd0ce6d6bcf + src/main/java/com/formance/formance_sdk/models/orchestration/V2Workflow.java: + id: 17f59a7a8242 + last_write_checksum: sha1:fac604b167317b945dbc0aedc004399485617372 + pristine_git_object: eb8e0176059f5478f6c6314e504331c28ac36a3e + src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowConfig.java: + id: 01330b16af84 + last_write_checksum: sha1:941c909b6edca1dacafb5439ffe3cb31195941f4 + pristine_git_object: 10336afc5ef5769e2a62070747ebf42d8ef05f01 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstance.java: + id: f1324d877d92 + last_write_checksum: sha1:26ed77a58e9340a728d3b210beab64bf641dc230 + pristine_git_object: 585bc6844a52e2022b1d030ea6c456875cc01fc3 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistory.java: + id: aa4524fd6db2 + last_write_checksum: sha1:cfdec886622e6ccfb106a37fc121fd6924f940c6 + pristine_git_object: c76070b303ecce23dcf21ceab3336f5b56c617a0 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStage.java: + id: cfb2813e7348 + last_write_checksum: sha1:1d4909b9470b573ee4f381837dee752680c95b79 + pristine_git_object: ded6c8e6a19229fec4c6eeff5f7aea2cd09b2f3f + src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageInput.java: + id: b52d7bdc8b22 + last_write_checksum: sha1:20ef8c52a9362e231b37fd7efb725f2de2408d92 + pristine_git_object: 302d9218baf4860f75bfc91d27ea0abf713ddcb8 + src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageOutput.java: + id: ea4f0f7010a7 + last_write_checksum: sha1:171625d5b7ad55eca6ea830832a88a5ef39d781c + pristine_git_object: e623ab71b643be5ff5e9d323393f24cc8efaaa52 + src/main/java/com/formance/formance_sdk/models/orchestration/Variables.java: + id: db2d2d79819b + last_write_checksum: sha1:197c657cd81dd12a636c7a0703428393d1d89fbe + pristine_git_object: e641ead4f9b25d5bfd340b5445ca81b994225fe6 + src/main/java/com/formance/formance_sdk/models/orchestration/Volume.java: + id: 03739b16543f + last_write_checksum: sha1:2ac6887bc41394cc93914c8d2b07fb68959620be + pristine_git_object: 2e017f11838bc1084dc7fa96247185a2fae27472 + src/main/java/com/formance/formance_sdk/models/orchestration/Wallet.java: + id: f0a82d561572 + last_write_checksum: sha1:ecca7023b9973722c87955157a8182902b1d142d + pristine_git_object: eb13ceb3808a54df5026552fabb3a3556b0e2157 + src/main/java/com/formance/formance_sdk/models/orchestration/WalletSubject.java: + id: 3e6583a7f1b9 + last_write_checksum: sha1:44c7b0a478faf5bf6ead998686549b87c8bddd17 + pristine_git_object: 37b2d625dd6b17bbab754a3653ad0d88f156a3ef + src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalances.java: + id: 374a5e4107c5 + last_write_checksum: sha1:ac944a73976fd6126cc53da6cd01d8402306b1fd + pristine_git_object: d68816baaffa0771a200b8b203c9dc31af2c74a9 + src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalancesBalances.java: + id: a476832b26ab + last_write_checksum: sha1:764dfa7b71a1b57220cf922410382c93785371a2 + pristine_git_object: 35394de0c02479e3dd9f3e97ef7dfe3454a7a619 + src/main/java/com/formance/formance_sdk/models/orchestration/Workflow.java: + id: 4b9c553ac8d0 + last_write_checksum: sha1:65ecc8cdee428cd0e03a5d0d2b4c37e7c4ce47db + pristine_git_object: e06971e961410cf01394937837cffd1abbb68330 + src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowConfig.java: + id: 80aa463ac899 + last_write_checksum: sha1:656a7d9ea731c27633f728846cfdea61b77d0665 + pristine_git_object: 230fc6c3d3bcd9eba1832ce1a482237cf952da54 + src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstance.java: + id: 818667ad4f70 + last_write_checksum: sha1:23d0c276a1a8d2e69d74fda62b020d042ce52ffc + pristine_git_object: a9fa6c453fe38a13ed176a18ce2ada72f371ecf4 + src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistory.java: + id: a3362a77dc01 + last_write_checksum: sha1:2a77feb407633d1397ed1032122bf28bda7571e9 + pristine_git_object: ae394d2eb1535e498a2f8607d02edb334b136031 + src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStage.java: + id: a13b34c79ea3 + last_write_checksum: sha1:7dc803db9317d29a47cdb7066528d3d57e36a8d9 + pristine_git_object: 79202cbdc578e4aaa953fb9440987dd93e088c3c + src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageInput.java: + id: ba102854d405 + last_write_checksum: sha1:c320965fb319bc76c0f3af17c1afa8d86cbfc701 + pristine_git_object: de64c9a8f385d17857b024c267a21f9d922ab407 + src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageOutput.java: + id: 5c7c2814f92a + last_write_checksum: sha1:7a461b4244b2e566ec4e465a727c5541621c3d64 + pristine_git_object: d82773ed7285b136cfe1f0cba170a743c7973819 + src/main/java/com/formance/formance_sdk/models/payments/Account.java: + id: 9a3898cfdef0 + last_write_checksum: sha1:a452545a1c3646a260c873b4d3d628f3c687edfd + pristine_git_object: 4ba1b74cd47f1dcc109e92b47fe18307df4297ff + src/main/java/com/formance/formance_sdk/models/payments/AccountBalance.java: + id: bb6bef172d7c + last_write_checksum: sha1:8fec25f19f0e31f6b3c7d3e4cf4d983822ab83ce + pristine_git_object: 45085d76dff1a1feb8857673b35d68315b6e70ee + src/main/java/com/formance/formance_sdk/models/payments/AccountRaw.java: + id: 892d70a0cb4e + last_write_checksum: sha1:5ebdc0989a9ab454bca40f91563de07b9e337838 + pristine_git_object: 7f967d1d5b098c4865fb52b3270ba91acd4eb476 + src/main/java/com/formance/formance_sdk/models/payments/AccountRequest.java: + id: 5999b6c1e013 + last_write_checksum: sha1:3645f841e6a02cdafb43046a3d8af10599ce6ee7 + pristine_git_object: 5ed88800cdf925820eb08688267e8ab25cb87c96 + src/main/java/com/formance/formance_sdk/models/payments/AccountResponse.java: + id: 737a64d6afa5 + last_write_checksum: sha1:37529bcf9416739ff2498ba60b15a5b1ae831470 + pristine_git_object: 4ca0050b7296a1f8dbb54ef391be9781c30de704 + src/main/java/com/formance/formance_sdk/models/payments/AccountType.java: + id: 562e3233fab8 + last_write_checksum: sha1:882b75772230cae3248266c016006618bef0a9c8 + pristine_git_object: 938e830bbf7ea5f1e3fb73f36530fef886097101 + src/main/java/com/formance/formance_sdk/models/payments/AccountsCursor.java: + id: 01f4a7830a26 + last_write_checksum: sha1:8bdf24d0ca461080eeeb07151d51485e4383a2d4 + pristine_git_object: f76538b03975b07d8c62fa1ea752575ebd05492b + src/main/java/com/formance/formance_sdk/models/payments/AccountsCursorCursorBase.java: + id: 6ce59350a55a + last_write_checksum: sha1:f3dbcc735d929d87943a067a5521977e1e0f8a88 + pristine_git_object: bf4a502b9ce11bf4814dd29884d0f979f76220fc + src/main/java/com/formance/formance_sdk/models/payments/AddAccountToPoolRequest.java: + id: 01108b2cf7ed + last_write_checksum: sha1:d726aa391afebac29c23c4e39c954059946841b1 + pristine_git_object: eb914f7a49610cafc288b3249584a9752172bf09 + src/main/java/com/formance/formance_sdk/models/payments/AdyenConfig.java: + id: 4bbfb1ec4e0e + last_write_checksum: sha1:50b3baed69ea42e4b53ab524cce456ec34a2a2c1 + pristine_git_object: 9cef13637c378e35bf45e3a1087114205597af63 + src/main/java/com/formance/formance_sdk/models/payments/AtlarConfig.java: + id: 062a1c22ef61 + last_write_checksum: sha1:157465e3f06ba18889a5ad7f9b8910ab48985133 + pristine_git_object: d2728b83972ba69d9d17b248326ca1bc3a33bf68 + src/main/java/com/formance/formance_sdk/models/payments/BalancesCursor.java: + id: a7e342ea95dc + last_write_checksum: sha1:aa2d4b85f4b2384e7548fecefed7979df8e802da + pristine_git_object: d172c92b374563c669cc1dc1bd0251021566b005 + src/main/java/com/formance/formance_sdk/models/payments/BalancesCursorCursorBase.java: + id: 6ce28a94a6c7 + last_write_checksum: sha1:f45a6981115c29d9c7abd82e7f2723b7a7040950 + pristine_git_object: cbae8a565e451ce88069900fb562ea4c441c79c0 + src/main/java/com/formance/formance_sdk/models/payments/BankAccount.java: + id: 3a1d8bba2a85 + last_write_checksum: sha1:0ccba9beb95c33c9f3ebfe03217435ca0d75b826 + pristine_git_object: 445c61006740d0caf2503ac80b74c0fe20404592 + src/main/java/com/formance/formance_sdk/models/payments/BankAccountRelatedAccounts.java: + id: 695ae1708cb6 + last_write_checksum: sha1:073e83ead15df8ae0ab3a5de8fd7ea1d32b0c6a7 + pristine_git_object: 8f598d733e3080a349858e1a4792e26872264d42 + src/main/java/com/formance/formance_sdk/models/payments/BankAccountRequest.java: + id: a4277046117d + last_write_checksum: sha1:c85cda9e1539ebbb40007306b642748550e1331f + pristine_git_object: 888b9773128982efcb9763e6e81d3f02321d7e06 + src/main/java/com/formance/formance_sdk/models/payments/BankAccountResponse.java: + id: fe43e8629b7f + last_write_checksum: sha1:353b0514dc5741dd94d3eb35ca5c3c9f7d173edc + pristine_git_object: b68dead6c512622e15dfd1f4da0d8567c1db2372 + src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursor.java: + id: e5c4d18ee99f + last_write_checksum: sha1:cf6ffc246e5a1b9995d5d7deadde506a62f9d6cf + pristine_git_object: 179a3d947b9ce65836f5459cea1d5a3163518b90 + src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursorCursorBase.java: + id: 212a17b544cc + last_write_checksum: sha1:e5b2d6742b9b14462c7352b3b75394aaae5da966 + pristine_git_object: 32822c8cfd0ff2e14c6abf405f8e4cb159b61ee5 + src/main/java/com/formance/formance_sdk/models/payments/BankingCircleConfig.java: + id: 3b3647f46753 + last_write_checksum: sha1:69bae76d605c72fed15967a9bb2e0d21feb15c10 + pristine_git_object: 22ded3b0d9df937c53f8055b9636adfd133c0d43 + src/main/java/com/formance/formance_sdk/models/payments/Config.java: + id: cbf2c18ea1e9 + last_write_checksum: sha1:1082c15187eab7406828f7144d4d96dda01ea6b2 + pristine_git_object: 23e30a85673aae9131acd822dfdcbd23b2fbf418 + src/main/java/com/formance/formance_sdk/models/payments/Connector.java: + id: 7417080a9419 + last_write_checksum: sha1:68acac5a42353894eb0a427539295653a87ba12c + pristine_git_object: b793d74c11abf77605a3f9b014d144e1cd40b258 + src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfig.java: + id: 6dd2bdee3af7 + last_write_checksum: sha1:9a58a50b87e855044cae786f36a3f931dd468277 + pristine_git_object: be2609b5efa38d287d4d5cc3433e2703cbbbbc3e + src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfigResponse.java: + id: 734870b23239 + last_write_checksum: sha1:572d463573bdac77fd6ad9b3c1c36749aaaba7a9 + pristine_git_object: 3ead447d6e97220b97f7790f6af4715ee58ee82b + src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponse.java: + id: 2adc3e1d3f2e + last_write_checksum: sha1:8c0bd1599fb526dec561169ebb45d0304d00d7a3 + pristine_git_object: 3dc67159dd2c229c3512f770e7efdddc97ecdbf4 + src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponseData.java: + id: 82db6382d8b2 + last_write_checksum: sha1:74509928155fb44a38dd66baa4a726374a2b8012 + pristine_git_object: 77eaf89b3b3c2c59d8a19b763aac034ffb146f7f + src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponse.java: + id: 035f21756aff + last_write_checksum: sha1:a21727afb546a29a6049042570bfd89a14078a86 + pristine_git_object: 6451cf26b3c806763ce77394f600a28ce899ee33 + src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponseData.java: + id: 49cfd0299644 + last_write_checksum: sha1:a898aee1770c40ac629885b4eeb1b468d48f641e + pristine_git_object: 655e6cb451e915d398357c8a14a138db633cfe41 + src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponse.java: + id: 0c7f45137a05 + last_write_checksum: sha1:cf748c2f86113948131aa5bfe6f01f73af8c513e + pristine_git_object: a4ce7d791a7f5af30240985f976ee667303fcb29 + src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponseData.java: + id: 03f5650a046c + last_write_checksum: sha1:2e4fbbe144bec1c1d05048be3a81ac8a0d7ac9dd + pristine_git_object: fd9b84b3e1e85cae8bd9d5646d6ccc933fbc4645 + src/main/java/com/formance/formance_sdk/models/payments/CurrencyCloudConfig.java: + id: 3e3fe0a07e9f + last_write_checksum: sha1:77b3262488dd036de8c71f60926fd18a505a94c3 + pristine_git_object: 80852639b2c6ab86ef8ef8f8f7f7ec313dceaf74 + src/main/java/com/formance/formance_sdk/models/payments/Descriptor.java: + id: 04c20e5bcc14 + last_write_checksum: sha1:78d79015a1f9880f3bdd4068ed0b9c052ca6dba6 + pristine_git_object: a7c987493eab381630bf56601e9051fc378b8004 + src/main/java/com/formance/formance_sdk/models/payments/DummyPayConfig.java: + id: a672c09f002f + last_write_checksum: sha1:a00489b006bb077400c7b0f3355adb988ea15f3b + pristine_git_object: c4bf7231cc2e8a2cfcf7a904955e55af78dce16a + src/main/java/com/formance/formance_sdk/models/payments/ForwardBankAccountRequest.java: + id: 5dd3d9555551 + last_write_checksum: sha1:a9587e973c0fc74324c1a674ad1b38c8ffec5971 + pristine_git_object: 8a5fa2af95f52b7c8988433a73be150357b4b7de + src/main/java/com/formance/formance_sdk/models/payments/GenericConfig.java: + id: 7415b0b2a8df + last_write_checksum: sha1:1e848fa66400e800925168d12d2a22fd991c5f0c + pristine_git_object: dfac31603767f0d76ba2a2da5580ee4a04381e38 + src/main/java/com/formance/formance_sdk/models/payments/LegacyPaymentStatus.java: + id: efad89781c77 + last_write_checksum: sha1:89e3be8055f740c8456ae650b7e0ca52a0c6c6bc + pristine_git_object: bb56414fd58b6a37ce7f6342a7cfb6089a3d6505 + src/main/java/com/formance/formance_sdk/models/payments/MangoPayConfig.java: + id: e26db63a7b5c + last_write_checksum: sha1:1ecba109d05aad942a2814134f6bad45202372ee + pristine_git_object: ecfe8e51170f622a6a80c97fb851a53c6ac49314 + src/main/java/com/formance/formance_sdk/models/payments/ModulrConfig.java: + id: dd47276afded + last_write_checksum: sha1:55dfaf63e468afeda3b92eb9d76e552b5f300b42 + pristine_git_object: 23e6642b07718fc99843cb6450a9c34c626585bd + src/main/java/com/formance/formance_sdk/models/payments/MoneycorpConfig.java: + id: b0b3214582cd + last_write_checksum: sha1:6c987675122d9c0b6f889e220efb911a9878ce66 + pristine_git_object: 78b38def800994d8827094e3eb38849a08b09c81 + src/main/java/com/formance/formance_sdk/models/payments/Payment.java: + id: a4f0a067ad85 + last_write_checksum: sha1:6e2894a2e6300f3ef5fe83b7c2d951524fb1f5b7 + pristine_git_object: d7af80b612e49329ebda567acdc7a532b17384b0 + src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustment.java: + id: 9f53d4feb5f3 + last_write_checksum: sha1:8753ebca937fff3271295b9b5e3f82556dbf9f65 + pristine_git_object: 22eb33a1ed3e13adb29858e6ef02221f49f4487f + src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustmentRaw.java: + id: e7993601cfe9 + last_write_checksum: sha1:f9dc196fdc604d22297a4913a5c0a6f31de518b1 + pristine_git_object: e0b1b34ca07e469a36b902da372d96cd5416fbac + src/main/java/com/formance/formance_sdk/models/payments/PaymentRaw.java: + id: 1b07595c8a8c + last_write_checksum: sha1:c733ad332c4872ec3e932a0b52368c2fc940ba34 + pristine_git_object: 76c9ba7748ab808e4b53c6cf38f3f4b5ae90406a + src/main/java/com/formance/formance_sdk/models/payments/PaymentRequest.java: + id: 9e7843e18a82 + last_write_checksum: sha1:f49d697e9cd632f22385769afc98410efe5ae3a2 + pristine_git_object: ecc677a2938e098038949ccfc0483bbbbab134e0 + src/main/java/com/formance/formance_sdk/models/payments/PaymentResponse.java: + id: e49bb2f0e7c9 + last_write_checksum: sha1:d9f38e6617fc7d010778ae83cb9845fdbb5be6c5 + pristine_git_object: 615bc0a5f6cff6373430160f56f3d82a6cc3a822 + src/main/java/com/formance/formance_sdk/models/payments/PaymentScheme.java: + id: 7fcf1facffa3 + last_write_checksum: sha1:a1c291618251343c939b7398cadb09f619aa4f6d + pristine_git_object: a4c51490b87bb0c279ed4e9f816e165a59b67c6d + src/main/java/com/formance/formance_sdk/models/payments/PaymentStatus.java: + id: 105a62d2fbe3 + last_write_checksum: sha1:393cce857a7387afdf705af9cdff70f88c498ad9 + pristine_git_object: 61b9b590e597543d2ed16b31b850be3666338e59 + src/main/java/com/formance/formance_sdk/models/payments/PaymentType.java: + id: 21c7aa527051 + last_write_checksum: sha1:e09bc7a39c18de8a8e462ebbe51636e128480e0b + pristine_git_object: 060fce737bc3ee6711fdd2e5072f7495f192523e + src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursor.java: + id: 0d9f5de0a186 + last_write_checksum: sha1:89f96d1ead3150a430a2277e3a2918dada5d2cc2 + pristine_git_object: 04b02124d32a2625757b15c2e691094f70561cc5 + src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursorCursorBase.java: + id: c379b536a7da + last_write_checksum: sha1:410d2b7766127f168c7a20b6029dbfe83de49ae4 + pristine_git_object: 525ccbc4d5529dfa0c9e1720989f19537f0e4902 + src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorResponse.java: + id: 2d311c907117 + last_write_checksum: sha1:77151827608c04c1cc7b41c8a9fb01214aae9400 + pristine_git_object: 37b0deb11eee10f7bbe1904c6eab5bb1930edcc7 + src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorsEnum.java: + id: 1fb4219f3a76 + last_write_checksum: sha1:57facba33f61a8525d7d1eac102c091ecf59f960 + pristine_git_object: 40126d5bb6a7893577d949897ad2e44b4e5964ad + src/main/java/com/formance/formance_sdk/models/payments/Pool.java: + id: 63bc20bf07c9 + last_write_checksum: sha1:e39019f6a8ecb155f872320c06121f77e10ec69f + pristine_git_object: 7e92efaa8e6dbadec266314096ddba8317b6b07c + src/main/java/com/formance/formance_sdk/models/payments/PoolBalance.java: + id: 983fa6e5d43b + last_write_checksum: sha1:947d8429aebd0c94c3c69c413ea497ad5c38c643 + pristine_git_object: f1804141c6738ad759fac75d29ad78f4cdf21474 + src/main/java/com/formance/formance_sdk/models/payments/PoolBalances.java: + id: 591143b549cd + last_write_checksum: sha1:187b3c88abea9bce7909549d2a3b745ee77769f2 + pristine_git_object: 512254b49716ad8fec8b11971d0c459ba75eca33 + src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesLatestResponse.java: + id: 64811f3c653d + last_write_checksum: sha1:1386a9e2457eb9884bf678d72509cc54293af208 + pristine_git_object: fc0162a339ca3f9372b61e86e7b46570b5822865 + src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesResponse.java: + id: 89982b06a0a8 + last_write_checksum: sha1:b5cd8f010e7d0b42979da3b26cf482ffc9a0fe54 + pristine_git_object: 6c76cb233b81faa086de59cc0f6a2d3fe3ade7f2 + src/main/java/com/formance/formance_sdk/models/payments/PoolRequest.java: + id: b53fa52d95b7 + last_write_checksum: sha1:6cc889b99e77e3c8d9595728ca89367c04be6cdd + pristine_git_object: 806bdae656dd84ef0de8c2d59512ef8e749be9c9 + src/main/java/com/formance/formance_sdk/models/payments/PoolResponse.java: + id: 7d56c9739336 + last_write_checksum: sha1:bce33d5b6b6486fa6f2bf0ca3a22f2f22c081409 + pristine_git_object: aa80e63482b4b64fbb1d3e99d5ffc0f4875afa92 + src/main/java/com/formance/formance_sdk/models/payments/PoolTypeEnum.java: + id: 563c2f44db02 + last_write_checksum: sha1:0f98e283f922440aaaa8fac23eab25278422614a + pristine_git_object: 93160dc5edbe0a7e45cd57faaefc79f28455453f + src/main/java/com/formance/formance_sdk/models/payments/PoolsCursor.java: + id: 8df56b380ba1 + last_write_checksum: sha1:a83188f7a329fb2222453a29017f14c84fe413db + pristine_git_object: e9ed1a5964654a4fe727a197a0d915bb07a70500 + src/main/java/com/formance/formance_sdk/models/payments/PoolsCursorCursorBase.java: + id: d691f7acf361 + last_write_checksum: sha1:79fdc97aee87f1b76308ac0b63e938a29a2cf5f6 + pristine_git_object: ee8c092bfd3c13eddf97a7666cae8359731b61ca + src/main/java/com/formance/formance_sdk/models/payments/ReverseTransferInitiationRequest.java: + id: bb1f0da05592 + last_write_checksum: sha1:7f4c3088558d4d4ca9d07a449a48bc2329f308bd + pristine_git_object: e353f0bc6d7d9fadb48bb6c767042c54c206e72b + src/main/java/com/formance/formance_sdk/models/payments/ServerInfo.java: + id: ad4bab1a3a25 + last_write_checksum: sha1:9444bda776389bb4dd54ded0b9ac32965ef57e77 + pristine_git_object: ad8c7b35debb0ae5b231413f7394cef8d34cd7b2 + src/main/java/com/formance/formance_sdk/models/payments/State.java: + id: 43e9c9458a6d + last_write_checksum: sha1:c01fe4f6e4478a7ad53e05a84c3f779f115591cd + pristine_git_object: 0f3063992b274e0bced2b9d917adcdf98bf6e8f7 + src/main/java/com/formance/formance_sdk/models/payments/Status.java: + id: 934f06b0aae0 + last_write_checksum: sha1:0c1cf00c38ba87fd4b29124d940b88d08da79a41 + pristine_git_object: 04a073b4e5ccecdc5530dd4ff4e6e0fbc8c76411 + src/main/java/com/formance/formance_sdk/models/payments/StripeConfig.java: + id: 60e9bf432fcc + last_write_checksum: sha1:581d4aa1b8ed8641b919a412e37c6a322154a54a + pristine_git_object: 34e3d6e1344286f30a689170166c8f2dd05a05d0 + src/main/java/com/formance/formance_sdk/models/payments/TaskBase.java: + id: f54b8802c066 + last_write_checksum: sha1:fd5cb9580f31d2f24ed82689e845710659bc89c6 + pristine_git_object: e4b3140d32297cfa00b22f5acc03d3e7c2d4f6f6 + src/main/java/com/formance/formance_sdk/models/payments/TaskResponse.java: + id: 2e1793090780 + last_write_checksum: sha1:c845b66831c4b86ce0be4742371c1ce34970a6f0 + pristine_git_object: e747cb842abfdc60776250e2a4af747cea00047f + src/main/java/com/formance/formance_sdk/models/payments/TaskStatus.java: + id: d383c0355446 + last_write_checksum: sha1:0c9b8c50d94b3d1ca6587ad742b5733cf5b9fe7c + pristine_git_object: c103c7353478bc6f42b777d97999471eb6db34bc + src/main/java/com/formance/formance_sdk/models/payments/TasksCursor.java: + id: fdce5e877b3f + last_write_checksum: sha1:65bb6705395c9dc87adb7f6d0d98162a51205c2a + pristine_git_object: 0e10c0ebff68eaa3cf06945f499058698f57e65a + src/main/java/com/formance/formance_sdk/models/payments/TasksCursorCursorBase.java: + id: a9f2a4759826 + last_write_checksum: sha1:42372fba9348b2260b010e22a1f269de153daf83 + pristine_git_object: cc2044524ad000a460eb94692342f8d24b36a0ab + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiation.java: + id: 2d8583c494ca + last_write_checksum: sha1:2b7012119aa038038f24d7ec82a74ea36058f111 + pristine_git_object: 4ba5e435dd633bf5491b1bd16d1d599f42645d4e + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationAdjustments.java: + id: 6b8434c981cc + last_write_checksum: sha1:38658182fab0ad5e72ad5d05ba8c13b185f27748 + pristine_git_object: 6b5e6a24d2e4565c656b76166d4a21db0e32f3b2 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationPayments.java: + id: 063fa422de2b + last_write_checksum: sha1:1222a0f311826bcd4197927d71616f50fdf1d90a + pristine_git_object: ec9847c8105c6a53acf3fa3897b33528be4f1589 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequest.java: + id: 2a1041a78a7c + last_write_checksum: sha1:9ec1afb2b2b9052aaafd8bc7ffcafb33d35bd42d + pristine_git_object: 446700822e54cf8aab90220017c891b0ef2d29a5 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequestType.java: + id: 23505b215a52 + last_write_checksum: sha1:b872ca7407e4c84eae43ee547d8536c2df6da54a + pristine_git_object: c4dc06bcd4c4914826a142bb39c31bc5f3b16e38 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationResponse.java: + id: e8070038f2e1 + last_write_checksum: sha1:f794d3df75b4a283273f78bc644efb9114b59ba0 + pristine_git_object: 5dc4993d998ced4cd3ec08e4ecb1f7348f30ef8e + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationStatus.java: + id: bf7bde588a7e + last_write_checksum: sha1:8bf8d6517894299a412605e5dcbdd60c940fccfd + pristine_git_object: e1771ed60efd671dcbf5590d3298b4b9ffa389a0 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationType.java: + id: a4e0c7f8219b + last_write_checksum: sha1:9a7ef39fa345df3db8fbc1909175c53331f86d50 + pristine_git_object: 0bec5207f52723e0e16bbfb027c2c79ebe9784d8 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursor.java: + id: 9591ab0279a8 + last_write_checksum: sha1:6a6e0e3cfa1860900f27a1c7b0c7f906e12eee01 + pristine_git_object: 6a990cde06c696788898a10698ec092dad60f159 + src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursorCursorBase.java: + id: 08fb432c6b5d + last_write_checksum: sha1:3f8179223f4f2d5880ce7e64566d7a4bea99e9ec + pristine_git_object: ef52988cdf43dac287a172e6d41e52dd034e27f6 + src/main/java/com/formance/formance_sdk/models/payments/TransferRequest.java: + id: 6ec35c9cbb7a + last_write_checksum: sha1:7aae7419c570c7ca334059d2592c33190e086a07 + pristine_git_object: c50074a982704b73828b771c8d072ffa78deea03 + src/main/java/com/formance/formance_sdk/models/payments/TransferResponse.java: + id: ebb6010bb101 + last_write_checksum: sha1:e6f7a192da571115457aa91426a94726f66fb3ea + pristine_git_object: c4156babf873f278e6eb9cf7832bcc463454e855 + src/main/java/com/formance/formance_sdk/models/payments/UpdateBankAccountMetadataRequest.java: + id: 09a152bf3761 + last_write_checksum: sha1:907010d35e714c60807ad31311cfe52cbf5add91 + pristine_git_object: f3c5b260ce150b29b7fd154a3c1b1d94f3dd3ff5 + src/main/java/com/formance/formance_sdk/models/payments/UpdatePoolQueryRequest.java: + id: 85bdbe127a03 + last_write_checksum: sha1:9fb4b85c3140c717e766275264684e4ebcc9fb21 + pristine_git_object: ad507f134d526cabd0368980188703c42c24aa44 + src/main/java/com/formance/formance_sdk/models/payments/UpdateTransferInitiationStatusRequest.java: + id: a528e46d2f4d + last_write_checksum: sha1:233ddb5cf396f8be81f92317d5948f51377d4932 + pristine_git_object: 8679f2668a08bdcbea77d74e5c13e2f58124a882 + src/main/java/com/formance/formance_sdk/models/payments/V3Account.java: + id: 069c631fbae7 + last_write_checksum: sha1:6a96c97b91a7d731a1ad7f6ef0ac5bc585d7fb55 + pristine_git_object: bce3cf41de5fee1b141d15b0eda12468e7e11af5 + src/main/java/com/formance/formance_sdk/models/payments/V3AccountRaw.java: + id: 016eb22bae83 + last_write_checksum: sha1:c97031deeb381a1dd702e1fc5c772e68cbaed937 + pristine_git_object: bd836efc8c9909e1ac438e64736c2c70c61b343d + src/main/java/com/formance/formance_sdk/models/payments/V3AccountTypeEnum.java: + id: 47fcc57f5618 + last_write_checksum: sha1:0c7a78da4e530c5aa7b36eaf97eeff516aedfa25 + pristine_git_object: fc61d22ad1c51c67a99e355b23a05ad01e341f91 + src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponse.java: + id: a44382000a69 + last_write_checksum: sha1:ed664bdeadba1a6b50410f707b9de75cc73bfd87 + pristine_git_object: 023cf0a2ff715dc27ba1f0e3842e80508161d86c + src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponseCursor.java: + id: cc3d84419a74 + last_write_checksum: sha1:543c6857c4afa189e78f3609d2c69aebd207d4f9 + pristine_git_object: 17eb233298c64d4cb2c2d9eec52e2a81622b1fe9 + src/main/java/com/formance/formance_sdk/models/payments/V3Address.java: + id: 6c015775cce1 + last_write_checksum: sha1:8ce81b6d5eb7bf6ac51360f2ceb8e1efdd106d96 + pristine_git_object: 54dd0d94b520c74c332366e93841f1ccf7fcaea1 + src/main/java/com/formance/formance_sdk/models/payments/V3AddressRequest.java: + id: b2baa201f553 + last_write_checksum: sha1:0f5f6540200483c57b6ebbe1e8b92a5ffc8cef58 + pristine_git_object: 392d280e2e29fdf9198759444b33ee5b921ad493 + src/main/java/com/formance/formance_sdk/models/payments/V3AdyenConfig.java: + id: 14244cab1b9f + last_write_checksum: sha1:35aefcaaa7f42221296106751c0d3b0fa0fbb5f7 + pristine_git_object: f745a96cb8a802f3804f62f6a0457e11f8577606 + src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponse.java: + id: 9e926df0fba4 + last_write_checksum: sha1:33355decbc19cdc0520baf05cf951090d391c9fa + pristine_git_object: 102bd769b4bb45a0a7a07d15a3803c7196223e30 + src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponseData.java: + id: 291a11c187e3 + last_write_checksum: sha1:8b4933c038873966af340958c123da9c1f252457 + pristine_git_object: c025fa4649aa20f3d0114f1563880b1fe39de361 + src/main/java/com/formance/formance_sdk/models/payments/V3AtlarConfig.java: + id: 0a25f3cdbf14 + last_write_checksum: sha1:ac6fb4d623c8404d1d99aebc5969315e265aa60d + pristine_git_object: 4a33f9cb51f4ff4521cc54787eb6c3e301c57bed + src/main/java/com/formance/formance_sdk/models/payments/V3Balance.java: + id: 4cb86bd2774f + last_write_checksum: sha1:4cd97bcfdfa5eb6f58524376cb0c6e10d5c50542 + pristine_git_object: 61b090c4bf7647ee7d867c02c2f269ea33dc1b57 + src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponse.java: + id: e546ba783c26 + last_write_checksum: sha1:840b8ce414197da636d2b22c1198a963df455b2d + pristine_git_object: f51bb8e794c7e06683b8f3733bfd0420cdda7e9c + src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponseCursor.java: + id: 72b82d144f2f + last_write_checksum: sha1:73aad44b2d61b7cc6b9d3ab1efe8e1d119a4a264 + pristine_git_object: 1924c21dafe720e8e0a9e5431954f23e8e849bf8 + src/main/java/com/formance/formance_sdk/models/payments/V3BankAccount.java: + id: 55ea8719cda9 + last_write_checksum: sha1:7a01cc520a9003c2fffcf6b3d96b8eba6e698442 + pristine_git_object: 7ead281cf98d447ddb80fb5ce1af4c8bfa483395 + src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountRelatedAccount.java: + id: c6869eb8db70 + last_write_checksum: sha1:a7f0748251da2a272de577adfbf1de77348c61d5 + pristine_git_object: da6a4aa967ef8bcedfc945b523ba661f0fecb6f8 + src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponse.java: + id: 1c243588d9e0 + last_write_checksum: sha1:8d5248db81f8442f6c57e6229068a8dd6070e1c1 + pristine_git_object: e09d672f2578a893b19fb55cd36f86627f988300 + src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponseCursor.java: + id: b92fb2455d35 + last_write_checksum: sha1:31907204d914e2d4894a8d90bcc57a77100788c0 + pristine_git_object: 2e189ab34aaafeae49c59c796b37079ba73a415f + src/main/java/com/formance/formance_sdk/models/payments/V3BankingcircleConfig.java: + id: 73dbc19eb36f + last_write_checksum: sha1:c903afaf66eeb5c0c316015322930e1627408578 + pristine_git_object: 3ceca0843e547d1a9985d632a5b1b8b14df5a466 + src/main/java/com/formance/formance_sdk/models/payments/V3CoinbaseprimeConfig.java: + id: bd1e6f3fc252 + last_write_checksum: sha1:81729085920bc4c16a8997d9b1ee1d1280e547cc + pristine_git_object: ed2d6dd8d01347ac96861dacae0a42e48a20f84b + src/main/java/com/formance/formance_sdk/models/payments/V3ColumnConfig.java: + id: 6b15f1f108b2 + last_write_checksum: sha1:5db44d85a08a2d09fb93d3061d3621c115d865e7 + pristine_git_object: e625db720525071324d63b011855e4842fb66430 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectionStatusEnum.java: + id: "775402888930" + last_write_checksum: sha1:a2aed19be54e5cb3e2a600b39ce476bcfc479e7a + pristine_git_object: 7a3db1f3ff3958114e088efe5b96827ad42fe5ef + src/main/java/com/formance/formance_sdk/models/payments/V3Connector.java: + id: ae9d21c92d60 + last_write_checksum: sha1:a9e71a72cea2ce52bb59505fbfefc6666434adb9 + pristine_git_object: fab2171a840a3fd207571e85eeb5a65623ea77e5 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorBase.java: + id: 908ce7712b3c + last_write_checksum: sha1:22d44f615e320a73ae73d676a76d20df735814ad + pristine_git_object: c40084119080ae911158a8f982a515e96b156012 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfig.java: + id: 6fb8caeaf959 + last_write_checksum: sha1:50e5c02dd6be45736848ce8da458974eb59b8100 + pristine_git_object: 43a5ec0dbd4920479c2d1572d97e98e062b371b2 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponse.java: + id: b0caa746c38f + last_write_checksum: sha1:5dd57229f76b9758f0a00b2e813b9081d072a25d + pristine_git_object: 196c7953fb578e82cbca5f5bee764c07b4997838 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponseData.java: + id: c3947a42fb5e + last_write_checksum: sha1:de22176fa7c35fbd1e6fd57906a81a9ed5f1caf1 + pristine_git_object: 5186c9354505a07371e9c11e8b70796266e60eb7 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponse.java: + id: e6fafacadbdd + last_write_checksum: sha1:c5f55ef44879282157b895b22547eca3cddc95fe + pristine_git_object: 99331cf4f69829982ee34bfd3583d8238adb9f82 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.java: + id: 228665b7aa2c + last_write_checksum: sha1:f7eb3bf84106175df27ef97d79ca0a26c795932a + pristine_git_object: fcafa2e8b370e16a32cc10783e6089d8385f1d17 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleResponse.java: + id: 4ad102c473f0 + last_write_checksum: sha1:4dcef39b469380610a4e56e7247d35cf3d22234c + pristine_git_object: b0847b139cf789763bfdbb324a734887d3a5ddc2 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponse.java: + id: a83a83f63f62 + last_write_checksum: sha1:86380f0a151b72f0b0d65168658f5d356d31d5a9 + pristine_git_object: 9c075f03f3494bbfd971af4901f7b1d47a73f852 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponseCursor.java: + id: cf9c1212e4d3 + last_write_checksum: sha1:c755e2c49981046016866933ef930c371f11333f + pristine_git_object: 465f9f30ecdde1654b23fd6deb5d27b5c45ce301 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponse.java: + id: 29886826c5d4 + last_write_checksum: sha1:acdfb1af2c41dae1fa0ed4655620763dbf0baf14 + pristine_git_object: 5235d832e993db66e272e290d7bf643f79b8ab28 + src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponseCursor.java: + id: 42c1b2b2af6f + last_write_checksum: sha1:974e8d09f590a3702028a39194d6c67fcbd84b23 + pristine_git_object: df94230cfb0c5f798bfda033780d76ac4829cccf + src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetails.java: + id: c3acb819beda + last_write_checksum: sha1:f61e151bd96782c417eab76ed4b463fdd415d9cb + pristine_git_object: b1a1c7e1cbf53e45b3e7fb6f9936ed86d3b22595 + src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetailsRequest.java: + id: 6425cfe1382a + last_write_checksum: sha1:ec13bf753b6d71231a7995a2026f825acdd77303 + pristine_git_object: 13456998b752b5018d98abd345a686a4195dfdcf + src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountRequest.java: + id: 3a02ee982927 + last_write_checksum: sha1:198ae1d1133aadf1c482f92673a75181789bb7a7 + pristine_git_object: 1f51a9c2466ec683aa90b36b3cd01202ec48f516 + src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountResponse.java: + id: 16fbc72d6444 + last_write_checksum: sha1:471c5867b8b1cb7e71bd4ac43d846efdb12c9dff + pristine_git_object: 49fe224844e571e9c7bf70fadf05fbc40b042186 + src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountRequest.java: + id: de9a33b7ae34 + last_write_checksum: sha1:01cedd7fdf364e921518826735b0945607d6143b + pristine_git_object: 25f3801dae8b253f36963577d44f44576447d22a + src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountResponse.java: + id: 0a8627b15880 + last_write_checksum: sha1:6f92266bb144a8007378e8e65c609f7171f249ec + pristine_git_object: 1cd48459cb25f7c18228c8de703ac5b5199d1bfb + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentAdjustmentRequest.java: + id: dc756edc2c2c + last_write_checksum: sha1:d3f4523fd8bbd59dc180b36e2315944ef62c0901 + pristine_git_object: b8910e36e3f50a3e7360e1cf15b4bcb554a0f16c + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentRequest.java: + id: 3805003c0c5b + last_write_checksum: sha1:0891533b173049c06063c055995c9f3b726b86e1 + pristine_git_object: 340d7a1f5fbb637e736d363c0e5b70b1f4a45d5e + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentResponse.java: + id: 29dc6efe1038 + last_write_checksum: sha1:e61f2e76a4c709f49f369d86ac71b52dc2c564f2 + pristine_git_object: e0a845ea38b1d8f2f3c9df23bd0a91c0bc70015e + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserRequest.java: + id: a0548f8fcf0b + last_write_checksum: sha1:77767e3bffaffccd053ea51a3bac0b8e36a0633b + pristine_git_object: d395b82e3441d9024da49481848cd3358674f32d + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserResponse.java: + id: 960dedc77635 + last_write_checksum: sha1:0fcd50ffc7e8296de71d1d4bcdf75b742606bece + pristine_git_object: 8f3d868ee5b6b3d79dcd975e10b32679bd70057c + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolRequest.java: + id: 951dd3454261 + last_write_checksum: sha1:929945f3b7fcae4e31745430cd655e8b19948eb6 + pristine_git_object: 6e8d2209e7a6f9170f133f555e657ef24dd534fb + src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolResponse.java: + id: 60e25aa8663b + last_write_checksum: sha1:76d59179d5d9c8e3b6da885594070661b97e39eb + pristine_git_object: e018004f4c587d7375f4b3d9082f8965516cda77 + src/main/java/com/formance/formance_sdk/models/payments/V3CurrencycloudConfig.java: + id: 5afb7a76c4be + last_write_checksum: sha1:bfa8df0ed32a6edcf3dd17327db0e460e2f23a8d + pristine_git_object: 59a72f6c23478205f9a8f9844de8cd50d587e392 + src/main/java/com/formance/formance_sdk/models/payments/V3DummypayConfig.java: + id: 05043a17af52 + last_write_checksum: sha1:9b696b19768ff35d60ab227ce4e38a597e836785 + pristine_git_object: c4bf0a992e5565440f343fbbd9e22f1ab885f7dc + src/main/java/com/formance/formance_sdk/models/payments/V3ErrorResponse.java: + id: 281b4a54cdf6 + last_write_checksum: sha1:6304190cbdeabcb11ec163d8635c8e49c86465ee + pristine_git_object: 508418d3b78877d23c56b528651b8c3179c78fb9 + src/main/java/com/formance/formance_sdk/models/payments/V3ErrorsEnum.java: + id: e669837623e6 + last_write_checksum: sha1:0d6cc573d9583c9c69ea939f47daa28f68dd0a03 + pristine_git_object: c218803e88f5c55a5409469e8c6e402c25c09ed4 + src/main/java/com/formance/formance_sdk/models/payments/V3FireblocksConfig.java: + id: a00f3c0c5def + last_write_checksum: sha1:d19face554d73a4288cc1b4d844d7fc92607c687 + pristine_git_object: 9d5342095973f5293a621fb5a99657b9cec2f5a2 + src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountRequest.java: + id: 4f55ebc76f9f + last_write_checksum: sha1:da46cc4f255f02abf9f4fc4a3d4cdecf69794cb6 + pristine_git_object: d42ddde66d995e5de9c18dd575f2aad6c150183b + src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponse.java: + id: 6ac18a20994a + last_write_checksum: sha1:d347076f0d417c76f444cf7dc74e2a8df6623137 + pristine_git_object: 71d1e8f9ec99c5943ad62d2fd09e23d05151692e + src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponseData.java: + id: aa21edf22677 + last_write_checksum: sha1:5129694714cada764b6d92399361a44f78088b66 + pristine_git_object: 7ef8cd5f3cca17c5a48754031121178af94e5d25 + src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.java: + id: 430fecb1dc9e + last_write_checksum: sha1:781ab98d501e1684a40e354090d9f31ba765ad58 + pristine_git_object: 4d2bf4851e4c8aaf6910396a5140264314f7894a + src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.java: + id: "883713693650" + last_write_checksum: sha1:4ae17c3b1a74e52b5e4d5e555c23519d30316e1e + pristine_git_object: 2e32eb01e16c8b0ef76eb8edf50182c0c5f33c66 + src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.java: + id: c93b58bd2b21 + last_write_checksum: sha1:2cd5739ce7d25acb5a7cf49fdc37d0ea055106a5 + pristine_git_object: 97690960933cb2ab182061e2788d88554175d3f1 + src/main/java/com/formance/formance_sdk/models/payments/V3GenericConfig.java: + id: e7383d1ff14c + last_write_checksum: sha1:bdb0f0df6ca515cfcca7a00faf4fbca896e4fb12 + pristine_git_object: 101ed540bfa477914938185d1f8f6ba5194c6285 + src/main/java/com/formance/formance_sdk/models/payments/V3GetAccountResponse.java: + id: a082161aa4ae + last_write_checksum: sha1:9313215eb99be4ef164d8234ccd668af7f522cc0 + pristine_git_object: 0529ec7ef3a46a256c245765241086ee5673b865 + src/main/java/com/formance/formance_sdk/models/payments/V3GetBankAccountResponse.java: + id: e9566b77e43c + last_write_checksum: sha1:3a7f1a8021047c44301090ca56681db717e9ba26 + pristine_git_object: 4b713f14374cf320b62073e949db4af7549fc0d4 + src/main/java/com/formance/formance_sdk/models/payments/V3GetConnectorConfigResponse.java: + id: ba23990af22b + last_write_checksum: sha1:66c052bf8ca339be758021ea2c3cfc0074d7792e + pristine_git_object: bac7e2b920526f43f2ddfa28acf206a9f54d95b3 + src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentInitiationResponse.java: + id: cbf5f10fd22c + last_write_checksum: sha1:55ee8fd8ecb93a3f92e330f5c913389db633969d + pristine_git_object: 9f117d1ac07c405b4ff30866ca6ec9608a60aecc + src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentResponse.java: + id: d3b971229584 + last_write_checksum: sha1:8ece2294ba9d15c868b74343c76b01536e52bccf + pristine_git_object: a0fb129f18cb44896e55abdf6436d638a8e0f038 + src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentServiceUserResponse.java: + id: c9126c05aef2 + last_write_checksum: sha1:c30e379be3c43143141c84cb9cf9594543939ea1 + pristine_git_object: 66200cfe4c1f66f43ab3088c4c48e6967dbe5b84 + src/main/java/com/formance/formance_sdk/models/payments/V3GetPoolResponse.java: + id: 6b72965d23e7 + last_write_checksum: sha1:9f7cbade1d39d541ef5f4f1c9eeddfc29f64f834 + pristine_git_object: 6edbf60840c882a79bc495b43a9555bfccc3b624 + src/main/java/com/formance/formance_sdk/models/payments/V3GetTaskResponse.java: + id: 31e69c97551b + last_write_checksum: sha1:48f3ee8e65ee0633e63cfdf7d56c40a77f5d88c3 + pristine_git_object: e285c39db7bb9e56c8aa85d33387c5a07baccf6d + src/main/java/com/formance/formance_sdk/models/payments/V3IncreaseConfig.java: + id: b199dd473e0e + last_write_checksum: sha1:d964f9a90487eb39dddb9dfd8dc738bbab404e12 + pristine_git_object: 2cec46f953dde33777ea2596dbe5cb21e67d9e1c + src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentRequest.java: + id: 5ee822220581 + last_write_checksum: sha1:b47183884b02e846b713af3690671bbdb75b02c3 + pristine_git_object: 5643566ab0aae67d688ddcd4c0aad28060303851 + src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponse.java: + id: b983c7c937e7 + last_write_checksum: sha1:6e774963f32792e94cb1d0056b120295fdc0036b + pristine_git_object: 0dae7fbfec1226918eb2ca281bce6eeaaaf6fb1c + src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponseData.java: + id: a3ce0089d94a + last_write_checksum: sha1:c71c4d1b6b55924d4e9ed94d5dfaaa037f7c1e93 + pristine_git_object: ff74735f1d55ab7597526092078353568bceeb3e + src/main/java/com/formance/formance_sdk/models/payments/V3InstallConnectorResponse.java: + id: 79d461a8ce57 + last_write_checksum: sha1:0ce426f97b39a03e1cff066cd81ad8e7c2c194b6 + pristine_git_object: ba0d67f89bf52b2cb31baf4fd5f8751caae53df5 + src/main/java/com/formance/formance_sdk/models/payments/V3Instance.java: + id: 24dcb2f4e2a0 + last_write_checksum: sha1:7a3aeb1286c3cb8809218b8bc48941e4d908c86c + pristine_git_object: 826ce743085031d35716434dec66d02e70a0e217 + src/main/java/com/formance/formance_sdk/models/payments/V3MangopayConfig.java: + id: 5b016397d13a + last_write_checksum: sha1:da83d0a2ab4d392423da0ce5fa14dfc18336031d + pristine_git_object: e8b9260408d476955df0121e0478f6b716e9d53b + src/main/java/com/formance/formance_sdk/models/payments/V3ModulrConfig.java: + id: cc8655960347 + last_write_checksum: sha1:b6cf2e4a34396a078e2120ea23daa4aec6f68da7 + pristine_git_object: fa676962845f2267f818cbca3716bfd1c408edbc + src/main/java/com/formance/formance_sdk/models/payments/V3MoneycorpConfig.java: + id: 752abdebfee6 + last_write_checksum: sha1:cd197ee1b6f94a6cba03ff0e390a55b65adfa2d9 + pristine_git_object: 779f223924bd26200d7efddf51462992f820bda0 + src/main/java/com/formance/formance_sdk/models/payments/V3OpenBankingConnectionAttemptStatusEnum.java: + id: 10030b9b3aae + last_write_checksum: sha1:835e25f0f7b9123d77ab731a3f6e9c83c1d53df1 + pristine_git_object: 6253b942320541b883da582ba2005cf17b8d37d2 + src/main/java/com/formance/formance_sdk/models/payments/V3Payment.java: + id: a250431ac975 + last_write_checksum: sha1:5a941e9c0dd45bc159614c6cc6bb95eb0a7078b0 + pristine_git_object: 2e0e832dc736634c0d9cac5dc2b0a7dba81c1be9 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustment.java: + id: 4aca41256c73 + last_write_checksum: sha1:15e570bcab7cd0422d3f35baeb1024cf1f8543cf + pristine_git_object: 327639135fb834cebaddf0b115b373371d47ac07 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustmentRaw.java: + id: c0ce11b0d6b5 + last_write_checksum: sha1:96d57ad0e8ffee1ee3fbf243fb2040ead44fc984 + pristine_git_object: 85fd12fb3f2b2796e64117a77a9e44be7931cfec + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiation.java: + id: d6e791c0b737 + last_write_checksum: sha1:0bedbbbe113a331a272f939e984d560ab2d44106 + pristine_git_object: 6ec374b982580b3b63d45e19114a75c1bb148fb6 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustment.java: + id: 1e8eef8b2711 + last_write_checksum: sha1:a4f89dbb7c24766ef31ae81a71debf28163423e8 + pristine_git_object: 566d410a4f514030f2e12c291c327703ca147b44 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.java: + id: dcbf041aedef + last_write_checksum: sha1:9b59ad55c9a56c1fc78415513f997b17ea636638 + pristine_git_object: be1b32f039901ca2e8adf293047ffd3390499090 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.java: + id: 79f9d71ceee1 + last_write_checksum: sha1:3d6b674d0d21e91811d1bfe3b8e83e95c3dab8e0 + pristine_git_object: 6e7ceea06b9066e74b46661a2b1e492a179c78b6 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.java: + id: d3c1e53733d3 + last_write_checksum: sha1:79c5bd132071fb9583fe3b63b184345ec4075bc9 + pristine_git_object: c774e12e4a03e2e078ac9fc4483509039b7103ba + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java: + id: 4b5481bb55e1 + last_write_checksum: sha1:bfc64cf71e7760aab5af4214ea691a2a60aeac67 + pristine_git_object: 4ceb3a7c895e8697bc79e898321928223dd4c8f8 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationStatusEnum.java: + id: f00a6b9ef456 + last_write_checksum: sha1:b760fb6a3ec12b33fbc07ad0c6af879fb4c3e81f + pristine_git_object: 45dd37bcf15d92c2c03f7572325b7479a61046d8 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationTypeEnum.java: + id: 09086cd7c8e5 + last_write_checksum: sha1:f0a1360096d02a396585245609fbdb5c2ac1027d + pristine_git_object: 10139f443ba271fd8133bbf5dfe2c14c00362448 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponse.java: + id: dbab5a2894e9 + last_write_checksum: sha1:b188ba2c106a1c995053953e3d7863fa377a7151 + pristine_git_object: cb1fd5741545c8e235cc14a3f84c9afbcff663dc + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponseCursor.java: + id: 6d181bc0eef6 + last_write_checksum: sha1:7c021ea9b33c856a4c90fcc86a6e6f588c4c7351 + pristine_git_object: 358c5664e01338837571778d65bc7ea7b092122a + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUser.java: + id: d8974aed77f5 + last_write_checksum: sha1:8c2415a5662a9624842756a1dd1b55d364b99db3 + pristine_git_object: 82faa4235c239284d3e176684719af67c5e368d8 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnection.java: + id: ceca561f9c15 + last_write_checksum: sha1:134c3ed6de4b1c7bf2e140ae5fa6a7f06928ea0e + pristine_git_object: c2915510c28b61ad01f001c28c6142b0cbc6d188 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponse.java: + id: 726484b60310 + last_write_checksum: sha1:d9e2091733d5ddd7ad01216f94bdcf2d79de115b + pristine_git_object: bd76a89ddbe5c1a8f245d2835862de094d327fea + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.java: + id: b8a3060738cf + last_write_checksum: sha1:9a1553d77d6359ff9bf65a67dccae297bdc0861e + pristine_git_object: d7ca6c85255bce813b10b0fb795de7201bef0a93 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkRequest.java: + id: 9ac0bb419004 + last_write_checksum: sha1:73fba72d7306632ac4a94effaef97d00818be46f + pristine_git_object: 59d8e85cd60d05ac457f1c0c2b260d95fa768abc + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkResponse.java: + id: 3b576df0c54d + last_write_checksum: sha1:5383cf541a56783c706035bfa5bc25597f991397 + pristine_git_object: 5637135d86eef1766da44c02a84bfe53437e43bb + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponse.java: + id: 86432a922fed + last_write_checksum: sha1:4e8eeb4e8ce88c6484d45fe2fb70d22cf02be49d + pristine_git_object: 94969cef31dc1165910b31a903b13bd03b8b7bb0 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.java: + id: d8c2a62e2c87 + last_write_checksum: sha1:8f579411fccce416148c05085e2e9f76c452638c + pristine_git_object: 8214735b1758fb34e8572045709253592bd2e757 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponse.java: + id: cb8ce106ef08 + last_write_checksum: sha1:1c17deb97c43951c4fe69b57651e27b3859dd617 + pristine_git_object: 2049f2d2d69e59a506582de9db60e8e19f9d8d0e + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.java: + id: 517ade5623a9 + last_write_checksum: sha1:c84648e773502e875639a62452d9c02a52630e5f + pristine_git_object: ce164b36147121fef5d7f5e407487dfa5dcf1240 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponse.java: + id: 0ff7e3ac26c6 + last_write_checksum: sha1:aece012ba344c41df381df6625619c30c729ed7f + pristine_git_object: c1243f6a9de7e0765f578d3c8da5301433ff5146 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponseData.java: + id: 54e77cb22938 + last_write_checksum: sha1:dababfba76ea683e5ffe8aab51a0a140d814cda2 + pristine_git_object: d3c3f24c9198af059c35cdcd6302629d705f7c8f + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttempt.java: + id: 20ed003169dd + last_write_checksum: sha1:29a553940a3a8e7939b589b342b540b828199521 + pristine_git_object: ea6a606776fbe121494539698cdbd333327b8dee + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.java: + id: 03ba2bde2b7f + last_write_checksum: sha1:23a485cede504608c4070b8ebdbbef8f1e5e55e4 + pristine_git_object: 785e9fad12b5a4a23b732e6f5a779162d9853e64 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java: + id: 25457a438287 + last_write_checksum: sha1:1186c7658646696d92690b061fd21877df3a0bcc + pristine_git_object: 37b7357ae0da2bdb9907d02c7b874749413145aa + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkRequest.java: + id: 00b2dfe126ca + last_write_checksum: sha1:88928bc6faee11d713769acdc940c544752285de + pristine_git_object: 501990592470801bdbf7f4c197b8694cfbe70684 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkResponse.java: + id: ba1f6093ba59 + last_write_checksum: sha1:d0a3da58b3794bccb11e7c1c3e1e288c4b29ddae + pristine_git_object: 1134760b407be50856b756f807496b1bae4b8bba + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponse.java: + id: e22298e0804d + last_write_checksum: sha1:438f22e2af9fcb397e340bd5c7c299bfee7fa214 + pristine_git_object: f8fa583624d2ca547b9dbe57aca9cfd01ccfdbff + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponseCursor.java: + id: 19a7b57d49fe + last_write_checksum: sha1:fded44b68975e73e2e84456102bba61f1eb3ca1e + pristine_git_object: 2aa339942f991a863a06f3fa449711c2cb0e2175 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentStatusEnum.java: + id: acb0cf71b115 + last_write_checksum: sha1:2d2eb051dcbb72c5e9bcd7594229ec33b3e70351 + pristine_git_object: 791c71a18498dba3a2f2e203330e93967acd394e + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentTypeEnum.java: + id: 52480cd907c3 + last_write_checksum: sha1:d9e54bd1308d2acc2ef15e0f43963c378eefe17d + pristine_git_object: 3e3b0915a6f6a8e303c365f5c63564b6344a6bd2 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponse.java: + id: c0ceda20535e + last_write_checksum: sha1:05c487ceb62d6aeeeda34c2dc8e57fb0ee70f8c0 + pristine_git_object: 12e7a1137c8cdd9b5b235e36ec039b510bf81868 + src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponseCursor.java: + id: 8d83efef3f22 + last_write_checksum: sha1:e3837ca8977186650e8e3598f018abbf1f53c7d0 + pristine_git_object: 083715414bd6a22e12352056ddafd8468b3dbe5f + src/main/java/com/formance/formance_sdk/models/payments/V3PlaidConfig.java: + id: 4a010683cfc8 + last_write_checksum: sha1:b410c3f1988cc2984ce00a118a19cf126dcb11c3 + pristine_git_object: 6e4791efa0c7ef3e62217fd94545f4de4b100430 + src/main/java/com/formance/formance_sdk/models/payments/V3Pool.java: + id: 734aad811b23 + last_write_checksum: sha1:1fc41cb8082d5916e5f109957e2f111d018aa137 + pristine_git_object: 1bcc1a57db99fe663ff71b3fbe0a0472f7935712 + src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalance.java: + id: 8aed2b788510 + last_write_checksum: sha1:32b779125f12d59ef8bf0bd41e6cbe29e2d48698 + pristine_git_object: f81ad2b454fbf945d6caed5e537fd8962187526d + src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalancesResponse.java: + id: faecb8505048 + last_write_checksum: sha1:33bf8b9a07206a7b2457048a17b6bf5ca3d86241 + pristine_git_object: 383a6bf60b5b5b6579b8cba63a63409579ca0330 + src/main/java/com/formance/formance_sdk/models/payments/V3PoolTypeEnum.java: + id: df0d60134de4 + last_write_checksum: sha1:e0f93ca5d8beb0b885d8464a659776f1e72a1377 + pristine_git_object: 363cd32f02992b53ca4c0b959323ef920ce59219 + src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponse.java: + id: 2b2117c015b1 + last_write_checksum: sha1:518a20760bd7bd1d11cf899790507a66dd0c6585 + pristine_git_object: 36d0a7ff172d0705ee4d2196e56af4014ab74873 + src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponseCursor.java: + id: dc7af259fe5b + last_write_checksum: sha1:7cf8747337e4bcfbe48054579571b435704d997c + pristine_git_object: d700e6e79e0f97d1f10ecc76fa2413615e07b364 + src/main/java/com/formance/formance_sdk/models/payments/V3PowensConfig.java: + id: c3e7acf24952 + last_write_checksum: sha1:ba67c4e601cb3fb6da24250d53dd168c52af6d5d + pristine_git_object: 7d5dc501c6eeb700909768b86648046f1b146a22 + src/main/java/com/formance/formance_sdk/models/payments/V3QontoConfig.java: + id: 512a21b41699 + last_write_checksum: sha1:7dd6837aea02cf787e033204690e2094f922c55c + pristine_git_object: a7332d565959fa77aee6959ea0af9662d02c5d0d + src/main/java/com/formance/formance_sdk/models/payments/V3ResetConnectorResponse.java: + id: 1e4b040da362 + last_write_checksum: sha1:c4293ad02ca0f79b3b0e904f81f40f11039f3e2f + pristine_git_object: e61dd02490e85b446905e9519cee0efff510094a + src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponse.java: + id: c17b31dca466 + last_write_checksum: sha1:823ebb4e9dafc968a2cff20d20e7390fa5752614 + pristine_git_object: 479f613761b8c41404bcf6b03449c209d501a8d8 + src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponseData.java: + id: 75f6a5f3a7f8 + last_write_checksum: sha1:09f40f882171d2076ad9379c2a28f179075daeb4 + pristine_git_object: b037c30d25a031e29d61f04755f65ea89e648401 + src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationRequest.java: + id: 996075ff417e + last_write_checksum: sha1:d0f5e04b0c97ddff288779bfeef24a0624352d84 + pristine_git_object: 438fd9043b91aa9a9dcc4b1bffa47ab11ebac2ba + src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponse.java: + id: f2bfab147cf0 + last_write_checksum: sha1:e7a96beb31819295c3299fefe404f83f66cced0e + pristine_git_object: 62d8176320ea46488c048be6363fe228d1bb0446 + src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponseData.java: + id: 055d2c04a4b4 + last_write_checksum: sha1:394ca19182c6571b44c52399d60c176d4e9398ad + pristine_git_object: f96f4e73b0f2170d62157de01badb3964491c4c7 + src/main/java/com/formance/formance_sdk/models/payments/V3Schedule.java: + id: 6b2a5eb007ea + last_write_checksum: sha1:e8fb7a3aaf3f80870c515ca4f61691621b116cde + pristine_git_object: 6173cdad125ffdfd09735b2827b5830c13c7d6c8 + src/main/java/com/formance/formance_sdk/models/payments/V3StripeConfig.java: + id: 8eb7a5c4aec7 + last_write_checksum: sha1:a19e2ebe5b72175223a67ce8e28fa3ae179b0a70 + pristine_git_object: 44a88025a44afcec7b10b18c7e3bf5f27efb2e06 + src/main/java/com/formance/formance_sdk/models/payments/V3Task.java: + id: bf8a3395745e + last_write_checksum: sha1:935385dbf565326f3ec9f02c9f3a1fa01d31152b + pristine_git_object: f0315c27e7992533d6f98a32b5802023cdb7d6e1 + src/main/java/com/formance/formance_sdk/models/payments/V3TaskStatusEnum.java: + id: db49a4409817 + last_write_checksum: sha1:8256957c8167d7b466f53511c84d743f68960c2b + pristine_git_object: b2a45f4d69fee7690b3453818300a401357dbea3 + src/main/java/com/formance/formance_sdk/models/payments/V3TinkConfig.java: + id: 817c64442695 + last_write_checksum: sha1:2e3f62264adcb2698f8ee2d7717c13b3f72b4cc6 + pristine_git_object: 75390ee533e13e2a2412e3d6832a24ac6415f795 + src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponse.java: + id: 3e44c5947d65 + last_write_checksum: sha1:b53657159fcc110c62367ba92b5acfab4ce6d18b + pristine_git_object: f343c96347cb8db1852761e38809434c24f64e22 + src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponseData.java: + id: 136281c776b8 + last_write_checksum: sha1:b5b057bd730bf1e0ba9030886e341344a040e6fc + pristine_git_object: cfcd0a43c856e1ce8007b8855e798b925784a290 + src/main/java/com/formance/formance_sdk/models/payments/V3UpdateBankAccountMetadataRequest.java: + id: ea0a12b418cc + last_write_checksum: sha1:53dbc835d2a116c1b235ea75c0cb4ace8b97dec0 + pristine_git_object: e1861610c55091dc8f21d0f2bfba571882df4943 + src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePaymentMetadataRequest.java: + id: 59de8a34e033 + last_write_checksum: sha1:83fa6ca7e9b34373cf7e639c882ef2c1d0cceac7 + pristine_git_object: ee3f0570fa9c36c73ce634add818d597f4d0a144 + src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePoolQueryRequest.java: + id: c837d7178de6 + last_write_checksum: sha1:a9a94ee5c880461c2a357a31ccdcefdaeee52db7 + pristine_git_object: 705c9a21f34342ac9e329a9e1ce2db52d2c5531d + src/main/java/com/formance/formance_sdk/models/payments/V3WiseConfig.java: + id: 94f8c126cedc + last_write_checksum: sha1:f64771fc87216276c5bf2d439b7a3dadaac7e1fc + pristine_git_object: 4021e8cb39a3fb250febbf6e371fd67e3a5f485c + src/main/java/com/formance/formance_sdk/models/payments/WiseConfig.java: + id: 8cc3a14760fe + last_write_checksum: sha1:9d68bbfb3ffdd0c32299393ad7385b6664001dc3 + pristine_git_object: a26f698110b6705bc3fe2cd53f1f1001e394cf88 + src/main/java/com/formance/formance_sdk/models/reconciliation/ErrorResponse.java: + id: 432a3b1426d2 + last_write_checksum: sha1:da4e315c880b6c3c76cce53d0177a9910792a092 + pristine_git_object: 39282c679a270cbe4eef950d09582d7c7fc8ea23 + src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponse.java: + id: 78d71e7ad4f1 + last_write_checksum: sha1:d767248e6195d369b0843e624eafcc09217ee4be + pristine_git_object: 94cf95bcbc552ec6a80e9fc843a712dd8ba50fe8 + src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponseCursor.java: + id: ec5716b67f85 + last_write_checksum: sha1:e7f9aa872de867b00a4cb203b91744836d5e36a5 + pristine_git_object: 570191a016d2d58ab7e9d16ea837639fcb21e3c4 + src/main/java/com/formance/formance_sdk/models/reconciliation/Policy.java: + id: 689d9d557612 + last_write_checksum: sha1:953e63136b6055a8e2d1c8406d6a1c04a2654afa + pristine_git_object: 56594491743b10b758c13f20fe5ed0210acf3817 + src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyRequest.java: + id: d911859d3ecf + last_write_checksum: sha1:37c67e036e8da0753eb3b3fbd4094eabc0716a3a + pristine_git_object: 63ac33331e4739de573daed949d820845544a365 + src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyResponse.java: + id: 204dc1bd9034 + last_write_checksum: sha1:67c640a54f4290230d138c8de8bc59e167c5deea + pristine_git_object: d5da32e0d01d0a4f293bf059e55eff971164f28f + src/main/java/com/formance/formance_sdk/models/reconciliation/Reconciliation.java: + id: bec3443bc697 + last_write_checksum: sha1:23c81a8b03ebf1935f0c736c5a1efe01cb3c78e6 + pristine_git_object: 10edb8aff7f5317078e3266402109941a8d14db7 + src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationRequest.java: + id: 8e907407cb7f + last_write_checksum: sha1:b5303b56b273d9edd233b2917079a98be2dcfd00 + pristine_git_object: 4a8fc1e304d18e87c612015a6c0fda2b0e1a6b22 + src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationResponse.java: + id: aa8369759a76 + last_write_checksum: sha1:b4ce36e4227ca27526081e2fd4219fe8fc5beefb + pristine_git_object: 8f0acee5fdfd7d1c71593a94258151f3a589372c + src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponse.java: + id: 697a7819d1ea + last_write_checksum: sha1:0d161f212d02d4e8c17325baae30348a9d825a86 + pristine_git_object: 0f277e3c5dc51c566be8112a9a86d7bee2645696 + src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponseCursor.java: + id: 7d1056205723 + last_write_checksum: sha1:78ee3d4e7ca2e0a2c7ad232b28c9c887faccaf7a + pristine_git_object: 9e659487818921e0bef64122484c598bf1fcebde + src/main/java/com/formance/formance_sdk/models/reconciliation/ServerInfo.java: + id: 3aff9c65a409 + last_write_checksum: sha1:b73d5078b7a1f35ea505032adf1096a378eac1d5 + pristine_git_object: e333068f6c9039d3b764f6c2c713f408604c1886 + src/main/java/com/formance/formance_sdk/models/search/Cursor.java: + id: c358221ea751 + last_write_checksum: sha1:e93359de1b0f1e576def76147705894997e75b88 + pristine_git_object: 38c2722dceab04d892e5a49a76e67cbab76bdfbc + src/main/java/com/formance/formance_sdk/models/search/Query.java: + id: acf28aefefe6 + last_write_checksum: sha1:a2ba3ff9806779ffef3d24a37365046f91f2a109 + pristine_git_object: 984da8d4e213ab505ca77bdda4ed2917f3615e78 + src/main/java/com/formance/formance_sdk/models/search/Raw.java: + id: 9a35db3968e7 + last_write_checksum: sha1:611c2b705d1be9479685822990d0a59021af4a2b + pristine_git_object: 82f108b594af6de0c08aa52b7c6cd4ba73819132 + src/main/java/com/formance/formance_sdk/models/search/Response.java: + id: f1f827ec6724 + last_write_checksum: sha1:f23118c30f3af5171b30c2cab6783983e1613b06 + pristine_git_object: cfbd4032f0601e29ee82f51b879cf47481ac0b85 + src/main/java/com/formance/formance_sdk/models/search/ServerInfo.java: + id: 03066886060b + last_write_checksum: sha1:459c0ff95143a4ca0fff4e1e6b7c2acb08ed21fe + pristine_git_object: cb49c37458281ce99ad9e83ad99938c11942f4cd + src/main/java/com/formance/formance_sdk/models/search/Total.java: + id: c7be4f01f36e + last_write_checksum: sha1:0423156fd50400ea7f27b8446cb96c51a2ce971a + pristine_git_object: e53b6cb92f3b1eaa5626c9ba2166a7802678005a src/main/java/com/formance/formance_sdk/models/shared/Security.java: id: 42be9bdc6919 last_write_checksum: sha1:279ca7c747f8f3e881309a988d0b95b0cc96fd63 pristine_git_object: a15a340c9dbc05a6700cfe01e08b4b4ae59893a4 - src/main/java/com/formance/formance_sdk/models/shared/ServerInfo.java: - id: 9dc91754bde0 - last_write_checksum: sha1:0a47288614030b476cd38257c4ee4f0422b5ad07 - pristine_git_object: 0654e4e261d8bc5003715a7452deefd7503bff93 - src/main/java/com/formance/formance_sdk/models/shared/Stage.java: - id: 9370859d53da - last_write_checksum: sha1:c2d53f1590efe6c0922f47cfef020e78e4754392 - pristine_git_object: 60f84f9747e11de8adda5a79fb0e7c5b0484be36 - src/main/java/com/formance/formance_sdk/models/shared/StageDelay.java: - id: d602fdc95709 - last_write_checksum: sha1:48115dee91afb1f9e8981539246308644608a739 - pristine_git_object: 9e265287174e7479a090ab8a47cc94a34f73b11a - src/main/java/com/formance/formance_sdk/models/shared/StageSend.java: - id: b139662293e2 - last_write_checksum: sha1:8533f97ac843765da13a6d4b955dae52e733e5d7 - pristine_git_object: e22865e091fe5bdaacd0f7841be061481eb392a4 - src/main/java/com/formance/formance_sdk/models/shared/StageSendDestination.java: - id: ba5e3aad92be - last_write_checksum: sha1:55b72c0d2a57d3949f8e42ca874f74a00da54d30 - pristine_git_object: 2909cce280253b46b84046f2713ce5608ed4d3d1 - src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationAccount.java: - id: baaa351dd542 - last_write_checksum: sha1:3820eb6fa01bf4c30899cf172998b0019b2dbb42 - pristine_git_object: 0e5d2acf6bc15432e11d0636442abdb906fbc504 - src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationPayment.java: - id: cd10b25fa108 - last_write_checksum: sha1:d6bba458fe37b9866b17f3b52f9319f7ecf9195b - pristine_git_object: 42b4f55c25b28a5fa362a3474bd853d2c6ab13cc - src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationWallet.java: - id: efe9253ff50b - last_write_checksum: sha1:1b4e31a8cd113a1d083ef92aad6746568b9327fc - pristine_git_object: b8f1a574ed2df55b56a279b2a4752382f39b63b7 - src/main/java/com/formance/formance_sdk/models/shared/StageSendSource.java: - id: 8c0c9d0bbfee - last_write_checksum: sha1:c08c722a462b527454b54c706d44b653aab75ac7 - pristine_git_object: 4ad4cea7853fb54dd6931ce2e7cd3365b31a8932 - src/main/java/com/formance/formance_sdk/models/shared/StageSendSourcePayment.java: - id: 147288c81576 - last_write_checksum: sha1:33a73c3ff9b7a4034fd43aeba63e9346815b6834 - pristine_git_object: f68fb929b725fa4317c9ee3d6798048e792adf81 - src/main/java/com/formance/formance_sdk/models/shared/StageStatus.java: - id: 6e2c6902f519 - last_write_checksum: sha1:5d9ce7b3f17a6c82800d951e99220c5909b34ea5 - pristine_git_object: 2a9bf47c5979cffca5a3c971a46988bd69af369b - src/main/java/com/formance/formance_sdk/models/shared/StageWaitEvent.java: - id: d3b3d6b58cef - last_write_checksum: sha1:1ac5d42b8bf76d865626fd8b6dec893958f44d45 - pristine_git_object: a985c7946551e4242c66709da4ff9c874a534c01 - src/main/java/com/formance/formance_sdk/models/shared/Stats.java: - id: 43a0291b3aed - last_write_checksum: sha1:d7f6022ae09329f94c8e80f189e9a8a3a7547a09 - pristine_git_object: 64f91128b0132ec55768362af9bb65490edd304e - src/main/java/com/formance/formance_sdk/models/shared/StatsResponse.java: - id: a209bb88320e - last_write_checksum: sha1:e965d20a6661f37e4f72d18b3039cac84752f950 - pristine_git_object: aeeed4c2e03251536e57d82fcab8fd59fec7f997 - src/main/java/com/formance/formance_sdk/models/shared/Status.java: - id: 765357de1f34 - last_write_checksum: sha1:2784a5de664dccb2fc4cb3e9086f0e44382b7434 - pristine_git_object: 521b26ab9d42a71e0090c5a1169bd275015ed9c0 - src/main/java/com/formance/formance_sdk/models/shared/StripeConfig.java: - id: 3f85f70b6497 - last_write_checksum: sha1:67932d839909341ac5bd761cf80f6c4b9fea77a2 - pristine_git_object: 33106f7c22bcaa7db84c0b2b5f782615de60f84d - src/main/java/com/formance/formance_sdk/models/shared/Subject.java: - id: e4db97d277a6 - last_write_checksum: sha1:47c2b0bfad51f7f1f2382d38f5e2186ba1e27fee - pristine_git_object: eacd098aed11b81b7066087e28e4aeacab9ec542 - src/main/java/com/formance/formance_sdk/models/shared/SubjectTypeIdResolver.java: - id: 12383f9bd83f - last_write_checksum: sha1:4f625070ce8880635d18d541ae5feda533ab9fa4 - pristine_git_object: 383cecaa83f5cbb0c2b008805822fcf9a2fdf7cf - src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircle.java: - id: 53c96e85f67d - last_write_checksum: sha1:848a86fce5c6e022609e34baef10254f619ffcf9 - pristine_git_object: 96a14e70b36cd7a54879a005b069edc3b855eabf - src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleDescriptor.java: - id: fd42e569f74b - last_write_checksum: sha1:5f580fb505e2362a41612dc0ee8f62102b317416 - pristine_git_object: 395ced544b7816a6f0b076ed0c80917b5fa613c8 - src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleState.java: - id: 31ab2b03e611 - last_write_checksum: sha1:3a0269c191a6aa7929161d052402ec72a25cf67e - pristine_git_object: c1583b7223ccecda2ad0b7b8deac776c70df7a9a - src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloud.java: - id: a5c27174ca02 - last_write_checksum: sha1:c5ea0f6eb6cc9c8c010b92b7ea986d34a94acfaa - pristine_git_object: 0e649ad558b5a97675a701c4cb29f8fa38c2c32e - src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudDescriptor.java: - id: ad58c75827bd - last_write_checksum: sha1:1d8fd334b6f2ecf859a130a2eeda18497a71d080 - pristine_git_object: a65ed9abdfe3bd286967ee559ed94cc6fc432c40 - src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudState.java: - id: 204f92396be2 - last_write_checksum: sha1:ad05115cd1a99e3a1c86f6b143161cb7fba9f6a2 - pristine_git_object: 5b690f7b18912a6d918194f02101c3dcf3764eb0 - src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPay.java: - id: 5f11ad81a891 - last_write_checksum: sha1:14babc5a6f4eeb8da064c075ee6bff0956993442 - pristine_git_object: 50f8206b115281cc22596aa5d506f962c5d1cee4 - src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayDescriptor.java: - id: cd19c231e224 - last_write_checksum: sha1:76f171e2749c206c18de46d1c4caa42c65965720 - pristine_git_object: cdbfb230c335a2875d9f9b6beef4aba02b9ab218 - src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayState.java: - id: e0276555ae9d - last_write_checksum: sha1:af97c2f4a762f55ea8468b2725d6c2ff67a5edb3 - pristine_git_object: 8b4431d57be5c141bc5393edeb8b331680b01da8 - src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPay.java: - id: 91ca5eb34569 - last_write_checksum: sha1:f9c3b57927207705ac369e257cc6e68935d63ec0 - pristine_git_object: 0f8c4bce34301fa2f4e786a65b3705429ef1725f - src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayDescriptor.java: - id: 62836c98b9e5 - last_write_checksum: sha1:e5ba4bb0049e8ffe219ce9631b59a115f91b56ca - pristine_git_object: 97915d895952aa69de698342c704e3420f024d7d - src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayState.java: - id: 7bc69fefc7a3 - last_write_checksum: sha1:c65f4ea0a6059e4490f78b53e9a15d6545b7994c - pristine_git_object: 0839023303c07eb74cb410d4438ce3eeaa04c1a6 - src/main/java/com/formance/formance_sdk/models/shared/TaskModulr.java: - id: 89b0300e823e - last_write_checksum: sha1:d7d58aad6c1fa962643eba76c7faf6c2f9ee61aa - pristine_git_object: 41b675e48f899ddf9da4c14af40ebf206aeea411 - src/main/java/com/formance/formance_sdk/models/shared/TaskModulrDescriptor.java: - id: 9a7daed92a3c - last_write_checksum: sha1:17d2ac313f2f33a0fe0f3c15d401681597340e72 - pristine_git_object: 292f2d42f55b2ead91a79ab51f026bd7e9036134 - src/main/java/com/formance/formance_sdk/models/shared/TaskModulrState.java: - id: 949def257df9 - last_write_checksum: sha1:3d4aa40c62fcadb15a459dfb6eca9ee420de9deb - pristine_git_object: 8d819d0295053df8d949bb1b601ac4690d28566e - src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorp.java: - id: bf1c253760d7 - last_write_checksum: sha1:654e1443e382791e29e6469dcad9325d2e1a455d - pristine_git_object: cf7f511406fbd6fd0b0b4d28238826c1954144c9 - src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpDescriptor.java: - id: c604ab408095 - last_write_checksum: sha1:a85ed9fc2651b0dd1423d5e42784cdd7f8453230 - pristine_git_object: 83c903e640698cb8570cc0ad6b359cfe92b3e3c5 - src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpState.java: - id: 40d5fd4e6f31 - last_write_checksum: sha1:9724e1e70336b4a83a89c7dce922aed9dfb6bd3e - pristine_git_object: d6cb4adf963f77db59b5b208a8e74b29f77bc54f - src/main/java/com/formance/formance_sdk/models/shared/TaskResponse.java: - id: 7ff9fc2e0f24 - last_write_checksum: sha1:62a57474c8624928a6e14f172cfb7b387338c1b4 - pristine_git_object: a0e588e75dc520c65b4104e2c23f5d4e9f1bcbc0 - src/main/java/com/formance/formance_sdk/models/shared/TaskResponseData.java: - id: a50f51cf5dbc - last_write_checksum: sha1:e4f96835e2fe7af64f138ca0ae9430bdb07bb3c4 - pristine_git_object: 5edd7192a19b5a86b83e6d28bb4a76e14ea9e962 - src/main/java/com/formance/formance_sdk/models/shared/TaskStatus.java: - id: 70c26b3c2718 - last_write_checksum: sha1:4744282b000bae686d99e9de2a2eb522cb95d469 - pristine_git_object: e839aae4f516927458e7dea2e68adb95a35e9915 - src/main/java/com/formance/formance_sdk/models/shared/TaskStripe.java: - id: 88e166795bad - last_write_checksum: sha1:900a14bf2db673249ed583fb67259428dfd9c3e8 - pristine_git_object: 6ca74d9ddc124d247d538d3d5c02e71808cd808c - src/main/java/com/formance/formance_sdk/models/shared/TaskStripeDescriptor.java: - id: fa4e6b3dcc2f - last_write_checksum: sha1:a207605003c6ce175dce5244ebb30c3e827fc327 - pristine_git_object: 675470baf0c6a24494a4fbcdaf0ee99101868e27 - src/main/java/com/formance/formance_sdk/models/shared/TaskStripeState.java: - id: a12fefe5b67c - last_write_checksum: sha1:84924e9a28bb0c71e10252e7f982eb294bf7dc33 - pristine_git_object: fedd7d3fb79e78a5fc7025727736a9552922c1e1 - src/main/java/com/formance/formance_sdk/models/shared/TaskWise.java: - id: 28dc904a7db8 - last_write_checksum: sha1:c45d44f7f26e45a3755bf58cf05ca3fc3c7ecc96 - pristine_git_object: 61f54e186a4833e1abfc05c10ea1afe3c88442e8 - src/main/java/com/formance/formance_sdk/models/shared/TaskWiseDescriptor.java: - id: cb44ead384c0 - last_write_checksum: sha1:443456183433b85b38031c18eab4c5ce150b674a - pristine_git_object: 4c7a91f6b6f1babc9dcf7d3782602c68acafa411 - src/main/java/com/formance/formance_sdk/models/shared/TaskWiseState.java: - id: aefcbf9c5ec2 - last_write_checksum: sha1:f2033c47d3dda9c27415e0792840daa00602f2c2 - pristine_git_object: d847f2e189bf291538a33e06999b1c8cf730d15e - src/main/java/com/formance/formance_sdk/models/shared/TasksCursor.java: - id: c0e5e2a9ef58 - last_write_checksum: sha1:17e6bb20e582e0d7116fd6fe2fd17cc047852597 - pristine_git_object: 760f28b8fdf1cbe7626532e0eddf98d8c43d9c1d - src/main/java/com/formance/formance_sdk/models/shared/TasksCursorCursor.java: - id: 7e470422fe94 - last_write_checksum: sha1:6255840b0199ef8eb946a066d0ac53cb0f853fde - pristine_git_object: 4983392f92f4f51b1d764cbe61bdaaedbea65857 - src/main/java/com/formance/formance_sdk/models/shared/TasksCursorData.java: - id: dc1ce75fa788 - last_write_checksum: sha1:60af4bae5b314fe9c6f667e590765a729a32d914 - pristine_git_object: 9d72e1b315b00f7b75dbe9a2a45fa1ecf4927e46 - src/main/java/com/formance/formance_sdk/models/shared/Total.java: - id: e2b8bf4d7edd - last_write_checksum: sha1:a6553bdba930ce555eab009f210e9f8d7c7872db - pristine_git_object: cfca1bffda7fe57bda705678b24d5b1d48c79f9d - src/main/java/com/formance/formance_sdk/models/shared/Transaction.java: - id: 45b209122171 - last_write_checksum: sha1:fb8820b35370339486bde3aeb053fe69e195ca1a - pristine_git_object: 39c8c2f5917fdf97cc6c25a88fc127226b19d684 - src/main/java/com/formance/formance_sdk/models/shared/TransactionData.java: - id: 9ff5657a015c - last_write_checksum: sha1:a01ba9dbf1f36a869163e12f1e498c01f8eaac45 - pristine_git_object: 28d15bcb334c35b085971d37f0a48078fb403635 - src/main/java/com/formance/formance_sdk/models/shared/TransactionResponse.java: - id: 4545dcd1e8c6 - last_write_checksum: sha1:ea38da17a6360e0f11f5221a2b9c25ec5b7fedc4 - pristine_git_object: 98581c3b68ee8d789fbc27dd4df981cb53157b28 - src/main/java/com/formance/formance_sdk/models/shared/Transactions.java: - id: eae9435462a3 - last_write_checksum: sha1:34ef9352e74c30abb7ff9d6cfdc93d723329013e - pristine_git_object: 0307d63d3d3056c8b1e678f490d911121af3d87e - src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponse.java: - id: c83a40567e71 - last_write_checksum: sha1:b46246942f0831fe961355fc1f1f1f72c8972909 - pristine_git_object: 9f5f80c9761cb93cacb4617f9096ab546529c3c2 - src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponseCursor.java: - id: 116408e32b6d - last_write_checksum: sha1:c81288e1af148b875fee75d8d84fe6315b741eb9 - pristine_git_object: ec15a9706c083198dba1d5304d966869004d91ca - src/main/java/com/formance/formance_sdk/models/shared/TransactionsResponse.java: - id: 3c289ae9085f - last_write_checksum: sha1:e7567d33c5981650bcfaba02ee6a713ff779db6c - pristine_git_object: 4c8d3cdc4bb5f3096c30cf5fdcd86441e66cc009 - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java: - id: 8c1d2219d87a - last_write_checksum: sha1:85a00a96a6b08114903a25b92d4249b98d8a96b7 - pristine_git_object: bbbcdaca2ea3df76c5f89b9d5b6048fa92ec6799 - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationAdjustments.java: - id: 079948241e1b - last_write_checksum: sha1:a297d5c00fdebc94f503d95f4dd31be7cd28ccf2 - pristine_git_object: a0178cc71d16160a4e944636db37ab1cb055fd9d - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationPayments.java: - id: 104ccae813fc - last_write_checksum: sha1:ab583a19f69d6e3f05f4da8e71fc4ec79f785439 - pristine_git_object: fa9c82d436734893bc45a01bb7611af55dfb5144 - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequest.java: - id: 1d93b11ab79e - last_write_checksum: sha1:fb310e5d4503b9cc6c9e1daee7e5ff8c3374a28e - pristine_git_object: 7c06c82acf58ab7392a12bbfc22749a7f3ac3acb - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequestType.java: - id: 8482fc0522df - last_write_checksum: sha1:1681008b37ecc1ae0ad19c7b0119b24edf5e26f9 - pristine_git_object: 61aab2b1587ee0f33660bd775855f3245a35a39e - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationResponse.java: - id: 91cbb4de3204 - last_write_checksum: sha1:368004f601573ca4b362e9e094a244871f950cc2 - pristine_git_object: 0028afd0e7f91e04311d80b63cef5744a8dac8c4 - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java: - id: 8c6be3650878 - last_write_checksum: sha1:146140dc9205e66274472f84f9b0dd51ec75fc22 - pristine_git_object: 13bfad3f8ce510e9dcad1c64b647e20d9d54cc31 - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationType.java: - id: e8b0e3402734 - last_write_checksum: sha1:9d9ef25b3005100af4b048c10b8116df54ab41ec - pristine_git_object: b5fba826719f90949e35cabe9f5e4471ade8e101 - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursor.java: - id: df7b985e28f8 - last_write_checksum: sha1:4cebd2339d5529b0c286a4da4ea278189be675dc - pristine_git_object: 9377a2ca914c616f53cee3be17db78089602b4bc - src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursorCursor.java: - id: 3a533882f6df - last_write_checksum: sha1:73c80a3f36b6b3b6a874a7efda4bb2d6b9248012 - pristine_git_object: 061d981c15db24ee805a8acab8d712331c99cd15 - src/main/java/com/formance/formance_sdk/models/shared/TransferRequest.java: - id: 25ff81662315 - last_write_checksum: sha1:97ef580d17afaa0f294cdd6ae8535257f3438151 - pristine_git_object: a84762ed49a2bb7573b38f68c4c8e25dbe833a77 - src/main/java/com/formance/formance_sdk/models/shared/TransferResponse.java: - id: c6c47237bb30 - last_write_checksum: sha1:853706bade86b83575996919270ad50d49dab951 - pristine_git_object: 107552705ecc6d9070aad3a326159b12fdabad2c - src/main/java/com/formance/formance_sdk/models/shared/Trigger.java: - id: 7983d99a6ce5 - last_write_checksum: sha1:fb0d5973275f73c1aefd0c534c9ee859ae8f412b - pristine_git_object: 914a40922f5edbe26e823685c46d2af3b24f92de - src/main/java/com/formance/formance_sdk/models/shared/TriggerData.java: - id: f0e36ac0127c - last_write_checksum: sha1:5616ba1e83e350656090fa2a21ece64dae932a71 - pristine_git_object: d58406e5de9f8b7faeb795b2703b6e8007488990 - src/main/java/com/formance/formance_sdk/models/shared/TriggerOccurrence.java: - id: a62dc3974e29 - last_write_checksum: sha1:50dfbc12c478e9bb0283fa25fa37d884d31b570b - pristine_git_object: e5116a1c17949a068e0f69430211d06ab2679222 - src/main/java/com/formance/formance_sdk/models/shared/UnknownConnectorConfig.java: - id: 68d8a256f83f - last_write_checksum: sha1:92ae42faf57f588041efc96c0abb66384d6f8b20 - pristine_git_object: fa7bf1b050661fd659a879cc2edf42969fd06f92 - src/main/java/com/formance/formance_sdk/models/shared/UnknownSubject.java: - id: dbcd2c6e9ff0 - last_write_checksum: sha1:713ff12399871fd6d0ed778a6cdc04a512770c2b - pristine_git_object: 437d6db0e9a771ce513c1f3d92032bfe25d20f3f - src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElement.java: - id: 2cd477dfc6cc - last_write_checksum: sha1:437468cdd970c111c3a31d0850981f3f0dc9e72f - pristine_git_object: 327343b1de0ac46f1974d54cad48fae1b3f86b9b - src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElementResult.java: - id: 8035faac8cfa - last_write_checksum: sha1:12b2a0762807254a1aee78da943c0fce5b8f0b81 - pristine_git_object: 1136a351d110649756c3c30d3e0a8d5224b15708 - src/main/java/com/formance/formance_sdk/models/shared/UnknownV2Subject.java: - id: af759e90b434 - last_write_checksum: sha1:b7147ca02f2037cf154db43b35a33d903e1c70e5 - pristine_git_object: 3f48877e6a1ef1984b4d1d752a2c87e0a70bf237 - src/main/java/com/formance/formance_sdk/models/shared/UnknownV3InstallConnectorRequest.java: - id: 807d6cda6b27 - last_write_checksum: sha1:ac3178630b243266b23d7ae255582095cfc238b8 - pristine_git_object: dfd8f4dc8414f7170e4cfd96f3a33e1073cb7bd3 - src/main/java/com/formance/formance_sdk/models/shared/Update.java: - id: de9f76302346 - last_write_checksum: sha1:7801c7b39e26f00db7bd58e0f77e709a95ca386f - pristine_git_object: 1c34242db4b9bbf53da387d76dbc55987c091cc0 - src/main/java/com/formance/formance_sdk/models/shared/UpdateAccount.java: - id: a77e7c687e8c - last_write_checksum: sha1:54d89a47c80bd953ed4385b95fab0b88b4475fe5 - pristine_git_object: 6b7789e22267aabe643eebc86edbacfa3a6e8c28 - src/main/java/com/formance/formance_sdk/models/shared/UpdateBankAccountMetadataRequest.java: - id: bdcabc6e1641 - last_write_checksum: sha1:251500a26cf22f3637758bd84b228c112ff23ddf - pristine_git_object: e8b3b7a0303aabad25cbfbd67d87395901858769 - src/main/java/com/formance/formance_sdk/models/shared/UpdateClientResponse.java: - id: c43439772154 - last_write_checksum: sha1:04d347639335c10edaf4a188c3374934de4035e4 - pristine_git_object: 2194750fefbd941efd0008541d1581149421d630 - src/main/java/com/formance/formance_sdk/models/shared/UpdatePoolQueryRequest.java: - id: e36bb8f3b80f - last_write_checksum: sha1:1860b96e6fdc09f360127ba9e5859ccb6debcd5d - pristine_git_object: 27763e713c20da07f5cb92324881673f2472294e - src/main/java/com/formance/formance_sdk/models/shared/UpdateTransferInitiationStatusRequest.java: - id: 907dddd1d295 - last_write_checksum: sha1:6d0dd8e1f551e3e7c3331310d9a6f9210a2ba538 - pristine_git_object: 687b36436e7f8c70cee044debf148b21548f2203 - src/main/java/com/formance/formance_sdk/models/shared/User.java: - id: e9943e5a7fad - last_write_checksum: sha1:4a83a88430aad2b904444ab24116085d03741ebb - pristine_git_object: 2dae0ec0fb42223da0026fe2a2582c41f39e4e9b - src/main/java/com/formance/formance_sdk/models/shared/V2Account.java: - id: db6da992599e - last_write_checksum: sha1:eee00fc7d27f4f84b6218e0ba6bf15701ac950fc - pristine_git_object: 594f57eec753936d0c9e1b128c661b93762eb4d1 - src/main/java/com/formance/formance_sdk/models/shared/V2AccountResponse.java: - id: a7fd58fabaf8 - last_write_checksum: sha1:65b4c42a65654c0a72d03c25e3552469621724de - pristine_git_object: 66f0fbf7ece06aa04b14070773974a18000009bc - src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponse.java: - id: 90c1ae036006 - last_write_checksum: sha1:dea0c0ce424d73f23814e16910fe2ff024c3a245 - pristine_git_object: c3dd18deb5541e5c14597768c6948035d2d62cce - src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseCursor.java: - id: e4bb26ddf21e - last_write_checksum: sha1:239083eaf80ad8731be9416c4a559e37261d451c - pristine_git_object: d0cf142926d8bb4c175e368a3034641a3ff91957 - src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseResource.java: - id: 558bd84bb25a - last_write_checksum: sha1:4b1260b72895eabcc4a13b9089d13d46096b5540 - pristine_git_object: 7d3c6ba8b01af8e68862892922b4af80a78fe37d - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityAddAccountMetadata.java: - id: 182ac86f4576 - last_write_checksum: sha1:16eede167190c8d68e72cd5410b1560e675ba903 - pristine_git_object: bcbc191dd0910b8a6cc4072bab4aa54b4956f263 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityConfirmHold.java: - id: de0960a44168 - last_write_checksum: sha1:14c85e028db181a302a9a711805422a5ffc6f2e5 - pristine_git_object: c98457001553c56ce3ce6ea73acfb54c86f6dc58 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransaction.java: - id: d471b1a5490c - last_write_checksum: sha1:b0578b2eb08200bcd5f339d7abd65d4008a11b9d - pristine_git_object: ea1d0470dd12e7ae485e169411be24db1010fd04 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransactionOutput.java: - id: 808c984e4200 - last_write_checksum: sha1:4b92d9ebbc21b702dac2e2389d768811cd24147e - pristine_git_object: 8802358d07fe0e24f88558eeff88447dca60fe06 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreditWallet.java: - id: d02c193aabfb - last_write_checksum: sha1:287b98f90938630ca14f1ac63305981c086c782a - pristine_git_object: c8a4e7173c6c8aa87602b7fb9832d063a0e374c5 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWallet.java: - id: 208359b8e939 - last_write_checksum: sha1:ee5e7d93a69befa767c5fcb8b686f59088af1d72 - pristine_git_object: e614178641e4e13694434a5d3832107935f89414 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWalletOutput.java: - id: ea65e1fd2d7c - last_write_checksum: sha1:efce9a324a11a6fc22e10b3db3a7bffcc6d14d17 - pristine_git_object: 5a0d3238d6566f40f62732712baafe4955bf1104 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccount.java: - id: b1626b23d3f8 - last_write_checksum: sha1:742055d72c4c02937d635b0c072bc900ca82b49b - pristine_git_object: 160c80a2771470db078fa6de43b48b621bd3ad90 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccountOutput.java: - id: 4fc0cb3d3929 - last_write_checksum: sha1:6d2b2eb33eb7a1349a60e22a67ad2d19fd94b671 - pristine_git_object: 7d98b8e1f0e83f49fb6bcb32c403efd6c25bd729 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPayment.java: - id: e8ebcec2f1fe - last_write_checksum: sha1:82e4fbdaef113ecb1e8272bbeaecb068eaa228c4 - pristine_git_object: 9b81962f9a242011e66b01c1a979ab85327bb7f0 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPaymentOutput.java: - id: 53f4a31b61ee - last_write_checksum: sha1:3335783a045e0e48492e59daf67480cc05a8928a - pristine_git_object: 3bf4664607d0907a39ad47e0ec52bad49daded5c - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWallet.java: - id: 4260623dd7be - last_write_checksum: sha1:3804311c67b2885f276e33ff8468cfd7fd61ce6e - pristine_git_object: 12ccfd7ad00cba3a9ff5983d4fbc1d1cb70fef23 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWalletOutput.java: - id: 15efb10478b1 - last_write_checksum: sha1:3ad72952637ad5c417d056cb256e0121d29b63ff - pristine_git_object: 218c1ca0391dcd6b265197e92cc3fe38713181f5 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityListWallets.java: - id: bcdbf234382f - last_write_checksum: sha1:0449fb3431f780db42616569530385d4fc718c25 - pristine_git_object: 4f36760b2f827c21145682d1ceb9acfc11b8705f - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransfer.java: - id: fc18f98bc316 - last_write_checksum: sha1:3242b408c30654347b09f586cb170ef493886de5 - pristine_git_object: 61a4402fbb71f43ea5641aa37c2129cd8afbccfd - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransferMetadata.java: - id: 9877e81a3734 - last_write_checksum: sha1:e616dcbd53dbca13a3cd2e451d582c6d98a1cefc - pristine_git_object: 74ce3e869052c169619397543644c5346ea7eeb9 - src/main/java/com/formance/formance_sdk/models/shared/V2ActivityVoidHold.java: - id: e22a37a4674b - last_write_checksum: sha1:75700e2d106c7d44a2196ef191fd7f240ad32fa4 - pristine_git_object: 5af0f545c492a77611f59dcc8db61077f8e7bd13 - src/main/java/com/formance/formance_sdk/models/shared/V2AggregateBalancesResponse.java: - id: b3c219a22a8a - last_write_checksum: sha1:a6730b70912d85335f78afefe54dd97c5f860199 - pristine_git_object: bb5f8487ab835a823d3566b5e0c8d54d072f2237 - src/main/java/com/formance/formance_sdk/models/shared/V2AssetHolder.java: - id: 0f43ceccaa5a - last_write_checksum: sha1:763b303a226d3be0e9f7383f50ed8a64290f65ff - pristine_git_object: e0df6da8df7baa0fbcbaf88d80c7d5515bb12f8d - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElement.java: - id: b1a48f213cc8 - last_write_checksum: sha1:d93d21ef0ab5098097d6f46142903e0de25cc1ae - pristine_git_object: f117013415202d31e13406239d96838a6e411faa - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadata.java: - id: 7b0b7546f54a - last_write_checksum: sha1:9cc5ad59c04d1d5c52199b11d0de0fd5b37d6b52 - pristine_git_object: 63ec1db112aa5c4b89381d5a0c2ebcbd790f3329 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadataData.java: - id: a75ae47b4fe4 - last_write_checksum: sha1:323ccff7a8b7170d28bb21927fe865815e4b3212 - pristine_git_object: a6808f858d8af3ca43199bee6ea45f8c51cbee38 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementCreateTransaction.java: - id: 720e681db0e8 - last_write_checksum: sha1:edc574f291d26b8bd801a7963bea9d61989af4e3 - pristine_git_object: 75e67be1f3144f65a337133dd2eace06762b4738 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadata.java: - id: 11b114131782 - last_write_checksum: sha1:564a183651b0eec855a1f7f5644c01b9fa160084 - pristine_git_object: b27781eb3e227bff24dfcf6508a43c37a6c23d15 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadataData.java: - id: 09bb2d1063dd - last_write_checksum: sha1:cbd9d65c20fc42947049c950049128cbd3186e1d - pristine_git_object: ea38a7b08a83668105f309aafc65df3aabfd6450 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResult.java: - id: ef1c4663d70e - last_write_checksum: sha1:6e4844a3db1e970c5e78bfd9cc69bc5c6081c45f - pristine_git_object: 5f25c64878b2e377ddfaa451c972da1b9850eaa4 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultAddMetadata.java: - id: 75ce15cc96a0 - last_write_checksum: sha1:823a2e6850acfdf742e3853c76578e54d7838885 - pristine_git_object: c6c78c11cf1e43c6a6fe6023e27ffaab3b9999f0 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultCreateTransaction.java: - id: 4099dd4ccb39 - last_write_checksum: sha1:9f0fb48b01269ea58b71bcdce4ca75f7345b3e67 - pristine_git_object: 5361ce34a188727a4af4699bf234da56af9367a0 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultDeleteMetadata.java: - id: fb36dc608454 - last_write_checksum: sha1:a61593592fb05dea6e8ff8f1bbed2ebbbff376da - pristine_git_object: 31b81d9e7aec9e77fd32cf7a786f91ac5564d04a - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultError.java: - id: 1415afcb8f0a - last_write_checksum: sha1:3c44f512ebe693fe1641a7f09c5c903456e4ebb0 - pristine_git_object: fc0b7e22d31f1dbe9c5e0dfbd1c15508bf1e2b13 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultRevertTransaction.java: - id: 575a14cdb44d - last_write_checksum: sha1:a8eaa411743003c74787328b973221dca00e9810 - pristine_git_object: 040c00209ed90e8a1856db048a147525b3e2281b - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultTypeIdResolver.java: - id: 076ab1ae23e8 - last_write_checksum: sha1:ddf95429ef4b92110e91bfcb81e5fdbbd2591cd4 - pristine_git_object: cfbab600db8fddc58774d50f1554a64c1e9c9036 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransaction.java: - id: caa1898d02a8 - last_write_checksum: sha1:d939c33ccd125b8f4072ce5375bf1641d392fdc3 - pristine_git_object: 534af6c7ee6e089ffe6df07493fc6d681bf56673 - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransactionData.java: - id: 6c6f3794e378 - last_write_checksum: sha1:c2d686c21576ec05a2a831a16d39f25812b374ba - pristine_git_object: 5d06c588cd25881ec7668403196d7cc72ff5083b - src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementTypeIdResolver.java: - id: c01f615f5a7a - last_write_checksum: sha1:bb1bfcbbddb0ef61ae4a25e0754ce5a17a23ed53 - pristine_git_object: 09b842f8a3880ba727965baf043b2e54ca01440b - src/main/java/com/formance/formance_sdk/models/shared/V2BulkResponse.java: - id: 00c837513e3a - last_write_checksum: sha1:f9a25b223039e26af262e6b04c78244761fc80b3 - pristine_git_object: 5d89b7dd66593ae09101c21f53d22b264648150b - src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountMetadata.java: - id: f34ac578c4ec - last_write_checksum: sha1:9b843e30ecbacb49f52a7bd50a205ca301fbdd93 - pristine_git_object: 11b08346edf71058ef1ca6579ac6b23df9d2c857 - src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountRules.java: - id: d058ccb95cf2 - last_write_checksum: sha1:514a04ed506517d8ce0a7ba1cd452b14358d17a7 - pristine_git_object: c23672c549688f52f8a7c2485cde944b51a769d1 - src/main/java/com/formance/formance_sdk/models/shared/V2ChartSegment.java: - id: 4299810de8c7 - last_write_checksum: sha1:58479c846da218f4a3640404f320ff90b94c4db2 - pristine_git_object: 5f651b2860272cab05cd89b0238a48f2b69c58d7 - src/main/java/com/formance/formance_sdk/models/shared/V2ConfigInfoResponse.java: - id: 510a87c884ef - last_write_checksum: sha1:05e20e5bd74756c630be15df5ffd1a982057dc46 - pristine_git_object: 9b9711298886b362797238d6bb3df0a204868d7a - src/main/java/com/formance/formance_sdk/models/shared/V2Connector.java: - id: 28746fcdda1b - last_write_checksum: sha1:260743d85b8f2f487b1be3b4eda7fe396b13c795 - pristine_git_object: aa3898716538ac33678fe4e5c252bb12d957a668 - src/main/java/com/formance/formance_sdk/models/shared/V2CreateExporterRequest.java: - id: d2e2489abc2f - last_write_checksum: sha1:7a057a5e88a2a2f15c6d2072e6f39d8d62698ba1 - pristine_git_object: ee0fcb9b3aa72f789b7a7f43ed98e556fbdc9448 - src/main/java/com/formance/formance_sdk/models/shared/V2CreateLedgerRequest.java: - id: 40bfd2cc4e13 - last_write_checksum: sha1:778ebd0ac9dfb1f8e92f60a02d0613a9da209cfe - pristine_git_object: 31c2af55def680c4ae3e93652fbf0d39e3ad6cef - src/main/java/com/formance/formance_sdk/models/shared/V2CreatePipelineRequest.java: - id: 97796a296952 - last_write_checksum: sha1:3717222a6cc47eb254fe14d7b27755f7129ad837 - pristine_git_object: c522b4f4ec37f862bc49b2c62e74be1f4060d733 - src/main/java/com/formance/formance_sdk/models/shared/V2CreateTransactionResponse.java: - id: ca22738dcb68 - last_write_checksum: sha1:11b438e99b0becd26024c0b29d74dbafd876ed1b - pristine_git_object: fffab6692506f610358d7a9221911c27f802241b - src/main/java/com/formance/formance_sdk/models/shared/V2CreateTriggerResponse.java: - id: 79f7a6f5434e - last_write_checksum: sha1:bda2abae77063f0855be7e22979bb91496358c21 - pristine_git_object: 56d78125969aa71c1739472d2e947842ec12ab66 - src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowRequest.java: - id: 6e18e082c0f3 - last_write_checksum: sha1:9f42b440f9be140ec8fb5157c32b2f7e8cd96316 - pristine_git_object: 2db5f16d313a56dc0d9effc914153028012e2b23 - src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowResponse.java: - id: 77a35306bbe2 - last_write_checksum: sha1:bb25fa2d689bfdba201ea62f6da72f7171c15147 - pristine_git_object: f5d2c64ca697b0afd5d958110a90de3d6262f15e - src/main/java/com/formance/formance_sdk/models/shared/V2CreditWalletRequest.java: - id: ff5a3a484096 - last_write_checksum: sha1:4b5d8e3c567f7471729bae71f94cf1d3d9536328 - pristine_git_object: 926335221b07b2e1445dc6fb70523a78faba4588 - src/main/java/com/formance/formance_sdk/models/shared/V2DebitWalletRequest.java: - id: 72598e1fbcea - last_write_checksum: sha1:3e7f819354238891b0d6704cc4e6daaa06ca9485 - pristine_git_object: 1c6756c8a7b19474a27a915d22641aba726d2777 - src/main/java/com/formance/formance_sdk/models/shared/V2ErrorResponse.java: - id: ac33c299438e - last_write_checksum: sha1:391f32f05b3394fbc4299caedd0d89ecdcd46b1e - pristine_git_object: 1bdd3350e2a1811cf5bebf47a3374bd8db33695f - src/main/java/com/formance/formance_sdk/models/shared/V2ErrorsEnum.java: - id: 85d4d6103aba - last_write_checksum: sha1:046cc58f6563d938baccbf9b9e899673a8670dcf - pristine_git_object: bfd1ff53574cc4bcc34832dc8018dc10c5a62f6f - src/main/java/com/formance/formance_sdk/models/shared/V2Exporter.java: - id: 68ffebb0aaa5 - last_write_checksum: sha1:07b447027346c1b6aa2b53fa7250d120fea1e852 - pristine_git_object: 5048777d05dd9c80eb165254cda73035bcb4d949 - src/main/java/com/formance/formance_sdk/models/shared/V2GetLedgerResponse.java: - id: 6b6499f9afb7 - last_write_checksum: sha1:a5ccb85937b66f355dd56ffb8abe5c408fb8f747 - pristine_git_object: 3e04d5c2464727eaccd31492f4f1b5976f209df2 - src/main/java/com/formance/formance_sdk/models/shared/V2GetTransactionResponse.java: - id: dc59661d2541 - last_write_checksum: sha1:d2d75c30347fcdf38da1d93a38cae4c9689f6e58 - pristine_git_object: 2b0f72f0aed29750f86963bd5d7a1a2bf7f7735e - src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryResponse.java: - id: 6fc0ed87ea76 - last_write_checksum: sha1:ed5da81eec473d1361ba49be2277c2535a23824b - pristine_git_object: 762ffbd2e744cd76f6cf36abc8d389c30759f46c - src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryStageResponse.java: - id: 35ba3c30f4f8 - last_write_checksum: sha1:0aa712d23375dc817161c2a529079516efc7bf64 - pristine_git_object: da8653ca0a535a41d9611f1a153d7124be2ba656 - src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceResponse.java: - id: 670b7bcf8a2a - last_write_checksum: sha1:13885da98060e9eb2586d8b11de3a688a2abaf0d - pristine_git_object: a5034d78bc9def4866968f4c3a9e7b08a47cb6ef - src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowResponse.java: - id: ec8af8b1fbab - last_write_checksum: sha1:572a303fbc657e7a63e7918b633a1ece6e0f9e72 - pristine_git_object: 5d16e879a588c17da38bcf41f775b353d767ed33 - src/main/java/com/formance/formance_sdk/models/shared/V2Hold.java: - id: 5bf58a635a83 - last_write_checksum: sha1:4ee11f7aa5d220d92a7954eb612c897e38ad3234 - pristine_git_object: 6d8df3292aef6be23e5f6d588ef977c6864019aa - src/main/java/com/formance/formance_sdk/models/shared/V2Ledger.java: - id: 5439ff87394e - last_write_checksum: sha1:3770ae56f1f7182ae6c1af8b498904d4982f76ec - pristine_git_object: 0bcf280210adc88c050ff66fb8d0627d995be084 - src/main/java/com/formance/formance_sdk/models/shared/V2LedgerAccountSubject.java: - id: ead7693599bd - last_write_checksum: sha1:ab63ea25d19102d8b24314aa2dfada8dad1f6ae0 - pristine_git_object: 30e70cbfa05a31671e23b4bc9d375de1619c5308 - src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfo.java: - id: e80e30f5f1cd - last_write_checksum: sha1:c2fc348cd58936ed7f466b5f4a2be71752273085 - pristine_git_object: 81be8ccb4a78d5cd552fff055c019ff94fe1bb62 - src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoResponse.java: - id: e41f06f875f1 - last_write_checksum: sha1:d0182238edc5e14bf0f1156b21d2d0615999f0b5 - pristine_git_object: d4d5dae7b3f21e3f02d4cea070575cb994cbc948 - src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoStorage.java: - id: a1d6bcc19da4 - last_write_checksum: sha1:fe66c53741f9dbbe6d30d8ae48c18aa946e10ec2 - pristine_git_object: 6cff29d43c74e15a6266d7ecb218d9d5175299f0 - src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponse.java: - id: 7a02f77f9eb8 - last_write_checksum: sha1:8b0d94a242ff1f679aa02ced88e30be43af077fa - pristine_git_object: 080577d5daeb29e8ba8bc351138729553b39fa66 - src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponseCursor.java: - id: 1337ebdff111 - last_write_checksum: sha1:985524f3ea2c8c50bf5f58c7b944b750a9b4e0cf - pristine_git_object: af3d8e295b107c9edfdfdb02069852b720eab611 - src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponse.java: - id: 0e815c6e2a01 - last_write_checksum: sha1:84a707ad9963cc2c7d9ad55d23f351d51757ad0e - pristine_git_object: 2abec7fce789c0ee1b661d2e53924a2cb9813aba - src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponseCursor.java: - id: 5372fab634c4 - last_write_checksum: sha1:722322dfc7276b6b688c5ba8fff22beb79783b08 - pristine_git_object: 2005d1150878ee5f31eb0abee03cf4f22f2e53a4 - src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponse.java: - id: 7f21aa55073b - last_write_checksum: sha1:3efae67e6cb1986bda136061d1f46cea02835eb7 - pristine_git_object: e0b626ba6e0741a1d501cbae83c6cb1fcc68b69e - src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponseCursor.java: - id: 02651dcc1354 - last_write_checksum: sha1:0f0c4783bd6174bfaac8b9b56791efee3d94444a - pristine_git_object: 728b2b49fdb4d7f89b25e8de442ce64cd3c34009 - src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponse.java: - id: b56f7134b161 - last_write_checksum: sha1:cc208dc1e11505261cf7e1884e146a41a6e61752 - pristine_git_object: 7e1931ad96dda5f600308888ea63329d28c265fe - src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponseCursor.java: - id: 239b6e253ea3 - last_write_checksum: sha1:b2c7539696168330b31767a1dbab68ef5df59c33 - pristine_git_object: 4c61a42aa9d000ffdb60b5ecad3ed4a7309bf70f - src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponse.java: - id: cecf38bb4567 - last_write_checksum: sha1:4c5248ba14277b3e74449b61dd0d2b002280f8c8 - pristine_git_object: aabff1c7c6e1c8d27a80d3bf7e498da65c59650f - src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponseCursor.java: - id: 8d0fa4d332c6 - last_write_checksum: sha1:9ee8f43775380ab0e6016b17dc2177e127deb27a - pristine_git_object: 525b8b8dd42a13d111ddc5fdef01a9bf0c659677 - src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponse.java: - id: 5be1aa0c17e3 - last_write_checksum: sha1:2bbfbc35ee7bfb2c07ae0636ddfed513f9e98034 - pristine_git_object: f64a6eb889a904eba7d0bccb98791546bed48245 - src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponseCursor.java: - id: 910b2d22ebfd - last_write_checksum: sha1:88471f3e2be746de867a5e44e5fee955e7081938 - pristine_git_object: 29f91651ac42488d6d7f8186156042070a48b2a6 - src/main/java/com/formance/formance_sdk/models/shared/V2Log.java: - id: e651372da1ec - last_write_checksum: sha1:ba05065a88d0f61549be69bc7cdb87413e1dfb95 - pristine_git_object: a5078f09e25a1c72cd8093ba9632e7e8b409eb5c - src/main/java/com/formance/formance_sdk/models/shared/V2LogData.java: - id: 47ea416e9a18 - last_write_checksum: sha1:f06d8864ecd4f6fbe7a12cbb97036cea6f843d3b - pristine_git_object: 2a425a09c5d3095b34ce2594bcf6cef6d993f505 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadata.java: - id: 1aa077576941 - last_write_checksum: sha1:6fee92124e7ddc6c469978e9a1a01470cd359351 - pristine_git_object: e092951ea07dfb1e7ede3dc7efa0be2a6823038a - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetId.java: - id: d720f4f01f23 - last_write_checksum: sha1:282f64f5f8245fc01760b18ed76f486698d95b89 - pristine_git_object: 86daadaf22253531471f7b915ebc67835ef3e740 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetType.java: - id: 6f8354800b0c - last_write_checksum: sha1:48b4cdf35935c0bac32830caaf16c0df283b2e93 - pristine_git_object: d5975852be0d00d973170926e747f7014a503891 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataInsertedSchema.java: - id: 712cb37a9628 - last_write_checksum: sha1:a3b211dc82d7ffa4095f270ee59b22866779c5a2 - pristine_git_object: 8f376737dc546ec801bb06cd0d4318e4176f760a - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataNewTransaction.java: - id: 5e5c89d7928b - last_write_checksum: sha1:b7c00e70b6c1ad5b717a72801a9cd9c6a9cca32a - pristine_git_object: f5721f4e0e0a8f50d043ec1c89f0c1e999014d89 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataRevertedTransaction.java: - id: aaa097815056 - last_write_checksum: sha1:f90f53e2902e2380eed35a2cc41bc62a3e5d2e61 - pristine_git_object: 2de379e3d9e0f6adf9ee12a6bb44b6a429d29c05 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadata.java: - id: 213163483ed5 - last_write_checksum: sha1:c8b96d73addab2f7a979ca77ece54da3714b0ce8 - pristine_git_object: c649bf87d82f09d5aacecb67fabd6cfb197eb819 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetId.java: - id: 566829f42215 - last_write_checksum: sha1:32eb992e384805a9d08732d3e76cd06b8d72b59e - pristine_git_object: 9e2d53fad6c539713355d3d1ac900630e0abf128 - src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetType.java: - id: 1a8505275103 - last_write_checksum: sha1:9a9d6714a9eccf39fce6c757b5214e2e19584a03 - pristine_git_object: 48ee67f377be0a854d0f93ce8ce1bf2b6d47fce9 - src/main/java/com/formance/formance_sdk/models/shared/V2LogTransaction.java: - id: 55291ee9a53d - last_write_checksum: sha1:127d8151b77613ed8693ad3f9c2b49323ec89b28 - pristine_git_object: 6959962e514c337180e638d0cee4183cf3ba2095 - src/main/java/com/formance/formance_sdk/models/shared/V2LogType.java: - id: 506870ea6c1e - last_write_checksum: sha1:c38a50bdedd0ab0c73a3cfd323637be85b9042a3 - pristine_git_object: cd3aeae158c778698982778ab1ad67603e0aa2ae - src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponse.java: - id: 7d14c0dcef9f - last_write_checksum: sha1:2c1ee4e672af4555273cdbd1c1e2a4f8603da3a6 - pristine_git_object: f22c24de0cfe81970b1615f85a8df64debd17657 - src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseCursor.java: - id: 3ceabe28dbe0 - last_write_checksum: sha1:b316fab1f489d81b5fe0b3ddd3b549a52cc9b6d0 - pristine_git_object: 628f2b0788f220edbbc7bad4b0e6953f7ea10b80 - src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseResource.java: - id: 21201bd9310f - last_write_checksum: sha1:100a050e3042b4089adb75b2108fadd76c8556a7 - pristine_git_object: 1c114d8e81109f3642afb4518a0cf3fd73cfddc4 - src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfo.java: - id: 136794614dc7 - last_write_checksum: sha1:df7fd8877453dfacefd1ee1edec928865955320e - pristine_git_object: 2eeae67c6e62f250532e6463c6e511430ae27c32 - src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfoState.java: - id: e8cac546ae1d - last_write_checksum: sha1:768c9171c0008d77be4bb943ce8b454819256aba - pristine_git_object: 3e01cdaca8871709a0bf54b46fde647ab9e8c098 - src/main/java/com/formance/formance_sdk/models/shared/V2Monetary.java: - id: f3a601b3c653 - last_write_checksum: sha1:6050cea13448edcff3d7f237bc8e1d47077b1eff - pristine_git_object: b0a298941ef860f86bed2f43cdf26bbd3dc65606 - src/main/java/com/formance/formance_sdk/models/shared/V2Payment.java: - id: eef86b018238 - last_write_checksum: sha1:41a7b8a366ee43d94f9704308f6b55d7a7b37b0b - pristine_git_object: 2e2550efa894ff261cae22cee2cb17310f83a4bf - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustment.java: - id: da6e8011fd02 - last_write_checksum: sha1:d6d5a8df6de627a10778decd3cf2fbbb5a6fd6d1 - pristine_git_object: eb2839006696c5a0455a7a1a43fad5b5090d3869 - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustmentRaw.java: - id: cb210fc978dd - last_write_checksum: sha1:67512bd541222a8ee48dd5b9e86991ceb27d2104 - pristine_git_object: 6426fb914afcfcb1b5566f9c55785630f0ce2cd6 - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentMetadata.java: - id: 7604e79ca9fb - last_write_checksum: sha1:7da91c019684241c2906d5ae1753389b6cedd9ae - pristine_git_object: 435a26a7db99f5139821c6a2fff86247e4a3b664 - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentRaw.java: - id: 401941c5fbf2 - last_write_checksum: sha1:b6c3beb00cd4d35580ab800fe92fb7f701c3fa11 - pristine_git_object: e0eb01066457fe7abd09a14cb1aa25939f92bdd7 - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentScheme.java: - id: ea596a445de5 - last_write_checksum: sha1:67fe7e92b02791c5c21bfe0db813ea17e9d03804 - pristine_git_object: 83277d801cbf51be6e2884b1d014002d53e24200 - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentStatus.java: - id: 68bb99460a63 - last_write_checksum: sha1:58df2bf6371269b24f0ee0ea616c679fe12deef4 - pristine_git_object: c4e0ffc1516d5fad10c46097ca06ee9acd91157b - src/main/java/com/formance/formance_sdk/models/shared/V2PaymentType.java: - id: a0f8292dfd3a - last_write_checksum: sha1:302a9735c22d6283c99fb60c140de84a7c686ebf - pristine_git_object: 535f8ccd16d3f115574927eabbe476d41b48fbe1 - src/main/java/com/formance/formance_sdk/models/shared/V2Pipeline.java: - id: fda402a46ba8 - last_write_checksum: sha1:c29638fe8852af64d251e21f7c6c254d88d8cc64 - pristine_git_object: 7d7c9572b37dd680245a9b5b4de80585ded74958 - src/main/java/com/formance/formance_sdk/models/shared/V2PostTransaction.java: - id: c9616fb111f7 - last_write_checksum: sha1:2f0a0b55b2c9015a0b10d2fa20708f064c3cc1b2 - pristine_git_object: 018e02e4eee2dee1c4b83819407cf74d70238359 - src/main/java/com/formance/formance_sdk/models/shared/V2PostTransactionScript.java: - id: b5ee72a40cb7 - last_write_checksum: sha1:847b13dd177f8d01d18970ea4b889f6c8511f214 - pristine_git_object: 30c45dd22d8d55c138e9d454330995666394db35 - src/main/java/com/formance/formance_sdk/models/shared/V2Posting.java: - id: 0885ab983a84 - last_write_checksum: sha1:c5b0be5d4e3fef700de2336b86dcc3a69595b4bd - pristine_git_object: 63b9d8aefc0096528cbf4a72926526f5ccf8b644 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryParams.java: - id: 3e21b948cbb1 - last_write_checksum: sha1:816bfe9068357fc8b026cc031b2fd6aabfaed507 - pristine_git_object: 8d54709b45c73c6b23dcc973fc89e6fb2e0f4da7 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceAccounts.java: - id: e461cdfb12c8 - last_write_checksum: sha1:bea028212b440db6d2cbd1ff422506e533cdf79b - pristine_git_object: 573d50217c6ba8c0827c13f90c3ba99fbe70d149 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceLogs.java: - id: d64f95bfe0c8 - last_write_checksum: sha1:3e046de8fb2f3487bc21e929bb82d85c8d500d44 - pristine_git_object: c46978ee4421ab724e01b4d7a9386cd486c1d5d9 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceTransactions.java: - id: 6d67449f2d70 - last_write_checksum: sha1:a206e33c1840064741a315b3a49777d56b1d584d - pristine_git_object: 65635003e506698a059e8c57eb00e7f3213a8733 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceVolumes.java: - id: b712f2e2322b - last_write_checksum: sha1:6289d76c20b49fff2dc70bc4d84abdf758ec22b2 - pristine_git_object: f8af0607f97405d102cc1bc57c4c53f4560571e6 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryResource.java: - id: a1fcd17622af - last_write_checksum: sha1:208362eb002b1abc4d388ecdc4aed85dcf214cc1 - pristine_git_object: ca301ac4426fad18042434389d78c8e3049b3191 - src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplate.java: - id: 1ad7e842305f - last_write_checksum: sha1:38ac3774d75003baa208f96eaa3703582e1077dd - pristine_git_object: 40cf3b9378f61d73bfa85dbd6bc458991503f25e - src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplateVar.java: - id: 5e59e1af7f7d - last_write_checksum: sha1:3748ccf2ba84edadc48db36ad6635b73e317cca0 - pristine_git_object: 6c6eb06c210c94379aabad4029df394e93017352 - src/main/java/com/formance/formance_sdk/models/shared/V2ReadTriggerResponse.java: - id: d71d236b124e - last_write_checksum: sha1:6c109fd693d065f2ace198fa2a2a9e0d149b24c0 - pristine_git_object: 21596178e5b74ce5641cd8e97e197f2b5e84e4e3 - src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionRequest.java: - id: 5516aa741d21 - last_write_checksum: sha1:a8b1d613213c328e410e011dd6166953496f9c30 - pristine_git_object: 6af25fd2a2dc63a192ceea39ac261f47bb841baa - src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionResponse.java: - id: fb00922590b7 - last_write_checksum: sha1:20b6c421b16b98e8d9a9ec0d2b008e6a3c0d01ec - pristine_git_object: 5d9331ecde9e7f0e87652c3fda4a943827f5e66a - src/main/java/com/formance/formance_sdk/models/shared/V2RunWorkflowResponse.java: - id: f6fe15e899d0 - last_write_checksum: sha1:d69f45184b622126caec73eebf2253b83b861c97 - pristine_git_object: a139d42400670400d8963d13d2b1c350be0e149a - src/main/java/com/formance/formance_sdk/models/shared/V2Schema.java: - id: 57c517d67aaa - last_write_checksum: sha1:15e4016f9251cc1fe0230bf4a086348d1a5f4e02 - pristine_git_object: 28ddecceab08483e3aac5e7c84d58a19a2ab8404 - src/main/java/com/formance/formance_sdk/models/shared/V2SchemaData.java: - id: c23668d09cc8 - last_write_checksum: sha1:ee56a782dd192f0a4db59af26a511415f5a35859 - pristine_git_object: f22d26131683a7f5a3c321ff98d70ba3de4494ec - src/main/java/com/formance/formance_sdk/models/shared/V2SchemaResponse.java: - id: f2b3158d744d - last_write_checksum: sha1:c2327d6ae8d3972f10f884ea0670234c93f13ad3 - pristine_git_object: 92da99e5540b9e6498c4a2459def936ce8225967 - src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursor.java: - id: c9df810641a9 - last_write_checksum: sha1:0a9f2c2d4ab9243df752fe69b9228adb3ab6bc4b - pristine_git_object: 4147aae745935edaa694680025f59558cc8e2d26 - src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursorResponse.java: - id: ece6033f5ff1 - last_write_checksum: sha1:3ef9212577e7e7de71acddf3919c39773b8845e1 - pristine_git_object: bf5dac0c3e5a35c3ecac7cd91890e552505a9ec5 - src/main/java/com/formance/formance_sdk/models/shared/V2ServerInfo.java: - id: 8cb4079fe5dc - last_write_checksum: sha1:800884226e04bba3e2d9bb4e8ab828c44cae09f5 - pristine_git_object: 48b44f101f6d4f3d2c045f85930c960a44d1d496 - src/main/java/com/formance/formance_sdk/models/shared/V2Stage.java: - id: 68e7c7fedddb - last_write_checksum: sha1:8b33450ed59b2d8c4aca4d75039774a8e558186a - pristine_git_object: 8ce12452495a2ef6c6ae3ca03aaa296fd6545351 - src/main/java/com/formance/formance_sdk/models/shared/V2StageDelay.java: - id: 22ccd8734c14 - last_write_checksum: sha1:76b39275deb7742c23a6627f415d0ecd5b69bc06 - pristine_git_object: 83035c48f11d631c9f9e8d2f81bf8700cb679673 - src/main/java/com/formance/formance_sdk/models/shared/V2StageSend.java: - id: d9923c1adbb4 - last_write_checksum: sha1:c2c0202e16d29381f24d8738071b492ba1762d34 - pristine_git_object: 195f073256c043e564cab437e3a6c141af992be1 - src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestination.java: - id: 2c613ae32daa - last_write_checksum: sha1:8c5f49f906e25b6d8fe8501e2684f6d331768412 - pristine_git_object: 7d4f3f17245a2b62e71708359b77be6dc5aa6ce4 - src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationAccount.java: - id: a5b0d038f86c - last_write_checksum: sha1:400c72173c12f6824fe219121fdf6fd4c0099dd0 - pristine_git_object: 6bce8a40fc90615fb9fd5dfc6f7b49ae3b6cc67e - src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationPayment.java: - id: 946c461a32eb - last_write_checksum: sha1:184381eb919147c0bac3f830e94c74e341271fb5 - pristine_git_object: 7638e081362a72978a27f17176df85d192e9e9d0 - src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationWallet.java: - id: 5557f6bece01 - last_write_checksum: sha1:f99b8500203c4ebe7cad3e3076e4965b973af48b - pristine_git_object: 8c6d206d1eaaccc6d5641fe860e383296f2ff47d - src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSource.java: - id: b4053e29dbdb - last_write_checksum: sha1:a388df6eef417b9f83e9cc97334f1146aa6e2b21 - pristine_git_object: 3c21103097310af341d34237a33806b97ecf438c - src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSourcePayment.java: - id: 5fe78d511866 - last_write_checksum: sha1:532aa699d2b88bf540fd480b95686bed1dc1a9a8 - pristine_git_object: 59511fc1f13de1bc92cdb7090174d6334584beaf - src/main/java/com/formance/formance_sdk/models/shared/V2StageStatus.java: - id: da6b375fe312 - last_write_checksum: sha1:d3296bc6b14830e86dfacc86d567e0fdf98ecdd5 - pristine_git_object: 0ba1a7195756c25f5dce4f79e91962d073d03e8a - src/main/java/com/formance/formance_sdk/models/shared/V2StageWaitEvent.java: - id: 4c7c04eb4036 - last_write_checksum: sha1:df19abb074b34edf0f1464e2ccf155e5f7e5e883 - pristine_git_object: ac49df1bf051bfe1bb73f077a40543fa7d178ad4 - src/main/java/com/formance/formance_sdk/models/shared/V2Stats.java: - id: db752228b075 - last_write_checksum: sha1:2f26849e041ba475ccfe24b7016e7fdcfa48ab8f - pristine_git_object: a332f0832918d3c9ab3e74ddeae84e7899b7642f - src/main/java/com/formance/formance_sdk/models/shared/V2StatsResponse.java: - id: 4d7a225fdd81 - last_write_checksum: sha1:07f6e5a3144b407586b26e88ddb9786dd0fd81de - pristine_git_object: 087fe9cec2e0a378d23d151b1b9569606158c5dd - src/main/java/com/formance/formance_sdk/models/shared/V2Subject.java: - id: 12319f8dfc41 - last_write_checksum: sha1:0d6681e8c962e81a0414267229222f8bfcd44c9d - pristine_git_object: a75c8b984eaac13f547d09a04b7e812283c4e1a9 - src/main/java/com/formance/formance_sdk/models/shared/V2SubjectTypeIdResolver.java: - id: 2404ebffce4c - last_write_checksum: sha1:6c77432f2e190da048030a2438065a33bad7e6fe - pristine_git_object: 87dedf16f9e1d35127a1ff6163cf618687939c55 - src/main/java/com/formance/formance_sdk/models/shared/V2TargetId.java: - id: d9656c5ad27f - last_write_checksum: sha1:40887811d2fea85bc2797a66a6f374cddac4c7a4 - pristine_git_object: 816f648ecf496c5a17377959ac55b5566c34afb6 - src/main/java/com/formance/formance_sdk/models/shared/V2TargetType.java: - id: a743738b1ab5 - last_write_checksum: sha1:b0edb286d2bad13c5d0d2979bbffe738ec772507 - pristine_git_object: cbd2ad7858b0afc72ff057318c8fc1ec4c3432c1 - src/main/java/com/formance/formance_sdk/models/shared/V2TestTriggerResponse.java: - id: 393fbfca1e12 - last_write_checksum: sha1:964be52a7f4481a3286db5cd91521b522b448e96 - pristine_git_object: 85e003618c2e05519e3aef2b8ed65e61d38d2af8 - src/main/java/com/formance/formance_sdk/models/shared/V2Transaction.java: - id: 35be84d390fa - last_write_checksum: sha1:0c702f40278eb07b68ac40e7bf441bbf309b5471 - pristine_git_object: 20a448992f19301d61f01b5d21860eb18217d695 - src/main/java/com/formance/formance_sdk/models/shared/V2TransactionTemplate.java: - id: f91423da3752 - last_write_checksum: sha1:0c2719aea304d717a6ecc113da0b03610b1677e4 - pristine_git_object: 1fb7e01b197989b2f39dc3208e59c6384963e61f - src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponse.java: - id: 1a2c5c4ceaa1 - last_write_checksum: sha1:c54dfb2c94e10fe8b32bae50e84259f428d406f3 - pristine_git_object: 80149b60570d8194c0341f46344dd9fb571ff1b1 - src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseCursor.java: - id: 657cfb1a983e - last_write_checksum: sha1:165e61a2a6f579d3afdaba3e88a9e34908828734 - pristine_git_object: 13492a769d35314f9aced124265de2837bb25d57 - src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseResource.java: - id: f0b681043f43 - last_write_checksum: sha1:b6ab87de2ccce435859073fe6a91c6abe16f0a42 - pristine_git_object: 5310dbaa4421ba0726ca38c7040d8883b3445f79 - src/main/java/com/formance/formance_sdk/models/shared/V2Trigger.java: - id: 9a801d92c8c4 - last_write_checksum: sha1:8d77e5ca454bcaa71b81adf9c10adf6a7109647e - pristine_git_object: afeb48dfc50406dde797fb74c158edd523c7f139 - src/main/java/com/formance/formance_sdk/models/shared/V2TriggerData.java: - id: 9cf7d8094171 - last_write_checksum: sha1:74345e4320f47b7e7347f6d310e72fe1a4308bf3 - pristine_git_object: e08873ebe2d67c28c97fad5e0bf2727afdedc5fb - src/main/java/com/formance/formance_sdk/models/shared/V2TriggerOccurrence.java: - id: da79cde66852 - last_write_checksum: sha1:eb18b9fc7d4e47bc12478ad9e3a20b19d3a2386b - pristine_git_object: ca82f60b979c981988f453abf7dfce1c73eea3d8 - src/main/java/com/formance/formance_sdk/models/shared/V2TriggerTest.java: - id: 1c97ba545707 - last_write_checksum: sha1:5a3065aa96198437d695b75b91d7a60d0e2d804a - pristine_git_object: 1bb010aba35e007b124834f3581bdf0243e06925 - src/main/java/com/formance/formance_sdk/models/shared/V2Update.java: - id: 219e0c4fb8aa - last_write_checksum: sha1:e1182bef05b006b8a9ce7ecbc4e688f9d6409bd6 - pristine_git_object: e1028ef8eff0a9059f52bcc266bfebf6159fae12 - src/main/java/com/formance/formance_sdk/models/shared/V2UpdateAccount.java: - id: bf4308560008 - last_write_checksum: sha1:b5d1a71666d1db210b718b7ea87aa48627ff9f83 - pristine_git_object: 6e2ec51924e9d66f435121b1f112afbb0c8410d0 - src/main/java/com/formance/formance_sdk/models/shared/V2Volume.java: - id: e797f43954ec - last_write_checksum: sha1:eb8beb2e3aebd6691dc1bc60854c95a8d9f982fe - pristine_git_object: 0bc053c60fa3af494c81e52cb4e6d5d26318981f - src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalance.java: - id: cacf4ba61c45 - last_write_checksum: sha1:0f92f6bf17fb01a7d0756836d337ef8c1603c03a - pristine_git_object: 889fcf0e1702f5b92c0d34bc76d5fb8dd110c3f8 - src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponse.java: - id: 77228cdb1a8a - last_write_checksum: sha1:7385e565f07c1d7d570c04e950a4ba199d4391a0 - pristine_git_object: 7d95bf1bee30f20656b56bfbec832a58931bfde8 - src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseCursor.java: - id: 5c4398eabba4 - last_write_checksum: sha1:246642f44958dc5f545122223145013d38be2abd - pristine_git_object: 1cd8e86bca7b1a68b7f99ead01b65142413e7e4c - src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseResource.java: - id: 7d10a4c1064d - last_write_checksum: sha1:d68e753302b5eea2db7ee0b4ee838b8bd72effa9 - pristine_git_object: 02d9237c644fb14bad57a01322efde22af5858c4 - src/main/java/com/formance/formance_sdk/models/shared/V2Wallet.java: - id: 19b9d84d8a93 - last_write_checksum: sha1:a2398babda91a6fac347d35c048d820fa781df38 - pristine_git_object: b6317e881a402a4d12d5ce10072042a77342ed73 - src/main/java/com/formance/formance_sdk/models/shared/V2WalletSubject.java: - id: c7410737698f - last_write_checksum: sha1:3fa2ea57a801debc3b8a9c9a8209b939f0008f71 - pristine_git_object: aa3fee95ae583afa10c98d11a68d4ff034b43aba - src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalances.java: - id: a04b586c2795 - last_write_checksum: sha1:909329d0a6b6ee02c2b52ed19bc9904d50bf7e19 - pristine_git_object: 2ecb0898283f9935ab34d7b304fe57df085739eb - src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalancesBalances.java: - id: 429b7056e98e - last_write_checksum: sha1:1893f0dc5c4cd9b155f4206cdda44654989330a8 - pristine_git_object: a5acef68750d4b17da5e73dbc3463e77ae38ecae - src/main/java/com/formance/formance_sdk/models/shared/V2Workflow.java: - id: 82be00e56b1a - last_write_checksum: sha1:b37b860ef23b22879f047aac4ed5187c2db54e42 - pristine_git_object: 47310173b680338ad4d3014430fae02c6677b818 - src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstance.java: - id: 41e13be68d2b - last_write_checksum: sha1:626c3b5d3766821de5320cd684c8f105b72f9b50 - pristine_git_object: a9b5d70760595ff1729a6ab9a6a490c39fbbc0c3 - src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistory.java: - id: df4c929fafa8 - last_write_checksum: sha1:23e3544b286290ea5029a82be127d981a9d96833 - pristine_git_object: e77b37e4d54bfc0e5d1a243182c87d1c5c9210f9 - src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStage.java: - id: daa1bc7cea6d - last_write_checksum: sha1:185bb2274d6dbc6bd92eec9560790ce5c7884871 - pristine_git_object: 81d97facf3462d20c4dbd7f7bb1227bc7a3fb405 - src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageInput.java: - id: 36faf015b394 - last_write_checksum: sha1:b4ee24661388c28c1691061fdd6dd0ca6d3cfc13 - pristine_git_object: 9844674ac35552850705d5feee0a27bc6eb669f4 - src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageOutput.java: - id: 169b4e1e8560 - last_write_checksum: sha1:f1021dbf7037f860e2a99a5592184a27fef1314f - pristine_git_object: eae5e82ad40d0069249498e5ae2dc798d9c6ca8c - src/main/java/com/formance/formance_sdk/models/shared/V3Account.java: - id: 4810736d7cca - last_write_checksum: sha1:7663cdeb0791381fedb2a308efe1c0fb996912ad - pristine_git_object: c2ececc397f7d3e0c5acf31e4f9a8915c2695b70 - src/main/java/com/formance/formance_sdk/models/shared/V3AccountRaw.java: - id: 7985515aab74 - last_write_checksum: sha1:de9cc581b849e3270f22fbc72efaf52d5fe74a94 - pristine_git_object: 114273e13da6eafa2a9b16a8aca9c6a098bbdefa - src/main/java/com/formance/formance_sdk/models/shared/V3AccountTypeEnum.java: - id: 1c3b371ab8de - last_write_checksum: sha1:8a773bcbd36b22cd39440fde3f286ac885df4c70 - pristine_git_object: b98bf2b81bbd52a52447cdce7dd9d70655a76515 - src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponse.java: - id: 65995bcb586e - last_write_checksum: sha1:194b68b9954d40a899edfccae9257c4755891a81 - pristine_git_object: ad7ad8910c0188eb58054e5c32ef2091e38082f8 - src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponseCursor.java: - id: 6e7f4986f5f0 - last_write_checksum: sha1:3066077573b3e6e43d46ec6d487121c69e44dfcb - pristine_git_object: 90a6b3e7abbd2e3c8803f91e183ebd7f7b254dbb - src/main/java/com/formance/formance_sdk/models/shared/V3Address.java: - id: 26fa465dcf64 - last_write_checksum: sha1:ae819995ea743aebc5bb39f714cffa2339e3ce1b - pristine_git_object: 973e720a2347c25dd73bb6b43b0817187d647b84 - src/main/java/com/formance/formance_sdk/models/shared/V3AddressRequest.java: - id: d5dfa3da094c - last_write_checksum: sha1:7ab4a39a97b19cf2358a68be998b709612fc353c - pristine_git_object: d1a3509edb34ce49b3e7deee6f77ac1677a32ab7 - src/main/java/com/formance/formance_sdk/models/shared/V3AdyenConfig.java: - id: e610823507a8 - last_write_checksum: sha1:35ef057566580abbc24b05f1b9f4145846c6ef6a - pristine_git_object: e2f98e8e1b66b7e74573a057109c41532bbe2fef - src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponse.java: - id: 2b9878013686 - last_write_checksum: sha1:c2b6c47c776870beb62f5936ce595b3d1b3f3700 - pristine_git_object: 7066c6adc00f464b2727f224c1a9257f133ef31d - src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponseData.java: - id: 41bcfd8a9e8e - last_write_checksum: sha1:c357464c58a491f26995933a714c4759b05e3cb2 - pristine_git_object: 91b3eea6b520dee409f946aa131fd8e5a933516f - src/main/java/com/formance/formance_sdk/models/shared/V3AtlarConfig.java: - id: 26645e627106 - last_write_checksum: sha1:5dcbd9af8d17dadd0443b06157eeaebd0194f9fa - pristine_git_object: c225d6ce259815f6812e806bad2c500e4e39c770 - src/main/java/com/formance/formance_sdk/models/shared/V3Balance.java: - id: b623816c0462 - last_write_checksum: sha1:0c51743f82fed60bf635dc67bbb40db12e2896c5 - pristine_git_object: af2b2dfc545b8c020404e54d7a54de51c6740ce4 - src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponse.java: - id: fbff444b9f54 - last_write_checksum: sha1:e5a90de490d3f082e5af6f4bd3a03aeee48dbd38 - pristine_git_object: 622791382b7fadc7dbde50acc0085e2a95a43c38 - src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponseCursor.java: - id: 63d07b1a207d - last_write_checksum: sha1:ae765e1fa453e3ff8ef876200b149e0198f080f0 - pristine_git_object: 55bec2d5b61c112103a5cf99de1d834f81d170d4 - src/main/java/com/formance/formance_sdk/models/shared/V3BankAccount.java: - id: 7855e46f36d2 - last_write_checksum: sha1:97ca2c32bc2bbb61db75232538893689bbd4c4cc - pristine_git_object: eaf9648bed529f10d490ee92f1dce3b39e6ccb7f - src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountRelatedAccount.java: - id: 64ec51ec0e57 - last_write_checksum: sha1:5b758e92ce3eec385eb41666b1637925249c8c94 - pristine_git_object: adbecf972f35803e1567df2e3669b11ada83e101 - src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponse.java: - id: bf0f77e55ea9 - last_write_checksum: sha1:334183fc520b6425a563d4f217480830890fe28c - pristine_git_object: 5ff011f2e0034c0f53450001276a17d346c9f8a0 - src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponseCursor.java: - id: ed9b8893d548 - last_write_checksum: sha1:1be45f0db2199cb162e24faefb8f8d19dc2ba833 - pristine_git_object: 43d09d51a09387c6e0de6d750960793b12f718e2 - src/main/java/com/formance/formance_sdk/models/shared/V3BankingcircleConfig.java: - id: e56a257d3add - last_write_checksum: sha1:3355cf3a6e861c18cce0251cfa614581f03824f7 - pristine_git_object: 1e218fd6fcdd988bf74e545abc5baa34dfc771f3 - src/main/java/com/formance/formance_sdk/models/shared/V3CoinbaseprimeConfig.java: - id: 3a4409e4963e - last_write_checksum: sha1:916974b9baa70b131f75929e096dabb2f7a86d26 - pristine_git_object: 627bb38f3cf786be7048451ef5bdc6d183a331b7 - src/main/java/com/formance/formance_sdk/models/shared/V3ColumnConfig.java: - id: a05f4ce8090f - last_write_checksum: sha1:abd1f528302a6a89eee96b30c791a81c00253434 - pristine_git_object: 37a35758515ea548cdbcf73aa0e28ee1b52e14b2 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectionStatusEnum.java: - id: 7664cf7256e1 - last_write_checksum: sha1:bed94164e84576e10d3a1873c0c9532d7dd2dcdf - pristine_git_object: 94a5047dbe754e6066f12f36071002a498ce8d1b - src/main/java/com/formance/formance_sdk/models/shared/V3Connector.java: - id: 4f3e693fb190 - last_write_checksum: sha1:ac1f6e2b19cb1336a222f852439c909e36a76a6f - pristine_git_object: fa427509729e71c3e01893a4913bb9208dd64fda - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorBase.java: - id: 476499b551d1 - last_write_checksum: sha1:0931ce9a9b5aec9c034cfd53ce962f4978c30d02 - pristine_git_object: 4ae4359de19bcd638f213b3759c0075d454bd63e - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfig.java: - id: 2a9ae2114268 - last_write_checksum: sha1:a19b5007a4f53b18b45cf437416da49d41e613d5 - pristine_git_object: 3ac13e9a750664059619e7ed8b548f4feed1cbb5 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponse.java: - id: 8b9188ee5787 - last_write_checksum: sha1:68611efcb0fe7576dc64276146eb8b6dc8a29977 - pristine_git_object: 01346cf747db739e6712509667ef17c72fcf8bc9 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponseData.java: - id: e23a87566e85 - last_write_checksum: sha1:37bd5f6cb218797da1441798ab0a0b702085dd53 - pristine_git_object: ef966e8d6ae72af7ddd2a38a375479b70817dafc - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponse.java: - id: 2eec99f69e4a - last_write_checksum: sha1:dce647405cb427904503a81130f796724504e7c9 - pristine_git_object: 3e490302fb1199de22f53263428654cd82f17744 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.java: - id: e077d88ee3fc - last_write_checksum: sha1:226e15d41b2a8b142d8b819f7b3db11720a07a59 - pristine_git_object: e6d1e8f96b13c67923e73f62e8082acca8b1e4c1 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleResponse.java: - id: 5b5ec07815f7 - last_write_checksum: sha1:2cf92f051c5d63b50d8a3c498d8c3ab34287ddc8 - pristine_git_object: 8562c2aa3a5b88f5670983c45dd319e57a794c8c - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponse.java: - id: da070df40979 - last_write_checksum: sha1:8036c9d99df79e03e1c043c862f73363af0b23c4 - pristine_git_object: d432845550d26e558cd05495741758c0d72cff65 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponseCursor.java: - id: c9199cd6c1db - last_write_checksum: sha1:e93e465d0b0e66fc7ebb6e981d7d9fc7e19a6f65 - pristine_git_object: 20cdfb58f74dafe48f65fa10a992f8b7dcf5eab7 - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponse.java: - id: 5036239f959c - last_write_checksum: sha1:f900619ee621734994fda3cbb1a849f0f696656e - pristine_git_object: 88c04c108cac8043413d5d6646771a3de173057c - src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponseCursor.java: - id: a09859a920d4 - last_write_checksum: sha1:1ad42b3ac5e8f79a3ff0816ddec0511f7d27fd91 - pristine_git_object: 70dba5c250f980e8a1ca67f07076da5a78d1dab6 - src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetails.java: - id: 535cb05fddf9 - last_write_checksum: sha1:49f26c0cc0e3a1f56e90d7925a9af350552d6749 - pristine_git_object: 543762e9873b5596fb317c6abf6cf8f30e7d83d5 - src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetailsRequest.java: - id: 01c420e75edd - last_write_checksum: sha1:6b0677e64dbcab883a04294097c041f8c80805f5 - pristine_git_object: 676b8c70aa6760f576e8370b6fb9a6de686770d2 - src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountRequest.java: - id: 118416d585b8 - last_write_checksum: sha1:049b5d64658e0ab9ffb41a5f96f9ed793ee44d54 - pristine_git_object: 399aa6e89e9a18f9006411a8047a7c99669d3c6e - src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountResponse.java: - id: 83a57577d0dc - last_write_checksum: sha1:6c08b54ef47c3f6a8a871995db9e0c5dd27314a7 - pristine_git_object: 696e2234f96888eef93eda8ef142bfb8cd02e8b6 - src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountRequest.java: - id: 9799b1530804 - last_write_checksum: sha1:f7c8651e57879abd844a0c5f875131bdd48b8bbf - pristine_git_object: a135e85ac2ef7e25b76aef6737d6376661e0f228 - src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountResponse.java: - id: 125d7ea46844 - last_write_checksum: sha1:c95af7fbc2b0d522c0ef37e9046e3e0b6bc4f06a - pristine_git_object: 8be8260e05ca0a5b318ff3c1775b2e30d6b8ba2e - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentAdjustmentRequest.java: - id: b7af80b99df6 - last_write_checksum: sha1:651e90be1696fef821c87153b48f055bb4d9830a - pristine_git_object: dfe7fd0f973c8d704926d388bdb1ce2edfd677f3 - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentRequest.java: - id: 2a47eff874a5 - last_write_checksum: sha1:89ea3315e6db7aa4ca8038f62942d3a4b5c6dbf9 - pristine_git_object: 35bef751858734b4b6c0d9804748022c990abcfe - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentResponse.java: - id: ca31f0fa1df4 - last_write_checksum: sha1:41a1e114b438ae9835c967890882f849f8f845a4 - pristine_git_object: c89a09c47b71798e486f29ca4b823a67a06bd7f4 - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserRequest.java: - id: 47a3bd8c60b6 - last_write_checksum: sha1:822c048a99e5f49cc9ec4874f926126923f09721 - pristine_git_object: d8886dc0a30041e637577c0c2a93d0c48eff8357 - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserResponse.java: - id: 0f58ccfd5133 - last_write_checksum: sha1:c3f3f3e8632d745c2c551052b0b7ea047821d960 - pristine_git_object: 2238146e61f9266778d2983275ea652642eb7294 - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolRequest.java: - id: a75d28893d23 - last_write_checksum: sha1:d5e475c0c4a50d1aa3cd831b3ccaae3495d0b71f - pristine_git_object: b2b04dde16fa342dde0387c50f19a890b3bb4a11 - src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolResponse.java: - id: "232767407110" - last_write_checksum: sha1:b07eb6e23b9a2918efacf8a042982983ea3adcad - pristine_git_object: ed59f0169abab339b6f58218ac302491b1581474 - src/main/java/com/formance/formance_sdk/models/shared/V3CurrencycloudConfig.java: - id: 7bb5135d05f7 - last_write_checksum: sha1:dca303d5bc455996895017a576397f963d3d41c4 - pristine_git_object: 29465851d0a701351fc9da8d23cdb563cecd063f - src/main/java/com/formance/formance_sdk/models/shared/V3DummypayConfig.java: - id: 4b0f80b1fd48 - last_write_checksum: sha1:b996c3bd096a3abce50499b19de83ddbe0c76f12 - pristine_git_object: 1940062b51f7d3c53289388fac272f19cbcf45df - src/main/java/com/formance/formance_sdk/models/shared/V3ErrorsEnum.java: - id: adf39593b1e7 - last_write_checksum: sha1:8f8f0629c8a618eb5fcb2c8223607ec58bed1e97 - pristine_git_object: fdaa0502fc71bda5490868e625f10a7b9e6d0afc - src/main/java/com/formance/formance_sdk/models/shared/V3FireblocksConfig.java: - id: 69fef8b7eb96 - last_write_checksum: sha1:b8d76c459c0df1d02756ca6a8ba9cab24c8174c4 - pristine_git_object: 28518701300248b48aa396bc93361f86b6090cec - src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountRequest.java: - id: 43d625bcb497 - last_write_checksum: sha1:687ba5837df4148a64363dff614a29404196ca45 - pristine_git_object: ebdb8021e19764f0690ed432664e5a3521076083 - src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponse.java: - id: dbecf01e2a64 - last_write_checksum: sha1:8244182d705aa8dcefd5f9a05ce37a618855802a - pristine_git_object: 52b122251708fc6427fbb801839dd4c91be03d9b - src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponseData.java: - id: 21e2221f72df - last_write_checksum: sha1:39569953cba0fad4fed8e95b6daa80056a19a6e1 - pristine_git_object: 040ebce7b7f143b21a7f017145d01c4a7853ba3b - src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.java: - id: d5cd1e360588 - last_write_checksum: sha1:42b3920e6bdf86c2112c43e1921ccb26503a780a - pristine_git_object: 03c1c8b3f08649f1b4572e58442e8b002382276b - src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.java: - id: a7f5a82d66ab - last_write_checksum: sha1:68a01b77de1ace69a3d39ada61fbb15b7c039ef0 - pristine_git_object: c54694f0baedc6099af6ea532b17d2febb70dd60 - src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.java: - id: 5d4ec63eb2ea - last_write_checksum: sha1:d20095e322bb2f92832b32c874540dd12556de3b - pristine_git_object: 479511eca20977225185d411d81aad760b7683cf - src/main/java/com/formance/formance_sdk/models/shared/V3GenericConfig.java: - id: 1f0a8181f4fc - last_write_checksum: sha1:0c30a1bfc25466584d81f6ed8ee8a2fa2279072a - pristine_git_object: 9dc969d982eebd19e0862cd739582820565886dc - src/main/java/com/formance/formance_sdk/models/shared/V3GetAccountResponse.java: - id: 305a55fa9f90 - last_write_checksum: sha1:6640a7c3dc3769a0677934ff6208dedc07dd8053 - pristine_git_object: bdfb9db4456d50352b41a66272d1678c91797957 - src/main/java/com/formance/formance_sdk/models/shared/V3GetBankAccountResponse.java: - id: 8a2beb7eaa9c - last_write_checksum: sha1:fedd01c4867957504a0675aad5c9532aa06e4753 - pristine_git_object: 75f5c41361c5bfe28071958fd749651d6f31e264 - src/main/java/com/formance/formance_sdk/models/shared/V3GetConnectorConfigResponse.java: - id: 1fe1206d8211 - last_write_checksum: sha1:c40f523c7f3b8ca7ab375a9f8ad3c7803ff1a64b - pristine_git_object: 9570d380139d8d9f5f7cd8413a9977ac3d97339b - src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentInitiationResponse.java: - id: 4a14a0e6254b - last_write_checksum: sha1:a4bccbf28bbe574d9c2350d21d96148f1385e614 - pristine_git_object: 5ee8d3ac3b3b1bef96f6ea968a91e6e09a525bb2 - src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentResponse.java: - id: cbfa80ed8bdb - last_write_checksum: sha1:3971b671c07562b2c47abdcbe1149248e9e000f6 - pristine_git_object: 5ac687002da5d692bc4196eb5316571ab8d4e2a0 - src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentServiceUserResponse.java: - id: 82f9a0f26a86 - last_write_checksum: sha1:523b1d92b77132aba41c4a1e9938a83e9561cc4b - pristine_git_object: 2ad12acc6f165321fd3371d1dd691eb864fd6c19 - src/main/java/com/formance/formance_sdk/models/shared/V3GetPoolResponse.java: - id: 4d37a85c5ee5 - last_write_checksum: sha1:1548427032d3628785ac7baf2f7e250bb2eefc69 - pristine_git_object: 91936c8d1c0479c87b776264f4f88f2a83862b13 - src/main/java/com/formance/formance_sdk/models/shared/V3GetTaskResponse.java: - id: 498b5e53464d - last_write_checksum: sha1:658ec588b5c92d24904ec245a001cb3e08d4bf88 - pristine_git_object: 7fd343175ee432a801bb7ac065a268d3a031c7eb - src/main/java/com/formance/formance_sdk/models/shared/V3IncreaseConfig.java: - id: 2be503eafc74 - last_write_checksum: sha1:5164ee972e1b71c36c0cda5728eed905c9bfa1e1 - pristine_git_object: 7844fb227cedf9e8fb580c1d45e6418af7fff8ea - src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentRequest.java: - id: 7182ce41a2b7 - last_write_checksum: sha1:9f8a0296d524e7b2f2ac3fb99db41edbcf2fa89d - pristine_git_object: 2c2d3e31793591e673e8d1e4586e23dfbf8e86cb - src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponse.java: - id: 71558f789dcd - last_write_checksum: sha1:972868bee85856e3d920f9da10b1ae25c223b90d - pristine_git_object: a45740970739f09cd8c34b43b2ef836fea9423e8 - src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponseData.java: - id: 5ec3c5441b74 - last_write_checksum: sha1:9003026381f8b7997ada340e59798543189495ed - pristine_git_object: 461c6c0b7d12aa3aa6904398fa78698aa5534912 - src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequest.java: - id: de7dbe1d9559 - last_write_checksum: sha1:4b4cf2b8388da8155937b79c405d49bd4ffb2088 - pristine_git_object: 9fd4fe4cddf059ebfd2cd951dfb9863b8026eb42 - src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequestTypeIdResolver.java: - id: e01a6d8e7bac - last_write_checksum: sha1:bb77f731808959fc34bf8e196c99ac55b7255184 - pristine_git_object: 6c7aea4892b636b3476984271f92690bca80d359 - src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorResponse.java: - id: 3c4ea7e33f07 - last_write_checksum: sha1:cf4445ce565958d69e76e21975efb5e01b296f1c - pristine_git_object: 4e2e12ca48504f408517e1a415c9189e264ac18b - src/main/java/com/formance/formance_sdk/models/shared/V3Instance.java: - id: 15c2d0591be5 - last_write_checksum: sha1:1538e5b461360a921446b083edffad4fad7225bd - pristine_git_object: 493fb8662dfe885f9b05cf56869dd9ee74ff1b83 - src/main/java/com/formance/formance_sdk/models/shared/V3MangopayConfig.java: - id: bff3b1588276 - last_write_checksum: sha1:3805270f12175a726c9bf858f641e4326f7f6e76 - pristine_git_object: eabcfaa1e9013a906887b71871b79a7641a2fed6 - src/main/java/com/formance/formance_sdk/models/shared/V3ModulrConfig.java: - id: 05842120c146 - last_write_checksum: sha1:ad31cbffc6b6aaec327388ed2950a9ed994687c9 - pristine_git_object: 7a4ebb9f2fe1c5838df562ff9f8e86e7c6b9a304 - src/main/java/com/formance/formance_sdk/models/shared/V3MoneycorpConfig.java: - id: 3b677f870e41 - last_write_checksum: sha1:ca3d9eda774c8028805f23630b9800a307b84d35 - pristine_git_object: dbdeb4d154070d45a11253a0e7d76c7a1f0d66df - src/main/java/com/formance/formance_sdk/models/shared/V3OpenBankingConnectionAttemptStatusEnum.java: - id: 7e907d057834 - last_write_checksum: sha1:c944a0f707c9d817cd7d133823adea9ee4e930fb - pristine_git_object: 59f5cf6a8f7ee04e686463c7484304cca56577cd - src/main/java/com/formance/formance_sdk/models/shared/V3Payment.java: - id: deba1c26e08c - last_write_checksum: sha1:d0b7a2f473fd21c8aa71ab243c6bda97e48c5940 - pristine_git_object: 8c12f0abbd5d3a91026ac83c9b49ab612e388e94 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustment.java: - id: 66aca648be6a - last_write_checksum: sha1:3bbeb24916292fc931a217bea74032bc3e9407b5 - pristine_git_object: 61f6d34a92dd4a7db3c2a936398057b4a1a3f20e - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustmentRaw.java: - id: c6cbe4b3a8f7 - last_write_checksum: sha1:aeabf5e6fb8081def0e9107f789ada48dffd6877 - pristine_git_object: d1712b012018530f452d1d27d19ab647e2a98a47 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiation.java: - id: c7f8213aa801 - last_write_checksum: sha1:cc0fd7418903891509923beda00a0c72bc242ec4 - pristine_git_object: 957278b2f16ee4db1fe4512953b72b40b1912db1 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustment.java: - id: 48019a25608a - last_write_checksum: sha1:a0ecde4877a1d59317c884312154f57b95212fa9 - pristine_git_object: c7d0e5ff246cb29e44648277b98547f070816499 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.java: - id: 7d0c3e68e7ee - last_write_checksum: sha1:b15729a5ecd7d918edfc511d0e58c72db8ac9d68 - pristine_git_object: 73b582cec4fee19afdbb618b3331c5258f771e0d - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.java: - id: 47469790bad1 - last_write_checksum: sha1:33813c41c72b3ec275bd0ecac72170b645f9a3db - pristine_git_object: b8c18cab700317c337edeab4887db292e9c40df8 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.java: - id: 06f53d73122d - last_write_checksum: sha1:852714dc20643702e78d12b27616c4f58ff25aa4 - pristine_git_object: 9df5bf0f4bf91c29ad1b5d3e16f0a8fff791ceab - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java: - id: ecca530ff2bb - last_write_checksum: sha1:abc9f22fb5649f8865a33c2e5a08ca1cfe3470f7 - pristine_git_object: a538eb2b745952a39a95434d7e66220cc92fd3df - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationStatusEnum.java: - id: 61268e7f08a0 - last_write_checksum: sha1:e89dcc1b54e4db7907141d6ea57173d7436e5032 - pristine_git_object: b74a3a0e95e3d3c7a5412c46466879f8440c2e79 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationTypeEnum.java: - id: 7232640c9227 - last_write_checksum: sha1:2fe6d5327b8ab36528555acdcb81057c902079d5 - pristine_git_object: 780b2bf486e91e6dc7c96c37ad46b1882409a748 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponse.java: - id: fbb8b0a23007 - last_write_checksum: sha1:effd52a96ba04a22e1e5c72eab24f787efe5e9f5 - pristine_git_object: 9f34b38ee704390ed2c19e97445849d1ee0375c7 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponseCursor.java: - id: 220fe0db6639 - last_write_checksum: sha1:0ec7fed24c3a3bb412e0ad4f26bbf20e72aa3aaf - pristine_git_object: b6e2887167786297f9fcccc9b6eaec2659619b2f - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUser.java: - id: e888719336b1 - last_write_checksum: sha1:22c9f7f8025893fecf15721b151974863fd0ea2c - pristine_git_object: 2976fa9bb3157d980c81afa75a6c82422b0869e4 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnection.java: - id: a02efa754821 - last_write_checksum: sha1:ec5326d6ca250d2cf5670a35f7e943084f9eb38d - pristine_git_object: 04094fdb543f75b45831620d7f090c685bfe429f - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponse.java: - id: b8baae712cae - last_write_checksum: sha1:6c7be1283e2d094c25aff9acdb33a472ec2f21ea - pristine_git_object: 8f4a09be05b90e2d0e4241b1fbd42ba4eaef56f8 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.java: - id: 7d9063e7ba56 - last_write_checksum: sha1:d3a5a848fab597ab4708500665e3581b299ab380 - pristine_git_object: 6dfc60886b6dcbb67a3cbfeeaa2849155617a22f - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkRequest.java: - id: 1166c9f0a52a - last_write_checksum: sha1:686d882592af857feb59de6528c9f04ea26c9fc0 - pristine_git_object: 48fe396db0b5e5d1dfd086b47640a594ec0680b0 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkResponse.java: - id: b5d8bf37fa8e - last_write_checksum: sha1:e40c97ed78177d521f73fa6eb9165cc9fb0c2146 - pristine_git_object: d9c46273d87f3facf094ea209e8f1ff3a093bb3c - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponse.java: - id: b37ce5aae265 - last_write_checksum: sha1:6985dad368bb5639045614fa9b1d03908026fd04 - pristine_git_object: f69324ee942c913912597810cb4f09c5a220b630 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.java: - id: 17456c922778 - last_write_checksum: sha1:0bfcd01a49274397def67d8e76d281610996277d - pristine_git_object: 230664de8c945450362ec5f2f7e17bf383c3775c - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponse.java: - id: 52113b1352d7 - last_write_checksum: sha1:eac4652e673e5b8fb20ed18b679f1fb0505109d4 - pristine_git_object: a62a633e5ef3421370ae011d5b35e9194ce0e296 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.java: - id: 6d1637b68a5d - last_write_checksum: sha1:ccd19ac927d38912839f346c1a282f381449f0a2 - pristine_git_object: c23f542b032a17a2bed8db87824670afc01bdcd9 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponse.java: - id: daf85bcb18c2 - last_write_checksum: sha1:6957c0b0c6691c78add2e297628b0227339469fb - pristine_git_object: ac09b1dd99cf37330182696521ef9b894847b734 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponseData.java: - id: 5a71099c3733 - last_write_checksum: sha1:2c929fcaefb139f93126b7833e7369327ba1b078 - pristine_git_object: 578cec4445f4ae32c035555df5ccbc76fd37cb5e - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttempt.java: - id: 5e9ce38243a8 - last_write_checksum: sha1:f850b1388a85bd793a6032f17596781c948ac8e4 - pristine_git_object: c6df4d6468ebf24916a92b05b73fda499ddeb1e3 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.java: - id: 911dcf0f7006 - last_write_checksum: sha1:246d342d5749863d133b8141d741a355e9f1dd00 - pristine_git_object: e2502a66c7d14fc0121c0e1aead51059c211ba30 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java: - id: 8cb77f3ffad3 - last_write_checksum: sha1:9ab8c0c1f6965e80f20803b9ef90769371e5008a - pristine_git_object: b3732d4dde90bbe5224ad76c186a568941c7dc14 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkRequest.java: - id: 3ca61bb9c166 - last_write_checksum: sha1:64ee0a4a7c702489542a69d84457dd35de349fd1 - pristine_git_object: 3e0c61679ada77e69342bb121dd69434fe9b27a9 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkResponse.java: - id: e54155070879 - last_write_checksum: sha1:00272599413b0472581492babb8606ef89f72132 - pristine_git_object: aaa320fa16c22df63c3c9f01c5117e94c4b3f6b1 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponse.java: - id: bf9194e8be39 - last_write_checksum: sha1:d3176468c18e34ee512a0f36acf2a1787091bf0c - pristine_git_object: ba503c6039c4b9c692d8f2f9adcd5f0217298536 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponseCursor.java: - id: 0ce6c8a27e89 - last_write_checksum: sha1:e9a9ce0d2c643c0c118f7c2eed944ace8c3f3f94 - pristine_git_object: d010bcf44b87d34613ea23f2c9b21a3a0ef75d97 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentStatusEnum.java: - id: 2ad5d3bf503d - last_write_checksum: sha1:a7f74740e69692b7406aa84e404ad90e4cd27c59 - pristine_git_object: 69ad2e51f0ba3c12b52aad81f939780461050916 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentTypeEnum.java: - id: 5c3f9ad0e86e - last_write_checksum: sha1:bde421647cf012b46fe2847f549f2044cf6e0d1c - pristine_git_object: afb0df3038b8f88c2c988d3b2db6463cbe37fcf4 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponse.java: - id: 8d7d68083753 - last_write_checksum: sha1:f9f220747582174b0908be9462d836fcc319834e - pristine_git_object: 284a7612f7603a8f61d9422797d9c9446138c7c0 - src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponseCursor.java: - id: 2055f722d315 - last_write_checksum: sha1:e9850e99b71f9906e11d6216d424d6856288d079 - pristine_git_object: 86eaeb8b404d669037c099c5542faf01b1d60a59 - src/main/java/com/formance/formance_sdk/models/shared/V3PlaidConfig.java: - id: 9ed46deaed8f - last_write_checksum: sha1:c5498c727bc3f563546f8868b45b20d471f9959a - pristine_git_object: 442c25cf5bab4be05cf25d6db9efd9a46743b777 - src/main/java/com/formance/formance_sdk/models/shared/V3Pool.java: - id: 658075d4eaff - last_write_checksum: sha1:cc2b1c00f99460785720d2b2371bbb9a2f8c9878 - pristine_git_object: d8e5b3edbf28a85b22342f94cd53c8d235a0f260 - src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalance.java: - id: 03cac325e6f6 - last_write_checksum: sha1:7911a601cacf61f096bd1b723ae1a22313c0c3de - pristine_git_object: 8bb394cd6141b4748f9754fe59d2f69ae8e8d389 - src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalancesResponse.java: - id: 1fff7c6a89b2 - last_write_checksum: sha1:453ba3ad16cde807b825fe9b94561d5003321c87 - pristine_git_object: 98897349634550fbe499378bd3b461ed7868bc86 - src/main/java/com/formance/formance_sdk/models/shared/V3PoolTypeEnum.java: - id: fc5707a2ba55 - last_write_checksum: sha1:1eb3c08ec8b11b858a18bd7b3223c66e3132b4a2 - pristine_git_object: 770c2c9d0b2c6c02ea7a9741b2877e43d61a22b9 - src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponse.java: - id: c82eed37ed95 - last_write_checksum: sha1:fd96167a02a4b55288615b25ec6eb69f913ed8d4 - pristine_git_object: 31b377fadbec668727cc593591d05f154163474e - src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponseCursor.java: - id: f4e0f7286b35 - last_write_checksum: sha1:664a56aebba6dede1936f37ca16cf55fbb3cc248 - pristine_git_object: f0d9bc64bbc198d8dcce948f7c87d10347eb4540 - src/main/java/com/formance/formance_sdk/models/shared/V3PowensConfig.java: - id: b74ba1be864e - last_write_checksum: sha1:1167ca1d4ab92fde36e47245a39c8585e632262d - pristine_git_object: a6fd5ba7be0512d299f96b2f95f046ffd9b87af1 - src/main/java/com/formance/formance_sdk/models/shared/V3QontoConfig.java: - id: 77ba552d3bd4 - last_write_checksum: sha1:aed1acfc5b6010aadfc2eb44bfec24a8e9104758 - pristine_git_object: 3d769066b8e2269e632018f7adab08f94210ea42 - src/main/java/com/formance/formance_sdk/models/shared/V3ResetConnectorResponse.java: - id: 274e854e5e14 - last_write_checksum: sha1:e1643afe8464fba755999f6eba27a35e41809169 - pristine_git_object: 9c6aefee78a811a441f7b1874868648b6c303f1e - src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponse.java: - id: fc4ea1c2f093 - last_write_checksum: sha1:b2c4ee15fa3e0d3c0bdd6d63649ba25b57000a11 - pristine_git_object: 0c66c871e0ca290b41872c42abe54916ed01fd61 - src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponseData.java: - id: e7e62ba6fa26 - last_write_checksum: sha1:e77e98630f73c55e32bb4d79e795bf95472235d4 - pristine_git_object: d16da338c3c26d4eeee2fe0a625a6cf8a263248c - src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationRequest.java: - id: 32143ba8f4ef - last_write_checksum: sha1:63b0d0b8860b567ff05cc4daf705d4153b2043aa - pristine_git_object: bbf4c4d0ca90e93fe61b47689e7ffbb8081951eb - src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponse.java: - id: aaeeee38c1f9 - last_write_checksum: sha1:b24827a62dfaabd591a7a5f989cba4333445b066 - pristine_git_object: 36db28f9f5e916b20653ca94288a353d45a75692 - src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponseData.java: - id: c1c534679115 - last_write_checksum: sha1:1ebb7f2ec46c63fc139bf6a09ddfac4b1aefed3d - pristine_git_object: c6e122df5771016b3b845dd15937e738eff719ca - src/main/java/com/formance/formance_sdk/models/shared/V3Schedule.java: - id: 425b721932cc - last_write_checksum: sha1:c891a6ce480fb4e599af6576904a1c518144fef9 - pristine_git_object: 6ac6aaa035d74d3545bdb3c30316cb399227b345 - src/main/java/com/formance/formance_sdk/models/shared/V3StripeConfig.java: - id: 07cd38264cd4 - last_write_checksum: sha1:2bfc069d4662478ee5207e79ab0ff5f61286c6c2 - pristine_git_object: 6d81d90d8ea68cd7d309754946b6a753a41b1eb1 - src/main/java/com/formance/formance_sdk/models/shared/V3Task.java: - id: a822fb0c580f - last_write_checksum: sha1:54b6106e51e65f9ddf628dfed179b06bdd47a77d - pristine_git_object: 0518a88d84865e1f2edd2eb97ac60a66b0225b65 - src/main/java/com/formance/formance_sdk/models/shared/V3TaskStatusEnum.java: - id: 0d5edff850de - last_write_checksum: sha1:c532fed8e182e7cbe0c4e6d4745ef024d26e1e27 - pristine_git_object: 62534688cd10b1e69a12a621536dba3e92368465 - src/main/java/com/formance/formance_sdk/models/shared/V3TinkConfig.java: - id: 8df7486af343 - last_write_checksum: sha1:b02d435be4dd0b6a8078726e5331dcc89488270f - pristine_git_object: ed2e090b7f6082d1f9078915e0da7e877e86f26d - src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponse.java: - id: 1f6bfeb4d93c - last_write_checksum: sha1:4151167ac2fc0c6dfcfaed056ff61a15ab8cae0f - pristine_git_object: 15ace8f59f15b8e69c9e1c5a687d205c6e5997e2 - src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponseData.java: - id: 7b4812c974de - last_write_checksum: sha1:770bd2c6dac0f582ae2b02d2194239eb70557652 - pristine_git_object: 0b6c666ee5fe8c33f1df464a6e28d4cae629034b - src/main/java/com/formance/formance_sdk/models/shared/V3UpdateBankAccountMetadataRequest.java: - id: 97b856ce5db8 - last_write_checksum: sha1:dada5bfad44290f213102537bfe445a1b9eb2be0 - pristine_git_object: 3acd9b0b9b0bf18e2495858e8c075cfeccc98fc8 - src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePaymentMetadataRequest.java: - id: 254879bfc5e2 - last_write_checksum: sha1:723de600b902402b38d179dba10ded148e5c03a5 - pristine_git_object: 2c502058c13d57a97c412ce66e2d281fe913acf3 - src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePoolQueryRequest.java: - id: 1c1a2a530b93 - last_write_checksum: sha1:722c4a77b65ccf6da73b9c13fb85e66d397c18f3 - pristine_git_object: c86f082ef6333c94e511b15941c7d56d950b22b9 - src/main/java/com/formance/formance_sdk/models/shared/V3WiseConfig.java: - id: bf10c24d33be - last_write_checksum: sha1:10051e5e81a51747f04baba0c39fa4369515bac8 - pristine_git_object: 461be5db55e9ee0c93f1038fed5fb95cbcaae6e2 - src/main/java/com/formance/formance_sdk/models/shared/Variables.java: - id: da7cd68bf099 - last_write_checksum: sha1:cd73cff59c1888743f08a0c878a876c13afbb76a - pristine_git_object: cf348d3a2ba3beaac0a7955174371fe3c2f6dc76 - src/main/java/com/formance/formance_sdk/models/shared/Version.java: - id: 49b84eb91649 - last_write_checksum: sha1:374ac27e5c15cc34966626416876397ad1ce1c1f - pristine_git_object: bc2371a3e439e04cec1a63e4d4c89c07a8dcc6d2 - src/main/java/com/formance/formance_sdk/models/shared/Volume.java: - id: 00143d3ec52e - last_write_checksum: sha1:e675b3c31689d06d3f54f546a189f9cbfb026688 - pristine_git_object: 3debdcf943a035fc217cfbe58e771474502220be - src/main/java/com/formance/formance_sdk/models/shared/Wallet.java: - id: d70083a3a1d9 - last_write_checksum: sha1:c61a98c54344588be3b120e3d8cc02cd3421f5ef - pristine_git_object: 7df0105db5cb94e888d0d7c9774d34fd50fed4e7 - src/main/java/com/formance/formance_sdk/models/shared/WalletBalances.java: - id: c537ff16301e - last_write_checksum: sha1:4c32bfe6e57f6ae84dbbef3d70ab8f28706bbc0b - pristine_git_object: 4367d25d0680c7ce49d20d724c6720a1e0d8cb64 - src/main/java/com/formance/formance_sdk/models/shared/WalletSubject.java: - id: 37e562bfcbe4 - last_write_checksum: sha1:c4a679f92e8e49a6bc18bf5e3a8b6e0e4dfc4aa3 - pristine_git_object: 5201552a7b72af7f20b5e02035a49ae1cc088dd7 - src/main/java/com/formance/formance_sdk/models/shared/WalletSummary.java: - id: 65ffafa47ad6 - last_write_checksum: sha1:245ca3505dd94236d8c09d6672275320884c2912 - pristine_git_object: 611317a2adf37251e4acddc4cefe98b2ad7651ed - src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalances.java: - id: 7252fa4c5957 - last_write_checksum: sha1:a11495b98402e4c4deb501d368ebb2e3e23e5634 - pristine_git_object: ab975ffa444c407ccff07277067372df5d7602d7 - src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalancesBalances.java: - id: 7f03d264f9c3 - last_write_checksum: sha1:8191c6122320349c39818e69cdefd1669400eef0 - pristine_git_object: db8623eaa67e21147963b3b65def01f5dcb3a0c7 - src/main/java/com/formance/formance_sdk/models/shared/WalletsTransaction.java: - id: d35ebea3d88a - last_write_checksum: sha1:4ebbce041808bbbbc9f33f7d7d241e082eded5ff - pristine_git_object: cda489b88b5ec86b50ea2f086bf6bec3c12b68a6 - src/main/java/com/formance/formance_sdk/models/shared/WalletsVolume.java: - id: ead9c274cde8 - last_write_checksum: sha1:a18d0ee6c5a790fa028bb9bb3668802837e8ee7b - pristine_git_object: 6c5e47d8d156259645c276537f8528fb86733710 - src/main/java/com/formance/formance_sdk/models/shared/WebhooksConfig.java: - id: c9a52666e0c9 - last_write_checksum: sha1:906eb5c7c1b2c2637b9aaab3c02c4c1e660d7805 - pristine_git_object: b5d5c53241655c042081a9b0147d2bde405a3c26 - src/main/java/com/formance/formance_sdk/models/shared/WebhooksErrorsEnum.java: - id: 8145624bf848 - last_write_checksum: sha1:d9434786e9be52562c1d8063f3a0301d6d3fb312 - pristine_git_object: 3be3cd7844b10d861a6809ace867a2df04b8ae83 - src/main/java/com/formance/formance_sdk/models/shared/WiseConfig.java: - id: 840ea09717f5 - last_write_checksum: sha1:41c2b9e40529a12af67a2361800fd5a127a45e2e - pristine_git_object: 8bb839d77aa30745b47ae2cc4919db7d0ba40fb9 - src/main/java/com/formance/formance_sdk/models/shared/Workflow.java: - id: f7cf0539d9bb - last_write_checksum: sha1:05922152b2574f2dbac72d214c1dba56bc6ead97 - pristine_git_object: d73e095e00a14f364fc03a623107335e13d00c7f - src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstance.java: - id: d951eac15a47 - last_write_checksum: sha1:c831cbe07cfb0ee5580ffe558b84588352bfef5d - pristine_git_object: 01140345c292e38c7cfeb5b7272c4d5e6968b0f8 - src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistory.java: - id: fd420b74d238 - last_write_checksum: sha1:ab25ac965d987d4f7962999d058504ac920998ee - pristine_git_object: 74763fa5060e46af81568aa639eb26d761a15e10 - src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStage.java: - id: 9b040ba48c34 - last_write_checksum: sha1:035f75854d9c6875c165f98131a38d10c0e04718 - pristine_git_object: 7ef880b229d60a743ca0787a849275483d0a78b5 - src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageInput.java: - id: 6cbd8abba980 - last_write_checksum: sha1:75e274623beb7427914a53e06628c23f3efd86f0 - pristine_git_object: 188639ca6e4a079bcfa54e0b84a63bec20f8bd15 - src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageOutput.java: - id: 69f55821bbc2 - last_write_checksum: sha1:2e58c26b534e93f04fc4ce7f3d2b2b97ed633593 - pristine_git_object: 6e84427e4a19d90f03b1c0674600f48e715be709 + src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder1.java: + id: 4c1b8ff55b25 + last_write_checksum: sha1:edfe03a2462b27e4e1ed1e0992fe929e3f6cb196 + pristine_git_object: bbfed4caf23874010d3049d35030ab97a658ba62 + src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder2.java: + id: f7dff968437d + last_write_checksum: sha1:211067a6e13f8d8420bf9b59f0487fbba8893dce + pristine_git_object: c5b0591420459382433efcd08360eed57907f594 + src/main/java/com/formance/formance_sdk/models/wallets/Balance.java: + id: 9add699df073 + last_write_checksum: sha1:2c40debdb2254783e9bca270371661a987fb6fca + pristine_git_object: d73c1318813d451808c9faa593f9d250761e46db + src/main/java/com/formance/formance_sdk/models/wallets/ConfirmHoldRequest.java: + id: 09ec3ea365c4 + last_write_checksum: sha1:f9e31451964599117dcd679451d26ba13a2f152b + pristine_git_object: 767d6a29736f11a54fbbfcb1c94a4f5a21893541 + src/main/java/com/formance/formance_sdk/models/wallets/CreateBalanceResponse.java: + id: 5c3bb0a2aaad + last_write_checksum: sha1:52978c6cd4e5b02a379c11cca3df1abd2d41220b + pristine_git_object: fce83f507ac8cf3a4da0ee00dcee4acbeb733d08 + src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletRequest.java: + id: 742822332b3e + last_write_checksum: sha1:3fde6eb53dc446a023dc6b19085cda6afa1dcd5a + pristine_git_object: a2332af1225c436376bfd2a86195936a3aa88466 + src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletResponse.java: + id: 6b948301b6fd + last_write_checksum: sha1:40b2f6c6b262e56102d7e4dba704e8948b15d5ef + pristine_git_object: 5e682bab2a0eaf0cd6cf66adc74bd2db0deba0d6 + src/main/java/com/formance/formance_sdk/models/wallets/CreditWalletRequest.java: + id: 0315cebf3340 + last_write_checksum: sha1:33f32e49e8787159c2b5794dad912cdbde6200a2 + pristine_git_object: ddac93c026d19fa27850b5c6a439c398030c5cfe + src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletRequest.java: + id: c33f9b119d15 + last_write_checksum: sha1:e9b28d2f8210e6a4e8320d1434db34128e4f930d + pristine_git_object: 159054d2f9a7ba57f5551a63e2a1129e63e09536 + src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletResponse.java: + id: 2f406589fc1c + last_write_checksum: sha1:5118d116cfa6d6347583b1bfbe30c9d9085b005b + pristine_git_object: bb9f158d309268e3dbc9e79c52229da2aea66db4 + src/main/java/com/formance/formance_sdk/models/wallets/ErrorCode.java: + id: 0b60e9008a52 + last_write_checksum: sha1:d2a2b1e45b8d5d0e9f2b4dafc96dbfd9aae1c7b6 + pristine_git_object: 1b541b54a1e32c42308505020cb49236ddf0355a + src/main/java/com/formance/formance_sdk/models/wallets/ErrorResponse.java: + id: f720f334ed26 + last_write_checksum: sha1:a86041cfdea88f8f427ac011be19e1728920319b + pristine_git_object: dc5e16c11c3a95570ef00a3297da6c50e342ea94 + src/main/java/com/formance/formance_sdk/models/wallets/GetBalanceResponse.java: + id: 3f993d3d6be1 + last_write_checksum: sha1:ca430a8ca8ff540308ad402aafa96d448251dfbd + pristine_git_object: fd2f9c52101f865a1877cf62f50ca57ed91fb9dd + src/main/java/com/formance/formance_sdk/models/wallets/GetHoldResponse.java: + id: eb6a1f96bcbe + last_write_checksum: sha1:f1325ff714690332f0a16975f200a87ac7b2ec2e + pristine_git_object: 58bcf16e5e73aaf57a1aa893e258f82d3f0b6e7e + src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponse.java: + id: 654c8c371502 + last_write_checksum: sha1:3f46a6567bcc605ccb34a078933d90eb60ae1bbd + pristine_git_object: 975c984cda974b6ff2a7cb417e50950b130b66c7 + src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponseCursor.java: + id: e1e6c26f28a0 + last_write_checksum: sha1:3ed96e814a84565f3933c838f9d2f82020b0d895 + pristine_git_object: 1e720a186713b1fc917960a6a3417ff968daafbf + src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponse.java: + id: ab3513db537c + last_write_checksum: sha1:6ff9211293b3fafa6a048e9d8677aee486f6c2ca + pristine_git_object: f853a601db44dc91b006994ea6d0d039f784f507 + src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponseCursor.java: + id: 0012ce6a3541 + last_write_checksum: sha1:b395d2f5159194df639d14c421c20996503fdd64 + pristine_git_object: d811e2b78ca46758e02177c43bd400740d34286a + src/main/java/com/formance/formance_sdk/models/wallets/GetWalletResponse.java: + id: 5a1e83e63013 + last_write_checksum: sha1:312cd972a11e2fb12e94678230a11a51753bdaa3 + pristine_git_object: 67bbe805c869ae31b4e53b94410d75634cd5b47e + src/main/java/com/formance/formance_sdk/models/wallets/GetWalletSummaryResponse.java: + id: 2e8b69757ec0 + last_write_checksum: sha1:0a4fa8aa513af59354dc6639d5cba093672eccd5 + pristine_git_object: b501a8c66b724ef8c7129c10d040f9deffdab318 + src/main/java/com/formance/formance_sdk/models/wallets/Hold1.java: + id: e5dc0cb80c53 + last_write_checksum: sha1:6efeb3638e2b13a8844a4485a72bebe1a3e79472 + pristine_git_object: 95f157deeed69f51651a18e13e4069689b3f95e1 + src/main/java/com/formance/formance_sdk/models/wallets/Hold2.java: + id: 783b115877fd + last_write_checksum: sha1:010af03f3c03f31a4f8e945124335248b9567127 + pristine_git_object: 697ddd4d950653002f524649d28a80fba1844b45 + src/main/java/com/formance/formance_sdk/models/wallets/LedgerAccountSubject.java: + id: eb8920733f6b + last_write_checksum: sha1:d5e77f131d40ebb846ba3240291c6b462da88239 + pristine_git_object: 95e475459e8074703987521d3592072a74b45a84 + src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponse.java: + id: 231c04ff6739 + last_write_checksum: sha1:2c80b0996d4ede655c39c919741c5b5f89e75fe4 + pristine_git_object: eea79fa1503c8b1454c9e50621b1c5fc9909fa5c + src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponseCursor.java: + id: 0c4720b1541f + last_write_checksum: sha1:c9426c6b268e165ba92745b9a21dcbce66ff013d + pristine_git_object: 8d933c11dc5ef22336683cc3b5c4469acfb0975c + src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponse.java: + id: 098f32b1f192 + last_write_checksum: sha1:1c15c563ee8afcae391d39de247fe7669ddf28c0 + pristine_git_object: 9067988d6a3d36c65301fc3a0563cd463a4bfb3e + src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponseCursor.java: + id: 635bf4bdee97 + last_write_checksum: sha1:43fb8c1a3fc61e4a689b84d321bf8112c0fb32bf + pristine_git_object: 102ebbc2edb825123992eb1fe5fb3a400dc4b44d + src/main/java/com/formance/formance_sdk/models/wallets/Monetary.java: + id: cd3fb918d39f + last_write_checksum: sha1:84fc03505b543d983cf7e06e089da8e55edf8dca + pristine_git_object: 1bb255a750e2872a99615f08407cd31081322b69 + src/main/java/com/formance/formance_sdk/models/wallets/Posting.java: + id: 9b12e43af07c + last_write_checksum: sha1:825f620ef3e5108ee3ebf05ae87ff838abcbfb7f + pristine_git_object: 00b8ffbfb672e6047a0f84850e727abeb02ab5c0 + src/main/java/com/formance/formance_sdk/models/wallets/ServerInfo.java: + id: c29bb6c7573c + last_write_checksum: sha1:1bebec88c87463d5ae727d81bf16f021372a6f1d + pristine_git_object: 0371a35f6805e10a7aa5ab5f0b32b1eb69beec16 + src/main/java/com/formance/formance_sdk/models/wallets/Subject.java: + id: 1ed13c01c319 + last_write_checksum: sha1:b9805cb3ee840b1341411425103fa36824a934fb + pristine_git_object: 8745839e60c28eaef41d2d49191334c7c0dca04f + src/main/java/com/formance/formance_sdk/models/wallets/Transaction.java: + id: 797e282d13e5 + last_write_checksum: sha1:be36c06b01a5403b23592eba27fbc2c76c182685 + pristine_git_object: 010f8c8edf80e7d5367cc7fe9cf8195d96ce3dfb + src/main/java/com/formance/formance_sdk/models/wallets/Volume.java: + id: 0c903ae7a4fc + last_write_checksum: sha1:74d04eaf87a57b17371574126db7a22701441f29 + pristine_git_object: ef4ec96abbe484c7cd0753c2852bd487ec993c1f + src/main/java/com/formance/formance_sdk/models/wallets/Wallet.java: + id: 7f837c175270 + last_write_checksum: sha1:2c5b5cc8ba77e773827a0b0a0859be5868737232 + pristine_git_object: aaceff5c00ce9a2ccd47d1074edc4cba78ce8888 + src/main/java/com/formance/formance_sdk/models/wallets/WalletBalances.java: + id: c672135a3b17 + last_write_checksum: sha1:3dbbd09be86b1cf17027697088f7a184fa41863a + pristine_git_object: cd13861e12584ed4abdec35dee9433e2b6e9d267 + src/main/java/com/formance/formance_sdk/models/wallets/WalletSubject.java: + id: 39119ae71f3f + last_write_checksum: sha1:8124177b88fcfe5d9d399c33384a02521584b0c1 + pristine_git_object: ec937f55d35166347f2c98b35fd180f3e0cf6669 + src/main/java/com/formance/formance_sdk/models/wallets/WalletSummary.java: + id: 94ed5905f3b2 + last_write_checksum: sha1:fd810140b5a19185bfbecaea66bef369b3f06008 + pristine_git_object: a23cf0fbf52e91200c29bbf2a0cd22ee65679c79 + src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalances.java: + id: 05d162b5ca24 + last_write_checksum: sha1:280eea40680141f89ce0cf8da3b8588a9c9e170a + pristine_git_object: fba7baafdc17d0b2d2a10c55ba6675b8230c23c0 + src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalancesBalances.java: + id: 9b5cf25db576 + last_write_checksum: sha1:00955014683bd59ea7bed14148caa077a8727b34 + pristine_git_object: adf9335e23c9b37968fd2a4d986b0c6ccb81c2ae + src/main/java/com/formance/formance_sdk/models/webhooks/Attempt.java: + id: b04b520f14cd + last_write_checksum: sha1:86b376080dd8e432f95abfa3c596c54812168f89 + pristine_git_object: 4352abc58428ef399c6d368c1c36b2e357931c00 + src/main/java/com/formance/formance_sdk/models/webhooks/AttemptResponse.java: + id: b5040de5ad7a + last_write_checksum: sha1:1f3589c7ee4b5a32bd8dba5f4ac20d4ffb0de982 + pristine_git_object: d832b9e77dcb43a7c8e5a31dc37eb05f41544d92 + src/main/java/com/formance/formance_sdk/models/webhooks/ConfigChangeSecret.java: + id: 238f00fc2589 + last_write_checksum: sha1:2ebab1b3727cc4e640af1f1dbf2982ba7c0bed1a + pristine_git_object: 47fc9edccc349b6c1b17fe357b246d78d36ed0e7 + src/main/java/com/formance/formance_sdk/models/webhooks/ConfigResponse.java: + id: 60e804e94712 + last_write_checksum: sha1:d26c46a368fed0a7964628332a5d5969543c5746 + pristine_git_object: 5e7aea91d251d56de1881d822a86a736a4abd15b + src/main/java/com/formance/formance_sdk/models/webhooks/ConfigUser.java: + id: 25aabbd67b55 + last_write_checksum: sha1:b75a3ddcc293d3df4d5431ad669de4edd54280f3 + pristine_git_object: c34a2372820b9529f9a4f08ccd74cdea13eca8c6 + src/main/java/com/formance/formance_sdk/models/webhooks/ConfigsResponse.java: + id: 755e944ae46e + last_write_checksum: sha1:22dac5646a77167cd9e6f47de39ea3f86c43d3e9 + pristine_git_object: cd3a8cbea158685a43e52dbcaf35d620c0df81c7 + src/main/java/com/formance/formance_sdk/models/webhooks/Cursor.java: + id: 7e20a2cdbeeb + last_write_checksum: sha1:e604be0146256fe08abc23fe91f8d67d427cb331 + pristine_git_object: c66de4550ed8af3e99e2c779f251313adbebde91 + src/main/java/com/formance/formance_sdk/models/webhooks/ErrorResponse.java: + id: 36d7983f0c68 + last_write_checksum: sha1:bfddb24edd8658bf4383fd28bea875d5ed06706a + pristine_git_object: 0779f3b806b196096513bfad3452784e6a960675 + src/main/java/com/formance/formance_sdk/models/webhooks/ErrorsEnum.java: + id: 14597bc1b5b4 + last_write_checksum: sha1:da817146c3bad5c7e9fb54c36e62a9fa991318d0 + pristine_git_object: 3f28959778b824cabbe4d390ccb288165d730bcd + src/main/java/com/formance/formance_sdk/models/webhooks/WebhooksConfig.java: + id: fdde9420a9e5 + last_write_checksum: sha1:9265dd56de4b86486a75d123555675bbace4f5b9 + pristine_git_object: bf7c8496e62f58bf60fe64925622ef3540a954ec src/main/java/com/formance/formance_sdk/operations/ActivateConfig.java: id: 42e973f849e5 - last_write_checksum: sha1:d4c34718ba09eefbe32ccb7de24dda49800dd16f - pristine_git_object: ecbb7c1fc4334948b48d59d480f8cca4ad3927ef + last_write_checksum: sha1:f519edaca0768824ffbf1ecbc43b74a642a22940 + pristine_git_object: 84c55eb118532752f0b70407929a688d3183062b src/main/java/com/formance/formance_sdk/operations/AddAccountToPool.java: id: 1c1bdd23b7ed - last_write_checksum: sha1:3aa4cc5d29f253ea05d469bf3cf50bed0103a78c - pristine_git_object: 80d96c157a772434d8d30947c2f62c2f1bfc69d7 + last_write_checksum: sha1:09c77567b5dba1c91800b26fff59dd99e5f8d3f4 + pristine_git_object: 60df4794b688af8c4eaafc5716ed953696594bd2 src/main/java/com/formance/formance_sdk/operations/AddMetadataOnTransaction.java: id: 27eab9f46364 - last_write_checksum: sha1:84b796111b136fd1197ed6086069986997440e4f - pristine_git_object: a9175eaa7620564e422698fc2345d4d630a84377 + last_write_checksum: sha1:c7674f513d74e40f5eb0c7ef3477eee4ddda44f7 + pristine_git_object: 54c5d27e30b8e05240da7b4f4346c359035907a8 src/main/java/com/formance/formance_sdk/operations/AddMetadataToAccount.java: id: 47090b175ea0 - last_write_checksum: sha1:0b586646f130df2c525f8aa2c37f27377cce4976 - pristine_git_object: 57c67b04afe63399fa710fe473766477247469a6 + last_write_checksum: sha1:3600738c543f5f29154573d3e0a7add72937b73f + pristine_git_object: 14e4d1f85eeaabfd078f8da500d9f88882e61e3b src/main/java/com/formance/formance_sdk/operations/CancelEvent.java: id: 630e988ba263 - last_write_checksum: sha1:f4233d41a09018e0d0b1a83757986df4165d3a42 - pristine_git_object: 88a13d34fc68cf075f750bce6e914037ac5374e4 + last_write_checksum: sha1:eaf58238986f28c5dfff1389f0285ae56d58afc2 + pristine_git_object: 518ca36955a48b7620af7ac36ae2b077fcff8f46 src/main/java/com/formance/formance_sdk/operations/ChangeConfigSecret.java: id: cab0cfdf7a3e - last_write_checksum: sha1:86994ca05a2d389bc0ace3b180f0a035f3afd375 - pristine_git_object: b7ff5db6757c1a88a3cb333f8756aedb497075e5 + last_write_checksum: sha1:da5cb0b48fc26bfc012b0054bd5aecf56ab083c2 + pristine_git_object: ddd8fbce3a79a6781bd8f148ece6295c95128050 src/main/java/com/formance/formance_sdk/operations/ConfirmHold.java: id: 3858b20e1ffc - last_write_checksum: sha1:a9f7862424f059b92cbd92fb86fb831999e76ada - pristine_git_object: b1a9b774dbed511d553668b3e9949f7ddb918585 + last_write_checksum: sha1:c36fee5a505469b84bb552a21192332485eb1b6c + pristine_git_object: a04a8a9440c0e9f50a481ef147c9e487ee9b189b src/main/java/com/formance/formance_sdk/operations/ConnectorsTransfer.java: id: c6fa2c3e526c - last_write_checksum: sha1:f2e867528b0d9a82d4642f8a797e4fd059013925 - pristine_git_object: 55d4dd42fa5e0b5ad4cdf2b2400f2f274290ac05 + last_write_checksum: sha1:2e25181a3d5ecd63adc8e570a11be3e96bc91dbc + pristine_git_object: 0ee56951d7207f90cbd1f83a149f323fb4743af1 src/main/java/com/formance/formance_sdk/operations/CountAccounts.java: id: e96f59875bbe - last_write_checksum: sha1:b9e90b17a8ec258f57d4d9b5c527e3241dbcb809 - pristine_git_object: 08f8cb4b2162b455d97d010db35b6b5a95925750 + last_write_checksum: sha1:55c08c2955144153f5f8d9945279f47379ce20e4 + pristine_git_object: 1f897da93ee9171f5df84debf9a1dbeee377f22a src/main/java/com/formance/formance_sdk/operations/CountTransactions.java: id: bae3df5659e6 - last_write_checksum: sha1:11dead4f86d12f5c9add03683578f30cb030941a - pristine_git_object: 2d2874c66354a4d76c1f180259248ae082052321 + last_write_checksum: sha1:2eb02ba29174f89b25ac38cb2119bfe718b3db20 + pristine_git_object: e682e35bafa6755855adf006e24005d5efad5701 src/main/java/com/formance/formance_sdk/operations/CreateAccount.java: id: 48e37ebcba11 - last_write_checksum: sha1:fee9ef349879430ea0294d5a39bec9e4bebe9f8f - pristine_git_object: 37efcd3371cdbf43fc10be4c57321a6311d13506 + last_write_checksum: sha1:7672fcf670ab4d7214c766f1876bfa18e319a4a5 + pristine_git_object: 8c287df33428b93c3a4f7ff9df1aa007445df8ec src/main/java/com/formance/formance_sdk/operations/CreateBalance.java: id: 8cc8c1c73f55 - last_write_checksum: sha1:119ba2e6eb579504aed1a876a26f64870402b81d - pristine_git_object: 91fbc8bb42176292f62a6612f0016f6979694723 + last_write_checksum: sha1:b7195570cd1457fe6e75cff5b2165429407e48e4 + pristine_git_object: f8d86d34f2358b3e23ba0a36776c92101887e5d8 src/main/java/com/formance/formance_sdk/operations/CreateBankAccount.java: id: c9f3a9ae4464 - last_write_checksum: sha1:782805a3ae596d929fdb879aee1ee866164cf1a2 - pristine_git_object: 83486dae5d5d2f30f146cc4435308821fcfb2112 + last_write_checksum: sha1:287ca58a640020e5e2f1fd1f666b0fb19aaca68e + pristine_git_object: 5e6660d54d3a8a85b426f09f1d4f848b8e688101 src/main/java/com/formance/formance_sdk/operations/CreateClient.java: id: 56264f27a7c5 - last_write_checksum: sha1:5350d15a2235a0d8d47a0a5c9ecb80d38e2f3c1e - pristine_git_object: acdb1fdb63ef8fb5a93d6b3e6978b4757a0c20ce + last_write_checksum: sha1:20dfe4458c26d0b16ecc685519cf835a8a2d864d + pristine_git_object: 3b60d83f9d96b84a27b27e282873a681159f13fd src/main/java/com/formance/formance_sdk/operations/CreatePayment.java: id: 4080ea33d318 - last_write_checksum: sha1:f58b0e80ce363d25f5390dab49812cadc111564a - pristine_git_object: 81c556ee1ea819eb6d60e4a2d2522652e78c051c + last_write_checksum: sha1:1961befdce07b7228f899dd1840db591c57d0e44 + pristine_git_object: 2e324a5cb8c3e6f3e0f9644274983dbc674b81c3 src/main/java/com/formance/formance_sdk/operations/CreatePolicy.java: id: e31f6b765cda - last_write_checksum: sha1:f8a77bfbf8b7c81066175fec912dea46159c3f23 - pristine_git_object: a6683337d5108a22d463fb16bec1c20830cb1fa6 + last_write_checksum: sha1:90932525b59d4e1d2463b24d39edba58dd71f229 + pristine_git_object: c7bb512d95989be6b5d0e366266f1d36285a727b src/main/java/com/formance/formance_sdk/operations/CreatePool.java: id: b3bedcc6a75e - last_write_checksum: sha1:bed249acf4551af247d18b94563f8d05b69aece2 - pristine_git_object: 3a490889648d592d9e4ca97d7f61af5896f6c56a + last_write_checksum: sha1:9c073a51d09d0021cd67f502656dac8c75008ed3 + pristine_git_object: c2a961a567168bee995a5df1254e602b542ef840 src/main/java/com/formance/formance_sdk/operations/CreateSecret.java: id: c11cb955d47f - last_write_checksum: sha1:084415da57479432cc0dfcc5a04a0e4d366bd96a - pristine_git_object: ec99cac606eaec7015631c997f54b3b906a63d62 + last_write_checksum: sha1:f9b62a937206c05edf6a7c3c364355eb4c452bd7 + pristine_git_object: 6a14a8ce226b807270bbed9874f5ae92385d5d26 src/main/java/com/formance/formance_sdk/operations/CreateTransaction.java: id: 9cc90716bc5e - last_write_checksum: sha1:8d302f6335cceb2cd4ee3102240b5f5f8e330b63 - pristine_git_object: 8cc1da27ce229bf91e1989b2d7064f1c55aa5512 + last_write_checksum: sha1:0b07443381acedb3cff24a1a1d78e9310389012b + pristine_git_object: a43bd64711a722865df07597ed89be3162bb2dd7 src/main/java/com/formance/formance_sdk/operations/CreateTransactions.java: id: 5772f09d561e - last_write_checksum: sha1:01448ac41ed1b027a9973e5dd6e2e0ac15ad8242 - pristine_git_object: 2c712570691005f1aab228314f1dd9260d699deb + last_write_checksum: sha1:f74287b5326fb413139bfb93cf6026fe71d70d1d + pristine_git_object: aaf929b4ea0728fb247747daa18197ddc7963b06 src/main/java/com/formance/formance_sdk/operations/CreateTransferInitiation.java: id: f1f719650a9b - last_write_checksum: sha1:417e63d308e8a689c8e46b37ce889c50184a3123 - pristine_git_object: 8d2901e5683366b4d7f36005376d1da052070a18 + last_write_checksum: sha1:cf6c862b08bed9c54f564a19cb5deadae7e39c50 + pristine_git_object: 9ad6fb47a9a3adebe2b54604561ec80021ebbab5 src/main/java/com/formance/formance_sdk/operations/CreateTrigger.java: id: 9e17c90f32d8 - last_write_checksum: sha1:c38ffed0aa484cc238a3e84cd1cd1ea0fa503efe - pristine_git_object: a50298e313878e68b26026bb88e6a0772d532641 + last_write_checksum: sha1:8f5cc6e3b16b6cdffd059048d6589b19c37c6b9f + pristine_git_object: 1b8b637088e7908493cf42ddc27f6e80a3517656 src/main/java/com/formance/formance_sdk/operations/CreateWallet.java: id: b918236e1011 - last_write_checksum: sha1:88f0720d161c2db509bd366866ccb5b2ec7cd187 - pristine_git_object: 4d237239a171c17116b09dcc1afd279f54f71c0c + last_write_checksum: sha1:a9bf154e5b7ac31471efa7536a56a88a8f3134b1 + pristine_git_object: 39887782ca7c938a0c709cdc116019ec4e62f7bd src/main/java/com/formance/formance_sdk/operations/CreateWorkflow.java: id: 7b381584f06d - last_write_checksum: sha1:178857d47ec857d03b27d0598fddd6c8313e984f - pristine_git_object: b11ba3e0ccb20c7136928a41db0515b876f6a498 + last_write_checksum: sha1:ba09537d05760b8ed383ffc2b558f25ed55e66be + pristine_git_object: cfb9dec119db9bdce117539669cc19ea1bc3d400 src/main/java/com/formance/formance_sdk/operations/CreditWallet.java: id: 99352bb6a617 - last_write_checksum: sha1:cd51e4c7ac05217c22eb1ad6f7a4d68a34a0545b - pristine_git_object: 784673c1883143c9eb50170f18c7bee1bcfb9290 + last_write_checksum: sha1:e359af623cc5f9da7021e31e4676b0811939e122 + pristine_git_object: dc863b8753d30a89e4f2ca32854fb7d8d04a25eb src/main/java/com/formance/formance_sdk/operations/DeactivateConfig.java: id: 62b109364685 - last_write_checksum: sha1:437eddd4a60b865922b95663719d3e18ecb81109 - pristine_git_object: 202321de10f52f2fa6448174c5bb572c4f6bac22 + last_write_checksum: sha1:e9dfaec87257bedeeedb77d68dfef9209393a6f7 + pristine_git_object: 965f3a89fd9dacb3106938b3715111c14a0ef521 src/main/java/com/formance/formance_sdk/operations/DebitWallet.java: id: 81f5f5adf2bb - last_write_checksum: sha1:6274daa7d5cc67bc2dd5b99e17b519b3140d2094 - pristine_git_object: eda9a7a8b6918b4b4b7bc2d3480c6047d4571c3d + last_write_checksum: sha1:37e33df2ad9c1bdc473e3856b04e4c5f3166ebce + pristine_git_object: f6aa7cc6405174aaad3df126d73155ff7f587859 src/main/java/com/formance/formance_sdk/operations/DeleteClient.java: id: 6de850880e0b - last_write_checksum: sha1:1f29c767749325c88db4380dae203617684b0276 - pristine_git_object: 3771af63a1fba057ff79750ccf0fea81c14535e4 + last_write_checksum: sha1:63ffe759331a3c54f16134c0157e404678b91ce8 + pristine_git_object: 469111a8b151bdb6d5829175e10fb3ca05dea77d src/main/java/com/formance/formance_sdk/operations/DeleteConfig.java: id: ebb413b3343f - last_write_checksum: sha1:2b9ec5a1ce083f85e44ebd10daba72f489026e51 - pristine_git_object: 44bc7e12c0af8d6a3918db6a935c776e7c089b9e + last_write_checksum: sha1:33fd44acbca6bb3c4454b81b02cf8b6872f687b6 + pristine_git_object: 2624ce9bfd858ce7017dcdb732208d24ba278abd src/main/java/com/formance/formance_sdk/operations/DeletePolicy.java: id: 9034cc33e3ea - last_write_checksum: sha1:6c28d06ba764dfc82c11a5633507ef9b740437fa - pristine_git_object: 14d8ff8b291187fa46fa4f9da98a4fd5b08e73ae + last_write_checksum: sha1:870a15d55adbad11d83a7634bf6ba99c20c03a74 + pristine_git_object: 749ac9814008011f91cd2354b4e734063dbc2cb8 src/main/java/com/formance/formance_sdk/operations/DeletePool.java: id: 1d3031c2198c - last_write_checksum: sha1:0de70b32dfc7614cecc830eb6e1c4ea2d9f66fb7 - pristine_git_object: 1e863822d29d6db520bfe78c62f68ceb595b3b0b + last_write_checksum: sha1:57b6c09a24fc6ecbaa1e7f47dc782e130f255258 + pristine_git_object: a8563f8d49f2a414e0d1b92a517e426bd6c2f19e src/main/java/com/formance/formance_sdk/operations/DeleteSecret.java: id: 2cd6c70e023e - last_write_checksum: sha1:b6f9f0f66d3330fd988b7d4475e937bbcdfc4fee - pristine_git_object: 6cce1b33971355620593007ca6942463869753a1 + last_write_checksum: sha1:935a03ce4db1155de6a94d8405f42bae89b208e6 + pristine_git_object: f47eae03cc1c7eab5332b0882c6c95011e1db8d7 src/main/java/com/formance/formance_sdk/operations/DeleteTransferInitiation.java: id: 0971ef97681c - last_write_checksum: sha1:85dbea78d60ab6625e2ef6b354b4fbf62076f610 - pristine_git_object: 8d45342656ff4aa041f2ac9ebb88eac656960216 + last_write_checksum: sha1:87831c168d256a2fed73a87cf0dfb747a5bc2589 + pristine_git_object: bbfa6408ada46fc4df8f01544497fd7008f92653 src/main/java/com/formance/formance_sdk/operations/DeleteTrigger.java: id: 0925e064f0d5 - last_write_checksum: sha1:aea8f831f4a4e3f6f76dc3bf63bcf5e59b14f329 - pristine_git_object: 739ff62bfbde5b1cdfdd96e2dc92e06390358448 + last_write_checksum: sha1:920d93515f1e098572870fecfe8037b77785c457 + pristine_git_object: 98aa1d4bb2e5dc5982406227318bfe47d25abe67 src/main/java/com/formance/formance_sdk/operations/DeleteWorkflow.java: id: 63dc696fabc4 - last_write_checksum: sha1:2da07ad56d4acf583c022ceb02bcffe5a3e43dec - pristine_git_object: b135c5949c2ec74e93d15dda284bcf93fbd62e46 + last_write_checksum: sha1:840ede5731cb0a827e4edf3713c9ae775fc11ce4 + pristine_git_object: 627f7efb589b7aaf6b89bad6e4b020411172c5bc src/main/java/com/formance/formance_sdk/operations/ForwardBankAccount.java: id: ae2787836313 - last_write_checksum: sha1:69ed90e035d3c9831f5bad6593e8d74d982450c0 - pristine_git_object: 6cb33c2485ad438d41122ebaf9f059b8171eb208 - src/main/java/com/formance/formance_sdk/operations/GetAccount.java: - id: 1acf60425baf - last_write_checksum: sha1:1c90ada0b73ae9eba80d1cb65c97125f4827a0ca - pristine_git_object: 23fcb3e8d418734b9b336b277aa9050c2da941e5 + last_write_checksum: sha1:02a7178a922f4fa0a0d5655d941c4d1f415742d9 + pristine_git_object: 794cc0b5f59d8d717ce737971f8bd6f291f4bf71 src/main/java/com/formance/formance_sdk/operations/GetAccountBalances.java: id: 7474b9350f6f - last_write_checksum: sha1:47cfde782f4787be9ee74ee4025e77390d10acf1 - pristine_git_object: 853a4ebab74bdb261b7f3ad37eaf30dcafc7563d + last_write_checksum: sha1:e2375de2fa431ff4926251fbfde571fa85fdc995 + pristine_git_object: e871a5b935ea2a0c0477a1ef7d377bf2dec981fa + src/main/java/com/formance/formance_sdk/operations/GetAccountLedger.java: + id: 5a3690b54f7d + last_write_checksum: sha1:ceb77ee91877c8570f9d4b166788145079a78ecd + pristine_git_object: 4ca52b474ddd6f0fa449b69a62e6be268d82a8b7 + src/main/java/com/formance/formance_sdk/operations/GetAccountPayments.java: + id: e3e0b88beeae + last_write_checksum: sha1:3a014e7fa5fcde6955cc251a54a04b3f38b274b3 + pristine_git_object: 5c464201b63eeb3890200b3f6441440cbcee39f4 src/main/java/com/formance/formance_sdk/operations/GetBalance.java: id: daf06459eb94 - last_write_checksum: sha1:f90597c8f8ecb1e20f005c0ad8d6855b0368c278 - pristine_git_object: 695c12b45c6cb070ce3275f5c7d7a0c5a062006c + last_write_checksum: sha1:c7d6b9e84a083675962f10b5fc9a0033d74e0a9f + pristine_git_object: ff470a26f2f3e5ee52d5396ef1bb973b43b7bbe7 src/main/java/com/formance/formance_sdk/operations/GetBalances.java: id: a1356047b5c6 - last_write_checksum: sha1:e7b8025b0d1835ecfabb6bf4f6b5caf513463fd7 - pristine_git_object: 65b682d7897e122a52bcc9ba44875cb4bcc02389 + last_write_checksum: sha1:6a130ac99a23afc184e5384d9f6de03ca1794e7a + pristine_git_object: 880c20e681d1d97841e0752791382eb164479e2a src/main/java/com/formance/formance_sdk/operations/GetBalancesAggregated.java: id: ab1865bb0c21 - last_write_checksum: sha1:291b64d50012df3c3448adb7255998f37dc44690 - pristine_git_object: 67ab8f048fb9e78cdb32d6cbb5bbd40b53473e61 + last_write_checksum: sha1:73babd1f5935cdc7b02e281d442d5c7cb1a6e78e + pristine_git_object: 1493d31a0f1d0333b932434da4a489b7e6c6fe8f src/main/java/com/formance/formance_sdk/operations/GetBankAccount.java: id: 2e476de2c27d - last_write_checksum: sha1:09db677ee56b39c45cdca41b4e057f9b9c1a8810 - pristine_git_object: a06279f000cbe10b443c9a2604e7f1478c6f7ff5 + last_write_checksum: sha1:0e527199ce133fae4c236cb4b99ced0ca7fa9533 + pristine_git_object: e7c27ae0bab65ee886dd7335d4e1fc28ca797159 src/main/java/com/formance/formance_sdk/operations/GetConnectorTask.java: id: 422f3fff0ae6 - last_write_checksum: sha1:901eca319eab7693a9d3d1ad19f1275d83d4f337 - pristine_git_object: 86ad1a4caaf7ea621547eec16d60cb93ac3a868d + last_write_checksum: sha1:da107af9e420abd99c84a5a7942219aee9180ebe + pristine_git_object: 5efe98769dd64ffaf509a6a9768f8101f514aacd src/main/java/com/formance/formance_sdk/operations/GetConnectorTaskV1.java: id: af2dfb36df9e - last_write_checksum: sha1:302c2652fcef0695032f7d8677290236529a6128 - pristine_git_object: a49938f0d7ed329974ae29238184b79a4def8f2c + last_write_checksum: sha1:f4bd590cf4b46b5da08f7aace825091197d75c1c + pristine_git_object: c46e2dfc123b067cff5bb2ab02801dffe13b7385 src/main/java/com/formance/formance_sdk/operations/GetHold.java: id: 2626f6cf5bd3 - last_write_checksum: sha1:b79e1ba9423bd948bed2e24fc30fc618af58dc4b - pristine_git_object: b66361b696bc2713d7f258b80318e0d9da98ab7a + last_write_checksum: sha1:5ba3b35153f9861d9387cae6c3741e966c4fdab4 + pristine_git_object: b6b73911c1fab7a32ee79eca467a9997c714c14c src/main/java/com/formance/formance_sdk/operations/GetHolds.java: id: 29f1c422b9e9 - last_write_checksum: sha1:41e695a302adcbab99acaac322dbbad4e3251c8b - pristine_git_object: c4c024fa15c533e8cf08137bac2ea94beb29f577 + last_write_checksum: sha1:185561a851b1e134281886fc2d43b79cd02f63a4 + pristine_git_object: c77ae7c09d25934f8578a8919dbd3badb96d099c src/main/java/com/formance/formance_sdk/operations/GetInfo.java: id: 3149afb94e5c - last_write_checksum: sha1:e2794e4d9dc75257f73102d7360dcd5e630a43c1 - pristine_git_object: ddaf32cfb3ff601f417c8ccf6a78eabc388ed691 + last_write_checksum: sha1:457f963baf64c30d67df6fc5eef266647f6076b3 + pristine_git_object: 36c3dc99ce3b0318c0d2aecfdd458c7d14cc238f src/main/java/com/formance/formance_sdk/operations/GetInstance.java: id: aad897562af1 - last_write_checksum: sha1:6c7f5862efec0c0262ff0707edcbe95b83bc0830 - pristine_git_object: 397f33f40535d1f83bd1df992478bf99dbd2e73a + last_write_checksum: sha1:67d236fed3843d32b49d350b4e64034f039325d1 + pristine_git_object: 72f2cf6194a7545f46e4a91953c7e08e1a727cb5 src/main/java/com/formance/formance_sdk/operations/GetInstanceHistory.java: id: 6472cdd0bc7a - last_write_checksum: sha1:484432671b440b205b63e07379d1a34862cd9442 - pristine_git_object: bd2c8fbe5a22168b0e3c68c4a63f199523fa4f91 + last_write_checksum: sha1:e2f859fc6d3d35402e641afde81471c2edee2ed4 + pristine_git_object: a0cdb1444204359e8f454f8806c76254e72fae5f src/main/java/com/formance/formance_sdk/operations/GetInstanceStageHistory.java: id: b87512098129 - last_write_checksum: sha1:f284142cc06d93f5fac21740fb5c317bcf78f825 - pristine_git_object: 7f9badf47c8fde726de7ed8ed77f377c7db7af77 + last_write_checksum: sha1:1078438e5f6c1227b8ab67d6bc7b1ef012f251e0 + pristine_git_object: d2725765c1bda76016444a757815e04c07b2d15f src/main/java/com/formance/formance_sdk/operations/GetLedgerInfo.java: id: 2601184565b5 - last_write_checksum: sha1:8400130ccc68511f56fbd256971f9d0f3f859ff6 - pristine_git_object: d2105c627fdc83512a19f7ea20b680a2b6714f04 + last_write_checksum: sha1:da937e266692ebfda52f42ad5c189df00269e57e + pristine_git_object: 166dfbb6abba03ac10d036ff58e756cb67c18c9c src/main/java/com/formance/formance_sdk/operations/GetManyConfigs.java: id: 03552b7dcf05 - last_write_checksum: sha1:8ac32ab8c00e5c326ad77829e4862e0cc07eab76 - pristine_git_object: bf3eb0e3854803d4136e3593e16b978d014c8af4 + last_write_checksum: sha1:58b14fcf4fdca11ede05afea65b40a922acecc19 + pristine_git_object: 8547a98ed0664387d923ee7932f929264d7cbf52 src/main/java/com/formance/formance_sdk/operations/GetMapping.java: id: 3a8fbbeb2db7 - last_write_checksum: sha1:48d8d39d756ffc1a256d3d5f416e397f02964a21 - pristine_git_object: 3e79711523d4d05afdd8e47fbfc5c8c1f050e66e + last_write_checksum: sha1:8ac716d3030eab0aa8e655490cd42c69e19a8572 + pristine_git_object: a8de7b2b320d1adde7d37f601c50f37a3cc7aefc src/main/java/com/formance/formance_sdk/operations/GetMetrics.java: id: ecdffe4513c3 - last_write_checksum: sha1:ba1db95cade39d6f41762f6bb3c4b7895c38cc58 - pristine_git_object: 9808416f7b0c0e1bd05dbfc7d9ef27ac691a97a1 + last_write_checksum: sha1:804192fc65261b637ffe8b348e3d2c4c33432075 + pristine_git_object: f761d423482b1d5c864f0b42abc1a3e0423f70bc src/main/java/com/formance/formance_sdk/operations/GetOIDCWellKnowns.java: id: 69b7d5fbe1b6 - last_write_checksum: sha1:ca7f5852f33d89d6425b34f5bc932b87e38d2ec8 - pristine_git_object: 9f1b5e29082390b40b62638b9e060e8a58fc2cca + last_write_checksum: sha1:fd0d6c154aa8bcbac4b8f5787aec4e250757350e + pristine_git_object: b673373b8d37d7f29f0b710fa9de40756beffacd src/main/java/com/formance/formance_sdk/operations/GetPayment.java: id: 7246c863341d - last_write_checksum: sha1:fd425f76bb8ddd88fa58d72654fd3b031260a626 - pristine_git_object: 24f676522990b2c1f32ac20c534e189248de9ab3 + last_write_checksum: sha1:6c6088acd20e5d5e4dea679c2f49ee5c829fa9ce + pristine_git_object: 3bf6a30b7c6a42c977329d08bec549906ce6c365 src/main/java/com/formance/formance_sdk/operations/GetPolicy.java: id: fb779401d3f1 - last_write_checksum: sha1:9fcf3933ad47c71b155fcc9811dab425d3d804ef - pristine_git_object: 8901a9da6c5fcce06b64f289c04c702e8533fcab + last_write_checksum: sha1:5598da02a7dd1390c3f93f3f88e7c386d3304a4b + pristine_git_object: 25c5248335d925b7bac7c50c65ce71e4d8869e38 src/main/java/com/formance/formance_sdk/operations/GetPool.java: id: f77d54cfa9bc - last_write_checksum: sha1:1f8923933a5ceb0b0fa410394d9b20264aa2b094 - pristine_git_object: c9d31bb4d9653cee85d2029da54eaf5d3590e655 + last_write_checksum: sha1:4ed88d44509641704055a3cc04e187896c212136 + pristine_git_object: 3f48162a66a2a92e29b422281448fe75036e7287 src/main/java/com/formance/formance_sdk/operations/GetPoolBalances.java: id: c1c43429be02 - last_write_checksum: sha1:fd1ae7b8c57a5dc97fe25ec611b8a163af6b6785 - pristine_git_object: 3c8e9ba6d5a479b5f1fab8c950d5b3f8517be3b1 + last_write_checksum: sha1:5a8458160c44f91577327c861cf56160c1edbe01 + pristine_git_object: 123e031077abb8bd4408817984b244be484ca768 src/main/java/com/formance/formance_sdk/operations/GetPoolBalancesLatest.java: id: 2d10662e9e98 - last_write_checksum: sha1:0d14941810cdb33cbda098119c3674faf839c87a - pristine_git_object: 8b01de21df5bbe1492720a6258f4755f0169b519 + last_write_checksum: sha1:ca1123c482577b8e46c33266f44a59216f25cc72 + pristine_git_object: 261b7f2ff1861c6662f6c17987bc1a2fccb4e687 src/main/java/com/formance/formance_sdk/operations/GetReconciliation.java: id: 24145df34aa9 - last_write_checksum: sha1:fb92044b39bf6722453b48a5bdd951248c1bd394 - pristine_git_object: ab5612ce9dfb1ccc15fbf296791516a4d4443928 - src/main/java/com/formance/formance_sdk/operations/GetServerInfo.java: - id: 0c296930c207 - last_write_checksum: sha1:61a09d4262dcbecfb7294164365ffc5e3f0a40a3 - pristine_git_object: a86a0afea8df4dc27f14a3d3b6316d6eee2dda65 + last_write_checksum: sha1:ec4619a0a366544b9223f0b2826e7607d427b6ce + pristine_git_object: 368447b2fba591e1b35eec0f6ebba96fe083a362 + src/main/java/com/formance/formance_sdk/operations/GetServerInfoAuth.java: + id: d97d4d48b693 + last_write_checksum: sha1:86feeea978bf1eb24c129b9deda719d25746c28c + pristine_git_object: 12257cfb8169ed79d1fad676e5f70835842aa286 + src/main/java/com/formance/formance_sdk/operations/GetServerInfoOrchestration.java: + id: cfec9a55758b + last_write_checksum: sha1:e3c27e91f0cebf77ec4506dfa9c8ac86cd4998aa + pristine_git_object: 3481c1ec1dd9c63b5ea985cd0e17d3a2ce49ae95 + src/main/java/com/formance/formance_sdk/operations/GetServerInfoPayments.java: + id: b3aeea62c1fe + last_write_checksum: sha1:bb5097cc48ce761ae9939e2f4ef3ce1f86752721 + pristine_git_object: 75ab3885ff95e691651a4fb74e73ef97a046ffda + src/main/java/com/formance/formance_sdk/operations/GetServerInfoReconciliation.java: + id: 23c2fed5de2e + last_write_checksum: sha1:05777067200b699fb457450c59b05f59cd7e0fba + pristine_git_object: cf9fad8f6b8da8645bb81797ceb409c02166843a + src/main/java/com/formance/formance_sdk/operations/GetServerInfoSearch.java: + id: ca641a2d623b + last_write_checksum: sha1:463a22e12b04e0130dede230944eadba2e7dbdb1 + pristine_git_object: a7d1bbeb1ebd6da1ac71f8aa6c262253499352eb + src/main/java/com/formance/formance_sdk/operations/GetServerInfoWallets.java: + id: bec4d237005c + last_write_checksum: sha1:f1c97021c4bdea174497bd6960d1f35099d8b36b + pristine_git_object: e3a93589976e242344cde6700528f2088f275e6a src/main/java/com/formance/formance_sdk/operations/GetTransaction.java: id: c916329580a8 - last_write_checksum: sha1:b6fc28612ec5d0f0a72235c26b077c59e99ab710 - pristine_git_object: 8364a0457dcc32bd3c80e60415e733872e254489 + last_write_checksum: sha1:c820392bc5565b301dfca8072291e919a8a25423 + pristine_git_object: 923aef48b06caebcb007ec49471888e24fef6a2b src/main/java/com/formance/formance_sdk/operations/GetTransactions.java: id: bdba1b8b2031 - last_write_checksum: sha1:e161b938f35d59543777bdc1374c56a635a7c5e3 - pristine_git_object: bfea817290825954b1f01f329f5aada0d32d427c + last_write_checksum: sha1:ea123aa56fcb044fe644726aee9e5eb96daa63b9 + pristine_git_object: 06ff759b11b58e9429c440572f8583581a8916e6 src/main/java/com/formance/formance_sdk/operations/GetTransferInitiation.java: id: 316f88da1771 - last_write_checksum: sha1:4d63660f330fbd557bc0b6933ce12bfa6b171567 - pristine_git_object: 099ace990e58eb6019378d4a6fe24b1b76146e2b + last_write_checksum: sha1:8795d522930afacf194381c6ce64a6e14044c63c + pristine_git_object: 2d73dbc0759231f7fc46384df8875d0b2bea9179 src/main/java/com/formance/formance_sdk/operations/GetVersions.java: id: bc8995b37c50 - last_write_checksum: sha1:6bb975611a01af3da8c6c92bfd620f9c2bff9b48 - pristine_git_object: 7892d5ac718bfc4353b86a9869052f36dbeeca75 + last_write_checksum: sha1:47c9c4b17e4281fd8e1181a9e915918884bac72f + pristine_git_object: ef00359e908364ffc38b8402a377c60a60a8d54e src/main/java/com/formance/formance_sdk/operations/GetWallet.java: id: ca7ffa597ffa - last_write_checksum: sha1:8caa212e4c0130b1fb7740063928c9caea438c36 - pristine_git_object: 4138f455fb4d01b6f52ec9cb17ddb852fb663285 + last_write_checksum: sha1:cef85b1f6d93cf53ea005a481805b772879f2b60 + pristine_git_object: 4b5bf3336a776f2539823a8b63d30715530ae688 src/main/java/com/formance/formance_sdk/operations/GetWalletSummary.java: id: 610a5650e760 - last_write_checksum: sha1:7ca0843350582dabcffb1fcda4fbfcdea40249f7 - pristine_git_object: 1e9ea0c009852f0fe1e31bdf215b3a100399f055 + last_write_checksum: sha1:7962fe39e15c859986146d0041909ff67571ea60 + pristine_git_object: 228ddd0df7b0c6af2e07b9a3f1486d9309d067a2 src/main/java/com/formance/formance_sdk/operations/GetWorkflow.java: id: c6c50aac5f79 - last_write_checksum: sha1:82b4fd2c5e500b91d17fb0784f1cd29f0273b852 - pristine_git_object: 5d87f0f1530295e9deb6a3a8892c43992697d529 + last_write_checksum: sha1:448b2a8e9bf6de833adcb9029422b729e92dff88 + pristine_git_object: 9968ffccedeae31117382b89990a530cd040a800 src/main/java/com/formance/formance_sdk/operations/InsertConfig.java: id: d5a6046db9ee - last_write_checksum: sha1:245fc3c12f05b952665f9cb178ed202bd3847c0f - pristine_git_object: 4cf8f76f941d9c1c784e1322c199e0423d59fd54 + last_write_checksum: sha1:e3af48f882eff7ced53c51dbff663e4bbb05e7a9 + pristine_git_object: 8bbf7fa4dd8dad7ef04030d068c0fc24c7c5bda7 src/main/java/com/formance/formance_sdk/operations/InstallConnector.java: id: 3c8f49b80761 - last_write_checksum: sha1:0e0951d882d9913a2b6edac2f3f47f0634f3527e - pristine_git_object: fc863f514d0e477bdf9a93224ee9e59bba068bd3 - src/main/java/com/formance/formance_sdk/operations/ListAccounts.java: - id: 419fc098a000 - last_write_checksum: sha1:6a0fe6f6ea515593e55f2a9dd4eaaab48e0b3aa0 - pristine_git_object: 033c3c0b0e4b5f7ea8f96051d7f582722bd6672a + last_write_checksum: sha1:e92dcba826864993fa3078bc4be1381722b19dfc + pristine_git_object: 874d6933577ceb82d14c2a24a1cea44a488b320b + src/main/java/com/formance/formance_sdk/operations/ListAccountsLedger.java: + id: f8a4d0120d56 + last_write_checksum: sha1:5196ca12a062d1bac2b7c2ca2db27c964d78c965 + pristine_git_object: 0ff68e8b7d574224e8a49b99367ea0a1437165c0 + src/main/java/com/formance/formance_sdk/operations/ListAccountsPayments.java: + id: b00662c39ecb + last_write_checksum: sha1:3d02ad7c3933229ade8dbdb1c0632d37f980045c + pristine_git_object: 5839d76322a54b4b07ddd990d8f34e2fd3157474 src/main/java/com/formance/formance_sdk/operations/ListAllConnectors.java: id: eda2066e9c7e - last_write_checksum: sha1:1c0afeef64477d9c701dc934b26c9c4aa66ffbdc - pristine_git_object: 0ead8cfde9d1e6457e74bb2891ea42cd85bb8ea0 + last_write_checksum: sha1:c1852b0838bf094ca78b0ff28e5dbfeedcd71490 + pristine_git_object: 419ef679b59c4e85285f11c1a1d6839eb3520d18 src/main/java/com/formance/formance_sdk/operations/ListBalances.java: id: f5c2d499ab0c - last_write_checksum: sha1:d8ec2f34b300e1961aa63bf428a392be85d08202 - pristine_git_object: b321e1368d9307178ad18d4b239c292154b4dd56 + last_write_checksum: sha1:f64d34c91679b84b086e6ad4607c31cc331ea292 + pristine_git_object: 9fc1b2312438d826188682e635577562f1d9dc83 src/main/java/com/formance/formance_sdk/operations/ListBankAccounts.java: id: 4d0aaa8c65cb - last_write_checksum: sha1:c1ca6db9bf445b73baea1d5a3e4784687d30fb44 - pristine_git_object: bb396c2003f310d125a61aaa35a06e2e7160dcfa + last_write_checksum: sha1:fbe8de0d57aac2997f6635374b7b5ef43b6124bf + pristine_git_object: 20ecb9fece46ccc4800aa13e7dca60e7282496ed src/main/java/com/formance/formance_sdk/operations/ListClients.java: id: e6a149ffcc8f - last_write_checksum: sha1:623bcbf9d3ab60c9b6af294f8e4f4a12667faef0 - pristine_git_object: ed12f64422218563f900b310ac13fee086e4d128 + last_write_checksum: sha1:b7d9f78e2f569ba5e8cda95db90851996189dd1b + pristine_git_object: 109cc948346ad5cffbb12f38401ad1a90fa92f6e src/main/java/com/formance/formance_sdk/operations/ListConfigsAvailableConnectors.java: id: f6140961c52b - last_write_checksum: sha1:f923971f043c3b270231cdd7a117f3386be7852f - pristine_git_object: d5f5cef3dde38f5387b3736e9297f22271241134 + last_write_checksum: sha1:240fd29d2c957f735596a84e60a056b548ef9009 + pristine_git_object: af3ce5fd0c896c5d6dce2c6247b0a9859ce91b5e src/main/java/com/formance/formance_sdk/operations/ListConnectorTasks.java: id: d0bcaf6f03c7 - last_write_checksum: sha1:ce7c4962b75616df303ac05257bc3e7e6351436c - pristine_git_object: a087e189feefeec49dc3c8fb79cea31d79075c44 + last_write_checksum: sha1:ef4e769f466e6ee475f74ddf6b81d3194061def5 + pristine_git_object: d5f0250fc8d8184270f7e6224f1fdc6ec1757265 src/main/java/com/formance/formance_sdk/operations/ListConnectorTasksV1.java: id: 27aa445cc861 - last_write_checksum: sha1:ee22e8cd14bee680b8b7a27142d5e120993a64a3 - pristine_git_object: 440b081063f9acd78b345101779e51ec54cf85db + last_write_checksum: sha1:630417b9df751f34382d82c9f9a10acc36937678 + pristine_git_object: c6351b582b84d738a8cb66f6524badf9b7e47980 src/main/java/com/formance/formance_sdk/operations/ListInstances.java: id: d972ba53e160 - last_write_checksum: sha1:6503073b86bd2604a81a3c23ad2bcaa077594ec9 - pristine_git_object: 848dc3c4cb532cd2999b65acb153424f77198fea + last_write_checksum: sha1:6f79e4da817321cab457d5bc44d8f0b1aeac51a2 + pristine_git_object: f134dd128241ea2b1d4e209d402165a170800a06 src/main/java/com/formance/formance_sdk/operations/ListLogs.java: id: 919dce2e4cda - last_write_checksum: sha1:2f9454517ef4a275566b1d2f434a5abf7318b5df - pristine_git_object: 838532e3e145bb9c36e3a51a3024507b5faa2081 + last_write_checksum: sha1:6f8fd1e5b4068a8a2ce9c2160ce59e98d2be30c8 + pristine_git_object: bd3804081708475443d7800ba5ec1337258842cb src/main/java/com/formance/formance_sdk/operations/ListPayments.java: id: "417867659820" - last_write_checksum: sha1:69627f63b5fec56b8bbadb565c4c11e1f222d237 - pristine_git_object: d0db05c52cf8c52e9ad8fbe6b780aaeb2809895a + last_write_checksum: sha1:3be5860f57475a35dc2edba7e40385a7f9d748a8 + pristine_git_object: 343a830d855cfd5e281a956145153ab1d88cb342 src/main/java/com/formance/formance_sdk/operations/ListPolicies.java: id: 5708f6d16140 - last_write_checksum: sha1:51ca318fa845a86a1e6f32dd8a22a5ce6a15c791 - pristine_git_object: 73653abc1ed905f357a64bb2852eae2049463b9f + last_write_checksum: sha1:49184305a425fa5325c5851a25e6292ba71603b2 + pristine_git_object: 7d9a4b48d51c2344c19a06186964dbe109cdd591 src/main/java/com/formance/formance_sdk/operations/ListPools.java: id: 4cd145471e8d - last_write_checksum: sha1:a1a5ae8276b58023733ffee025b56ea593461be6 - pristine_git_object: 4aaa0cf39943fb3fccb2c832a7d3be09dde2a5b6 + last_write_checksum: sha1:a8559f462131fdc2d7a2620b282b1ebfaa90d337 + pristine_git_object: f19c1404484d147772e1cd0c89c2bbafc7d8ea93 src/main/java/com/formance/formance_sdk/operations/ListReconciliations.java: id: 90696818e15f - last_write_checksum: sha1:294f7f9c94362a16918a883abe8be730e69f9073 - pristine_git_object: 8a6cd0e44daf9ba7389ccb7a7e4ed87e9d9b2181 + last_write_checksum: sha1:53affea83305b19cca72fd3e67a89517367db6e3 + pristine_git_object: 1de95f6cf31fb41552ea27088adc44fd7ce03506 src/main/java/com/formance/formance_sdk/operations/ListTransactions.java: id: 460fbbfa7236 - last_write_checksum: sha1:d0075b2d44bbc9e53596386b56a910fc2876235e - pristine_git_object: f5b95c0706ef77d7575f42668ef8178c70894897 + last_write_checksum: sha1:10b64f654ec14ef36fec27c503c1c1b6c7a91ed4 + pristine_git_object: 85cd46269403d1e29e578666bd2653cb6806b62a src/main/java/com/formance/formance_sdk/operations/ListTransferInitiations.java: id: 6838e051ec38 - last_write_checksum: sha1:81666792bf786393fec3b87bfab48ef87fa8f11b - pristine_git_object: 5ccd5667471da920c6329da9baf457d8cadc046d + last_write_checksum: sha1:e9e72db9e3eaf7d3bd650d24aed12ca413b70059 + pristine_git_object: 94a33350400a677ac573b2e0cb0dd50f7f4d6557 src/main/java/com/formance/formance_sdk/operations/ListTriggers.java: id: b6b27bfd7b41 - last_write_checksum: sha1:fca51a7a3e8a0800847b7cce2b48de0f6caee5de - pristine_git_object: 96d92a70d934d93948a2b7322ebff4bb50f70c4b + last_write_checksum: sha1:073b5d1e0488703f9d1be579d5efde12cb87f1d8 + pristine_git_object: 8c83a250fb780ab96cff597f222b9d5abc0b7119 src/main/java/com/formance/formance_sdk/operations/ListTriggersOccurrences.java: id: 8a8049fd3447 - last_write_checksum: sha1:b66b6a24c6f2849321ffbc01ecb39832dc4ca114 - pristine_git_object: ba2b9bf9b3316175a830cb8aba38c69b55f9edbd + last_write_checksum: sha1:4db5d36de9e8e6cdb0c7102b64966e6e8584cf21 + pristine_git_object: e4735f35c48c0fd6229d46234f52df9bd8b6cf2c src/main/java/com/formance/formance_sdk/operations/ListUsers.java: id: 91d6f42ad4c3 - last_write_checksum: sha1:a23f937ea29a05276e5838bedf631d26733d28b0 - pristine_git_object: d1c880c3b8d389acb4a22b499443c9d5d20cd37c + last_write_checksum: sha1:0fc47be8b343ecf9d47083acd1086c7117622fd1 + pristine_git_object: 60239fab06e49238ab676d794b8e91313bf637ea src/main/java/com/formance/formance_sdk/operations/ListWallets.java: id: 4bdbfd58feea - last_write_checksum: sha1:419e5d79a5a100ba8bfa3f295a1c6cc2666c0dc6 - pristine_git_object: 90249ecaecef29f5501b83d75e17fd811b6970c4 + last_write_checksum: sha1:f56d195919b505a99484e7367936e3080ec22f4e + pristine_git_object: 9fc8d664df2261e1c33e7b4557b531b29a7cf445 src/main/java/com/formance/formance_sdk/operations/ListWorkflows.java: id: 0a988cb1c183 - last_write_checksum: sha1:2e4c12b1fbdcff40229152fb9a6898e11fe0c160 - pristine_git_object: 3d66c3e012415b6fbfcde38e322b0ea92acfc55b + last_write_checksum: sha1:7b08dffa55de988671c84e211302bd43063e23fd + pristine_git_object: 04152a74b83b9f5908cf1a16f9f80a257cbfbcbf src/main/java/com/formance/formance_sdk/operations/Operations.java: id: ad5ed9ba43e0 last_write_checksum: sha1:01b44c31667b4d2ccd2ed59f445753fe4d6828c1 pristine_git_object: 847c548b5eaabf3592a7479f75a9038a6aa45b04 - src/main/java/com/formance/formance_sdk/operations/OrchestrationgetServerInfo.java: - id: 7101debe4081 - last_write_checksum: sha1:3b3818f422a658eb531234586219ece1da9345d9 - pristine_git_object: 869dd86aefee68ae8df0f91716934eada4955f5e - src/main/java/com/formance/formance_sdk/operations/PaymentsgetAccount.java: - id: ff94f2c3a7d3 - last_write_checksum: sha1:095b7fbb81bc72979d5cfc1fb61fb674d7526f1a - pristine_git_object: deb03070d0327291506c9f7c6d4f3357e2c5322a - src/main/java/com/formance/formance_sdk/operations/PaymentsgetServerInfo.java: - id: 74ef9629b4ca - last_write_checksum: sha1:932152368a2b9e02ee62efdec5b8362e0a39a395 - pristine_git_object: 891f0aee0b583109b433b11b2271cc3be1971b9b - src/main/java/com/formance/formance_sdk/operations/PaymentslistAccounts.java: - id: 48fc2cf1cfa7 - last_write_checksum: sha1:6c0cd1a767d819f7fe1a509a70990e2c18488274 - pristine_git_object: dceb2ccca46bf13b52b5d55f2246d5800bb1bdec src/main/java/com/formance/formance_sdk/operations/ReadClient.java: id: 19b5db22763d - last_write_checksum: sha1:05134c546db1e0d77531046e471ec7f03786697e - pristine_git_object: b2df8ed4256c0d6c1d8a7d096b6679fbe85f30d4 + last_write_checksum: sha1:66eb4e5d202e866445acfa6df186e400c116f037 + pristine_git_object: 422497393ab9072cfc29cd8e3134c90debad5fd2 src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfig.java: id: 73445ed25666 - last_write_checksum: sha1:f48447096542638bb89c58c011e11379b3d9bda2 - pristine_git_object: 236e76b99fc8032e5f48b04e1228cc47c889d531 + last_write_checksum: sha1:26c97a2e6f29215ef5c69e1d1a3867627fad060f + pristine_git_object: ca32b4bd6453efe3383a35a1a718018b76948d68 src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfigV1.java: id: 5e74136d644c - last_write_checksum: sha1:6f9454d24c7b1c7f840e3576ef414f78b3f49aa1 - pristine_git_object: dfdd8adaacf5f19a5b9d3913bfcd2a2ada178195 + last_write_checksum: sha1:ff50b550e493237763d6b23daea6d4f750429e7e + pristine_git_object: c81684dc983d12c251a6da25c17d16a9c6780e13 src/main/java/com/formance/formance_sdk/operations/ReadStats.java: id: a9aea7c008d3 - last_write_checksum: sha1:a7606ec46bf01283051c173403683aa9c3de12ab - pristine_git_object: a1ed02dd55a3e2cd8c479efe7197c05549876f16 + last_write_checksum: sha1:7afd987660c876f52d77f3985abcb50faf190862 + pristine_git_object: 6139e6f893549e83396ac66af3077c56cac21995 src/main/java/com/formance/formance_sdk/operations/ReadTrigger.java: id: 079b964367b1 - last_write_checksum: sha1:18e213b83435ce0bb5e8a05e9380b94225ce53a6 - pristine_git_object: 72c514dcc24ccc6269e4469bc794526fb9c8824c + last_write_checksum: sha1:52ff7d164d56ec91dedf03a713b807082045296d + pristine_git_object: eba0e4acc47e0d4915a27021abff09e898568d90 src/main/java/com/formance/formance_sdk/operations/ReadUser.java: id: 125e4d12a170 - last_write_checksum: sha1:3dfdef8049549eab994a955ec5c71d6823bc3cbf - pristine_git_object: 593739c65f7968c1992c03bd93024ae9a312c361 + last_write_checksum: sha1:ee69f741c300dbfb12f1353de81ad3c6e456c243 + pristine_git_object: f451d00e6ca4f6cce51aa6ef9b41a3fad9c14726 src/main/java/com/formance/formance_sdk/operations/Reconcile.java: id: 28ba7c4151bf - last_write_checksum: sha1:fba9188d747fb3b8b79ba6827f6b704d1c97a19e - pristine_git_object: 64cff116ad74e42b4dfd104f3ff9a3079392c767 - src/main/java/com/formance/formance_sdk/operations/ReconciliationgetServerInfo.java: - id: e623d34c0802 - last_write_checksum: sha1:fd86a3f269bbee698e7af13a4e797182ed65a482 - pristine_git_object: ed46bcfa83899a10dbaa8c6e18eb6670a347b58b + last_write_checksum: sha1:afd0e25b342341f0e3fedd5e7a299659727bdfe7 + pristine_git_object: 2c01c09182ca882da38f533f7128a1be6ce71cdc src/main/java/com/formance/formance_sdk/operations/RemoveAccountFromPool.java: id: 99713c3573a7 - last_write_checksum: sha1:8bc056a68ebebc9cb75246100be4ef3f441e6e53 - pristine_git_object: 5a2a3ebeed9c273fb34b72f103f05944faeecba4 + last_write_checksum: sha1:43b1e1a83f57d20a8134bb66095899a9fa15e5cb + pristine_git_object: f4600cc8731eaadd90c06716858a6b610e0a9952 src/main/java/com/formance/formance_sdk/operations/ResetConnector.java: id: ae6e9c4f5b88 - last_write_checksum: sha1:aca67683ad61d4256c82063022d7cfd80b0ec436 - pristine_git_object: de82346fac61bc3181fe3c9d3897e35ad347bdbf + last_write_checksum: sha1:3f6f16bbbd43931cc4e86a0184d963f4f7096985 + pristine_git_object: 3d2f613a6516082790a0bbfd5cb82d5e689cf3fc src/main/java/com/formance/formance_sdk/operations/ResetConnectorV1.java: id: 50f87a5847e5 - last_write_checksum: sha1:bdd9720dbedf5371c2ffc4ddfaf603ee052f77cb - pristine_git_object: 15ed31494851926369a78272a9505ad0e4a34f00 + last_write_checksum: sha1:09215a04cbd0cb9e00dbb4136b0ab3c7ce4215b7 + pristine_git_object: df63c1580b07f57206eeba2307c6d218b7e777c6 src/main/java/com/formance/formance_sdk/operations/RetryTransferInitiation.java: id: 7c02eca38db7 - last_write_checksum: sha1:e473b9e5b1d6ac44c16ef915eb14d5c2e2a8ad2b - pristine_git_object: c133222f3775cf6e034a7304e2fdd83147f41678 + last_write_checksum: sha1:c9a643c1baad7b41fca8585724ef6afc1f29dbca + pristine_git_object: ac8adbf1fefc074b310e080af8e8a773fbadc532 src/main/java/com/formance/formance_sdk/operations/ReverseTransferInitiation.java: id: bcdd94a6859e - last_write_checksum: sha1:6e47141aa9468b9c2cddc78ef3e62edf098fb60f - pristine_git_object: cf93594b99a87fb4771ea2e9073571cc599dbd58 + last_write_checksum: sha1:d12cb9c021a8c31f40b84d266195fd1b7ccd7b2d + pristine_git_object: 861b4518156ffe8047deff5009b8d6c9779ec099 src/main/java/com/formance/formance_sdk/operations/RevertTransaction.java: id: 692d112d158a - last_write_checksum: sha1:14404ac313af51601c66ef4dedb48fee17fa6406 - pristine_git_object: 611036493187e7dddc1e451c775173ced3a564ea + last_write_checksum: sha1:d541cfb2fe2ecfaee8bfbdfeddef0b8bc687d5f7 + pristine_git_object: 71bd54e18e0774431bd2e75ddddc851af2c88808 src/main/java/com/formance/formance_sdk/operations/RunScript.java: id: 90e40d93b1d7 - last_write_checksum: sha1:b6d082c5ab2e83b1bf79e9eeeb74486f9711dc63 - pristine_git_object: 728efe1314e8e15c38ea806f55fa37036a3432f0 + last_write_checksum: sha1:7eff040244914f0b2769a8f2dc063faa25c35701 + pristine_git_object: 55240fb2caa1c2db75c690f50c4569607cd32635 src/main/java/com/formance/formance_sdk/operations/RunWorkflow.java: id: 6f5e644b5d9b - last_write_checksum: sha1:840be61cc1a7c9c24c4df9288c5b4bbb6e48fa90 - pristine_git_object: 2ae78d18de013088bd04a51caa89aed50b11d43b + last_write_checksum: sha1:47de6080bfd2c74faecb16199c84752a88c55a79 + pristine_git_object: 59f686d454c2d2cb351dd06d567a343cbb5b0416 src/main/java/com/formance/formance_sdk/operations/Search.java: id: 77adeba1c1db - last_write_checksum: sha1:a931a56472f5e749a0cc74c430a7c3d46523ce93 - pristine_git_object: fa5762ecfff53d9170ed195b0f6031c1cc5e3423 - src/main/java/com/formance/formance_sdk/operations/SearchgetServerInfo.java: - id: 5f4c854a5e3d - last_write_checksum: sha1:f442de299d88cb6183d4c62917d54448274303fe - pristine_git_object: e43d1374b48a094cc70d12603e851bf0d57049d7 + last_write_checksum: sha1:656e4c772985d09a778adf3aaf955ff59069ba14 + pristine_git_object: 4e556578a6a061a5e59c4c7adbef4f04fb05b772 src/main/java/com/formance/formance_sdk/operations/SendEvent.java: id: ebd38820eade - last_write_checksum: sha1:d42f96bef9c3901327948406958ff5e0418557d8 - pristine_git_object: ed8d60496c595e6d5feb9c312882e44d49277a4b + last_write_checksum: sha1:1505c5e6102645319c839b1f9a2a44bfa41a9952 + pristine_git_object: 6cfe111366dbd5a38a20c56ee0c4619bc7e80eaf src/main/java/com/formance/formance_sdk/operations/TestConfig.java: id: d78f1b2b299c - last_write_checksum: sha1:e0e39251311c5ee1e9ce010f57b9039854d4971e - pristine_git_object: 268ee4ef7957d14dbd343ffaf2ece1066c1dbb00 + last_write_checksum: sha1:8c636379be714062c32b85053d79d3002f81dcfc + pristine_git_object: 9d160c46a1343cb0452a07809d1aa45462339744 src/main/java/com/formance/formance_sdk/operations/TestTrigger.java: id: eed29f3057c6 - last_write_checksum: sha1:6de2e74d738fa13c797eb0bae57a154732025fda - pristine_git_object: 23c42a0ce669838509650fe30e20dbcc77080af9 + last_write_checksum: sha1:4dde6b2b08ae1401b4e8c631480ef4d334cf6c0c + pristine_git_object: 2385c480d46d56d2bf97a5d41277f1812d3c344f src/main/java/com/formance/formance_sdk/operations/UninstallConnector.java: id: 00f9272bdbe7 - last_write_checksum: sha1:cdb237afbbfd86939a8f82f46caeb940d907cd1c - pristine_git_object: a3eb29206bd6db6d4dce5aef3fe51ba9a1e89fa5 + last_write_checksum: sha1:45dca45f1f699c02a065c5ff11c6d2f3ff321d37 + pristine_git_object: 975bb8782cb7b830fb3bc99532b9e7e2240916bc src/main/java/com/formance/formance_sdk/operations/UninstallConnectorV1.java: id: c96f1415a796 - last_write_checksum: sha1:23d03f2fb5163190a60d7ca24a331e831def4b2f - pristine_git_object: 850eef3a37f411e4784b3847261a742e812d14fe + last_write_checksum: sha1:5ca4cde87b70ff8126312468ce14798d44b26baa + pristine_git_object: 3c165c462030fa377f6afeb529d60ebe9d696438 src/main/java/com/formance/formance_sdk/operations/UpdateBankAccountMetadata.java: id: 5b10b7f31e6a - last_write_checksum: sha1:b2af79e5eb143966c4d9c394b16452eb01e82c34 - pristine_git_object: eaeeb1b77734db544d0802b9295212b11279ad32 + last_write_checksum: sha1:255d27631526c6f26357af01cfed9298d72f33bb + pristine_git_object: 4cc8e09a2816e5b743d12eaa048cf793ab0e274e src/main/java/com/formance/formance_sdk/operations/UpdateClient.java: id: e10de2f1a01c - last_write_checksum: sha1:99aa4290e2485908ae9ab04cbb267cf101cafd96 - pristine_git_object: c95dffda00744a8d6f6307c78a38f418130cce44 + last_write_checksum: sha1:ce7b359b254e40ec5a0e65da2bfab93248c2e372 + pristine_git_object: 4d9c1d89de80ed4fb8d8d9ae8cc090bf87c08e3f src/main/java/com/formance/formance_sdk/operations/UpdateConfig.java: id: fea6c678dac9 - last_write_checksum: sha1:2d3cb598d3d3016b8222ec4a2acd65257d35c87c - pristine_git_object: 423c0803b7466d86d2cd835f4df8e50279e3ffbc + last_write_checksum: sha1:e262e824813e1ab1ce48f16cfc899414acd0bf94 + pristine_git_object: 9da4bb1ca223c0f0bbce65eeb4ff5a68f2058c2f src/main/java/com/formance/formance_sdk/operations/UpdateConnectorConfigV1.java: id: dc742614b00e - last_write_checksum: sha1:dae0042fc5a9bf54f36cd103b66d96a8b02c7d7a - pristine_git_object: 14e75c79b2240f0204ac5c46a45c97b0d6981228 + last_write_checksum: sha1:9431cf7acf5ca6fdc36af1112c2648f525bdffcb + pristine_git_object: 0e12cd9706efe3c43f707f0fd09d333d0492f496 src/main/java/com/formance/formance_sdk/operations/UpdateMapping.java: id: d96b34e71705 - last_write_checksum: sha1:08c16f8db06b2049ccaddea7c0e1139cea23b5a7 - pristine_git_object: 6d487c722c609af5c76f2f9399de44a6e7aeb595 + last_write_checksum: sha1:7ac6ee9f03476798449e49a1b4c8191407fe76da + pristine_git_object: 39a2d7113aad0d79eac1c29102d58afcf9d0ccb2 src/main/java/com/formance/formance_sdk/operations/UpdateMetadata.java: id: a076bbc28ff1 - last_write_checksum: sha1:34df4b139784ae079e885f87618d5bdc95342fab - pristine_git_object: f9ae6c4af7c286476d887fe3548d96f278c9aa14 + last_write_checksum: sha1:782d56580e3495a1dfa3f79c8e88935bc808105d + pristine_git_object: 4807dc61c2132d3f97e1f4cf68b3eafd078e4d56 src/main/java/com/formance/formance_sdk/operations/UpdatePoolQuery.java: id: 6ca5cc10b6db - last_write_checksum: sha1:31bb403efde9e679b67013859ecd91d77b4fe19c - pristine_git_object: c29b0c3d383060c7ccb42f745b48f2453481e86a + last_write_checksum: sha1:1919954749ca8d7a750e45f81c1523d7271ca77f + pristine_git_object: 96428487c0ecab7de93a7a70e10d469b752c8369 src/main/java/com/formance/formance_sdk/operations/UpdateTransferInitiationStatus.java: id: 5812ea82def2 - last_write_checksum: sha1:09b56a4f79dd0faff6d33a47ef269db430e2aead - pristine_git_object: f129bc28b3e73eb73ebe005fc716a32165f0a015 + last_write_checksum: sha1:e9c47c2e5a90bbf331f00a840c49a90c99fe99e9 + pristine_git_object: bea965b38252ce66c54af89b915b82c8ecffab77 src/main/java/com/formance/formance_sdk/operations/UpdateWallet.java: id: 37f5d0a3ccc4 - last_write_checksum: sha1:efb57c2e33204f0560ed09ff5fbf376889f947ed - pristine_git_object: 4ebce44235c9cfa0d50cffc98d92bb20d983a0b1 + last_write_checksum: sha1:83dd3418e76fc2a41d298d63004ee0706b929351 + pristine_git_object: 9cc1f50c3921a411a771a9972fa860756033946c src/main/java/com/formance/formance_sdk/operations/V2AddMetadataOnTransaction.java: id: f1403e7f1f40 - last_write_checksum: sha1:1be3c3011019d4d84adcc5b6123bf13594c45d67 - pristine_git_object: 5f04f8a069d0f908e032f7511f9c4c5833e02e51 + last_write_checksum: sha1:46384226a7d27546b958f656afa955931025e53f + pristine_git_object: 2ed193e1dbee8e90c815e878ded596bc7e3bcbd5 src/main/java/com/formance/formance_sdk/operations/V2AddMetadataToAccount.java: id: 5d69090e9cf4 - last_write_checksum: sha1:174b07a8eca6a81e10d2b7a2798785b07dcfcde0 - pristine_git_object: 8eb4196900b02a3a306cbc9db9afa72c5862e7e8 + last_write_checksum: sha1:0eaae49d953be347e9a9ae1d66aac2508b2a486f + pristine_git_object: a241ae8dd6f58f4ce7c9d88eb64766944651d6eb src/main/java/com/formance/formance_sdk/operations/V2CancelEvent.java: id: 6a35347636b0 - last_write_checksum: sha1:e29abf7b30684d3aa590b5965b9b501e7be120b0 - pristine_git_object: 7363b986639f3bdf79f56554e8f9d7ff531fed94 + last_write_checksum: sha1:0db5ae5c45098e60ef27ffecc562f0a06f88bc93 + pristine_git_object: c9a80240a9a1e32990042781fe4df30baf9a3c0e src/main/java/com/formance/formance_sdk/operations/V2CountAccounts.java: id: 8daafb32f991 - last_write_checksum: sha1:cfc9dc25414b6455fc61ae3fa2f3beb019bddc2b - pristine_git_object: aa8d22cd17d5915b1d99f0587ce60a9fb4419460 + last_write_checksum: sha1:20bbcffddd95f4a96ae25992d61fca291b26a42e + pristine_git_object: 8e5635b0779d2c1ed1f7ab7ded611e536026034f src/main/java/com/formance/formance_sdk/operations/V2CountTransactions.java: id: c352a98d77ae - last_write_checksum: sha1:07c7543e3a3978344629766a6a82f6a4cdb927aa - pristine_git_object: 75c390411aed659f2a7f64cd3889c9d25c987cb0 + last_write_checksum: sha1:aab6a008bc7cea1385ffd110d3748e82ada9c9bc + pristine_git_object: 0565946530f72158319bf6bf523704b4827bc006 src/main/java/com/formance/formance_sdk/operations/V2CreateBulk.java: id: a21fecd503d6 - last_write_checksum: sha1:0992fed2e2434f48286266d95c3aee1eec465061 - pristine_git_object: c2a20c2dcddd9d1accc9a60d8c852cf1497cb309 + last_write_checksum: sha1:6626c8fb195aa1d137709a1663a1be9de4607b03 + pristine_git_object: 984e8ca57b298e395bee5d179edb7a3eea6d8372 src/main/java/com/formance/formance_sdk/operations/V2CreateExporter.java: id: 1f44305f56ba - last_write_checksum: sha1:41f9c6c1039548d156f00c96262e3f55190b3a6f - pristine_git_object: d7d73a5118358cce5a47c0e015fe8edcbc94f064 + last_write_checksum: sha1:6f5f66c15a64ba196680e8330a969cc4d2ae2f9a + pristine_git_object: dbf940b844708d1b6a76c3215b84f25e6c2d2fe7 src/main/java/com/formance/formance_sdk/operations/V2CreateLedger.java: id: cc551e807e54 - last_write_checksum: sha1:b26a577ec52c8e68829cdc1d6911a3fb6dd49557 - pristine_git_object: ad2b541e251684452d1a0d9bc322c6412f751161 + last_write_checksum: sha1:03e0cb711bf2c6c2bcf28c172391cce409b56142 + pristine_git_object: 611473a690f60314f16819ce6f7de397269b6b2f src/main/java/com/formance/formance_sdk/operations/V2CreatePipeline.java: id: 92b16576b400 - last_write_checksum: sha1:e950c72220ab47ce2f7b1e6a9bf296a42e747e55 - pristine_git_object: bc67366a562163a7a3cd3edddba8774edea1d9d3 + last_write_checksum: sha1:fd82e2a82d1d9ad7a9aabdf7cd9d2bc3faa92116 + pristine_git_object: 588da647fc4c28a26f22be45e468989079c6bf93 src/main/java/com/formance/formance_sdk/operations/V2CreateTransaction.java: id: c2410fdc6ebc - last_write_checksum: sha1:2393724e119a4d2150eee166a61ca890450755c0 - pristine_git_object: 11cf8d728720f5e2be346a456e61f84c26b9f604 + last_write_checksum: sha1:224bbedca50aa9f64def14978a1374e8890ce8b5 + pristine_git_object: 0abce4d845d4c7816c76732af21c725a556b75e0 src/main/java/com/formance/formance_sdk/operations/V2CreateTrigger.java: id: 2728a636e73a - last_write_checksum: sha1:fc3b0c3ee656ae2c4e455a524cf588beddd68e97 - pristine_git_object: 48183161f7d5d0c31a642977c6dd9515c0739b21 + last_write_checksum: sha1:de78affae7f5a972c0585b416972fd1612ef4cc5 + pristine_git_object: b1a7e71952891a1a430d03d8681f89c89b26160f src/main/java/com/formance/formance_sdk/operations/V2CreateWorkflow.java: id: ba6c99ecf078 - last_write_checksum: sha1:852342c0df0ae664a1f1b5a7d70e4335d3cc1678 - pristine_git_object: 8cff78effe55a9daa714f7395d1800e29c7ab2c4 + last_write_checksum: sha1:d108390b0ff6ae17525fdb68dd58f82e2345f61b + pristine_git_object: 5ee3695221bd09e933e714fafb5880c7e55710c6 src/main/java/com/formance/formance_sdk/operations/V2DeleteAccountMetadata.java: id: 0b7ef4cc57a6 - last_write_checksum: sha1:b0253a61794845bd76ceb49e2938a7802eb7468b - pristine_git_object: 71f2dc6c40731cbf3cabb6be963cffc2415f2a06 + last_write_checksum: sha1:6c285afeb12717bd8c8bdb64f44aa7da5c652cea + pristine_git_object: 137c99b154b0b6ffa6f9b28e895824af83dee1a7 src/main/java/com/formance/formance_sdk/operations/V2DeleteBucket.java: id: bc9accf713a3 - last_write_checksum: sha1:3c224c2d37acf31e2db2487bbd6cc43fc66e3a99 - pristine_git_object: a3481ced478438f39894fc49b6c4715144779d4b + last_write_checksum: sha1:16489054b83da4be04347ccebd631bd1dac7da13 + pristine_git_object: 65538e1ef5cd8f593e9aa86d15f90b4cfadbc557 src/main/java/com/formance/formance_sdk/operations/V2DeleteExporter.java: id: effaf0edfbbb - last_write_checksum: sha1:12e215e8d3d92fb59efa9529aa881dc4501c63d6 - pristine_git_object: e17f8de10a270772646ae31dc3e68330e54e7bf0 + last_write_checksum: sha1:66fdb0bc0f454ec329095261afb04dc1903815e7 + pristine_git_object: a8a4d11161f6d5b7685493453c58ea5680a3008e src/main/java/com/formance/formance_sdk/operations/V2DeleteLedgerMetadata.java: id: 87cf65a353c0 - last_write_checksum: sha1:473ce914906000c75ea3ac7f9ae4dc419e5cdd21 - pristine_git_object: 26a7d8e37c208ea1f7598e80ea11d52f19cd4cbe + last_write_checksum: sha1:ca04fa77f2031eb58332bddcef277bfd44c4a88d + pristine_git_object: 982545ce40265920cb49aea9ce49498c666f4191 src/main/java/com/formance/formance_sdk/operations/V2DeletePipeline.java: id: 20ee64b114f9 - last_write_checksum: sha1:01357f88301ce17a35be7c5e410787ab14d745b2 - pristine_git_object: 45b35f9d6087a95582806ee4adebc22506cb2e14 + last_write_checksum: sha1:690d45407d45274b70a86c27b5cb88d3eebe2a13 + pristine_git_object: e1457c27426f767c2fcb0edbc733b09aaf0d838d src/main/java/com/formance/formance_sdk/operations/V2DeleteTransactionMetadata.java: id: facdec0d3cf9 - last_write_checksum: sha1:eb16ca8bc46a0e6e6b2eaf7e8ffe62bcb992425e - pristine_git_object: 545b162ac813c06b5a012279c798848949e4a14f + last_write_checksum: sha1:85eaeaf2abb551b9338a95d45d33acc634121358 + pristine_git_object: 4d26d375c1d96e8315785c30bbf4a88ca699d8fc src/main/java/com/formance/formance_sdk/operations/V2DeleteTrigger.java: id: 425ffec12a77 - last_write_checksum: sha1:85b8a59094d8f6dbc5ba5539a0e88899d4d06e16 - pristine_git_object: 7eca97f915e533dc6799ce458ed6ef6a2bd35b30 + last_write_checksum: sha1:3939ea729d54b16b3ad9f7f54df5d8990d406200 + pristine_git_object: d8ea626e62847c7545ddf09be40bcdea1bd7bc29 src/main/java/com/formance/formance_sdk/operations/V2DeleteWorkflow.java: id: 5b18afb9d957 - last_write_checksum: sha1:c23e65b5a649ee1fad4644aee236894ca3a13242 - pristine_git_object: 762b3b742675f8104547429dd50317bdd5b5d678 + last_write_checksum: sha1:48d798e34255330a9c5fe9d83ddc0933e38e501b + pristine_git_object: c259de3c7169ad087daa81c7c4ad77c35530b203 src/main/java/com/formance/formance_sdk/operations/V2ExportLogs.java: id: 30e7ebe265cc - last_write_checksum: sha1:bdfc931825fe374e0db73a2c349de40605ac8656 - pristine_git_object: c9461db9b5485a23148e4a2c0c0c966680175242 + last_write_checksum: sha1:0258f10541a866469589dcb72a5af37c08caf7e6 + pristine_git_object: 6897216544520db818aea00d3b22b2a477267215 src/main/java/com/formance/formance_sdk/operations/V2GetAccount.java: id: cf4a4a942626 - last_write_checksum: sha1:b14f34ddf35b34eacacb77164a0965ab116a2651 - pristine_git_object: 40c819cb4b7fd9abd28c28d23032ae47b813746b + last_write_checksum: sha1:1a517587613b2267869dcaf4e1b6228c0ecd1b46 + pristine_git_object: 555160f1d460cc518d1e65bbbd3dcaae73043d7b src/main/java/com/formance/formance_sdk/operations/V2GetBalancesAggregated.java: id: 0100598bb716 - last_write_checksum: sha1:947975c5e28cc40f1e3a98b6978d8905647600dc - pristine_git_object: 92256da75f05485ad941fc76f8a311f65da1261b + last_write_checksum: sha1:69f532a1ed745700dd63c0c9247964ca87ee06ba + pristine_git_object: a35b89f083425e886f02ee4a2165860fe685d3ee src/main/java/com/formance/formance_sdk/operations/V2GetExporterState.java: id: 00fd39250b89 - last_write_checksum: sha1:913234acf1b81e15473d9bb367e1e8334b6fa595 - pristine_git_object: c8f3a694bbad6ca70d58b0d67063ecc67fbf3883 + last_write_checksum: sha1:b28015537f90cc0e8ff6f76b5f7d10734f561ad8 + pristine_git_object: c7cb9631f290312658926d4ea5be0e3b8648c928 src/main/java/com/formance/formance_sdk/operations/V2GetInfo.java: id: 5cb3f6b908f7 - last_write_checksum: sha1:6702f7e051553cd522998addb8c41efff6152e8c - pristine_git_object: c6a9c04211b00aed6229404effda1fbce98e9ce3 + last_write_checksum: sha1:46ff890cac2f5bd4b180d76568a88b0cf0d4d2c5 + pristine_git_object: 14252c8a028b05be82b54a14f6879c9628391273 src/main/java/com/formance/formance_sdk/operations/V2GetInstance.java: id: ab42b950adfe - last_write_checksum: sha1:5db07b9a7a95a1b53cbcfec174889eab84a7b18e - pristine_git_object: f676257c86cfaeb9b60f10a30c7e188c29d4dbac + last_write_checksum: sha1:0dc533f60cfb60f52e9737d190c005c9452da2f0 + pristine_git_object: 3f34d5f89f2bbf35211afee6238a7831a1be207d src/main/java/com/formance/formance_sdk/operations/V2GetInstanceHistory.java: id: cf10f0369561 - last_write_checksum: sha1:7defe011aecc1c1bf32f1d391e4f7410f104d962 - pristine_git_object: 05b089d9f5477c67fe41b439e71a0df777058794 + last_write_checksum: sha1:3b08752e53dd827b01f0644aace75127c5cac9d8 + pristine_git_object: 316dcb10102062941fe849f1cca53f5fbc4f7065 src/main/java/com/formance/formance_sdk/operations/V2GetInstanceStageHistory.java: id: 5954770d3cc7 - last_write_checksum: sha1:03ce156ad74d1e5df57dd15bce2ca942f37fbe5e - pristine_git_object: 05d34ca76a945d0a218be6f52b90fbbcdc3cbc97 + last_write_checksum: sha1:9266f7f5f55a982d4a1cb25603a8c6e316538052 + pristine_git_object: 026cb93af604448a84259cf6ed4f472399b07a8c src/main/java/com/formance/formance_sdk/operations/V2GetLedger.java: id: 8cfe6d7b1e32 - last_write_checksum: sha1:9a84aec68a3b31622ee860d3a509da74ccbaffd4 - pristine_git_object: c2a9116b5a540b6eacc7c13ffc19c1b0cec0592f + last_write_checksum: sha1:55dff43ec786522b4eb833d61716d087c95d6ef9 + pristine_git_object: deb8b702ab3d896a34b5bf7a82d4014fa9014506 src/main/java/com/formance/formance_sdk/operations/V2GetLedgerInfo.java: id: 8c83406f1030 - last_write_checksum: sha1:9bd6a8e6f9292ca1ae74aacf00de842ea79fb3f9 - pristine_git_object: 16afd6386e2cece99d50b925c7f5c09cd6511820 + last_write_checksum: sha1:41fa82734c674a192176fb8a8da3e523e1b0c40e + pristine_git_object: fc5c8055b5dd888703ce156c4aaca8600e0c89ce src/main/java/com/formance/formance_sdk/operations/V2GetPipelineState.java: id: a4d60968a573 - last_write_checksum: sha1:b750a16d0333ccf4be328b76b4bd10442781d025 - pristine_git_object: 3989e44d98369cd2bf1447c3ae92fe4a28834a79 + last_write_checksum: sha1:4717b5b8919494faf3caa554900bfec7453ce54a + pristine_git_object: ed2abfa831ecedd09d48e37e84b41005680679fe src/main/java/com/formance/formance_sdk/operations/V2GetSchema.java: id: 3ab074705ba3 - last_write_checksum: sha1:5339058f0fbc5a621146252f9c952c81260f3940 - pristine_git_object: 6d4d5c3374073f19f6dfe6b635ced8226496e37a + last_write_checksum: sha1:bc257e30df2e77b3973d95b7a676aa319006c46b + pristine_git_object: 3c088ddd62c371d5c2361235cfaaa198ae02b15d src/main/java/com/formance/formance_sdk/operations/V2GetServerInfo.java: id: a85be87f20c4 - last_write_checksum: sha1:147d52584474a90c2038ba2083c49a53f470d269 - pristine_git_object: cf5a3c8c649252ed3660838c886f42da1a9bd5f1 + last_write_checksum: sha1:a618ddad5af9952c8aee88cc14d4fb09025a869d + pristine_git_object: 32632489e1a87a4a23462067cc485bf60a526269 src/main/java/com/formance/formance_sdk/operations/V2GetTransaction.java: id: ed47448d7fae - last_write_checksum: sha1:81b4b36193efc7111e624d295f1a5712557b7586 - pristine_git_object: 807c8791c8c252fdfb015e7c1abcca5f69ff9448 + last_write_checksum: sha1:4fc95ab56c0722364961772bf03d2b1770919ff7 + pristine_git_object: f737dde85c00470a4627f10dfbadad153a62988d src/main/java/com/formance/formance_sdk/operations/V2GetVolumesWithBalances.java: id: a500685fc893 - last_write_checksum: sha1:52ecb95d66bf3db01fc0b041a2332f8d7faad50c - pristine_git_object: 95ae04b34d1e2c46dddf63b140b1846b46df78bc + last_write_checksum: sha1:d4d22f102467bfe6cd567f5d4e6848cf114d292b + pristine_git_object: 239d23373240466f7737d92b4106ceba4e9cc4cc src/main/java/com/formance/formance_sdk/operations/V2GetWorkflow.java: id: 9a38213b6f88 - last_write_checksum: sha1:cca9483d157580c5a69f9690b4d05350f4718eed - pristine_git_object: 650c86589809c8a0c077a41464a27125e1e33486 + last_write_checksum: sha1:6dd9353410c86b98b2c0af583ee98120254de1e1 + pristine_git_object: 9b67aec2764dc6c693d7353f118fcc570695e34d src/main/java/com/formance/formance_sdk/operations/V2ImportLogs.java: id: a5cd41127b8c - last_write_checksum: sha1:8b66aefb541b4eddb1e1e3e74f12976a6ac54a90 - pristine_git_object: 450bc33aa749a8f49a44d3c21f3f9f9740b6b14e + last_write_checksum: sha1:afbadc336fc279a2ef7601c0d9de97a9f9a0a8ee + pristine_git_object: a84c708223a136df5d795eaa0b9fb9c5453a0895 src/main/java/com/formance/formance_sdk/operations/V2InsertSchema.java: id: 0dc3c324466e - last_write_checksum: sha1:ac464f8e6e81299b3e08d6b268699a131b18e0e3 - pristine_git_object: 704ae6126b74d6e244c8870532d3cc41d19fc12a + last_write_checksum: sha1:dc83d95846b28456a27763a1b7ee985b2149cb15 + pristine_git_object: 7ee288d46057918af9edbf4778faa22adc10a18c src/main/java/com/formance/formance_sdk/operations/V2ListAccounts.java: id: d0e1a0cbd2d7 - last_write_checksum: sha1:ac9cffebd63f9f9bfb91869b15d308bf3b1f12e7 - pristine_git_object: 6b84223378f27cd0c9f943b351a470f96dada156 + last_write_checksum: sha1:0b99f009cb97fa008db62a8104adc46210256927 + pristine_git_object: b15f8e923d6965124a6f31d82caa413e19bbd4de src/main/java/com/formance/formance_sdk/operations/V2ListExporters.java: id: 876c5bbeb666 - last_write_checksum: sha1:989eea0ea197a8bf9d8db7a5ab2f3372dc278a21 - pristine_git_object: 33d8eca0b23c2fea3606e4cb5b57f941bcb37b31 + last_write_checksum: sha1:9b62b363311238edd7a4604d240b7c205f772cc4 + pristine_git_object: 9a8edb19ae3733697740bf0b676783b7d8ef319e src/main/java/com/formance/formance_sdk/operations/V2ListInstances.java: id: a2ff967f1335 - last_write_checksum: sha1:3f00ff24bcad526186544a6e4fb42c98d10de3db - pristine_git_object: 1d8560b35cf5cb9cdcd0f0b62c6ade2fa0b8a612 + last_write_checksum: sha1:71d4b61f2cd508a8a64f0b1306015769a74d3b44 + pristine_git_object: 6f809c1f3a08dae09efd31ba0e372f12ef596138 src/main/java/com/formance/formance_sdk/operations/V2ListLedgers.java: id: 2df5c6d8062c - last_write_checksum: sha1:05205b82fe27225de5a0270b69daf3b70423639c - pristine_git_object: 4331b009d8e32a47d57dc04bf01b115428f47f08 + last_write_checksum: sha1:8b4d9a9718a51e9823cba684e582f71072011b35 + pristine_git_object: 442a83d4de0fbd8796e481a0393896a164f54c76 src/main/java/com/formance/formance_sdk/operations/V2ListLogs.java: id: f6125399a046 - last_write_checksum: sha1:18aa99a71ce48193499d9139b44aee0455014c33 - pristine_git_object: 4e6bdf00e0d5ae7c337ebe36e1000e5bd075155c + last_write_checksum: sha1:6bc20705baecbe83cf8450cf0b9ff930a4cfeb57 + pristine_git_object: 73cb3229efb13752327e62e2324de13b0ecf9def src/main/java/com/formance/formance_sdk/operations/V2ListPipelines.java: id: e092100e87ae - last_write_checksum: sha1:4428d69a17e8f2cfbc949af9a899caec9cce8018 - pristine_git_object: 56f6f0332972842d3703561283ca998d8901900d + last_write_checksum: sha1:b6e6f4a1cde103d1a47a060ca2f96ff4ed09396d + pristine_git_object: f6d76d886528e96199843f84ec78185b7591184a src/main/java/com/formance/formance_sdk/operations/V2ListSchemas.java: id: fa160c7908d3 - last_write_checksum: sha1:7d1002377e2da7fd505ae79f90970e7a31b2e692 - pristine_git_object: 9661944161ebbbfd3a7ec2b492a403598ccfab97 + last_write_checksum: sha1:f6999f3b5a757231b2cb94f7d856dde5f27b9287 + pristine_git_object: 4a1525bdcea53b3351c1174e9acf638ab4e1f371 src/main/java/com/formance/formance_sdk/operations/V2ListTransactions.java: id: 878bad748a87 - last_write_checksum: sha1:5f82b130918d8eb6bbe63a5186cd5406f973eec1 - pristine_git_object: 44f41fa47ca58ed92bd2b4ab6657fe8488eeab59 + last_write_checksum: sha1:c2364079e36166de595d50e3a296ab483801c5ed + pristine_git_object: f47fdd32611fa36d75b0f5acd643ab3b8efe3e38 src/main/java/com/formance/formance_sdk/operations/V2ListTriggers.java: id: 49c1a5501f8a - last_write_checksum: sha1:889db46f2e5cd171facb0980ee3a5cd4e2373a42 - pristine_git_object: c6b01074226a804bb667a07568b7429659f2d9ba + last_write_checksum: sha1:b90d4c729f976deca585d0553704d95610ebeb90 + pristine_git_object: 35662269db33d64e09bbf437e81515ee55d2250b src/main/java/com/formance/formance_sdk/operations/V2ListTriggersOccurrences.java: id: fc91b721ed14 - last_write_checksum: sha1:d6dd4a5af8c08256dc6c5dc654470739a51ddeaf - pristine_git_object: 9b684b14d436e475c2ece0f2bf1c27ee131b4290 + last_write_checksum: sha1:ff09c160ba57f90f5656dbebbaed71b072fc99ea + pristine_git_object: 1fc23a5cb1035f5575b4b198edc4f2544e57f678 src/main/java/com/formance/formance_sdk/operations/V2ListWorkflows.java: id: b9431066d2df - last_write_checksum: sha1:a72950aa07293a95311c4068e5b6925d1ce899fa - pristine_git_object: a5b770e8ab305b9c484dd8a07a3186b997a0c999 + last_write_checksum: sha1:995fa3eaa750879bf36611bfb772514a3b570c54 + pristine_git_object: 8d37adf9177ce5ad6362f74816f5c30969e4a180 src/main/java/com/formance/formance_sdk/operations/V2ReadStats.java: id: a9f5f3aa48ba - last_write_checksum: sha1:24f8d9e6df3ff5917f3d60f19e9d5f6a4bbb88e3 - pristine_git_object: 5c7381d24b239a8ba0f6358662e016123cba9d2c + last_write_checksum: sha1:8d932faa0d442a0f3a943d73c5f746f8fb62eb38 + pristine_git_object: 547005d2a090ca931e9580d3aa9171e417a3d3d6 src/main/java/com/formance/formance_sdk/operations/V2ReadTrigger.java: id: fd9c51d5d8aa - last_write_checksum: sha1:81c75e7083e234f0ada3c492fa15c2e4695fc890 - pristine_git_object: cb1fdb956185f6e08d07f503374dce68353c16fc + last_write_checksum: sha1:906fba118833561d13360f4ad7d6dce9c0af5925 + pristine_git_object: 68ed558856836d610e5125ccedca415fe62c4344 src/main/java/com/formance/formance_sdk/operations/V2ResetPipeline.java: id: caef9dd23e3a - last_write_checksum: sha1:6615ac41f04b18a6c6bcf938ae3e959ca26a31f1 - pristine_git_object: f2c0ccd292d67fc1652fdae31511f90e89f2b5ad + last_write_checksum: sha1:fbbfce6f5fdfa7fd11824bbc81e1076d5ec6d447 + pristine_git_object: 6c28dd1a3dd116ceaf01f00c287e9f1e05624b8a src/main/java/com/formance/formance_sdk/operations/V2RestoreBucket.java: id: fdfe51446adf - last_write_checksum: sha1:ffe964456c434f61b9bce8ce4c8dad9f28a1e668 - pristine_git_object: c01e8ffda8681b9a439bcaab00bd09410379df6f + last_write_checksum: sha1:9c293bbf4bc4c09253da4d244b3eef060cd68fca + pristine_git_object: f33c37f064b8c974a0a2c8f1636cc42ba0e0dd6f src/main/java/com/formance/formance_sdk/operations/V2RevertTransaction.java: id: cb5b6a763b90 - last_write_checksum: sha1:e18c9e2fd0558807fbf8e0ecba24ccfa90034957 - pristine_git_object: 201fd9e96d58e353dd903380baf433f3fcbdf9b4 + last_write_checksum: sha1:43a2447a11d7ec513cb36fd325d50d00aaed831c + pristine_git_object: 59d66667307baffaf3694769102209685f80ffda src/main/java/com/formance/formance_sdk/operations/V2RunQuery.java: id: 594eb121939d - last_write_checksum: sha1:86e93f685def3f6d97afa338f70d03e194906562 - pristine_git_object: e64f195af2999a7fd0ae98d1ba4f31b1c1b2c046 + last_write_checksum: sha1:f0b49a3096b9912195707d67b1e9033093b172e4 + pristine_git_object: f363b19e5aa910cf060c952e7928cf8d7b8ea005 src/main/java/com/formance/formance_sdk/operations/V2RunWorkflow.java: id: "865413185540" - last_write_checksum: sha1:088f083b48d46c21fbaec1d5e1b83f67a04d9d50 - pristine_git_object: 1a214ec2dce42215b4f693ea16a288fa5853c81a + last_write_checksum: sha1:a921b0a15f1ec84272e15c408c2547f703aa4641 + pristine_git_object: c889d9af7d856906fd6e19733e4eea2f140aaabe src/main/java/com/formance/formance_sdk/operations/V2SendEvent.java: id: 2b0ee8bfc435 - last_write_checksum: sha1:8fc1b260dceaf73f6c220942dadbcd0592c8c209 - pristine_git_object: dbd92baecfa5f914058ee63e1167181fae594878 + last_write_checksum: sha1:45aaf386d9e2d5f5390d4b06c1f8f87843a0f079 + pristine_git_object: b4f6711ab77efddc1cc54cef52bc27cf29c0c1eb src/main/java/com/formance/formance_sdk/operations/V2StartPipeline.java: id: 8a0e0b4b1582 - last_write_checksum: sha1:4230b0c1b7bf08e285554ec4d847273835465290 - pristine_git_object: 020a51c57501ca04ef4dfb0e445957c3d53fb8e3 + last_write_checksum: sha1:f386e6f3186f862634f827fc3492c12ab7e379fb + pristine_git_object: a032b39cef8a691caee9c15caaf1e7c776cdf734 src/main/java/com/formance/formance_sdk/operations/V2StopPipeline.java: id: 9a278bae7a68 - last_write_checksum: sha1:6feb3d6c95eba4e77f19d02e66a905d83f7b8936 - pristine_git_object: b3e64ab317e3539361f4d1be719048b01babf4a5 + last_write_checksum: sha1:ab2f237c370497b64a02dcb17e1886989482fd5f + pristine_git_object: 33a9d5759936ca0704cebe945c2549f942f61b00 src/main/java/com/formance/formance_sdk/operations/V2UpdateExporter.java: id: 5a80b44e0eaf - last_write_checksum: sha1:dcf2384e246e69b200a713075fab3aa941ca317f - pristine_git_object: aac3607fc5647dbbcf811f2127b6b224d9dfc372 + last_write_checksum: sha1:3ed4ac1fd6e8c13ed3f8e2523207ad25644781db + pristine_git_object: c7d38766c1b58efd99cd2e55e1013b99df2c6b04 src/main/java/com/formance/formance_sdk/operations/V2UpdateLedgerMetadata.java: id: fafbacb58145 - last_write_checksum: sha1:0403ebee91fe14d65e9ac460b307a1e978d74f8d - pristine_git_object: b562b47bb8f48fde2d945bf5a37bb50f000757c3 + last_write_checksum: sha1:64fb784a5515a1c312941efc58d667e8f0643a79 + pristine_git_object: 05d57c049a96a05345ce48fdeaca3e2d9be5b317 src/main/java/com/formance/formance_sdk/operations/V3AddAccountToPool.java: id: 9c80332ae216 - last_write_checksum: sha1:ff61518eea83e755294d4c93d9a39d71e047dee8 - pristine_git_object: 7817020c1f4beb6ca41384a179fb21135684c770 + last_write_checksum: sha1:cdc2fe0a9784e75dfd49b99c2aaf262e4ce7a4a1 + pristine_git_object: 4ffbc7399ce91eb8be406a61cedfd0d5a66dd09c src/main/java/com/formance/formance_sdk/operations/V3AddBankAccountToPaymentServiceUser.java: id: f209fce7a483 - last_write_checksum: sha1:de26f0648fc3db19e0dbd073d8ab6edb65390242 - pristine_git_object: b059952e4143a48ef4598a330f8222949ecac85c + last_write_checksum: sha1:5c7ebd4d7178aac823b6fa63562c857393874ffe + pristine_git_object: 2855f19a93bd17c9cee32144a9ffd699f783b2cd src/main/java/com/formance/formance_sdk/operations/V3ApprovePaymentInitiation.java: id: c01a56bc8de6 - last_write_checksum: sha1:425db51218508a4d28d8075c796e02c2d2446c4c - pristine_git_object: 33e8a636fd2493214de5ed9e1b7431520badb1d6 + last_write_checksum: sha1:05f3339cd8b8a02a696e39dce8edcb7bc158a7fb + pristine_git_object: 843a8ea78cfcf9fb01ea101fa3a1407710fd6bde src/main/java/com/formance/formance_sdk/operations/V3CreateAccount.java: id: 3d704f5656bf - last_write_checksum: sha1:05f696c5b148d109e4a696a4ab6a3d78ab1b137d - pristine_git_object: 25096ce9e0dd4bd4fc1e4aa8f2b1f0bbad08a244 + last_write_checksum: sha1:d0ee347b25afd84048ebdb5bc44e427c514203d0 + pristine_git_object: 771c8ee19be4efa213d5ead30b460328cdd0b251 src/main/java/com/formance/formance_sdk/operations/V3CreateBankAccount.java: id: debb22587a0f - last_write_checksum: sha1:d178232902fa764a796d8a4a9a71507817a3234f - pristine_git_object: cc8f79423c587d9d1fa6424d84f188026812d732 + last_write_checksum: sha1:7e5aa091a39249d9d0c05acb6186bd43c4281b7b + pristine_git_object: 114ac36d9e364742ef65935656b739f8e0ff0293 src/main/java/com/formance/formance_sdk/operations/V3CreateLinkForPaymentServiceUser.java: id: 682cc078669c - last_write_checksum: sha1:cac55795a3c1dcec9c5b41f94a3b5ab0bb58cc1b - pristine_git_object: 41922974a12d779244d5377534199969c5f53adf + last_write_checksum: sha1:92d32a3ad235f0e2329afb4f3b3cbdf3ae5bcf9e + pristine_git_object: 97cef34d0c6f7c7e9536536ff28d5d243af66f83 src/main/java/com/formance/formance_sdk/operations/V3CreatePayment.java: id: 3feeddace047 - last_write_checksum: sha1:8d3ddd01121f44dd36400dffd79eb0dbdadbcbca - pristine_git_object: a57da1f19374f768623cafebd0d6d277639d3319 + last_write_checksum: sha1:19a649f5f75c80d7798b49dadf6e10d959e0728e + pristine_git_object: 4ec9e3d920772f29a5eef0918f71c980cec9ea7e src/main/java/com/formance/formance_sdk/operations/V3CreatePaymentServiceUser.java: id: 7a82d5bca293 - last_write_checksum: sha1:56aba6201bb8e7d5e5a2563ede3d91c2ae6bffb6 - pristine_git_object: 87b85226ebc344b09be1b41abae07fef0051002e + last_write_checksum: sha1:66012aa062d475c8ba77ce0e60f10d81cce4ef7e + pristine_git_object: 8471933d7647b14c76a86e3105eb0a63fe3e3f5a src/main/java/com/formance/formance_sdk/operations/V3CreatePool.java: id: 65df1d50695e - last_write_checksum: sha1:ce7159ce25297ee6b910615ede6fe6fa09165518 - pristine_git_object: 2eecf80d9ae8807246a3e05a8065b8716df3418d + last_write_checksum: sha1:7b7f5a54b0e1043cfe1ed99a022f5870ad6f55aa + pristine_git_object: 3119e2196e7b6d3828e6ee628581e3fbf731b996 src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentInitiation.java: id: bf3f2f0f3c95 - last_write_checksum: sha1:eb834bf7e1bd52e673dac68230713c0241cb85b9 - pristine_git_object: 1b33b69b9bbabc5e56f2d203bcf52fea34db731c + last_write_checksum: sha1:4a5850bef5cc770874554fd4d5788556fbdba1d5 + pristine_git_object: 29bdc0f993e8b6d9a85101a3840b9a43c5589908 src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUser.java: id: ecaf7d59d6f9 - last_write_checksum: sha1:c0569c2de0a2d57c2340211fbd70118495eb88dc - pristine_git_object: b618a203d9f8625e87542037206e5beaf123fa2d + last_write_checksum: sha1:be2fade29abbb2112b6fb101ba8c6af2cdf6d572 + pristine_git_object: 22959d6112b9297bc8c34a93128344855beab5f0 src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnectionFromConnectorID.java: id: 19024aef4c75 - last_write_checksum: sha1:70f8d3207db1ddccf48f411b34382b03c7d1e892 - pristine_git_object: e70c186cf5e0f211f59236e72d03c3a781f3dc4c + last_write_checksum: sha1:6921bc1327b599f56f4180b0d134942c42f66d94 + pristine_git_object: 146a70d48596e6860846172de915c8f50515c2b9 src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnector.java: id: d7efc57d1f33 - last_write_checksum: sha1:b0bfc1d13fcf01e6e5542a57d6884d7e562da6a3 - pristine_git_object: e98b8bb51883323ae7ccbe260cc86237070ae142 + last_write_checksum: sha1:7b3e0ea40e6c1f1ebc91e52d99d86569681ace0f + pristine_git_object: 654e0e5a89607d532bdc04e24088a9dde44cf57c src/main/java/com/formance/formance_sdk/operations/V3DeletePool.java: id: 59290eedf775 - last_write_checksum: sha1:7d24ea66e631a55002be0e10135c29f587a73858 - pristine_git_object: ff122cb69eb401239f6c388ee593ae0b803013b5 + last_write_checksum: sha1:0348d6cf714cdfa6e638a2960cd4d7158bc2f9cd + pristine_git_object: 9d0a4c046175b8800411e8fc22d365aa9ebde3f6 src/main/java/com/formance/formance_sdk/operations/V3ForwardBankAccount.java: id: 2ccb18ab94f2 - last_write_checksum: sha1:5e2c1d6b6b8f95ef41830184fa63f6267abc1b02 - pristine_git_object: 94b54d61b44d1c9ddd03b6f4dcd9409f212baa3d + last_write_checksum: sha1:d2630ac686a24fa850bb13abc7238772e8689bfd + pristine_git_object: 94f0dc071e87e1aadcfb3abac4f01e4e6082cf57 src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserBankAccount.java: id: 33cd0b4ff0c9 - last_write_checksum: sha1:14d9b495b46ae29ad50e1daec98f1f19b05b0d8d - pristine_git_object: f9115b81b4172ae967d122e606958977b1fe395a + last_write_checksum: sha1:f8932b3c705c7416f362a25521bc6521538645a8 + pristine_git_object: 9ea635df387b1e9a48ba075a32f0370365c97a49 src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserToProvider.java: id: 6137c66dcec6 - last_write_checksum: sha1:00b7b08e5ca809d0dfeaccaab043ea6cbd6c677a - pristine_git_object: 5a3d2e6e1850dcd65d35c7a98d518890ed00bb22 + last_write_checksum: sha1:3b3172e53a828d428ab6e86950874ca1bb2f0f21 + pristine_git_object: 33dcfa986b48fdd7303d010ff3ce12cdc7649308 src/main/java/com/formance/formance_sdk/operations/V3GetAccount.java: id: 2added61c926 - last_write_checksum: sha1:d4966fd6ecc6cbc1b949be4e60e60b59312af440 - pristine_git_object: ddcc4c5c5f08d5b8b2b3a09853284deb81636fa1 + last_write_checksum: sha1:cb36f7c14bb7f101e5297a59ff5136cbc61fb69f + pristine_git_object: c2377fec8ffe8bd17a07c33ff312e7ce428eacf1 src/main/java/com/formance/formance_sdk/operations/V3GetAccountBalances.java: id: 8957377eb6c5 - last_write_checksum: sha1:e6d394359f7380eec54fcda351f64d976e4a6b15 - pristine_git_object: 4dd022798158d34bfb1c5cef9ee767e0b0cd0f73 + last_write_checksum: sha1:77a13a59d3051bc9d3a8560f8a16b8b4dcd8f59e + pristine_git_object: 7e6cfd16cb9658951d7914b62e0e0119ee0aaa16 src/main/java/com/formance/formance_sdk/operations/V3GetBankAccount.java: id: 98976adc93f6 - last_write_checksum: sha1:3763bdc97ad2881130b3ab4e2c7c83422978f129 - pristine_git_object: 8d3c0d77b2ee19cb10f134519fd8adda5a32e159 + last_write_checksum: sha1:1540796c93bf6d4103397bd218165c51611d7ea2 + pristine_git_object: 7ce8a04d95368b31251e2aee474daa60a352feb2 src/main/java/com/formance/formance_sdk/operations/V3GetConnectorConfig.java: id: 61aba4964c73 - last_write_checksum: sha1:240cc777e1573f79cd55997f4d5c64f000e01ebc - pristine_git_object: 4f55729c89a824c17a3fbf3c5bcdc24c6af8c222 + last_write_checksum: sha1:3ddd52a900698592fc739ed4cdd5d489b8881e8b + pristine_git_object: 0e6e7be207b0b96ccbd9257e9bf911c9090db221 src/main/java/com/formance/formance_sdk/operations/V3GetConnectorSchedule.java: id: b042a0d9cea2 - last_write_checksum: sha1:d5e295a32670c55b5e2ef70cacb339934dea5168 - pristine_git_object: d8289e1da700deb925a70a6164e85a3a0dd883d6 + last_write_checksum: sha1:37a192838dc6706057a9c439e660322e083f36aa + pristine_git_object: 2852937e1fd8d26d43e3400ac7d53b61fff384eb src/main/java/com/formance/formance_sdk/operations/V3GetPayment.java: id: 0316cb977a08 - last_write_checksum: sha1:ce70b7846ddc60696f4e045bf863662f0c349306 - pristine_git_object: c5702425421efea7bbab5374a5648498869a4b7c + last_write_checksum: sha1:d45d8c5406aa1bee20135d3e7cd4152d1d48c908 + pristine_git_object: 35dc2e7450da01158a049d8cd2bbe1314c09f753 src/main/java/com/formance/formance_sdk/operations/V3GetPaymentInitiation.java: id: eedf75059389 - last_write_checksum: sha1:bb0937a7b598d1a5498af848a28809492d63860e - pristine_git_object: 966700647f9cb12c294691233034d8ac1d98815f + last_write_checksum: sha1:355ab895de99f42d00fae2840415cb28650912ca + pristine_git_object: 14a2dc70570b233e93bed6c4626a3f862708031e src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUser.java: id: d79a4298b665 - last_write_checksum: sha1:8b67778f17887e8b838900aaf6a207d2f4ee9ff7 - pristine_git_object: e5774f6778ec3103ba8ab791820ed29024f8726d + last_write_checksum: sha1:c0144eef393b675b33d17c5917543275d866a847 + pristine_git_object: 9e5d18fc7646e18547c16714ade992998e2e48a4 src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorID.java: id: 25005a35ce87 - last_write_checksum: sha1:f23cd47ae0541266e44dcae23f35bb0d8ab959ae - pristine_git_object: 67de642ffa649fd5930cdd7db2b9de29db228010 + last_write_checksum: sha1:1dce2edda79435d2c7c769a92273099cbd07ccb3 + pristine_git_object: d40276bdf60684a63f2ab2c5186661ff7aabaf6b src/main/java/com/formance/formance_sdk/operations/V3GetPool.java: id: 232de1df8da0 - last_write_checksum: sha1:e6a5a792d741f711c501a96c0c0bfafbda86c55b - pristine_git_object: 2537378baa5ed50b069804d284dfb76fd031bac4 + last_write_checksum: sha1:79b40bf5a63c35ee94659467b2a651a9c259dd77 + pristine_git_object: 2e2a7212999064272abf9d1244be94551b782909 src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalances.java: id: f4ebc6d3d3c1 - last_write_checksum: sha1:664eb9614eb1d79431b2fefdf907835e5af8a878 - pristine_git_object: 8077228ab28140df4aaa1e39527fb57b3d0dcb75 + last_write_checksum: sha1:688da4bfae21498480c4fba67e89228d3cadee97 + pristine_git_object: 789eb683ba70b4f692a8b7a6cce89b67107af441 src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalancesLatest.java: id: 082b7c3f6d0a - last_write_checksum: sha1:9ea9bad1b8a4874242e8c0ac5e3d388e938a2d30 - pristine_git_object: 07a8497f11821f683b8a2b6aae2403bad41fac84 + last_write_checksum: sha1:49b82d1ce535ff73c79249b088dd4c31d471028a + pristine_git_object: b46585a7a3c4a4536a4ef952e4dcec7336e547a3 src/main/java/com/formance/formance_sdk/operations/V3GetTask.java: id: 625e4812852a - last_write_checksum: sha1:b06e29a3cfaa783d953af4cb38aa2710bc4d154c - pristine_git_object: 82fceb7b6cb47c02853f076c1fa41b1b05f11242 + last_write_checksum: sha1:a18785365501b6c313c412ae291233b90131d557 + pristine_git_object: 4fc1678a3ac04bfadbf5dc9b3c32b5d87578b936 src/main/java/com/formance/formance_sdk/operations/V3InitiatePayment.java: id: be4a9fe630a6 - last_write_checksum: sha1:9bbe1b525607a644d6d150406607261290fd98a3 - pristine_git_object: 61792710eecd796694648d1e2f676dc55da3a5d3 + last_write_checksum: sha1:3d8de20711b9a9d8e2eff5549d81ccaf5684466f + pristine_git_object: a050d0cf0456dbab32bd9bb9fbae06c57070aee5 src/main/java/com/formance/formance_sdk/operations/V3InstallConnector.java: id: bcc1baf70ab5 - last_write_checksum: sha1:76de40467f1452bc1d823736c9cbad70206a2702 - pristine_git_object: 35d56e0b331ee5da2bb758736d7a37d9625db300 + last_write_checksum: sha1:bbaa4d7541dab185e9bc7a11d34f0c5112358b15 + pristine_git_object: 6741093ec9a5d1c11c19dbb4931c29e8ca9a232c src/main/java/com/formance/formance_sdk/operations/V3ListAccounts.java: id: 8146c6c19c33 - last_write_checksum: sha1:4d445b65d83c57b652bb4be62af79969d9ad2c8d - pristine_git_object: b2e3130dc20333da93fe0018fbab67f3655210d3 + last_write_checksum: sha1:d464645cd6e884d22be0a3ab8e96c3550f99c4d8 + pristine_git_object: 7a71d108870cd85974f542b5002540992028f795 src/main/java/com/formance/formance_sdk/operations/V3ListBankAccounts.java: id: 5b22ef58fd3c - last_write_checksum: sha1:3a957d77c14d1609f31f0545d5ae18eedf999ea7 - pristine_git_object: e08d6a2a513f4b0be60fb68ad122897b7e11d75c + last_write_checksum: sha1:9a2b98eb1962a5d4101e67d02b6f8e39c950eade + pristine_git_object: ee4942594374c8ccabda99030691d619e03442b7 src/main/java/com/formance/formance_sdk/operations/V3ListConnectorConfigs.java: id: a5bb6ed92742 - last_write_checksum: sha1:3246b7ebd8fa1efd05af073781ab7cdbbe42b426 - pristine_git_object: cf00fc52ac6b6e4378638734d009c26b56fa1dcd + last_write_checksum: sha1:bf4531e39af25ee725a9f55c98477737ea897586 + pristine_git_object: f000bd8a88d2b92019548a8c108407824de02985 src/main/java/com/formance/formance_sdk/operations/V3ListConnectorScheduleInstances.java: id: b134abdff56b - last_write_checksum: sha1:a3dc56f968b7bc40f8c0172bf752a9971813ebe1 - pristine_git_object: 2dc5e4f7caa732977be42a041031102948aac63d + last_write_checksum: sha1:6b3edeb9f1bf15c1ccab3d4b78df02e936cf3293 + pristine_git_object: 71afe0eb506d193eaec4ad436865233df80a4043 src/main/java/com/formance/formance_sdk/operations/V3ListConnectorSchedules.java: id: 3858c164d770 - last_write_checksum: sha1:74dc9186e4d58f7dbfa19b0a938db050f90a365f - pristine_git_object: 4c6d55d3c5ba85139b4c3deaafe588d58e571152 + last_write_checksum: sha1:a74c6dfaf1117e469247aff1532df7c3633767e2 + pristine_git_object: 964715c20c424daccbb4538658dea974344ae8ad src/main/java/com/formance/formance_sdk/operations/V3ListConnectors.java: id: bfddd2a08dec - last_write_checksum: sha1:3d9167b81b530f9c2e9ef474f547a67cb600ef8c - pristine_git_object: d3349dcee8d0e21c2d3906a1602b31b77bb4a6f5 + last_write_checksum: sha1:f08b2e8864b4680d3cf5efafc399414382f6e2c3 + pristine_git_object: 7eba717788120b2472f3e6f734fafb2347114fb0 src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationAdjustments.java: id: 2deaff3f15cd - last_write_checksum: sha1:0c486898c64ba9468e795772f663b52963d956ef - pristine_git_object: 09f3abeb71bb7821483aa16db7cf1e766d7ae190 + last_write_checksum: sha1:8d11054ace750badfac0b36b1fff12ef3fa77571 + pristine_git_object: 4dee325358fce6b9df4b117e537e67a15c9739a9 src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationRelatedPayments.java: id: 7bc3818bdaf6 - last_write_checksum: sha1:b9821568dd8c831c02082e4fa608fc38cefde4a3 - pristine_git_object: 4384594b24d7ed24fafd0e89ed2f417be96a2b28 + last_write_checksum: sha1:18060d2fb999b9c66e06a3c992e2c314122aa6be + pristine_git_object: 86d66f4a7ef391435826c3696e16649140e450cd src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiations.java: id: 67da1045d06f - last_write_checksum: sha1:75f235437e50c52b1461d2602d85ee006b9e5273 - pristine_git_object: bb5c7e98f3ab610a224fb07e60fe27fefbd0f741 + last_write_checksum: sha1:567139a6252e9e3ba4b3b41059b5911ff8751a1e + pristine_git_object: 58e8eb1b59c395341af4619271afb07148cb3e27 src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnections.java: id: 76d1d48e53f3 - last_write_checksum: sha1:7da155f15acb82331ea1d10c0b457580bcfd6278 - pristine_git_object: 228a68aea6803af9497892cc35e29980f2cf9454 + last_write_checksum: sha1:f7c9bc244b175db5d92b329ec55dbde1c6fda893 + pristine_git_object: baee70e807026ad19b0fe61a572419eb11aa3344 src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnectionsFromConnectorID.java: id: 14c280e2097b - last_write_checksum: sha1:d9370679b457eba93d2dfc767b601c582c32f6ff - pristine_git_object: 5a596777d5d0742ac38ab13128d388708ced2659 + last_write_checksum: sha1:96006269d67f5dfc3c8496beb66e775403ec55b2 + pristine_git_object: df7faf0ce18481b734c97216a9940dfd1bab59a0 src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorID.java: id: de1d2a11f0fe - last_write_checksum: sha1:44de063868ce56560c30f5da77da795a25e7e38e - pristine_git_object: 43441f1e7069700c7f1a9cfb5d7608b9229df626 + last_write_checksum: sha1:93207e8be2b715700ccd7796e960fc9a5600d185 + pristine_git_object: 77f12b905bdec5a8924096cbcba014ddbe2a9ae0 src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUsers.java: id: 67d544d58b3a - last_write_checksum: sha1:f4134b337eecc167e3764cae5245d747e0fbe835 - pristine_git_object: 9b6c4877812e4e89ba4f72d97c42694bd9957067 + last_write_checksum: sha1:16a2fac1459ec0545230da950f0e78e1e37e0ad8 + pristine_git_object: 94b99d36ab32c1e5e9025a7f65559d294b34edfa src/main/java/com/formance/formance_sdk/operations/V3ListPayments.java: id: 01a6c3d7a9e2 - last_write_checksum: sha1:2f77c9040d78972f69bb4dc3a80f3fc1e7800009 - pristine_git_object: 02b1be35a5ca395b68124737da89122cd2e672e1 + last_write_checksum: sha1:8d662d2c4170fcb8ff8ac77f3dfcd77f46f7d8e7 + pristine_git_object: 8cc69dd2ac5bbba81598a75794c10620a2741cb6 src/main/java/com/formance/formance_sdk/operations/V3ListPools.java: id: 892e6ae39f2f - last_write_checksum: sha1:f14972c427d8d1999bc05b361b6efb3b13cbe0e1 - pristine_git_object: 681933a47192e190ff38066736fde7ca2545f704 + last_write_checksum: sha1:8e0caf40b0c512a801291f1b4fb0683bc4d7302c + pristine_git_object: 18d2e7a0525e15d19d14da8f6f58840441af7e77 src/main/java/com/formance/formance_sdk/operations/V3RejectPaymentInitiation.java: id: 3e29be89d72b - last_write_checksum: sha1:8c6798c6b00421e4b7cde719ca37454f02e7c6e2 - pristine_git_object: 3f969fdd7d929b5a595dabb296995e3abdd501f7 + last_write_checksum: sha1:d64e2493851d541c2895fb57fe3f1ff03fa0b6df + pristine_git_object: 9b0d4853de83fc8cd17ee38f7b2ee85adefbc124 src/main/java/com/formance/formance_sdk/operations/V3RemoveAccountFromPool.java: id: 2de457387907 - last_write_checksum: sha1:ff3e67359034862b726dcb5ce8900d44a3c14541 - pristine_git_object: a5051a758c195d3b2a031880d0f2af2f9b94f635 + last_write_checksum: sha1:eceee467969afcef029c9d44c135ddd4a9d9eec8 + pristine_git_object: 601fc2445896ec3bd3d6d6d525fdbe9c653dcaa2 src/main/java/com/formance/formance_sdk/operations/V3ResetConnector.java: id: a0c09acdb4e2 - last_write_checksum: sha1:11f1e2ff1eeb30c290bd6fbb2a865fef1de1f758 - pristine_git_object: 253f4b9694942ba3da2804e8de68abce5431e2e6 + last_write_checksum: sha1:b0890a8980578b43b998fe48933e57eff49c6828 + pristine_git_object: 329eabc550936d379669619b7afb1b0076b11972 src/main/java/com/formance/formance_sdk/operations/V3RetryPaymentInitiation.java: id: fcc0551cd09b - last_write_checksum: sha1:635ae48b9c1feafa2e99c311de40b234c4f9ff0d - pristine_git_object: aabfe07e0306c1b7c9cfdd984238c9628ee7fbed + last_write_checksum: sha1:8777102bb8fc20b4b2e281d0b31336b8419ac783 + pristine_git_object: 03cd1e1e3247a8b786e3d2124b13fdc539cc5735 src/main/java/com/formance/formance_sdk/operations/V3ReversePaymentInitiation.java: id: c6409f5a5a59 - last_write_checksum: sha1:d0f498537d87bf351d3c7cb0422ce4ef7fa6465d - pristine_git_object: 248db17e9ab0d03bdd4f8d1a710dda32fc68c359 + last_write_checksum: sha1:bc44dcb039e51e68c983e8c1edf65713f82ac75e + pristine_git_object: 37b63cb29e96212f8e2d6d055a821604d0808e98 src/main/java/com/formance/formance_sdk/operations/V3UninstallConnector.java: id: c038c008c158 - last_write_checksum: sha1:e335a3ae7732a5202502bc56f83e07203f38cef3 - pristine_git_object: 37b6dd5db01ee0b90299dc3623d6efb4b3b69722 + last_write_checksum: sha1:318d74a401c4cd5c9513f2108ca11dd2e25d976a + pristine_git_object: 6aa71e5ff995570c449cc62751225e5232c9dba7 src/main/java/com/formance/formance_sdk/operations/V3UpdateBankAccountMetadata.java: id: 615cae07c317 - last_write_checksum: sha1:27791981146219183dc4e4e6f6f12d76f4718414 - pristine_git_object: 6d3f108d657e60aa46ce94d51b3a4277909d4bf0 + last_write_checksum: sha1:6c4ac950c645fcb124f96b7dd9307a9e04209865 + pristine_git_object: 4d74654740ff460667d15e8ecebdcd02b9409c09 src/main/java/com/formance/formance_sdk/operations/V3UpdateConnectorConfig.java: id: 052fd07509fe - last_write_checksum: sha1:6d9f88162a95588f232a58a9ae26676ece9855fe - pristine_git_object: bdfa5f283533e41610f981a8ff5a079494db1351 + last_write_checksum: sha1:660e4ddacffbb32172dbe50285062ccff3a0da74 + pristine_git_object: fc3dad46174a37e3da3679a85d79cc969839e2f8 src/main/java/com/formance/formance_sdk/operations/V3UpdateLinkForPaymentServiceUserOnConnector.java: id: 3da24c688461 - last_write_checksum: sha1:391524f9cda7d39d14407a6041cdd315711ba1e2 - pristine_git_object: 6d111cf3768fa1950414a0a826e1e1bce6ae46ff + last_write_checksum: sha1:e0021cdb35bcd0066220c9fc5cb3d544173055e5 + pristine_git_object: be76f3ff8d7c9b0202d1771cbd45c2b0bc0bbf19 src/main/java/com/formance/formance_sdk/operations/V3UpdatePaymentMetadata.java: id: 28c3c878cb97 - last_write_checksum: sha1:be4838f267426bff7af0d3657c73ad6d90fb250a - pristine_git_object: 92b651d5ceebd0d80e8af7249f71309107c7d5c8 + last_write_checksum: sha1:1046ebece59c4b9c604b00e9c66003cefe95745f + pristine_git_object: 9e88ede4f8d3eb2a9d6fb169c58c53bd958ef529 src/main/java/com/formance/formance_sdk/operations/V3UpdatePoolQuery.java: id: a55a869b8854 - last_write_checksum: sha1:f6f3622436ca75b41f781ee5acf0c22bbd03ba49 - pristine_git_object: aa2874efdbe4e8bb85ebe5bcd555383992b2f931 + last_write_checksum: sha1:6908279f4e7dd004ccae16238687071441a6ad03 + pristine_git_object: 97cb1f48198a09861402593aebba928062a796f5 src/main/java/com/formance/formance_sdk/operations/VoidHold.java: id: 760f26b7b051 - last_write_checksum: sha1:62835feb200f9f0a4fb117a1c3507bb2630e1f8d - pristine_git_object: a1600d13dff844a3182535aae27f86ef919655a9 - src/main/java/com/formance/formance_sdk/operations/WalletsgetServerInfo.java: - id: 76351b0bba1e - last_write_checksum: sha1:1580ab5cd88cac5a584c5c9f07ad55729d2c8386 - pristine_git_object: e4e3bb0b1f4a26441af2b1ac2099c2eff76f2a68 + last_write_checksum: sha1:f7ae8fab2da93b48610cc027dd88e949b54144b1 + pristine_git_object: 817d4c322c2c449fb4fe49be5be79c0129e8cc1f src/main/java/com/formance/formance_sdk/utils/BackoffStrategy.java: id: 88319eec8eed last_write_checksum: sha1:1114dec2a7e97a5cda12b7c2f8734f7690538594 @@ -11531,7 +11325,7 @@ examples: application/json: {"admin": "true"} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2AddMetadataToAccount: speakeasy-default-v2-add-metadata-to-account: parameters: @@ -11545,7 +11339,7 @@ examples: application/json: {"admin": "true"} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CountAccounts: speakeasy-default-v2-count-accounts: parameters: @@ -11555,7 +11349,7 @@ examples: application/json: {"key": "", "key1": ""} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CountTransactions: speakeasy-default-v2-count-transactions: parameters: @@ -11565,7 +11359,7 @@ examples: application/json: {"key": ""} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CreateBulk: speakeasy-default-v2-create-bulk: parameters: @@ -11580,11 +11374,11 @@ examples: application/json: [{"action": "REVERT_TRANSACTION"}] responses: "200": - application/json: {"data": [{"data": {"id": 820113, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": true, "timestamp": "2025-11-01T16:47:40.536Z"}, "logID": 983280, "responseType": "CREATE_TRANSACTION"}], "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "data": [{"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 820113, "postings": [], "reference": "ref:001", "reverted": true, "timestamp": "2025-11-01T16:47:40.536Z"}, "logID": 983280, "responseType": "CREATE_TRANSACTION"}], "errorMessage": "[VALIDATION] invalid 'cursor' query param"} "400": - application/json: {"data": [{"data": {"id": 820113, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": true, "timestamp": "2025-11-01T16:47:40.536Z"}, "logID": 983280, "responseType": "CREATE_TRANSACTION"}], "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "data": [{"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 820113, "postings": [], "reference": "ref:001", "reverted": true, "timestamp": "2025-11-01T16:47:40.536Z"}, "logID": 983280, "responseType": "CREATE_TRANSACTION"}], "errorMessage": "[VALIDATION] invalid 'cursor' query param"} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CreateLedger: speakeasy-default-v2-create-ledger: parameters: @@ -11594,7 +11388,7 @@ examples: application/json: {"metadata": {"admin": "true"}} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CreateTransaction: speakeasy-default-v2-create-transaction: parameters: @@ -11605,12 +11399,12 @@ examples: force: true schemaVersion: "v1.0.0" requestBody: - application/json: {"accountMetadata": {"key": {"admin": "true"}, "key1": {"admin": "true"}, "key2": {"admin": "true"}}, "metadata": {"admin": "true"}, "postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "reference": "ref:001", "script": {"plain": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n", "template": "CUSTOMER_DEPOSIT", "vars": {"user": "users:042"}}} + application/json: {"metadata": {"admin": "true"}, "accountMetadata": {"key": {"admin": "true"}, "key1": {"admin": "true"}, "key2": {"admin": "true"}}, "postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "reference": "ref:001", "script": {"plain": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n", "template": "CUSTOMER_DEPOSIT", "vars": {"user": "users:042"}}} responses: "200": - application/json: {"data": {"id": 863659, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": false, "timestamp": "2024-01-08T03:47:56.227Z"}} + application/json: {"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 863659, "postings": [], "reference": "ref:001", "reverted": false, "timestamp": "2024-01-08T03:47:56.227Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2DeleteAccountMetadata: speakeasy-default-v2-delete-account-metadata: parameters: @@ -11620,7 +11414,7 @@ examples: key: "foo" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2DeleteLedgerMetadata: speakeasy-default-v2-delete-ledger-metadata: parameters: @@ -11629,7 +11423,7 @@ examples: key: "foo" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2DeleteTransactionMetadata: speakeasy-default-v2-delete-transaction-metadata: parameters: @@ -11639,7 +11433,7 @@ examples: key: "foo" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ExportLogs: speakeasy-default-v2-export-logs: parameters: @@ -11653,9 +11447,9 @@ examples: address: "users:001" responses: "200": - application/json: {"data": {"address": "users:001", "effectiveVolumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "firstUsage": "2023-01-01T00:00:00Z", "insertionDate": "2023-01-01T00:00:00Z", "metadata": {"admin": "true"}, "updatedAt": "2023-01-01T00:00:00Z", "volumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}}} + application/json: {"data": {"volumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "effectiveVolumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "address": "users:001", "firstUsage": "2023-01-01T00:00:00Z", "insertionDate": "2023-01-01T00:00:00Z", "metadata": {"admin": "true"}, "updatedAt": "2023-01-01T00:00:00Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetBalancesAggregated: speakeasy-default-v2-get-balances-aggregated: parameters: @@ -11667,16 +11461,16 @@ examples: "200": application/json: {"data": {"USD": 100, "EUR": 12}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetInfo: speakeasy-default-v2-get-info: responses: "200": application/json: {"server": "", "version": ""} 5XX: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetLedger: speakeasy-default-v2-get-ledger: parameters: @@ -11684,9 +11478,9 @@ examples: ledger: "ledger001" responses: "200": - application/json: {"data": {"addedAt": "2024-01-05T18:51:35.346Z", "bucket": "", "metadata": {"admin": "true"}, "name": ""}} + application/json: {"data": {"metadata": {"admin": "true"}, "addedAt": "2024-01-05T18:51:35.346Z", "bucket": "", "name": ""}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetLedgerInfo: speakeasy-default-v2-get-ledger-info: parameters: @@ -11696,14 +11490,14 @@ examples: "200": application/json: {"data": {"name": "ledger001", "storage": {"migrations": [{"name": "migrations:001", "version": "11"}]}}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} getMetrics: speakeasy-default-get-metrics: responses: "200": application/json: {"key": "", "key1": ""} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetTransaction: speakeasy-default-v2-get-transaction: parameters: @@ -11712,9 +11506,9 @@ examples: id: 1234 responses: "200": - application/json: {"data": {"id": 588023, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": true, "timestamp": "2024-09-05T05:26:07.606Z"}} + application/json: {"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 588023, "postings": [], "reference": "ref:001", "reverted": true, "timestamp": "2024-09-05T05:26:07.606Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetVolumesWithBalances: speakeasy-default-v2-get-volumes-with-balances: parameters: @@ -11731,7 +11525,7 @@ examples: "200": application/json: {"cursor": {"data": [], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ImportLogs: speakeasy-default-v2-import-logs: parameters: @@ -11741,7 +11535,7 @@ examples: application/octet-stream: "0xde3EDEE9e6" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListAccounts: speakeasy-default-v2-list-accounts: parameters: @@ -11755,9 +11549,9 @@ examples: application/json: {} responses: "200": - application/json: {"cursor": {"data": [{"address": "users:001", "effectiveVolumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "metadata": {"admin": "true"}, "volumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"volumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "effectiveVolumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "address": "users:001", "metadata": {"admin": "true"}}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListLedgers: speakeasy-default-v2-list-ledgers: parameters: @@ -11770,9 +11564,9 @@ examples: application/json: {"key": "", "key1": "", "key2": ""} responses: "200": - application/json: {"cursor": {"data": [{"addedAt": "2024-03-14T02:30:05.506Z", "bucket": "", "metadata": {"admin": "true"}, "name": ""}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"metadata": {"admin": "true"}, "addedAt": "2024-03-14T02:30:05.506Z", "bucket": "", "name": ""}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListLogs: speakeasy-default-v2-list-logs: parameters: @@ -11786,9 +11580,9 @@ examples: application/json: {} responses: "200": - application/json: {"cursor": {"data": [{"data": {"accountMetadata": {"users:001": {"created_by": "system"}}, "transaction": {"id": 1234, "insertedAt": "2024-01-15T10:30:00Z", "metadata": {}, "postings": [{"amount": 100, "asset": "USD/2", "destination": "users:001", "source": "world"}], "reverted": false, "timestamp": "2024-01-15T10:30:00Z"}}, "date": "2023-05-27T03:44:15.671Z", "hash": "9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e", "id": 1234, "type": "NEW_TRANSACTION"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"data": {"transaction": {"metadata": {}, "id": 1234, "insertedAt": "2024-01-15T10:30:00Z", "postings": [{"amount": 100, "asset": "USD/2", "destination": "users:001", "source": "world"}], "reverted": false, "timestamp": "2024-01-15T10:30:00Z"}, "accountMetadata": {"users:001": {"created_by": "system"}}}, "date": "2023-05-27T03:44:15.671Z", "hash": "9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e", "id": 1234, "type": "NEW_TRANSACTION"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListTransactions: speakeasy-default-v2-list-transactions: parameters: @@ -11802,9 +11596,9 @@ examples: application/json: {} responses: "200": - application/json: {"cursor": {"data": [{"id": 591999, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": true, "timestamp": "2023-09-24T09:23:16.553Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 591999, "postings": [], "reference": "ref:001", "reverted": true, "timestamp": "2023-09-24T09:23:16.553Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ReadStats: speakeasy-default-v2-read-stats: parameters: @@ -11814,7 +11608,7 @@ examples: "200": application/json: {"data": {"accounts": 441939, "transactions": 686873}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2RevertTransaction: speakeasy-default-v2-revert-transaction: parameters: @@ -11826,9 +11620,9 @@ examples: schemaVersion: "v1.0.0" responses: "201": - application/json: {"data": {"id": 672629, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": false, "timestamp": "2024-04-03T06:11:52.870Z"}} + application/json: {"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 672629, "postings": [], "reference": "ref:001", "reverted": false, "timestamp": "2024-04-03T06:11:52.870Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2UpdateLedgerMetadata: speakeasy-default-v2-update-ledger-metadata: parameters: @@ -11838,9 +11632,9 @@ examples: application/json: {"admin": "true"} responses: 5XX: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} CreateTransactions: speakeasy-default-create-transactions: parameters: @@ -11852,7 +11646,7 @@ examples: "200": application/json: {"data": []} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} addMetadataOnTransaction: speakeasy-default-add-metadata-on-transaction: parameters: @@ -11863,7 +11657,7 @@ examples: application/json: {} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} addMetadataToAccount: speakeasy-default-add-metadata-to-account: parameters: @@ -11874,7 +11668,7 @@ examples: application/json: {"key": "", "key1": "", "key2": ""} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} countAccounts: speakeasy-default-count-accounts: parameters: @@ -11885,7 +11679,7 @@ examples: metadata: {"key": "", "key1": "", "key2": ""} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} countTransactions: speakeasy-default-count-transactions: parameters: @@ -11899,7 +11693,7 @@ examples: metadata: {} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} createTransaction: speakeasy-default-create-transaction: parameters: @@ -11911,9 +11705,9 @@ examples: application/json: {"postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "reference": "ref:001", "script": {"plain": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n", "vars": {"user": "users:042"}}} responses: "200": - application/json: {"data": [{"postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "timestamp": "2023-02-01T17:54:50.972Z", "txid": 156492}]} + application/json: {"data": [{"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "reference": "ref:001", "timestamp": "2023-02-01T17:54:50.972Z", "txid": 156492}]} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} getAccount: speakeasy-default-get-account: parameters: @@ -11938,7 +11732,7 @@ examples: "200": application/json: {"cursor": {"data": [{"account1": {"USD": 100, "EUR": 23}, "account2": {"CAD": 20, "JPY": 21}}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} getBalancesAggregated: speakeasy-default-get-balances-aggregated: parameters: @@ -11950,14 +11744,14 @@ examples: "200": application/json: {"data": {"USD": 100, "EUR": 12}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} getInfo: speakeasy-default-get-info: responses: "200": application/json: {"data": {"config": {"storage": {"driver": "", "ledgers": [""]}}, "server": "", "version": ""}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} getLedgerInfo: speakeasy-default-get-ledger-info: parameters: @@ -11967,7 +11761,7 @@ examples: "200": application/json: {"data": {"name": "ledger001", "storage": {"migrations": [{"name": "migrations:001", "version": "11"}]}}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} getMapping: speakeasy-default-get-mapping: parameters: @@ -11977,7 +11771,7 @@ examples: "200": application/json: {"data": {"contracts": []}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} getTransaction: speakeasy-default-get-transaction: parameters: @@ -11986,9 +11780,9 @@ examples: txid: 1234 responses: "200": - application/json: {"data": {"postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "timestamp": "2025-10-23T07:15:43.781Z", "txid": 806070}} + application/json: {"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [{"amount": 100, "asset": "COIN", "destination": "users:002", "source": "users:001"}], "reference": "ref:001", "timestamp": "2025-10-23T07:15:43.781Z", "txid": 806070}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} listAccounts: speakeasy-default-list-accounts: parameters: @@ -12021,7 +11815,7 @@ examples: "200": application/json: {"cursor": {"data": [{"data": {"key": "", "key1": ""}, "date": "2023-02-08T16:19:02.634Z", "hash": "9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e", "id": 1234, "type": "SET_METADATA"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} listTransactions: speakeasy-default-list-transactions: parameters: @@ -12037,9 +11831,9 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "timestamp": "2024-10-01T04:36:33.513Z", "txid": 981936}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "reference": "ref:001", "timestamp": "2024-10-01T04:36:33.513Z", "txid": 981936}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} readStats: speakeasy-default-read-stats: parameters: @@ -12049,7 +11843,7 @@ examples: "200": application/json: {"data": {"accounts": 205778, "transactions": 637809}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} revertTransaction: speakeasy-default-revert-transaction: parameters: @@ -12058,9 +11852,9 @@ examples: txid: 1234 responses: "201": - application/json: {"data": {"postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "timestamp": "2024-08-19T15:20:55.608Z", "txid": 376007}} + application/json: {"data": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "reference": "ref:001", "timestamp": "2024-08-19T15:20:55.608Z", "txid": 376007}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} runScript: speakeasy-default-run-script: parameters: @@ -12072,7 +11866,7 @@ examples: application/json: {"plain": "vars {\naccount $user\n}\nsend [COIN 10] (\n\tsource = @world\n\tdestination = $user\n)\n", "reference": "order_1234", "vars": {"user": "users:042"}} responses: "200": - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "account had insufficient funds", "transaction": {"postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "timestamp": "2025-08-12T16:54:42.293Z", "txid": 831969}} + application/json: {"errorCode": "INSUFFICIENT_FUND", "transaction": {"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "reference": "ref:001", "timestamp": "2025-08-12T16:54:42.293Z", "txid": 831969}, "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "account had insufficient funds"} updateMapping: speakeasy-default-update-mapping: parameters: @@ -12084,7 +11878,7 @@ examples: "200": application/json: {"data": {"contracts": []}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "INSUFFICIENT_FUND", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} cancelEvent: speakeasy-default-cancel-event: parameters: @@ -12431,10 +12225,10 @@ examples: createAccount: speakeasy-default-create-account: requestBody: - application/json: {"connectorID": "", "createdAt": "2025-07-27T08:57:17.388Z", "reference": "", "type": "UNKNOWN"} + application/json: {"type": "UNKNOWN", "connectorID": "", "createdAt": "2025-07-27T08:57:17.388Z", "reference": ""} responses: "200": - application/json: {"data": {"accountName": "", "connectorID": "", "createdAt": "2025-02-04T21:35:09.992Z", "defaultAsset": "", "defaultCurrency": "", "id": "", "metadata": {"key": "", "key1": "", "key2": ""}, "raw": {}, "reference": "", "type": "EXTERNAL"}} + application/json: {"data": {"metadata": {"key": "", "key1": "", "key2": ""}, "type": "EXTERNAL", "accountName": "", "connectorID": "", "createdAt": "2025-02-04T21:35:09.992Z", "defaultAsset": "", "defaultCurrency": "", "id": "", "raw": {}, "reference": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} createBankAccount: @@ -12449,10 +12243,10 @@ examples: createPayment: speakeasy-default-create-payment: requestBody: - application/json: {"amount": 100, "asset": "USD", "connectorID": "", "createdAt": "2025-08-26T06:29:11.777Z", "reference": "", "scheme": "rtp", "status": "REFUNDED_FAILURE", "type": "PAYOUT"} + application/json: {"scheme": "rtp", "status": "REFUNDED_FAILURE", "type": "PAYOUT", "amount": 100, "asset": "USD", "connectorID": "", "createdAt": "2025-08-26T06:29:11.777Z", "reference": ""} responses: "200": - application/json: {"data": {"adjustments": [], "amount": 100, "asset": "USD", "connectorID": "", "createdAt": "2023-03-26T13:20:35.733Z", "destinationAccountID": "", "id": "XXX", "initialAmount": 100, "metadata": null, "raw": {}, "reference": "", "scheme": "sepa", "sourceAccountID": "", "status": "REFUNDED_FAILURE", "type": "TRANSFER"}} + application/json: {"data": {"metadata": null, "scheme": "sepa", "status": "REFUNDED_FAILURE", "type": "TRANSFER", "adjustments": [], "amount": 100, "asset": "USD", "connectorID": "", "createdAt": "2023-03-26T13:20:35.733Z", "destinationAccountID": "", "id": "XXX", "initialAmount": 100, "raw": {}, "reference": "", "sourceAccountID": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} createPool: @@ -12470,7 +12264,7 @@ examples: application/json: {"amount": 83093, "asset": "USD", "description": "flowery yum keenly operating knavishly commemorate recent apropos", "destinationAccountID": "", "reference": "XXX", "scheduledAt": "2025-07-09T05:18:01.065Z", "sourceAccountID": "", "type": "TRANSFER", "validated": false} responses: "200": - application/json: {"data": {"amount": 846542, "asset": "USD", "connectorID": "", "createdAt": "2024-01-17T12:52:53.389Z", "description": "aha fill ick lest whose dispose judgementally", "destinationAccountID": "", "id": "XXX", "initialAmount": 901867, "provider": null, "reference": "", "scheduledAt": "2024-10-30T15:48:13.971Z", "sourceAccountID": "", "status": "PROCESSED", "type": "PAYOUT"}} + application/json: {"data": {"status": "PROCESSED", "amount": 846542, "asset": "USD", "connectorID": "", "createdAt": "2024-01-17T12:52:53.389Z", "description": "aha fill ick lest whose dispose judgementally", "destinationAccountID": "", "id": "XXX", "initialAmount": 901867, "provider": null, "reference": "", "scheduledAt": "2024-10-30T15:48:13.971Z", "sourceAccountID": "", "type": "PAYOUT"}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} deletePool: @@ -12533,7 +12327,7 @@ examples: taskId: "task1" responses: "200": - application/json: {"data": {"connectorID": "", "createdAt": "2025-04-05T22:52:50.964Z", "descriptor": {}, "id": "ba07d748-2e05-44da-bb09-bc95fb23a4a2", "status": "ACTIVE", "updatedAt": "2023-07-09T22:52:05.961Z"}} + application/json: {"data": {"status": "ACTIVE", "connectorID": "", "createdAt": "2026-04-05T22:52:50.964Z", "descriptor": {"account": "76048425", "name": ""}, "id": "2e054dab-09bc-495f-9b23-a4a2f32d918b", "updatedAt": "2025-11-07T17:11:18.005Z"}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} getConnectorTaskV1: @@ -12545,7 +12339,7 @@ examples: taskId: "task1" responses: "200": - application/json: {"data": {"connectorID": "", "createdAt": "2023-09-09T11:46:34.379Z", "descriptor": {}, "id": "1a29a0c4-6693-436a-ba83-2a5c222697f6", "status": "PENDING", "updatedAt": "2025-06-01T19:36:20.650Z"}} + application/json: {"data": {"status": "FAILED", "connectorID": "", "createdAt": "2024-09-08T11:46:34.379Z", "descriptor": {"account": "06166072", "name": ""}, "id": "669336aa-832a-45c2-8226-97f6f0cccd48", "updatedAt": "2026-04-28T10:40:54.916Z"}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} getPayment: @@ -12555,7 +12349,7 @@ examples: paymentId: "XXX" responses: "200": - application/json: {"data": {"adjustments": [], "amount": 100, "asset": "USD", "connectorID": "", "createdAt": "2025-08-23T12:46:56.339Z", "destinationAccountID": "", "id": "XXX", "initialAmount": 100, "metadata": {}, "raw": {}, "reference": "", "scheme": "mastercard", "sourceAccountID": "", "status": "REFUNDED_FAILURE", "type": "OTHER"}} + application/json: {"data": {"metadata": {}, "scheme": "mastercard", "status": "REFUNDED_FAILURE", "type": "OTHER", "adjustments": [], "amount": 100, "asset": "USD", "connectorID": "", "createdAt": "2025-08-23T12:46:56.339Z", "destinationAccountID": "", "id": "XXX", "initialAmount": 100, "raw": {}, "reference": "", "sourceAccountID": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} getPool: @@ -12597,7 +12391,7 @@ examples: transferId: "XXX" responses: "200": - application/json: {"data": {"amount": 176683, "asset": "USD", "connectorID": "", "createdAt": "2025-10-26T05:55:06.956Z", "description": "chatter extroverted reassuringly anneal scruple sugary", "destinationAccountID": "", "id": "XXX", "initialAmount": 280237, "provider": "", "reference": "", "scheduledAt": "2025-03-04T03:12:15.565Z", "sourceAccountID": "", "status": "VALIDATED", "type": "TRANSFER"}} + application/json: {"data": {"status": "VALIDATED", "amount": 176683, "asset": "USD", "connectorID": "", "createdAt": "2025-10-26T05:55:06.956Z", "description": "chatter extroverted reassuringly anneal scruple sugary", "destinationAccountID": "", "id": "XXX", "initialAmount": 280237, "provider": "", "reference": "", "scheduledAt": "2025-03-04T03:12:15.565Z", "sourceAccountID": "", "type": "TRANSFER"}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} installConnector: @@ -12648,7 +12442,7 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"connectorID": "", "createdAt": "2023-07-09T01:45:27.390Z", "descriptor": {"account": "81912367", "name": ""}, "id": "3bfd2eb9-0498-40c6-9952-2fcda39a6b82", "status": "PENDING", "updatedAt": "2025-12-04T17:51:26.574Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"status": "PENDING", "connectorID": "", "createdAt": "2023-07-09T01:45:27.390Z", "descriptor": {"account": "81912367", "name": ""}, "id": "3bfd2eb9-0498-40c6-9952-2fcda39a6b82", "updatedAt": "2025-12-04T17:51:26.574Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} listConnectorTasksV1: @@ -12662,7 +12456,7 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"connectorID": "", "createdAt": "2025-10-29T10:12:55.520Z", "descriptor": {}, "id": "c3e45846-829a-48da-807c-9f37eafd5b66", "status": "FAILED", "updatedAt": "2024-12-07T12:05:14.753Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"status": "FAILED", "connectorID": "", "createdAt": "2026-02-14T09:17:44.987Z", "descriptor": {"account": "97192352", "name": ""}, "id": "6829a8da-07c9-4f37-aeaf-d5b660ead163", "updatedAt": "2025-06-12T02:51:12.001Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} listPayments: @@ -12698,7 +12492,7 @@ examples: sort: ["date:asc", "status:desc"] responses: "200": - application/json: {"cursor": {"data": [{"amount": 962666, "asset": "USD", "connectorID": "", "createdAt": "2024-10-06T15:27:29.228Z", "description": "furthermore trim scrap yuck fooey engage gosh", "destinationAccountID": "", "id": "XXX", "initialAmount": 935390, "provider": null, "reference": "", "scheduledAt": "2024-08-17T23:56:56.725Z", "sourceAccountID": "", "status": "PARTIALLY_REVERSED", "type": "PAYOUT"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"status": "PARTIALLY_REVERSED", "amount": 962666, "asset": "USD", "connectorID": "", "createdAt": "2024-10-06T15:27:29.228Z", "description": "furthermore trim scrap yuck fooey engage gosh", "destinationAccountID": "", "id": "XXX", "initialAmount": 935390, "provider": null, "reference": "", "scheduledAt": "2024-08-17T23:56:56.725Z", "sourceAccountID": "", "type": "PAYOUT"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} paymentsgetAccount: @@ -12885,7 +12679,7 @@ examples: speakeasy-default-v3-create-account: responses: "201": - application/json: {"data": {"connectorID": "", "createdAt": "2023-01-10T21:14:53.657Z", "id": "", "provider": "", "raw": {}, "reference": "", "type": "UNKNOWN"}} + application/json: {"data": {"type": "UNKNOWN", "connectorID": "", "createdAt": "2023-01-10T21:14:53.657Z", "id": "", "provider": "", "raw": {}, "reference": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3CreateBankAccount: @@ -12899,7 +12693,7 @@ examples: speakeasy-default-v3-create-payment: responses: "201": - application/json: {"data": {"amount": 173417, "asset": "", "connectorID": "", "createdAt": "2024-07-19T11:50:26.554Z", "id": "", "initialAmount": 115351, "provider": "", "reference": "", "scheme": "", "status": "AMOUNT_ADJUSTEMENT", "type": "PAY-IN"}} + application/json: {"data": {"status": "AMOUNT_ADJUSTEMENT", "type": "PAY-IN", "amount": 173417, "asset": "", "connectorID": "", "createdAt": "2024-07-19T11:50:26.554Z", "id": "", "initialAmount": 115351, "provider": "", "reference": "", "scheme": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3CreatePaymentServiceUser: @@ -12960,7 +12754,7 @@ examples: accountID: "" responses: "200": - application/json: {"data": {"connectorID": "", "createdAt": "2024-01-02T19:09:33.303Z", "id": "", "provider": "", "raw": {}, "reference": "", "type": "EXTERNAL"}} + application/json: {"data": {"type": "EXTERNAL", "connectorID": "", "createdAt": "2024-01-02T19:09:33.303Z", "id": "", "provider": "", "raw": {}, "reference": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3GetAccountBalances: @@ -13014,7 +12808,7 @@ examples: paymentID: "" responses: "200": - application/json: {"data": {"amount": 264359, "asset": "", "connectorID": "", "createdAt": "2025-07-20T06:19:30.393Z", "id": "", "initialAmount": 387125, "provider": "", "reference": "", "scheme": "", "status": "UNKNOWN", "type": "TRANSFER"}} + application/json: {"data": {"status": "UNKNOWN", "type": "TRANSFER", "amount": 264359, "asset": "", "connectorID": "", "createdAt": "2025-07-20T06:19:30.393Z", "id": "", "initialAmount": 387125, "provider": "", "reference": "", "scheme": ""}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3GetPaymentInitiation: @@ -13024,7 +12818,7 @@ examples: paymentInitiationID: "" responses: "200": - application/json: {"data": {"amount": 96379, "asset": "", "connectorID": "", "createdAt": "2023-12-06T20:15:26.053Z", "description": "narrate whoever horn mechanic ick intently pinion", "id": "", "provider": "", "reference": "", "scheduledAt": "2025-04-15T17:22:46.273Z", "status": "REVERSE_FAILED", "type": "UNKNOWN"}} + application/json: {"data": {"status": "REVERSE_FAILED", "type": "UNKNOWN", "amount": 96379, "asset": "", "connectorID": "", "createdAt": "2023-12-06T20:15:26.053Z", "description": "narrate whoever horn mechanic ick intently pinion", "id": "", "provider": "", "reference": "", "scheduledAt": "2025-04-15T17:22:46.273Z"}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3GetPaymentServiceUser: @@ -13074,7 +12868,7 @@ examples: taskID: "" responses: "200": - application/json: {"data": {"createdAt": "2025-11-16T02:09:08.137Z", "id": "", "status": "PROCESSING", "updatedAt": "2024-05-31T15:15:39.299Z"}} + application/json: {"data": {"status": "PROCESSING", "createdAt": "2025-11-16T02:09:08.137Z", "id": "", "updatedAt": "2024-05-31T15:15:39.299Z"}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3InitiatePayment: @@ -13187,7 +12981,7 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"amount": 667202, "asset": "", "connectorID": "", "createdAt": "2025-04-11T03:15:06.946Z", "id": "", "initialAmount": 19142, "provider": "", "reference": "", "scheme": "", "status": "PENDING", "type": "UNKNOWN"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"status": "PENDING", "type": "UNKNOWN", "amount": 667202, "asset": "", "connectorID": "", "createdAt": "2025-04-11T03:15:06.946Z", "id": "", "initialAmount": 19142, "provider": "", "reference": "", "scheme": ""}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3ListPaymentInitiations: @@ -13497,7 +13291,7 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"id": 857229, "metadata": {}, "postCommitVolumes": {"key": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "key1": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitVolumes": {"key": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "key1": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "key2": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "timestamp": "2025-02-03T03:06:41.756Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"preCommitVolumes": {"key": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "key1": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "key2": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"key": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "key1": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}}, "id": 857229, "metadata": {}, "postings": [], "reference": "ref:001", "timestamp": "2025-02-03T03:06:41.756Z"}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "INSUFFICIENT_FUND", "errorMessage": ""} getWallet: @@ -13574,7 +13368,7 @@ examples: "200": application/json: {"data": {"active": true, "createdAt": "2023-06-13T07:37:07.225Z", "endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "id": "c779556b-11c4-4358-b441-bffde26f8bdd", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", "updatedAt": "2023-11-03T14:50:37.052Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} changeConfigSecret: speakeasy-default-change-config-secret: parameters: @@ -13586,7 +13380,7 @@ examples: "200": application/json: {"data": {"active": true, "createdAt": "2024-10-05T17:36:10.923Z", "endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "id": "3d1ccab8-f50b-44b6-975b-377e04332d72", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", "updatedAt": "2024-05-15T05:29:40.289Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} deactivateConfig: speakeasy-default-deactivate-config: parameters: @@ -13596,7 +13390,7 @@ examples: "200": application/json: {"data": {"active": true, "createdAt": "2023-02-03T00:01:48.932Z", "endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "id": "90efb226-e1a7-45b9-9b3a-6ea753935469", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", "updatedAt": "2025-11-10T05:52:06.336Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} deleteConfig: speakeasy-default-delete-config: parameters: @@ -13604,7 +13398,7 @@ examples: id: "4997257d-dfb6-445b-929c-cbe2ab182818" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} getManyConfigs: speakeasy-default-get-many-configs: parameters: @@ -13615,7 +13409,7 @@ examples: "200": application/json: {"cursor": {"data": [{"active": true, "createdAt": "2023-12-20T14:54:40.912Z", "endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "id": "3c52a10a-1c73-432d-8971-67be59479938", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", "updatedAt": "2024-03-19T09:18:42.471Z"}], "hasMore": false}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} insertConfig: speakeasy-default-insert-config: requestBody: @@ -13624,7 +13418,7 @@ examples: "200": application/json: {"data": {"active": true, "createdAt": "2025-02-21T09:22:36.284Z", "endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "id": "58804a1b-afea-4e94-906c-af1120884d63", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", "updatedAt": "2025-05-03T05:43:59.683Z"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} testConfig: speakeasy-default-test-config: parameters: @@ -13634,7 +13428,7 @@ examples: "200": application/json: {"data": {"config": {"active": true, "createdAt": "2023-06-18T15:41:50.483Z", "endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "id": "e0f3e4f4-7caa-485f-8971-8e6013ce74ce", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3", "updatedAt": "2025-12-29T18:43:01.720Z"}, "createdAt": "2024-11-08T22:22:20.251Z", "id": "dfebbb08-a051-4207-8109-7f7123328748", "payload": "{\"data\":\"test\"}", "retryAttempt": 1, "status": "success", "statusCode": 200, "updatedAt": "2023-12-01T18:52:57.767Z", "webhookID": "cc9ba75e-ad38-47e1-b668-eba1c5b180ca"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} updateConfig: speakeasy-default-update-config: parameters: @@ -13644,7 +13438,7 @@ examples: application/json: {"endpoint": "https://example.com", "eventTypes": ["TYPE1", "TYPE2"], "name": "customer_payment", "secret": "V0bivxRWveaoz08afqjU6Ko/jwO0Cb+3"} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CreateExporter: speakeasy-default-v2-create-exporter: requestBody: @@ -13653,7 +13447,7 @@ examples: "201": application/json: {"data": {"config": {"key": "", "key1": "", "key2": ""}, "createdAt": "2023-09-20T22:58:09.492Z", "driver": "", "id": ""}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2CreatePipeline: speakeasy-default-v2-create-pipeline: parameters: @@ -13663,7 +13457,7 @@ examples: "201": application/json: {"data": {"createdAt": "2023-10-13T04:07:21.184Z", "exporterID": "", "id": "", "ledger": ""}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2DeleteExporter: speakeasy-default-v2-delete-exporter: parameters: @@ -13671,7 +13465,7 @@ examples: exporterID: "" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2DeletePipeline: speakeasy-default-v2-delete-pipeline: parameters: @@ -13680,7 +13474,7 @@ examples: pipelineID: "" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetExporterState: speakeasy-default-v2-get-exporter-state: parameters: @@ -13690,7 +13484,7 @@ examples: "200": application/json: {"data": {"config": {"key": "", "key1": "", "key2": ""}, "createdAt": "2025-12-16T02:14:09.876Z", "driver": "", "id": ""}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetPipelineState: speakeasy-default-v2-get-pipeline-state: parameters: @@ -13701,14 +13495,14 @@ examples: "200": application/json: {"data": {"createdAt": "2024-06-04T21:05:32.605Z", "exporterID": "", "id": "", "ledger": ""}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListExporters: speakeasy-default-v2-list-exporters: responses: "200": - application/json: {"cursor": {"cursor": {"data": [], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}}} + application/json: {"cursor": {"data": [], "hasMore": false, "next": "aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListPipelines: speakeasy-default-v2-list-pipelines: parameters: @@ -13716,9 +13510,9 @@ examples: ledger: "ledger001" responses: "200": - application/json: {"cursor": {"cursor": {"data": [{"createdAt": "2023-07-10T16:30:37.234Z", "exporterID": "", "id": "", "ledger": ""}], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}}} + application/json: {"cursor": {"data": [{"createdAt": "2024-07-09T16:30:37.234Z", "exporterID": "", "id": "", "ledger": ""}], "hasMore": false, "next": "aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ResetPipeline: speakeasy-default-v2-reset-pipeline: parameters: @@ -13727,7 +13521,7 @@ examples: pipelineID: "" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2StartPipeline: speakeasy-default-v2-start-pipeline: parameters: @@ -13736,7 +13530,7 @@ examples: pipelineID: "" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2StopPipeline: speakeasy-default-v2-stop-pipeline: parameters: @@ -13745,7 +13539,7 @@ examples: pipelineID: "" responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2DeleteBucket: speakeasy-default-v2-delete-bucket: parameters: @@ -13753,9 +13547,9 @@ examples: bucket: "" responses: "404": - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2GetSchema: speakeasy-default-v2-get-schema: parameters: @@ -13764,9 +13558,9 @@ examples: version: "v1.0.0" responses: "200": - application/json: {"data": {"chart": {"users": {"$userID": {".pattern": "^[0-9]{16}$"}}}, "createdAt": "2023-01-01T00:00:00Z", "queries": {"key": {"params": {"cursor": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==", "pageSize": 100, "sort": "id:desc"}}}, "version": "v1.0.0"}} + application/json: {"data": {"chart": {"users": {"$userID": {".pattern": "^[0-9]{16}$"}}}, "queries": {"key": {"params": {"cursor": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==", "pageSize": 100, "sort": "id:desc"}}}, "createdAt": "2023-01-01T00:00:00Z", "version": "v1.0.0"}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2InsertSchema: speakeasy-default-v2-insert-schema: parameters: @@ -13777,7 +13571,7 @@ examples: application/json: {"chart": {"users": {"$userID": {".pattern": "^[0-9]{16}$"}}}, "queries": {"key": {"params": {"cursor": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==", "pageSize": 100, "sort": "id:desc"}}}} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2ListSchemas: speakeasy-default-v2-list-schemas: parameters: @@ -13791,7 +13585,7 @@ examples: "200": application/json: {"cursor": {"data": [], "hasMore": true, "next": "aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ=", "pageSize": 47856, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2RestoreBucket: speakeasy-default-v2-restore-bucket: parameters: @@ -13799,9 +13593,9 @@ examples: bucket: "" responses: "404": - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2RunQuery: speakeasy-default-v2-run-query: parameters: @@ -13817,9 +13611,9 @@ examples: application/json: {"params": {"cursor": "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==", "pageSize": 100, "sort": "id:desc"}} responses: "200": - application/json: {"cursor": {"data": [{"id": 641325, "metadata": {"admin": "true"}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postings": [], "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "reference": "ref:001", "reverted": false, "timestamp": "2026-09-10T15:36:45.313Z"}], "hasMore": false, "next": "aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"preCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "preCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "postCommitEffectiveVolumes": {"orders:1": {"USD": {"balance": 90, "input": 100, "output": 10}}, "orders:2": {"USD": {"balance": 90, "input": 100, "output": 10}}}, "metadata": {"admin": "true"}, "id": 641325, "postings": [], "reference": "ref:001", "reverted": false, "timestamp": "2026-09-10T15:36:45.313Z"}], "hasMore": false, "next": "aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} v2UpdateExporter: speakeasy-default-v2-update-exporter: parameters: @@ -13829,7 +13623,7 @@ examples: application/json: {"config": {"key": "", "key1": "", "key2": ""}, "driver": ""} responses: default: - application/json: {"details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorCode": "VALIDATION", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} + application/json: {"errorCode": "VALIDATION", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[VALIDATION] invalid 'cursor' query param"} updatePoolQuery: speakeasy-default-update-pool-query: parameters: @@ -13902,7 +13696,7 @@ examples: attemptID: "" responses: "200": - application/json: {"clientRedirectURL": "https://coarse-smoke.net", "connectorID": "", "createdAt": "2026-08-05T20:05:57.238Z", "id": "", "psuID": "", "status": "completed"} + application/json: {"status": "completed", "clientRedirectURL": "https://coarse-smoke.net", "connectorID": "", "createdAt": "2026-08-05T20:05:57.238Z", "id": "", "psuID": ""} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3ListPaymentServiceUserConnections: @@ -13929,7 +13723,7 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"connectionID": "", "connectorID": "", "createdAt": "2024-01-01T01:27:40.293Z", "dataUpdatedAt": "2025-12-26T20:54:20.460Z", "status": "ERROR"}], "hasMore": false, "next": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"status": "ERROR", "connectionID": "", "connectorID": "", "createdAt": "2024-01-01T01:27:40.293Z", "dataUpdatedAt": "2025-12-26T20:54:20.460Z"}], "hasMore": false, "next": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3ListPaymentServiceUserLinkAttemptsFromConnectorID: @@ -13943,7 +13737,7 @@ examples: cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" responses: "200": - application/json: {"cursor": {"data": [{"clientRedirectURL": "https://immense-academics.net/", "connectorID": "", "createdAt": "2025-08-12T12:42:34.997Z", "id": "", "psuID": "", "status": "exited"}], "hasMore": false, "next": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + application/json: {"cursor": {"data": [{"status": "exited", "clientRedirectURL": "https://immense-academics.net/", "connectorID": "", "createdAt": "2025-08-12T12:42:34.997Z", "id": "", "psuID": ""}], "hasMore": false, "next": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} v3UpdateLinkForPaymentServiceUserOnConnector: @@ -13966,9 +13760,99 @@ examples: responses: default: application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing required config field: pollingPeriod"} + getServerInfo_auth: + speakeasy-default-get-server-info-auth: + responses: + "200": + application/json: {"version": ""} + getAccount_ledger: + speakeasy-default-get-account-ledger: + parameters: + path: + ledger: "ledger001" + address: "users:001" + responses: + "200": + application/json: {"data": {"volumes": {"USD": {"balance": 90, "input": 100, "output": 10}, "EUR": {"balance": 90, "input": 100, "output": 10}}, "address": "users:001", "balances": {"COIN": 100}, "metadata": {"admin": true, "a": {"nested": {"key": "value"}}}, "type": "virtual"}} + default: + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + listAccounts_ledger: + speakeasy-default-list-accounts-ledger: + parameters: + path: + ledger: "ledger001" + query: + pageSize: 100 + after: "users:003" + address: "users:.+" + metadata: {"key": "", "key1": ""} + balance: 2400 + cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" + responses: + "200": + application/json: {"cursor": {"data": [], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + "404": + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + default: + application/json: {"errorCode": "INSUFFICIENT_FUND", "details": "https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9", "errorMessage": "[INSUFFICIENT_FUND] account had insufficient funds"} + getServerInfo_orchestration: + speakeasy-default-get-server-info-orchestration: + responses: + "200": + application/json: {"version": ""} + default: + application/json: {"errorCode": "VALIDATION", "errorMessage": ""} + getAccount_payments: + speakeasy-default-get-account-payments: + parameters: + path: + accountId: "XXX" + responses: + "200": + application/json: {"data": {"metadata": {"key": "", "key1": "", "key2": ""}, "type": "EXTERNAL", "accountName": "", "connectorID": "", "createdAt": "2026-07-10T05:28:55.094Z", "defaultAsset": "", "defaultCurrency": "", "id": "", "raw": null, "reference": ""}} + default: + application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} + getServerInfo_payments: + speakeasy-default-get-server-info-payments: + responses: + "200": + application/json: {} + default: + application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} + listAccounts_payments: + speakeasy-default-list-accounts-payments: + parameters: + query: + pageSize: 100 + cursor: "aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==" + sort: ["date:asc", "status:desc"] + responses: + "200": + application/json: {"cursor": {"data": [], "hasMore": false, "next": "", "pageSize": 15, "previous": "YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol="}} + default: + application/json: {"errorCode": "VALIDATION", "errorMessage": "[VALIDATION] missing reference"} + getServerInfo_reconciliation: + speakeasy-default-get-server-info-reconciliation: + responses: + "200": + application/json: {"version": ""} + default: + application/json: {"errorCode": "VALIDATION", "errorMessage": ""} + getServerInfo_search: + speakeasy-default-get-server-info-search: + responses: + "200": + application/json: {"version": ""} + getServerInfo_wallets: + speakeasy-default-get-server-info-wallets: + responses: + "200": + application/json: {"version": ""} + default: + application/json: {"errorCode": "VALIDATION", "errorMessage": ""} examplesVersion: 1.0.2 generatedTests: {} -releaseNotes: "## Java SDK Changes:\n* `sdk.ledger.v2.listAccounts()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `response.resource` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createTransaction()`: \n * `request` **Changed**\n * `response.data.template` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.listClients()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.readClient()`: `response.data` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.updateClient()`: \n * `request.createClientRequest.metadata.Map` **Changed** (Breaking ⚠️)\n * `response.data` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPools()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `response.cursor.data[]` **Changed**\n* `sdk.payments.v3.listPayments()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentServiceUsers()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentInitiations()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentInitiationRelatedPayments()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentInitiationAdjustments()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listConnectors()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listConnectorSchedules()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listBankAccounts()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v3.listAccounts()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `response.cursor.data[].connector` **Added**\n* `sdk.payments.v3.getConnectorConfig()`: `response.data` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.paymentslistAccounts()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n* `sdk.payments.v1.listTransferInitiations()`: `response.cursor.data[].relatedPayments[].status` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getTransferInitiation()`: `response.data.relatedPayments[].status` **Changed** (Breaking ⚠️)\n* `sdk.ledger.getInfo()`: \n * `response.errorCode` **Changed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.getMetrics()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.addMetadataOnTransaction()`: \n * `request.schemaVersion` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.addMetadataToAccount()`: \n * `request.schemaVersion` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.countAccounts()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.countTransactions()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listLedgers()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.cursor.data[].deletedAt` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createExporter()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createLedger()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createPipeline()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listExporters()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteAccountMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteExporter()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteLedgerMetadata()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deletePipeline()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteTransactionMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getAccount()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getBalancesAggregated()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getExporterState()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getLedger()`: \n * `response.data.deletedAt` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getLedgerInfo()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getPipelineState()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getTransaction()`: \n * `response.data.template` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getVolumesWithBalances()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `response.resource` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.importLogs()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.createSecret()`: \n * `request.createSecretRequest.metadata.Map` **Changed** (Breaking ⚠️)\n * `response.data.metadata.Map` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.createClient()`: \n * `request.metadata.Map` **Changed** (Breaking ⚠️)\n * `response.data` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createBulk()`: \n * `request` **Changed**\n * `response` **Changed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listLogs()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listPipelines()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listTransactions()`: \n * `request.requestBody` **Removed** (Breaking ⚠️)\n * `response` **Changed**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.readStats()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.resetPipeline()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.revertTransaction()`: \n * `request` **Changed**\n * `response.data.template` **Added**\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.startPipeline()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.stopPipeline()`: `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.updateLedgerMetadata()`: \n * `response.errorCode` **Changed** (Breaking ⚠️)\n * `errorCode` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getPoolBalancesLatest()`: `response.data` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.createTransferInitiation()`: `response.data.relatedPayments[].status` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPool()`: `response.data` **Changed**\n* `sdk.payments.v3.getAccount()`: `response.data.connector` **Added**\n* `sdk.payments.v3.updatePoolQuery()`: **Added**\n* `sdk.payments.v1.createPool()`: \n * `request` **Changed**\n * `response.data` **Changed**\n* `sdk.payments.v3.listPaymentServiceUserConnectionsFromConnectorId()`: **Added**\n* `sdk.payments.v1.getPool()`: `response.data` **Changed**\n* `sdk.payments.v1.getPoolBalances()`: `response.data.balances[].relatedAccounts` **Added**\n* `sdk.payments.v3.deletePaymentServiceUserConnectionFromConnectorId()`: **Added**\n* `sdk.payments.v3.getPaymentServiceUserLinkAttemptFromConnectorId()`: **Added**\n* `sdk.payments.v1.listPools()`: `response.cursor.data[]` **Changed**\n* `sdk.payments.v3.forwardPaymentServiceUserToProvider()`: **Added**\n* `sdk.payments.v3.deletePaymentServiceUserConnector()`: **Added**\n* `sdk.payments.v3.createAccount()`: `response.data.connector` **Added**\n* `sdk.payments.v3.listPaymentServiceUserLinkAttemptsFromConnectorId()`: **Added**\n* `sdk.payments.v3.updateLinkForPaymentServiceUserOnConnector()`: **Added**\n* `sdk.payments.v3.createPool()`: `request` **Changed**\n* `sdk.payments.v3.getPoolBalancesLatest()`: `response.data[].relatedAccounts` **Added**\n* `sdk.payments.v3.getPoolBalances()`: `response.data[].relatedAccounts` **Added**\n* `sdk.payments.v3.listPaymentServiceUserConnections()`: **Added**\n* `sdk.payments.v3.installConnector()`: \n * `request.v3InstallConnectorRequest` **Changed**\n* `sdk.payments.v3.deletePaymentServiceUser()`: **Added**\n* `sdk.payments.v3.createLinkForPaymentServiceUser()`: **Added**\n* `sdk.payments.v1.updatePoolQuery()`: **Added**\n* `sdk.ledger.v2.updateExporter()`: **Added**\n* `sdk.ledger.v2.runQuery()`: **Added**\n* `sdk.ledger.v2.restoreBucket()`: **Added**\n* `sdk.ledger.v2.listSchemas()`: **Added**\n* `sdk.ledger.v2.insertSchema()`: **Added**\n* `sdk.ledger.v2.getSchema()`: **Added**\n* `sdk.ledger.v2.deleteBucket()`: **Added**\n* `sdk.payments.v3.v3UpdateConnectorConfig()`: \n * `request.v3InstallConnectorRequest` **Changed**\n" +releaseNotes: "## Java SDK Changes:\n* `sdk.payments.v1.getConnectorTask()`: \n * `response.data` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.creditWallet()`: \n * `request.creditWalletRequest` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.createClient()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.readClient()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.readUser()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.updateConfig()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.testConfig()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.insertConfig()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.getManyConfigs()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.deleteConfig()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.deactivateConfig()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.changeConfigSecret()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.webhooks.v1.activateConfig()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.listWallets()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.listBalances()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.getWalletSummary()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.getWallet()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.getTransactions()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.getHolds()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.getHold()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.updateClient()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `sdk.ledger.getInfo()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.getMetrics()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.createTransactions()`: \n * `request.transactions.transactions[]` **Changed** (Breaking ⚠️)\n * `response.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.addMetadataOnTransaction()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.addMetadataToAccount()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.countAccounts()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.countTransactions()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.createTransaction()`: \n * `request.postTransaction` **Changed** (Breaking ⚠️)\n * `response.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.getBalances()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.getBalancesAggregated()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.getInfo()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.getLedgerInfo()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.getMapping()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.getTransaction()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.listLogs()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.listTransactions()`: \n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.readStats()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.revertTransaction()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.runScript()`: \n * `request.script` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v1.updateMapping()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.addMetadataOnTransaction()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.addMetadataToAccount()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.countAccounts()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.countTransactions()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createBulk()`: \n * `request.requestBody[]` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createExporter()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createLedger()`: \n * `request.v2CreateLedgerRequest` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createPipeline()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.createTransaction()`: \n * `request.v2PostTransaction` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteAccountMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteBucket()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteExporter()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteLedgerMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deletePipeline()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.deleteTransactionMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getAccount()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getBalancesAggregated()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getExporterState()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getLedger()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getLedgerInfo()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getPipelineState()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getSchema()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getTransaction()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.getVolumesWithBalances()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.importLogs()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.insertSchema()`: \n * `request.v2SchemaData` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listAccounts()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listExporters()`: \n * `response.cursor` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listLedgers()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listLogs()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `response.cursor.data[].data` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listPipelines()`: \n * `response.cursor` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listSchemas()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.listTransactions()`: \n * `request.requestBody` **Added** (Breaking ⚠️)\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.readStats()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.resetPipeline()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.restoreBucket()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.revertTransaction()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.runQuery()`: \n * `request.requestBody` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.startPipeline()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.stopPipeline()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.updateExporter()`: \n * `request` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.ledger.v2.updateLedgerMetadata()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.createTrigger()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.createWorkflow()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.getInstance()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.getInstanceHistory()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.getInstanceStageHistory()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.getWorkflow()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.listInstances()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.listTriggersOccurrences()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.listWorkflows()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.readTrigger()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v1.runWorkflow()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.createTrigger()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.createWorkflow()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.getInstance()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.getInstanceHistory()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.getInstanceStageHistory()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.getWorkflow()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.listInstances()`: `response.cursor.data[]` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.listTriggersOccurrences()`: `response.cursor.data[]` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.listWorkflows()`: `response.cursor.data[]` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.readTrigger()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.runWorkflow()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.orchestration.v2.testTrigger()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.addAccountToPool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.connectorsTransfer()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.createAccount()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.createBankAccount()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.createPayment()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.createPool()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.createTransferInitiation()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.deletePool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.deleteTransferInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.forwardBankAccount()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getAccountBalances()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getBankAccount()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.listClients()`: `response.data[]` **Changed** (Breaking ⚠️)\n* `sdk.auth.v1.createSecret()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.readConnectorConfig()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getPool()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getPoolBalances()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getPoolBalancesLatest()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getTransferInitiation()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.installConnector()`: \n * `request.connectorConfig` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listAllConnectors()`: \n * `response.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listBankAccounts()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listConfigsAvailableConnectors()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listConnectorTasks()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listConnectorTasksV1()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listPayments()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listPools()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.listTransferInitiations()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getPayment()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.readConnectorConfigV1()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.removeAccountFromPool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.resetConnector()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.resetConnectorV1()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.retryTransferInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.reverseTransferInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.uninstallConnector()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.uninstallConnectorV1()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.updateBankAccountMetadata()`: \n * `request.updateBankAccountMetadataRequest` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.updateConnectorConfigV1()`: \n * `request.connectorConfig` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.updateMetadata()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.updatePoolQuery()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.updateTransferInitiationStatus()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.addAccountToPool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.addBankAccountToPaymentServiceUser()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.approvePaymentInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.createAccount()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.createBankAccount()`: \n * `request` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.createLinkForPaymentServiceUser()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.createPayment()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.createPaymentServiceUser()`: \n * `request` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.createPool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.deletePaymentInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.deletePaymentServiceUser()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.deletePaymentServiceUserConnectionFromConnectorId()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.deletePaymentServiceUserConnector()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.deletePool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.forwardBankAccount()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.forwardPaymentServiceUserBankAccount()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.forwardPaymentServiceUserToProvider()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getAccount()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getAccountBalances()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getBankAccount()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getConnectorConfig()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getConnectorSchedule()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPayment()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPaymentInitiation()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPaymentServiceUser()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPaymentServiceUserLinkAttemptFromConnectorId()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPool()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPoolBalances()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getPoolBalancesLatest()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.getTask()`: \n * `response` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.initiatePayment()`: \n * `request.v3InitiatePaymentRequest` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.installConnector()`: \n * `request` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listAccounts()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listBankAccounts()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listConnectorConfigs()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listConnectorScheduleInstances()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listConnectorSchedules()`: \n * `request.requestBody` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listConnectors()`: \n * `request.requestBody` **Added**\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentInitiationAdjustments()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentInitiationRelatedPayments()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentInitiations()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentServiceUserConnections()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentServiceUserConnectionsFromConnectorId()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentServiceUserLinkAttemptsFromConnectorId()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPaymentServiceUsers()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPayments()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.listPools()`: \n * `request.requestBody` **Added**\n * `response.cursor.data[]` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.rejectPaymentInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.removeAccountFromPool()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.resetConnector()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.retryPaymentInitiation()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.reversePaymentInitiation()`: \n * `request.v3ReversePaymentInitiationRequest` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.uninstallConnector()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.updateBankAccountMetadata()`: \n * `request.v3UpdateBankAccountMetadataRequest` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.updateLinkForPaymentServiceUserOnConnector()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.updatePaymentMetadata()`: \n * `request.v3UpdatePaymentMetadataRequest` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.updatePoolQuery()`: `error` **Changed** (Breaking ⚠️)\n* `sdk.payments.v3.v3UpdateConnectorConfig()`: \n * `request` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.reconciliation.v1.createPolicy()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.reconciliation.v1.getPolicy()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.reconciliation.v1.getReconciliation()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.getBalance()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.debitWallet()`: \n * `request.debitWalletRequest` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.getConnectorTaskV1()`: \n * `response.data` **Changed** (Breaking ⚠️)\n * `error` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.createWallet()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.wallets.v1.createBalance()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `sdk.reconciliation.v1.reconcile()`: `response` **Changed** (Breaking ⚠️)\n* `sdk.payments.v1.paymentsgetAccount()`: **Removed** (Breaking ⚠️)\n* `sdk.payments.v1.paymentsgetServerInfo()`: **Removed** (Breaking ⚠️)\n* `sdk.wallets.v1.walletsgetServerInfo()`: **Removed** (Breaking ⚠️)\n* `sdk.search.v1.searchgetServerInfo()`: **Removed** (Breaking ⚠️)\n* `sdk.reconciliation.v1.reconciliationgetServerInfo()`: **Removed** (Breaking ⚠️)\n* `sdk.payments.v1.paymentslistAccounts()`: **Removed** (Breaking ⚠️)\n* `sdk.auth.v1.getServerInfo()`: **Removed** (Breaking ⚠️)\n* `sdk.ledger.v1.getAccount()`: **Removed** (Breaking ⚠️)\n* `sdk.orchestration.v1.orchestrationgetServerInfo()`: **Removed** (Breaking ⚠️)\n* `sdk.wallets.v1.getServerInfoWallets()`: **Added**\n* `sdk.reconciliation.v1.listPolicies()`: \n * `request.requestBody` **Added**\n* `sdk.ledger.v1.listAccounts()`: **Removed** (Breaking ⚠️)\n* `sdk.reconciliation.v1.listReconciliations()`: \n * `request.requestBody` **Added**\n* `sdk.search.v1.getServerInfoSearch()`: **Added**\n* `sdk.reconciliation.v1.getServerInfoReconciliation()`: **Added**\n* `sdk.payments.v1.listAccountsPayments()`: **Added**\n* `sdk.payments.v1.getServerInfoPayments()`: **Added**\n* `sdk.payments.v1.getAccountPayments()`: **Added**\n* `sdk.orchestration.v1.getServerInfoOrchestration()`: **Added**\n* `sdk.ledger.v1.listAccountsLedger()`: **Added**\n* `sdk.ledger.v1.getAccountLedger()`: **Added**\n* `sdk.auth.v1.getServerInfoAuth()`: **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 60c60b5a9..ee9cbf877 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,4 +1,4 @@ -speakeasyVersion: 1.755.1 +speakeasyVersion: 1.759.3 sources: my-source: sourceNamespace: my-source @@ -9,25 +9,25 @@ sources: - speakeasy-sdk-regen-1732202901 stacks-source: sourceNamespace: stacks-source - sourceRevisionDigest: sha256:5f3efcd6d57a3d10c6117dc8652e196b181e1535d33294062cfb5f997c8abff0 - sourceBlobDigest: sha256:9e907dbdf2d4f42763a7a8d9e384a155be7a9443e612fa924108231587f827ad + sourceRevisionDigest: sha256:cbe386daae9f188190ef706592b7d8f47d08842b64db2b7425a5f26192c3b80d + sourceBlobDigest: sha256:43596c6d78adb93167d2c34236981efe1f1ed199738110e3e2e9f2b194128db5 tags: - latest targets: Java: source: stacks-source sourceNamespace: stacks-source - sourceRevisionDigest: sha256:5f3efcd6d57a3d10c6117dc8652e196b181e1535d33294062cfb5f997c8abff0 - sourceBlobDigest: sha256:9e907dbdf2d4f42763a7a8d9e384a155be7a9443e612fa924108231587f827ad + sourceRevisionDigest: sha256:cbe386daae9f188190ef706592b7d8f47d08842b64db2b7425a5f26192c3b80d + sourceBlobDigest: sha256:43596c6d78adb93167d2c34236981efe1f1ed199738110e3e2e9f2b194128db5 codeSamplesNamespace: stacks-source-java-code-samples - codeSamplesRevisionDigest: sha256:695f5e62c3b46678cc764be9b105f70cb0f741fe3a604fe2c6e995780dd0b3f2 + codeSamplesRevisionDigest: sha256:f9bbbaae0529aaa523eb923cdead047da50048d94e0bde3289302c51d1427081 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest sources: stacks-source: inputs: - - location: registry.speakeasyapi.dev/formance/formance/stacks-source@latest + - location: registry.speakeasyapi.dev/formance/formance/stacks-source@LATEST_RELEASE registry: location: registry.speakeasyapi.dev/formance/formance/stacks-source targets: diff --git a/README.md b/README.md index 483942726..655101d72 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,6 @@ and standard method from web, mobile and desktop applications. * [SDK Installation](#sdk-installation) * [SDK Example Usage](#sdk-example-usage) * [Available Resources and Operations](#available-resources-and-operations) - * [Server Selection](#server-selection) * [Error Handling](#error-handling) * [Authentication](#authentication-1) * [Custom HTTP Client](#custom-http-client) @@ -55,7 +54,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.formance:formance-sdk:8.0.0' +implementation 'com.formance:formance-sdk:8.1.0' ``` Maven: @@ -63,7 +62,7 @@ Maven: com.formance formance-sdk - 8.0.0 + 8.1.0 ``` @@ -138,7 +137,7 @@ For full model-specific examples (including Java 11/16/21 variants), see each un * [deleteClient](docs/sdks/authv1/README.md#deleteclient) - Delete client * [deleteSecret](docs/sdks/authv1/README.md#deletesecret) - Delete a secret from a client * [getOIDCWellKnowns](docs/sdks/authv1/README.md#getoidcwellknowns) - Retrieve OpenID connect well-knowns. -* [getServerInfo](docs/sdks/authv1/README.md#getserverinfo) - Get server info +* [getServerInfoAuth](docs/sdks/authv1/README.md#getserverinfoauth) - Get server info * [listClients](docs/sdks/authv1/README.md#listclients) - List clients * [listUsers](docs/sdks/authv1/README.md#listusers) - List users * [readClient](docs/sdks/authv1/README.md#readclient) - Read client @@ -158,14 +157,14 @@ For full model-specific examples (including Java 11/16/21 variants), see each un * [countAccounts](docs/sdks/ledgerv1/README.md#countaccounts) - Count the accounts from a ledger * [countTransactions](docs/sdks/ledgerv1/README.md#counttransactions) - Count the transactions from a ledger * [createTransaction](docs/sdks/ledgerv1/README.md#createtransaction) - Create a new transaction to a ledger -* [getAccount](docs/sdks/ledgerv1/README.md#getaccount) - Get account by its address +* [getAccountLedger](docs/sdks/ledgerv1/README.md#getaccountledger) - Get account by its address * [getBalances](docs/sdks/ledgerv1/README.md#getbalances) - Get the balances from a ledger's account * [getBalancesAggregated](docs/sdks/ledgerv1/README.md#getbalancesaggregated) - Get the aggregated balances from selected accounts * [getInfo](docs/sdks/ledgerv1/README.md#getinfo) - Show server information * [getLedgerInfo](docs/sdks/ledgerv1/README.md#getledgerinfo) - Get information about a ledger * [getMapping](docs/sdks/ledgerv1/README.md#getmapping) - Get the mapping of a ledger * [getTransaction](docs/sdks/ledgerv1/README.md#gettransaction) - Get transaction from a ledger by its ID -* [listAccounts](docs/sdks/ledgerv1/README.md#listaccounts) - List accounts from a ledger +* [listAccountsLedger](docs/sdks/ledgerv1/README.md#listaccountsledger) - List accounts from a ledger * [listLogs](docs/sdks/ledgerv1/README.md#listlogs) - List the logs from a ledger * [listTransactions](docs/sdks/ledgerv1/README.md#listtransactions) - List transactions from a ledger * [readStats](docs/sdks/ledgerv1/README.md#readstats) - Get statistics from a ledger @@ -229,12 +228,12 @@ For full model-specific examples (including Java 11/16/21 variants), see each un * [getInstance](docs/sdks/orchestrationv1/README.md#getinstance) - Get a workflow instance by id * [getInstanceHistory](docs/sdks/orchestrationv1/README.md#getinstancehistory) - Get a workflow instance history by id * [getInstanceStageHistory](docs/sdks/orchestrationv1/README.md#getinstancestagehistory) - Get a workflow instance stage history +* [getServerInfoOrchestration](docs/sdks/orchestrationv1/README.md#getserverinfoorchestration) - Get server info * [getWorkflow](docs/sdks/orchestrationv1/README.md#getworkflow) - Get a flow by id * [listInstances](docs/sdks/orchestrationv1/README.md#listinstances) - List instances of a workflow * [listTriggers](docs/sdks/orchestrationv1/README.md#listtriggers) - List triggers * [listTriggersOccurrences](docs/sdks/orchestrationv1/README.md#listtriggersoccurrences) - List triggers occurrences * [listWorkflows](docs/sdks/orchestrationv1/README.md#listworkflows) - List registered workflows -* [orchestrationgetServerInfo](docs/sdks/orchestrationv1/README.md#orchestrationgetserverinfo) - Get server info * [readTrigger](docs/sdks/orchestrationv1/README.md#readtrigger) - Read trigger * [runWorkflow](docs/sdks/orchestrationv1/README.md#runworkflow) - Run workflow * [sendEvent](docs/sdks/orchestrationv1/README.md#sendevent) - Send an event to a running workflow @@ -273,6 +272,7 @@ For full model-specific examples (including Java 11/16/21 variants), see each un * [deleteTransferInitiation](docs/sdks/paymentsv1/README.md#deletetransferinitiation) - Delete a transfer initiation * [forwardBankAccount](docs/sdks/paymentsv1/README.md#forwardbankaccount) - Forward a bank account to a connector * [getAccountBalances](docs/sdks/paymentsv1/README.md#getaccountbalances) - Get account balances +* [getAccountPayments](docs/sdks/paymentsv1/README.md#getaccountpayments) - Get an account * [getBankAccount](docs/sdks/paymentsv1/README.md#getbankaccount) - Get a bank account created by user on Formance * [~~getConnectorTask~~](docs/sdks/paymentsv1/README.md#getconnectortask) - Read a specific task of the connector :warning: **Deprecated** * [getConnectorTaskV1](docs/sdks/paymentsv1/README.md#getconnectortaskv1) - Read a specific task of the connector @@ -280,8 +280,10 @@ For full model-specific examples (including Java 11/16/21 variants), see each un * [getPool](docs/sdks/paymentsv1/README.md#getpool) - Get a Pool * [getPoolBalances](docs/sdks/paymentsv1/README.md#getpoolbalances) - Get historical pool balances at a particular point in time * [getPoolBalancesLatest](docs/sdks/paymentsv1/README.md#getpoolbalanceslatest) - Get latest pool balances +* [getServerInfoPayments](docs/sdks/paymentsv1/README.md#getserverinfopayments) - Get server info * [getTransferInitiation](docs/sdks/paymentsv1/README.md#gettransferinitiation) - Get a transfer initiation * [installConnector](docs/sdks/paymentsv1/README.md#installconnector) - Install a connector +* [listAccountsPayments](docs/sdks/paymentsv1/README.md#listaccountspayments) - List accounts * [listAllConnectors](docs/sdks/paymentsv1/README.md#listallconnectors) - List all installed connectors * [listBankAccounts](docs/sdks/paymentsv1/README.md#listbankaccounts) - List bank accounts created by user on Formance * [listConfigsAvailableConnectors](docs/sdks/paymentsv1/README.md#listconfigsavailableconnectors) - List the configs of each available connector @@ -290,9 +292,6 @@ For full model-specific examples (including Java 11/16/21 variants), see each un * [listPayments](docs/sdks/paymentsv1/README.md#listpayments) - List payments * [listPools](docs/sdks/paymentsv1/README.md#listpools) - List Pools * [listTransferInitiations](docs/sdks/paymentsv1/README.md#listtransferinitiations) - List Transfer Initiations -* [paymentsgetAccount](docs/sdks/paymentsv1/README.md#paymentsgetaccount) - Get an account -* [paymentsgetServerInfo](docs/sdks/paymentsv1/README.md#paymentsgetserverinfo) - Get server info -* [paymentslistAccounts](docs/sdks/paymentsv1/README.md#paymentslistaccounts) - List accounts * [~~readConnectorConfig~~](docs/sdks/paymentsv1/README.md#readconnectorconfig) - Read the config of a connector :warning: **Deprecated** * [readConnectorConfigV1](docs/sdks/paymentsv1/README.md#readconnectorconfigv1) - Read the config of a connector * [removeAccountFromPool](docs/sdks/paymentsv1/README.md#removeaccountfrompool) - Remove an account from a pool @@ -380,15 +379,15 @@ Allows to check if users used the link and completed the oauth flow. * [deletePolicy](docs/sdks/reconciliationv1/README.md#deletepolicy) - Delete a policy * [getPolicy](docs/sdks/reconciliationv1/README.md#getpolicy) - Get a policy * [getReconciliation](docs/sdks/reconciliationv1/README.md#getreconciliation) - Get a reconciliation +* [getServerInfoReconciliation](docs/sdks/reconciliationv1/README.md#getserverinforeconciliation) - Get server info * [listPolicies](docs/sdks/reconciliationv1/README.md#listpolicies) - List policies * [listReconciliations](docs/sdks/reconciliationv1/README.md#listreconciliations) - List reconciliations * [reconcile](docs/sdks/reconciliationv1/README.md#reconcile) - Reconcile using a policy -* [reconciliationgetServerInfo](docs/sdks/reconciliationv1/README.md#reconciliationgetserverinfo) - Get server info ### [~~Search.V1~~](docs/sdks/searchv1/README.md) +* [~~getServerInfoSearch~~](docs/sdks/searchv1/README.md#getserverinfosearch) - Get server info :warning: **Deprecated** * [~~search~~](docs/sdks/searchv1/README.md#search) - search.v1 :warning: **Deprecated** -* [~~searchgetServerInfo~~](docs/sdks/searchv1/README.md#searchgetserverinfo) - Get server info :warning: **Deprecated** ### [Wallets.V1](docs/sdks/walletsv1/README.md) @@ -400,6 +399,7 @@ Allows to check if users used the link and completed the oauth flow. * [getBalance](docs/sdks/walletsv1/README.md#getbalance) - Get detailed balance * [getHold](docs/sdks/walletsv1/README.md#gethold) - Get a hold * [getHolds](docs/sdks/walletsv1/README.md#getholds) - Get all holds for a wallet +* [getServerInfoWallets](docs/sdks/walletsv1/README.md#getserverinfowallets) - Get server info * [getTransactions](docs/sdks/walletsv1/README.md#gettransactions) * [getWallet](docs/sdks/walletsv1/README.md#getwallet) - Get a wallet * [getWalletSummary](docs/sdks/walletsv1/README.md#getwalletsummary) - Get wallet summary @@ -407,7 +407,6 @@ Allows to check if users used the link and completed the oauth flow. * [listWallets](docs/sdks/walletsv1/README.md#listwallets) - List all wallets * [updateWallet](docs/sdks/walletsv1/README.md#updatewallet) - Update a wallet * [voidHold](docs/sdks/walletsv1/README.md#voidhold) - Cancel a hold -* [walletsgetServerInfo](docs/sdks/walletsv1/README.md#walletsgetserverinfo) - Get server info ### [Webhooks.V1](docs/sdks/webhooksv1/README.md) @@ -423,84 +422,6 @@ Allows to check if users used the link and completed the oauth flow. - -## Server Selection - -### Select Server by Index - -You can override the default server globally using the `.serverIndex(int serverIdx)` builder method when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: - -| # | Server | Variables | Description | -| --- | ----------------------------------------------------- | -------------------------------- | ------------------------------------------ | -| 0 | `http://localhost` | | local server | -| 1 | `https://{organization}.{environment}.formance.cloud` | `environment`
`organization` | A per-organization and per-environment API | - -If the selected server has variables, you may override its default values using the associated builder method(s): - -| Variable | BuilderMethod | Supported Values | Default | Description | -| -------------- | -------------------------------------------- | -------------------------------------------------------- | ----------------- | ------------------------------------------------------------- | -| `environment` | `environment(ServerEnvironment environment)` | - `"eu.sandbox"`
- `"eu-west-1"`
- `"us-east-1"` | `"eu.sandbox"` | The environment name. Defaults to the production environment. | -| `organization` | `organization(String organization)` | java.lang.String | `"orgID-stackID"` | The organization name. Defaults to a generic organization. | - -#### Example - -```java -package hello.world; - -import com.formance.formance_sdk.SDK.Builder.ServerEnvironment; -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.operations.GetVersionsResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - SDK sdk = SDK.builder() - .serverIndex(1) - .environment(ServerEnvironment.US_EAST1) - .organization("") - .build(); - - GetVersionsResponse res = sdk.getVersions() - .call(); - - if (res.getVersionsResponse().isPresent()) { - System.out.println(res.getVersionsResponse().get()); - } - } -} -``` - -### Override Server URL Per-Client - -The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example: -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.operations.GetVersionsResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - SDK sdk = SDK.builder() - .serverURL("https://orgID-stackID.eu.sandbox.formance.cloud") - .build(); - - GetVersionsResponse res = sdk.getVersions() - .call(); - - if (res.getVersionsResponse().isPresent()) { - System.out.println(res.getVersionsResponse().get()); - } - } -} -``` - - ## Error Handling @@ -524,10 +445,10 @@ package hello.world; import com.formance.formance_sdk.SDK; import com.formance.formance_sdk.models.errors.SDKBaseError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorsEnum; import com.formance.formance_sdk.models.operations.V2GetInfoResponse; import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.V2ErrorsEnum; import java.io.UncheckedIOException; import java.lang.Exception; import java.lang.String; @@ -535,7 +456,7 @@ import java.util.Optional; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -548,8 +469,8 @@ public class Application { V2GetInfoResponse res = sdk.ledger().getInfo() .call(); - if (res.v2ConfigInfoResponse().isPresent()) { - System.out.println(res.v2ConfigInfoResponse().get()); + if (res.v2ConfigInfo().isPresent()) { + System.out.println(res.v2ConfigInfo().get()); } } catch (SDKBaseError ex) { // all SDK exceptions inherit from SDKBaseError @@ -566,12 +487,12 @@ public class Application { // different error subclasses may be thrown // depending on the service call - if (ex instanceof V2ErrorResponse) { - var e = (V2ErrorResponse) ex; + if (ex instanceof ErrorsV2ErrorResponse) { + var e = (ErrorsV2ErrorResponse) ex; // Check error data fields e.data().ifPresent(payload -> { + V2ErrorsEnum v2ErrorsEnum = payload.v2ErrorsEnum(); Optional details = payload.details(); - V2ErrorsEnum errorCode = payload.errorCode(); // ... }); } @@ -592,7 +513,7 @@ public class Application { **Primary error:** * [`SDKBaseError`](./src/main/java/models/errors/SDKBaseError.java): The base class for HTTP error responses. -
Less common errors (15) +
Less common errors (13)
@@ -602,15 +523,13 @@ public class Application { many more subclasses in the JDK platform). **Inherit from [`SDKBaseError`](./src/main/java/models/errors/SDKBaseError.java)**: -* [`com.formance.formance_sdk.models.errors.V3ErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.V3ErrorResponse.java): Error. Applicable to 57 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.PaymentsErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.PaymentsErrorResponse.java): Error. Applicable to 46 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.V2ErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.V2ErrorResponse.java): Applicable to 44 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.ErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.ErrorResponse.java): Applicable to 19 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.V2Error`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.V2Error.java): General error. Applicable to 18 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.Error`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.Error.java): General error. Applicable to 17 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.WalletsErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.WalletsErrorResponse.java): Applicable to 15 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.ReconciliationErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.ReconciliationErrorResponse.java): Error response. Applicable to 8 of 249 methods.* -* [`com.formance.formance_sdk.models.errors.WebhooksErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.errors.WebhooksErrorResponse.java): Error. Applicable to 8 of 249 methods.* +* [`com.formance.formance_sdk.models.payments.V3ErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.payments.V3ErrorResponse.java): Error. Applicable to 57 of 249 methods.* +* [`com.formance.formance_sdk.models.payments.PaymentsErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.payments.PaymentsErrorResponse.java): Error. Applicable to 46 of 249 methods.* +* [`com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse.java): Applicable to 44 of 249 methods.* +* [`com.formance.formance_sdk.models.reconciliation.ErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.reconciliation.ErrorResponse.java): Applicable to 31 of 249 methods.* +* [`com.formance.formance_sdk.models.ledger.ErrorsErrorResponse`](./src/main/java/models/errors/com.formance.formance_sdk.models.ledger.ErrorsErrorResponse.java): Applicable to 19 of 249 methods.* +* [`com.formance.formance_sdk.models.orchestration.V2Error`](./src/main/java/models/errors/com.formance.formance_sdk.models.orchestration.V2Error.java): General error. Applicable to 18 of 249 methods.* +* [`com.formance.formance_sdk.models.orchestration.Error`](./src/main/java/models/errors/com.formance.formance_sdk.models.orchestration.Error.java): General error. Applicable to 17 of 249 methods.*
diff --git a/RELEASES.md b/RELEASES.md index c5d879f4b..9094ef84a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -329,4 +329,14 @@ Based on: ### Generated - [java v8.0.0] . ### Releases -- [Maven Central v8.0.0] https://central.sonatype.com/artifact/com.formance/formance-sdk/8.0.0 - . \ No newline at end of file +- [Maven Central v8.0.0] https://central.sonatype.com/artifact/com.formance/formance-sdk/8.0.0 - . + +## 2026-03-29 00:13:34 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.759.3 (2.869.25) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v8.1.0] . +### Releases +- [Maven Central v8.1.0] https://central.sonatype.com/artifact/com.formance/formance-sdk/8.1.0 - . \ No newline at end of file diff --git a/docs/models/auth/ClientOptions1.md b/docs/models/auth/ClientOptions1.md new file mode 100644 index 000000000..c85001b65 --- /dev/null +++ b/docs/models/auth/ClientOptions1.md @@ -0,0 +1,17 @@ +# ClientOptions1 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `metadata` | Map\ | :heavy_minus_sign: | N/A | +| `description` | *Optional\* | :heavy_minus_sign: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| `postLogoutRedirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | +| `public_` | *Optional\* | :heavy_minus_sign: | N/A | +| `redirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | +| `scopes` | List\<*String*> | :heavy_minus_sign: | N/A | +| `secrets` | List\<[ClientSecret](../../models/shared/ClientSecret.md)> | :heavy_minus_sign: | N/A | +| `trusted` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/auth/ClientOptions2.md b/docs/models/auth/ClientOptions2.md new file mode 100644 index 000000000..4b92f0b45 --- /dev/null +++ b/docs/models/auth/ClientOptions2.md @@ -0,0 +1,15 @@ +# ClientOptions2 + + +## Fields + +| Field | Type | Required | Description | +| ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `metadata` | Map\ | :heavy_minus_sign: | N/A | +| `description` | *Optional\* | :heavy_minus_sign: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| `postLogoutRedirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | +| `public_` | *Optional\* | :heavy_minus_sign: | N/A | +| `redirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | +| `scopes` | List\<*String*> | :heavy_minus_sign: | N/A | +| `trusted` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ClientSecret.md b/docs/models/auth/ClientSecret.md similarity index 100% rename from docs/models/shared/ClientSecret.md rename to docs/models/auth/ClientSecret.md index 3b8cbc214..e0e062c71 100644 --- a/docs/models/shared/ClientSecret.md +++ b/docs/models/auth/ClientSecret.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `lastDigits` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/auth/CreateClientResponse.md b/docs/models/auth/CreateClientResponse.md new file mode 100644 index 000000000..e0892aecf --- /dev/null +++ b/docs/models/auth/CreateClientResponse.md @@ -0,0 +1,8 @@ +# CreateClientResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `clientOptions` | [Optional\](../../models/shared/ClientOptions1.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/auth/CreateSecretResponse.md b/docs/models/auth/CreateSecretResponse.md new file mode 100644 index 000000000..501d39b23 --- /dev/null +++ b/docs/models/auth/CreateSecretResponse.md @@ -0,0 +1,8 @@ +# CreateSecretResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `secretOptions` | [Optional\](../../models/shared/SecretOptions2.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/auth/ListClientsResponse.md b/docs/models/auth/ListClientsResponse.md new file mode 100644 index 000000000..5460ed785 --- /dev/null +++ b/docs/models/auth/ListClientsResponse.md @@ -0,0 +1,8 @@ +# ListClientsResponse + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `data` | List\<[ClientOptions1](../../models/shared/ClientOptions1.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ListUsersResponse.md b/docs/models/auth/ListUsersResponse.md similarity index 100% rename from docs/models/shared/ListUsersResponse.md rename to docs/models/auth/ListUsersResponse.md diff --git a/docs/models/auth/ReadClientResponse.md b/docs/models/auth/ReadClientResponse.md new file mode 100644 index 000000000..e02b0e8da --- /dev/null +++ b/docs/models/auth/ReadClientResponse.md @@ -0,0 +1,8 @@ +# ReadClientResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `clientOptions` | [Optional\](../../models/shared/ClientOptions1.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ReadUserResponse.md b/docs/models/auth/ReadUserResponse.md similarity index 89% rename from docs/models/shared/ReadUserResponse.md rename to docs/models/auth/ReadUserResponse.md index 5407855b5..5e974a3e9 100644 --- a/docs/models/shared/ReadUserResponse.md +++ b/docs/models/auth/ReadUserResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `data` | [Optional\](../../models/shared/User.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `user` | [Optional\](../../models/shared/User.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/auth/SecretOptions1.md b/docs/models/auth/SecretOptions1.md new file mode 100644 index 000000000..5c34236e9 --- /dev/null +++ b/docs/models/auth/SecretOptions1.md @@ -0,0 +1,9 @@ +# SecretOptions1 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `metadata` | Map\ | :heavy_minus_sign: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/auth/SecretOptions2.md b/docs/models/auth/SecretOptions2.md new file mode 100644 index 000000000..a521d9352 --- /dev/null +++ b/docs/models/auth/SecretOptions2.md @@ -0,0 +1,12 @@ +# SecretOptions2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `metadata` | Map\ | :heavy_minus_sign: | N/A | +| `clear` | *String* | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `lastDigits` | *String* | :heavy_check_mark: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ServerInfo.md b/docs/models/auth/ServerInfo.md similarity index 100% rename from docs/models/shared/ServerInfo.md rename to docs/models/auth/ServerInfo.md diff --git a/docs/models/shared/User.md b/docs/models/auth/User.md similarity index 100% rename from docs/models/shared/User.md rename to docs/models/auth/User.md diff --git a/docs/models/errors/ErrorResponse.md b/docs/models/errors/ErrorResponse.md deleted file mode 100644 index 292197fab..000000000 --- a/docs/models/errors/ErrorResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# ErrorResponse - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | -| `errorCode` | [ErrorsEnum](../../models/shared/ErrorsEnum.md) | :heavy_check_mark: | N/A | INSUFFICIENT_FUND | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | [INSUFFICIENT_FUND] account had insufficient funds | \ No newline at end of file diff --git a/docs/models/errors/ReconciliationErrorResponse.md b/docs/models/errors/ReconciliationErrorResponse.md deleted file mode 100644 index 80688664b..000000000 --- a/docs/models/errors/ReconciliationErrorResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ReconciliationErrorResponse - -Error response - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | -| `details` | *Optional\* | :heavy_minus_sign: | N/A | | -| `errorCode` | *String* | :heavy_check_mark: | N/A | VALIDATION | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/errors/V2ErrorResponse.md b/docs/models/errors/V2ErrorResponse.md deleted file mode 100644 index bb36b2288..000000000 --- a/docs/models/errors/V2ErrorResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2ErrorResponse - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | -| `errorCode` | [V2ErrorsEnum](../../models/shared/V2ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/errors/WalletsErrorResponse.md b/docs/models/errors/WalletsErrorResponse.md deleted file mode 100644 index 47ca1aec0..000000000 --- a/docs/models/errors/WalletsErrorResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# WalletsErrorResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `errorCode` | [WalletsErrorResponseErrorCode](../../models/errors/WalletsErrorResponseErrorCode.md) | :heavy_check_mark: | N/A | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/WalletsErrorResponseErrorCode.md b/docs/models/errors/WalletsErrorResponseErrorCode.md deleted file mode 100644 index 167a4c9ed..000000000 --- a/docs/models/errors/WalletsErrorResponseErrorCode.md +++ /dev/null @@ -1,19 +0,0 @@ -# WalletsErrorResponseErrorCode - -## Example Usage - -```java -import com.formance.formance_sdk.models.errors.WalletsErrorResponseErrorCode; - -WalletsErrorResponseErrorCode value = WalletsErrorResponseErrorCode.VALIDATION; -``` - - -## Values - -| Name | Value | -| ------------------- | ------------------- | -| `VALIDATION` | VALIDATION | -| `INTERNAL_ERROR` | INTERNAL_ERROR | -| `INSUFFICIENT_FUND` | INSUFFICIENT_FUND | -| `HOLD_CLOSED` | HOLD_CLOSED | \ No newline at end of file diff --git a/docs/models/errors/WebhooksErrorResponse.md b/docs/models/errors/WebhooksErrorResponse.md deleted file mode 100644 index a3ff115ec..000000000 --- a/docs/models/errors/WebhooksErrorResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# WebhooksErrorResponse - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | -| `errorCode` | [WebhooksErrorsEnum](../../models/shared/WebhooksErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/shared/GetVersionsResponse.md b/docs/models/gateway/GetVersionsResponse.md similarity index 100% rename from docs/models/shared/GetVersionsResponse.md rename to docs/models/gateway/GetVersionsResponse.md diff --git a/docs/models/shared/Version.md b/docs/models/gateway/Version.md similarity index 100% rename from docs/models/shared/Version.md rename to docs/models/gateway/Version.md diff --git a/docs/models/shared/Account.md b/docs/models/ledger/Account.md similarity index 100% rename from docs/models/shared/Account.md rename to docs/models/ledger/Account.md diff --git a/docs/models/ledger/AccountResponse.md b/docs/models/ledger/AccountResponse.md new file mode 100644 index 000000000..da66b64bd --- /dev/null +++ b/docs/models/ledger/AccountResponse.md @@ -0,0 +1,8 @@ +# AccountResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `accountWithVolumesAndBalances` | [AccountWithVolumesAndBalances](../../models/shared/AccountWithVolumesAndBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AccountWithVolumesAndBalances.md b/docs/models/ledger/AccountWithVolumesAndBalances.md similarity index 97% rename from docs/models/shared/AccountWithVolumesAndBalances.md rename to docs/models/ledger/AccountWithVolumesAndBalances.md index d3d4f25ef..b51e3ba9b 100644 --- a/docs/models/shared/AccountWithVolumesAndBalances.md +++ b/docs/models/ledger/AccountWithVolumesAndBalances.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | | `address` | *String* | :heavy_check_mark: | N/A | users:001 | | `balances` | Map\ | :heavy_minus_sign: | N/A | {
"COIN": 100
} | | `metadata` | Map\ | :heavy_minus_sign: | N/A | {
"admin": true,
"a": {
"nested": {
"key": "value"
}
}
} | -| `type` | *Optional\* | :heavy_minus_sign: | N/A | virtual | -| `volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | \ No newline at end of file +| `type` | *Optional\* | :heavy_minus_sign: | N/A | virtual | \ No newline at end of file diff --git a/docs/models/shared/AccountsCursorResponse.md b/docs/models/ledger/AccountsCursorResponse.md similarity index 100% rename from docs/models/shared/AccountsCursorResponse.md rename to docs/models/ledger/AccountsCursorResponse.md diff --git a/docs/models/shared/AccountsCursorResponseCursor.md b/docs/models/ledger/AccountsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/AccountsCursorResponseCursor.md rename to docs/models/ledger/AccountsCursorResponseCursor.md diff --git a/docs/models/shared/AggregateBalancesResponse.md b/docs/models/ledger/AggregateBalancesResponse.md similarity index 86% rename from docs/models/shared/AggregateBalancesResponse.md rename to docs/models/ledger/AggregateBalancesResponse.md index 54e3375a3..160ee1df5 100644 --- a/docs/models/shared/AggregateBalancesResponse.md +++ b/docs/models/ledger/AggregateBalancesResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- | -| `data` | Map\ | :heavy_check_mark: | N/A | {
"USD": 100,
"EUR": 12
} | \ No newline at end of file +| `assetsBalances` | Map\ | :heavy_check_mark: | N/A | {
"USD": 100,
"EUR": 12
} | \ No newline at end of file diff --git a/docs/models/shared/BalancesCursorResponse.md b/docs/models/ledger/BalancesCursorResponse.md similarity index 100% rename from docs/models/shared/BalancesCursorResponse.md rename to docs/models/ledger/BalancesCursorResponse.md diff --git a/docs/models/shared/BalancesCursorResponseCursor.md b/docs/models/ledger/BalancesCursorResponseCursor.md similarity index 100% rename from docs/models/shared/BalancesCursorResponseCursor.md rename to docs/models/ledger/BalancesCursorResponseCursor.md diff --git a/docs/models/ledger/Config.md b/docs/models/ledger/Config.md new file mode 100644 index 000000000..bcc3047fb --- /dev/null +++ b/docs/models/ledger/Config.md @@ -0,0 +1,8 @@ +# Config + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `ledgerStorage` | [LedgerStorage](../../models/shared/LedgerStorage.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConfigInfo.md b/docs/models/ledger/ConfigInfo.md similarity index 100% rename from docs/models/shared/ConfigInfo.md rename to docs/models/ledger/ConfigInfo.md diff --git a/docs/models/shared/ConfigInfoResponse.md b/docs/models/ledger/ConfigInfoResponse.md similarity index 89% rename from docs/models/shared/ConfigInfoResponse.md rename to docs/models/ledger/ConfigInfoResponse.md index b0df8d747..1bc8aa9ec 100644 --- a/docs/models/shared/ConfigInfoResponse.md +++ b/docs/models/ledger/ConfigInfoResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [ConfigInfo](../../models/shared/ConfigInfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `configInfo` | [ConfigInfo](../../models/shared/ConfigInfo.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Contract.md b/docs/models/ledger/Contract.md similarity index 100% rename from docs/models/shared/Contract.md rename to docs/models/ledger/Contract.md diff --git a/docs/models/ledger/Data.md b/docs/models/ledger/Data.md new file mode 100644 index 000000000..34b330dec --- /dev/null +++ b/docs/models/ledger/Data.md @@ -0,0 +1,10 @@ +# Data + +The payload of the log entry. Structure depends on the log type: +- NEW_TRANSACTION: V2LogDataNewTransaction +- SET_METADATA: V2LogDataSetMetadata +- REVERTED_TRANSACTION: V2LogDataRevertedTransaction +- DELETE_METADATA: V2LogDataDeleteMetadata +- INSERTED_SCHEMA: V2LogDataInsertedSchema + + diff --git a/docs/models/shared/DotSelf.md b/docs/models/ledger/DotSelf.md similarity index 100% rename from docs/models/shared/DotSelf.md rename to docs/models/ledger/DotSelf.md diff --git a/docs/models/ledger/ErrorResponse.md b/docs/models/ledger/ErrorResponse.md new file mode 100644 index 000000000..7918947e6 --- /dev/null +++ b/docs/models/ledger/ErrorResponse.md @@ -0,0 +1,10 @@ +# ErrorResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `errorsEnum` | [ErrorsEnum](../../models/shared/ErrorsEnum.md) | :heavy_check_mark: | N/A | INSUFFICIENT_FUND | +| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | [INSUFFICIENT_FUND] account had insufficient funds | \ No newline at end of file diff --git a/docs/models/ledger/ErrorsEnum.md b/docs/models/ledger/ErrorsEnum.md new file mode 100644 index 000000000..51cb148a8 --- /dev/null +++ b/docs/models/ledger/ErrorsEnum.md @@ -0,0 +1,24 @@ +# ErrorsEnum + +## Example Usage + +```java +import com.formance.formance_sdk.models.ledger.ErrorsEnum; + +ErrorsEnum value = ErrorsEnum.INTERNAL; +``` + + +## Values + +| Name | Value | +| -------------------- | -------------------- | +| `INTERNAL` | INTERNAL | +| `INSUFFICIENT_FUND` | INSUFFICIENT_FUND | +| `VALIDATION` | VALIDATION | +| `CONFLICT` | CONFLICT | +| `NO_SCRIPT` | NO_SCRIPT | +| `COMPILATION_FAILED` | COMPILATION_FAILED | +| `METADATA_OVERRIDE` | METADATA_OVERRIDE | +| `NOT_FOUND` | NOT_FOUND | +| `TIMEOUT` | TIMEOUT | \ No newline at end of file diff --git a/docs/models/ledger/ErrorsErrorResponse.md b/docs/models/ledger/ErrorsErrorResponse.md new file mode 100644 index 000000000..12ace222b --- /dev/null +++ b/docs/models/ledger/ErrorsErrorResponse.md @@ -0,0 +1,10 @@ +# ErrorsErrorResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `errorsEnum` | [ErrorsEnum](../../models/shared/ErrorsEnum.md) | :heavy_check_mark: | N/A | INSUFFICIENT_FUND | +| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | [INSUFFICIENT_FUND] account had insufficient funds | \ No newline at end of file diff --git a/docs/models/ledger/ErrorsV2ErrorResponse.md b/docs/models/ledger/ErrorsV2ErrorResponse.md new file mode 100644 index 000000000..0db3cf368 --- /dev/null +++ b/docs/models/ledger/ErrorsV2ErrorResponse.md @@ -0,0 +1,10 @@ +# ErrorsV2ErrorResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `v2ErrorsEnum` | [V2ErrorsEnum](../../models/shared/V2ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | +| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/shared/Expr.md b/docs/models/ledger/Expr.md similarity index 100% rename from docs/models/shared/Expr.md rename to docs/models/ledger/Expr.md diff --git a/docs/models/shared/LedgerInfo.md b/docs/models/ledger/LedgerInfo.md similarity index 100% rename from docs/models/shared/LedgerInfo.md rename to docs/models/ledger/LedgerInfo.md diff --git a/docs/models/shared/LedgerInfoResponse.md b/docs/models/ledger/LedgerInfoResponse.md similarity index 91% rename from docs/models/shared/LedgerInfoResponse.md rename to docs/models/ledger/LedgerInfoResponse.md index 6de5ad8ca..7ffa5f2ed 100644 --- a/docs/models/shared/LedgerInfoResponse.md +++ b/docs/models/ledger/LedgerInfoResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/LedgerInfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `ledgerInfo` | [Optional\](../../models/shared/LedgerInfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/LedgerInfoStorage.md b/docs/models/ledger/LedgerInfoStorage.md similarity index 100% rename from docs/models/shared/LedgerInfoStorage.md rename to docs/models/ledger/LedgerInfoStorage.md diff --git a/docs/models/shared/LedgerStorage.md b/docs/models/ledger/LedgerStorage.md similarity index 100% rename from docs/models/shared/LedgerStorage.md rename to docs/models/ledger/LedgerStorage.md diff --git a/docs/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.md b/docs/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.md new file mode 100644 index 000000000..693e2757e --- /dev/null +++ b/docs/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.md @@ -0,0 +1,9 @@ +# LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `logID` | *long* | :heavy_check_mark: | N/A | +| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.md b/docs/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.md new file mode 100644 index 000000000..3c13d17cd --- /dev/null +++ b/docs/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.md @@ -0,0 +1,10 @@ +# LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `v2Transaction` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | +| `logID` | *long* | :heavy_check_mark: | N/A | +| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.md b/docs/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.md new file mode 100644 index 000000000..96f2246b5 --- /dev/null +++ b/docs/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.md @@ -0,0 +1,9 @@ +# LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `logID` | *long* | :heavy_check_mark: | N/A | +| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.md b/docs/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.md new file mode 100644 index 000000000..e16cbe6ce --- /dev/null +++ b/docs/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.md @@ -0,0 +1,12 @@ +# LedgerV2BulkElementResultErrorV2BaseBulkElementResult + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `errorCode` | *String* | :heavy_check_mark: | N/A | +| `errorDescription` | *String* | :heavy_check_mark: | N/A | +| `errorDetails` | *Optional\* | :heavy_minus_sign: | N/A | +| `logID` | *long* | :heavy_check_mark: | N/A | +| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.md b/docs/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.md new file mode 100644 index 000000000..c05f2ccff --- /dev/null +++ b/docs/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.md @@ -0,0 +1,10 @@ +# LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `v2Transaction` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | +| `logID` | *long* | :heavy_check_mark: | N/A | +| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Log.md b/docs/models/ledger/Log.md similarity index 100% rename from docs/models/shared/Log.md rename to docs/models/ledger/Log.md diff --git a/docs/models/shared/LogType.md b/docs/models/ledger/LogType.md similarity index 82% rename from docs/models/shared/LogType.md rename to docs/models/ledger/LogType.md index 93bc51841..bc0fa1a8d 100644 --- a/docs/models/shared/LogType.md +++ b/docs/models/ledger/LogType.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.LogType; +import com.formance.formance_sdk.models.ledger.LogType; LogType value = LogType.NEW_TRANSACTION; ``` diff --git a/docs/models/shared/LogsCursorResponse.md b/docs/models/ledger/LogsCursorResponse.md similarity index 100% rename from docs/models/shared/LogsCursorResponse.md rename to docs/models/ledger/LogsCursorResponse.md diff --git a/docs/models/shared/LogsCursorResponseCursor.md b/docs/models/ledger/LogsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/LogsCursorResponseCursor.md rename to docs/models/ledger/LogsCursorResponseCursor.md diff --git a/docs/models/shared/Mapping.md b/docs/models/ledger/Mapping.md similarity index 100% rename from docs/models/shared/Mapping.md rename to docs/models/ledger/Mapping.md diff --git a/docs/models/shared/MappingResponse.md b/docs/models/ledger/MappingResponse.md similarity index 91% rename from docs/models/shared/MappingResponse.md rename to docs/models/ledger/MappingResponse.md index 7ff659562..2b653fe3e 100644 --- a/docs/models/shared/MappingResponse.md +++ b/docs/models/ledger/MappingResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `data` | [JsonNullable\](../../models/shared/Mapping.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `mapping` | [JsonNullable\](../../models/shared/Mapping.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/MigrationInfo.md b/docs/models/ledger/MigrationInfo.md similarity index 100% rename from docs/models/shared/MigrationInfo.md rename to docs/models/ledger/MigrationInfo.md diff --git a/docs/models/shared/MigrationInfoState.md b/docs/models/ledger/MigrationInfoState.md similarity index 76% rename from docs/models/shared/MigrationInfoState.md rename to docs/models/ledger/MigrationInfoState.md index b80ff07ab..6090996e3 100644 --- a/docs/models/shared/MigrationInfoState.md +++ b/docs/models/ledger/MigrationInfoState.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.MigrationInfoState; +import com.formance.formance_sdk.models.ledger.MigrationInfoState; MigrationInfoState value = MigrationInfoState.TO_DO; ``` diff --git a/docs/models/shared/PostTransaction.md b/docs/models/ledger/PostTransaction.md similarity index 100% rename from docs/models/shared/PostTransaction.md rename to docs/models/ledger/PostTransaction.md diff --git a/docs/models/shared/PostTransactionScript.md b/docs/models/ledger/PostTransactionScript.md similarity index 100% rename from docs/models/shared/PostTransactionScript.md rename to docs/models/ledger/PostTransactionScript.md diff --git a/docs/models/shared/Posting.md b/docs/models/ledger/Posting.md similarity index 100% rename from docs/models/shared/Posting.md rename to docs/models/ledger/Posting.md diff --git a/docs/models/shared/QueryTemplateAccountParams.md b/docs/models/ledger/QueryTemplateAccountParams.md similarity index 100% rename from docs/models/shared/QueryTemplateAccountParams.md rename to docs/models/ledger/QueryTemplateAccountParams.md diff --git a/docs/models/shared/QueryTemplateLogParams.md b/docs/models/ledger/QueryTemplateLogParams.md similarity index 100% rename from docs/models/shared/QueryTemplateLogParams.md rename to docs/models/ledger/QueryTemplateLogParams.md diff --git a/docs/models/shared/QueryTemplateTransactionParams.md b/docs/models/ledger/QueryTemplateTransactionParams.md similarity index 100% rename from docs/models/shared/QueryTemplateTransactionParams.md rename to docs/models/ledger/QueryTemplateTransactionParams.md diff --git a/docs/models/shared/QueryTemplateVolumeParams.md b/docs/models/ledger/QueryTemplateVolumeParams.md similarity index 100% rename from docs/models/shared/QueryTemplateVolumeParams.md rename to docs/models/ledger/QueryTemplateVolumeParams.md diff --git a/docs/models/shared/Runtime.md b/docs/models/ledger/Runtime.md similarity index 89% rename from docs/models/shared/Runtime.md rename to docs/models/ledger/Runtime.md index fb87781d5..4b196a0d1 100644 --- a/docs/models/shared/Runtime.md +++ b/docs/models/ledger/Runtime.md @@ -5,7 +5,7 @@ The numscript runtime used to execute the script. Uses "machine" by default, unl ## Example Usage ```java -import com.formance.formance_sdk.models.shared.Runtime; +import com.formance.formance_sdk.models.ledger.Runtime; Runtime value = Runtime.EXPERIMENTAL_INTERPRETER; ``` diff --git a/docs/models/shared/Script.md b/docs/models/ledger/Script.md similarity index 100% rename from docs/models/shared/Script.md rename to docs/models/ledger/Script.md diff --git a/docs/models/shared/ScriptResponse.md b/docs/models/ledger/ScriptResponse.md similarity index 97% rename from docs/models/shared/ScriptResponse.md rename to docs/models/ledger/ScriptResponse.md index df4f2a889..1d083c789 100644 --- a/docs/models/shared/ScriptResponse.md +++ b/docs/models/ledger/ScriptResponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `errorsEnum` | [Optional\](../../models/shared/ErrorsEnum.md) | :heavy_minus_sign: | N/A | INSUFFICIENT_FUND | +| `transaction` | [Optional\](../../models/shared/Transaction.md) | :heavy_minus_sign: | N/A | | | `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | -| `errorCode` | [Optional\](../../models/shared/ErrorsEnum.md) | :heavy_minus_sign: | N/A | INSUFFICIENT_FUND | -| `errorMessage` | *Optional\* | :heavy_minus_sign: | N/A | account had insufficient funds | -| `transaction` | [Optional\](../../models/shared/Transaction.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| `errorMessage` | *Optional\* | :heavy_minus_sign: | N/A | account had insufficient funds | \ No newline at end of file diff --git a/docs/models/shared/Stats.md b/docs/models/ledger/Stats.md similarity index 100% rename from docs/models/shared/Stats.md rename to docs/models/ledger/Stats.md diff --git a/docs/models/shared/StatsResponse.md b/docs/models/ledger/StatsResponse.md similarity index 87% rename from docs/models/shared/StatsResponse.md rename to docs/models/ledger/StatsResponse.md index 9d31ce980..de1e4459d 100644 --- a/docs/models/shared/StatsResponse.md +++ b/docs/models/ledger/StatsResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| `data` | [Stats](../../models/shared/Stats.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `stats` | [Stats](../../models/shared/Stats.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/Transaction.md b/docs/models/ledger/Transaction.md new file mode 100644 index 000000000..7dfa9da10 --- /dev/null +++ b/docs/models/ledger/Transaction.md @@ -0,0 +1,14 @@ +# Transaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `aggregatedVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `aggregatedVolumes1` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `metadata` | Map\ | :heavy_minus_sign: | N/A | | +| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_check_mark: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `txid` | *BigInteger* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/TransactionData.md b/docs/models/ledger/TransactionData.md similarity index 100% rename from docs/models/shared/TransactionData.md rename to docs/models/ledger/TransactionData.md diff --git a/docs/models/shared/TransactionResponse.md b/docs/models/ledger/TransactionResponse.md similarity index 90% rename from docs/models/shared/TransactionResponse.md rename to docs/models/ledger/TransactionResponse.md index 2277a7eda..1553b25ee 100644 --- a/docs/models/shared/TransactionResponse.md +++ b/docs/models/ledger/TransactionResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `data` | [Transaction](../../models/shared/Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `transaction` | [Transaction](../../models/shared/Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Transactions.md b/docs/models/ledger/Transactions.md similarity index 100% rename from docs/models/shared/Transactions.md rename to docs/models/ledger/Transactions.md diff --git a/docs/models/shared/TransactionsCursorResponse.md b/docs/models/ledger/TransactionsCursorResponse.md similarity index 100% rename from docs/models/shared/TransactionsCursorResponse.md rename to docs/models/ledger/TransactionsCursorResponse.md diff --git a/docs/models/shared/TransactionsCursorResponseCursor.md b/docs/models/ledger/TransactionsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/TransactionsCursorResponseCursor.md rename to docs/models/ledger/TransactionsCursorResponseCursor.md diff --git a/docs/models/shared/TransactionsResponse.md b/docs/models/ledger/TransactionsResponse.md similarity index 100% rename from docs/models/shared/TransactionsResponse.md rename to docs/models/ledger/TransactionsResponse.md diff --git a/docs/models/ledger/V2Account.md b/docs/models/ledger/V2Account.md new file mode 100644 index 000000000..f3a06ea93 --- /dev/null +++ b/docs/models/ledger/V2Account.md @@ -0,0 +1,14 @@ +# V2Account + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `v2Volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | +| `v2Volumes1` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | +| `address` | *String* | :heavy_check_mark: | N/A | users:001 | +| `firstUsage` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-01-01T00:00:00Z | +| `insertionDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-01-01T00:00:00Z | +| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-01-01T00:00:00Z | \ No newline at end of file diff --git a/docs/models/ledger/V2AccountResponse.md b/docs/models/ledger/V2AccountResponse.md new file mode 100644 index 000000000..64dbb9ff8 --- /dev/null +++ b/docs/models/ledger/V2AccountResponse.md @@ -0,0 +1,8 @@ +# V2AccountResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `v2Account` | [V2Account](../../models/shared/V2Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2AccountsCursorResponse.md b/docs/models/ledger/V2AccountsCursorResponse.md similarity index 100% rename from docs/models/shared/V2AccountsCursorResponse.md rename to docs/models/ledger/V2AccountsCursorResponse.md diff --git a/docs/models/shared/V2AccountsCursorResponseCursor.md b/docs/models/ledger/V2AccountsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V2AccountsCursorResponseCursor.md rename to docs/models/ledger/V2AccountsCursorResponseCursor.md diff --git a/docs/models/shared/V2AccountsCursorResponseResource.md b/docs/models/ledger/V2AccountsCursorResponseResource.md similarity index 80% rename from docs/models/shared/V2AccountsCursorResponseResource.md rename to docs/models/ledger/V2AccountsCursorResponseResource.md index 15cdd29e2..1cb66b517 100644 --- a/docs/models/shared/V2AccountsCursorResponseResource.md +++ b/docs/models/ledger/V2AccountsCursorResponseResource.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2AccountsCursorResponseResource; +import com.formance.formance_sdk.models.ledger.V2AccountsCursorResponseResource; V2AccountsCursorResponseResource value = V2AccountsCursorResponseResource.ACCOUNTS; ``` diff --git a/docs/models/shared/V2AggregateBalancesResponse.md b/docs/models/ledger/V2AggregateBalancesResponse.md similarity index 87% rename from docs/models/shared/V2AggregateBalancesResponse.md rename to docs/models/ledger/V2AggregateBalancesResponse.md index 1d20e3319..22203cc7c 100644 --- a/docs/models/shared/V2AggregateBalancesResponse.md +++ b/docs/models/ledger/V2AggregateBalancesResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | -------------------------- | -------------------------- | -------------------------- | -------------------------- | -------------------------- | -| `data` | Map\ | :heavy_check_mark: | N/A | {
"USD": 100,
"EUR": 12
} | \ No newline at end of file +| `v2AssetsBalances` | Map\ | :heavy_check_mark: | N/A | {
"USD": 100,
"EUR": 12
} | \ No newline at end of file diff --git a/docs/models/ledger/V2BaseBulkElement.md b/docs/models/ledger/V2BaseBulkElement.md new file mode 100644 index 000000000..20e0ae72b --- /dev/null +++ b/docs/models/ledger/V2BaseBulkElement.md @@ -0,0 +1,10 @@ +# V2BaseBulkElement + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `v2PostTransaction` | [Optional\](../../models/shared/V2PostTransaction.md) | :heavy_minus_sign: | N/A | +| `action` | *String* | :heavy_check_mark: | N/A | +| `ik` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementResult.md b/docs/models/ledger/V2BulkElementResult.md similarity index 100% rename from docs/models/shared/V2BulkElementResult.md rename to docs/models/ledger/V2BulkElementResult.md diff --git a/docs/models/shared/V2BulkResponse.md b/docs/models/ledger/V2BulkResponse.md similarity index 96% rename from docs/models/shared/V2BulkResponse.md rename to docs/models/ledger/V2BulkResponse.md index 1ad94b5a2..bf4969865 100644 --- a/docs/models/shared/V2BulkResponse.md +++ b/docs/models/ledger/V2BulkResponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `v2ErrorsEnum` | [Optional\](../../models/shared/V2ErrorsEnum.md) | :heavy_minus_sign: | N/A | VALIDATION | | `data` | List\<[V2BulkElementResult](../../models/shared/V2BulkElementResult.md)> | :heavy_minus_sign: | N/A | | -| `errorCode` | [Optional\](../../models/shared/V2ErrorsEnum.md) | :heavy_minus_sign: | N/A | VALIDATION | | `errorMessage` | *Optional\* | :heavy_minus_sign: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/shared/V2ChartAccountMetadata.md b/docs/models/ledger/V2ChartAccountMetadata.md similarity index 100% rename from docs/models/shared/V2ChartAccountMetadata.md rename to docs/models/ledger/V2ChartAccountMetadata.md diff --git a/docs/models/shared/V2ChartAccountRules.md b/docs/models/ledger/V2ChartAccountRules.md similarity index 100% rename from docs/models/shared/V2ChartAccountRules.md rename to docs/models/ledger/V2ChartAccountRules.md diff --git a/docs/models/shared/V2ChartSegment.md b/docs/models/ledger/V2ChartSegment.md similarity index 94% rename from docs/models/shared/V2ChartSegment.md rename to docs/models/ledger/V2ChartSegment.md index d45f6523d..07f9b39db 100644 --- a/docs/models/shared/V2ChartSegment.md +++ b/docs/models/ledger/V2ChartSegment.md @@ -9,6 +9,6 @@ Segment within a chart of accounts | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `dotMetadata` | Map\ | :heavy_minus_sign: | N/A | | | `dotPattern` | *Optional\* | :heavy_minus_sign: | N/A | | -| `dotRules` | [Optional\](../../models/shared/V2ChartAccountRules.md) | :heavy_minus_sign: | N/A | | | `dotSelf` | [Optional\](../../models/shared/DotSelf.md) | :heavy_minus_sign: | N/A | | -| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | {
"users": {
"$userID": {
".pattern": "^[0-9]{16}$"
}
}
} | \ No newline at end of file +| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | {
"users": {
"$userID": {
".pattern": "^[0-9]{16}$"
}
}
} | +| `v2ChartAccountRules` | [Optional\](../../models/shared/V2ChartAccountRules.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/ledger/V2ConfigInfo.md b/docs/models/ledger/V2ConfigInfo.md new file mode 100644 index 000000000..2a0caccd5 --- /dev/null +++ b/docs/models/ledger/V2ConfigInfo.md @@ -0,0 +1,9 @@ +# V2ConfigInfo + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `server` | *String* | :heavy_check_mark: | N/A | +| `version` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2CreateExporterResponse.md b/docs/models/ledger/V2CreateExporterResponse.md new file mode 100644 index 000000000..d29ec431b --- /dev/null +++ b/docs/models/ledger/V2CreateExporterResponse.md @@ -0,0 +1,10 @@ +# V2CreateExporterResponse + +Created exporter + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `v2ExporterConfiguration` | [V2ExporterConfiguration1](../../models/shared/V2ExporterConfiguration1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreateLedgerRequest.md b/docs/models/ledger/V2CreateLedgerRequest.md similarity index 80% rename from docs/models/shared/V2CreateLedgerRequest.md rename to docs/models/ledger/V2CreateLedgerRequest.md index 096290d9a..820367478 100644 --- a/docs/models/shared/V2CreateLedgerRequest.md +++ b/docs/models/ledger/V2CreateLedgerRequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `v2Metadata` | Map\ | :heavy_minus_sign: | N/A | {
"admin": "true"
} | | `bucket` | *Optional\* | :heavy_minus_sign: | N/A | | -| `features` | Map\ | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | {
"admin": "true"
} | \ No newline at end of file +| `features` | Map\ | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2CreatePipelineRequest.md b/docs/models/ledger/V2CreatePipelineRequest.md similarity index 100% rename from docs/models/shared/V2CreatePipelineRequest.md rename to docs/models/ledger/V2CreatePipelineRequest.md diff --git a/docs/models/ledger/V2CreatePipelineResponse.md b/docs/models/ledger/V2CreatePipelineResponse.md new file mode 100644 index 000000000..19af3b4d4 --- /dev/null +++ b/docs/models/ledger/V2CreatePipelineResponse.md @@ -0,0 +1,10 @@ +# V2CreatePipelineResponse + +Created ipeline + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `v2PipelineConfiguration` | [V2PipelineConfiguration](../../models/shared/V2PipelineConfiguration.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2CreateTransactionResponse.md b/docs/models/ledger/V2CreateTransactionResponse.md new file mode 100644 index 000000000..678eef91d --- /dev/null +++ b/docs/models/ledger/V2CreateTransactionResponse.md @@ -0,0 +1,8 @@ +# V2CreateTransactionResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `v2Transaction` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2ErrorResponse.md b/docs/models/ledger/V2ErrorResponse.md new file mode 100644 index 000000000..d9a65fcc4 --- /dev/null +++ b/docs/models/ledger/V2ErrorResponse.md @@ -0,0 +1,10 @@ +# V2ErrorResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `v2ErrorsEnum` | [V2ErrorsEnum](../../models/shared/V2ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | +| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/shared/V2ErrorsEnum.md b/docs/models/ledger/V2ErrorsEnum.md similarity index 95% rename from docs/models/shared/V2ErrorsEnum.md rename to docs/models/ledger/V2ErrorsEnum.md index 1fc649878..bd9db7087 100644 --- a/docs/models/shared/V2ErrorsEnum.md +++ b/docs/models/ledger/V2ErrorsEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2ErrorsEnum; +import com.formance.formance_sdk.models.ledger.V2ErrorsEnum; V2ErrorsEnum value = V2ErrorsEnum.INTERNAL; ``` diff --git a/docs/models/ledger/V2ExporterConfiguration1.md b/docs/models/ledger/V2ExporterConfiguration1.md new file mode 100644 index 000000000..281896397 --- /dev/null +++ b/docs/models/ledger/V2ExporterConfiguration1.md @@ -0,0 +1,11 @@ +# V2ExporterConfiguration1 + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `config` | Map\ | :heavy_check_mark: | N/A | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `driver` | *String* | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2ExporterConfiguration2.md b/docs/models/ledger/V2ExporterConfiguration2.md new file mode 100644 index 000000000..ad22ae4d9 --- /dev/null +++ b/docs/models/ledger/V2ExporterConfiguration2.md @@ -0,0 +1,9 @@ +# V2ExporterConfiguration2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `config` | Map\ | :heavy_check_mark: | N/A | +| `driver` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2ExportersCursorResponse.md b/docs/models/ledger/V2ExportersCursorResponse.md new file mode 100644 index 000000000..71a2c8988 --- /dev/null +++ b/docs/models/ledger/V2ExportersCursorResponse.md @@ -0,0 +1,10 @@ +# V2ExportersCursorResponse + +Exporters list + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `cursor` | [V2ExportersCursorResponseCursor](../../models/shared/V2ExportersCursorResponseCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2ExportersCursorResponseCursor.md b/docs/models/ledger/V2ExportersCursorResponseCursor.md new file mode 100644 index 000000000..6c98164d6 --- /dev/null +++ b/docs/models/ledger/V2ExportersCursorResponseCursor.md @@ -0,0 +1,12 @@ +# V2ExportersCursorResponseCursor + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `data` | List\<[V2ExporterConfiguration1](../../models/shared/V2ExporterConfiguration1.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ= | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/ledger/V2GetExporterStateResponse.md b/docs/models/ledger/V2GetExporterStateResponse.md new file mode 100644 index 000000000..9125d3255 --- /dev/null +++ b/docs/models/ledger/V2GetExporterStateResponse.md @@ -0,0 +1,10 @@ +# V2GetExporterStateResponse + +Exporter information + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `v2ExporterConfiguration` | [V2ExporterConfiguration1](../../models/shared/V2ExporterConfiguration1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2GetLedgerResponse.md b/docs/models/ledger/V2GetLedgerResponse.md similarity index 89% rename from docs/models/shared/V2GetLedgerResponse.md rename to docs/models/ledger/V2GetLedgerResponse.md index 3c44288ad..0b8995994 100644 --- a/docs/models/shared/V2GetLedgerResponse.md +++ b/docs/models/ledger/V2GetLedgerResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `data` | [V2Ledger](../../models/shared/V2Ledger.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2Ledger` | [V2Ledger](../../models/shared/V2Ledger.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2GetPipelineStateResponse.md b/docs/models/ledger/V2GetPipelineStateResponse.md new file mode 100644 index 000000000..da0715da4 --- /dev/null +++ b/docs/models/ledger/V2GetPipelineStateResponse.md @@ -0,0 +1,10 @@ +# V2GetPipelineStateResponse + +Pipeline information + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | +| `v2PipelineConfiguration` | [V2PipelineConfiguration](../../models/shared/V2PipelineConfiguration.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2GetTransactionResponse.md b/docs/models/ledger/V2GetTransactionResponse.md similarity index 91% rename from docs/models/shared/V2GetTransactionResponse.md rename to docs/models/ledger/V2GetTransactionResponse.md index 8b79de231..01d8adfe0 100644 --- a/docs/models/shared/V2GetTransactionResponse.md +++ b/docs/models/ledger/V2GetTransactionResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2Transaction` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Ledger.md b/docs/models/ledger/V2Ledger.md similarity index 98% rename from docs/models/shared/V2Ledger.md rename to docs/models/ledger/V2Ledger.md index dd50395ee..7f126bb9f 100644 --- a/docs/models/shared/V2Ledger.md +++ b/docs/models/ledger/V2Ledger.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2Metadata` | Map\ | :heavy_minus_sign: | N/A | {
"admin": "true"
} | | `addedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | | `bucket` | *String* | :heavy_check_mark: | N/A | | | `deletedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | | `features` | Map\ | :heavy_minus_sign: | N/A | | | `id` | *Optional\* | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | {
"admin": "true"
} | | `name` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2LedgerInfo.md b/docs/models/ledger/V2LedgerInfo.md similarity index 100% rename from docs/models/shared/V2LedgerInfo.md rename to docs/models/ledger/V2LedgerInfo.md diff --git a/docs/models/shared/V2LedgerInfoResponse.md b/docs/models/ledger/V2LedgerInfoResponse.md similarity index 92% rename from docs/models/shared/V2LedgerInfoResponse.md rename to docs/models/ledger/V2LedgerInfoResponse.md index 08b6d81fe..3679df86b 100644 --- a/docs/models/shared/V2LedgerInfoResponse.md +++ b/docs/models/ledger/V2LedgerInfoResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/V2LedgerInfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `v2LedgerInfo` | [Optional\](../../models/shared/V2LedgerInfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2LedgerInfoStorage.md b/docs/models/ledger/V2LedgerInfoStorage.md similarity index 100% rename from docs/models/shared/V2LedgerInfoStorage.md rename to docs/models/ledger/V2LedgerInfoStorage.md diff --git a/docs/models/shared/V2LedgerListResponse.md b/docs/models/ledger/V2LedgerListResponse.md similarity index 100% rename from docs/models/shared/V2LedgerListResponse.md rename to docs/models/ledger/V2LedgerListResponse.md diff --git a/docs/models/shared/V2LedgerListResponseCursor.md b/docs/models/ledger/V2LedgerListResponseCursor.md similarity index 100% rename from docs/models/shared/V2LedgerListResponseCursor.md rename to docs/models/ledger/V2LedgerListResponseCursor.md diff --git a/docs/models/shared/V2Log.md b/docs/models/ledger/V2Log.md similarity index 98% rename from docs/models/shared/V2Log.md rename to docs/models/ledger/V2Log.md index 184f4f63e..792117fcc 100644 --- a/docs/models/shared/V2Log.md +++ b/docs/models/ledger/V2Log.md @@ -10,7 +10,7 @@ The data field structure depends on the log type. | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `data` | [V2LogData](../../models/shared/V2LogData.md) | :heavy_check_mark: | The payload of the log entry. Structure depends on the log type:
- NEW_TRANSACTION: V2LogDataNewTransaction
- SET_METADATA: V2LogDataSetMetadata
- REVERTED_TRANSACTION: V2LogDataRevertedTransaction
- DELETE_METADATA: V2LogDataDeleteMetadata
- INSERTED_SCHEMA: V2LogDataInsertedSchema
| | +| `data` | [Data](../../models/shared/Data.md) | :heavy_check_mark: | The payload of the log entry. Structure depends on the log type:
- NEW_TRANSACTION: V2LogDataNewTransaction
- SET_METADATA: V2LogDataSetMetadata
- REVERTED_TRANSACTION: V2LogDataRevertedTransaction
- DELETE_METADATA: V2LogDataDeleteMetadata
- INSERTED_SCHEMA: V2LogDataInsertedSchema
| | | `date` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Timestamp when the operation was recorded | | | `hash` | *String* | :heavy_check_mark: | SHA256 hash of the log entry, chained from the previous log for integrity verification | 9ee060170400f556b7e1575cb13f9db004f150a08355c7431c62bc639166431e | | `id` | *BigInteger* | :heavy_check_mark: | Unique sequential identifier for this log entry within the ledger | 1234 | diff --git a/docs/models/shared/V2LogDataDeleteMetadata.md b/docs/models/ledger/V2LogDataDeleteMetadata.md similarity index 100% rename from docs/models/shared/V2LogDataDeleteMetadata.md rename to docs/models/ledger/V2LogDataDeleteMetadata.md diff --git a/docs/models/shared/V2LogDataDeleteMetadataTargetId.md b/docs/models/ledger/V2LogDataDeleteMetadataTargetId.md similarity index 100% rename from docs/models/shared/V2LogDataDeleteMetadataTargetId.md rename to docs/models/ledger/V2LogDataDeleteMetadataTargetId.md diff --git a/docs/models/shared/V2LogDataDeleteMetadataTargetType.md b/docs/models/ledger/V2LogDataDeleteMetadataTargetType.md similarity index 84% rename from docs/models/shared/V2LogDataDeleteMetadataTargetType.md rename to docs/models/ledger/V2LogDataDeleteMetadataTargetType.md index f1224e8cd..9852ffcf0 100644 --- a/docs/models/shared/V2LogDataDeleteMetadataTargetType.md +++ b/docs/models/ledger/V2LogDataDeleteMetadataTargetType.md @@ -5,7 +5,7 @@ Type of the target entity ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2LogDataDeleteMetadataTargetType; +import com.formance.formance_sdk.models.ledger.V2LogDataDeleteMetadataTargetType; V2LogDataDeleteMetadataTargetType value = V2LogDataDeleteMetadataTargetType.ACCOUNT; ``` diff --git a/docs/models/ledger/V2LogDataInsertedSchema.md b/docs/models/ledger/V2LogDataInsertedSchema.md new file mode 100644 index 000000000..491eda9b7 --- /dev/null +++ b/docs/models/ledger/V2LogDataInsertedSchema.md @@ -0,0 +1,10 @@ +# V2LogDataInsertedSchema + +Payload for INSERTED_SCHEMA log entries. Contains the schema that was inserted into the ledger. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `v2SchemaData` | [V2SchemaData1](../../models/shared/V2SchemaData1.md) | :heavy_check_mark: | Complete schema structure with metadata | \ No newline at end of file diff --git a/docs/models/shared/V2LogDataNewTransaction.md b/docs/models/ledger/V2LogDataNewTransaction.md similarity index 84% rename from docs/models/shared/V2LogDataNewTransaction.md rename to docs/models/ledger/V2LogDataNewTransaction.md index 1fa3f8f18..862cb1fb6 100644 --- a/docs/models/shared/V2LogDataNewTransaction.md +++ b/docs/models/ledger/V2LogDataNewTransaction.md @@ -7,5 +7,5 @@ Payload for NEW_TRANSACTION log entries. Contains the created transaction and an | Field | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `accountMetadata` | Map\> | :heavy_check_mark: | Metadata applied to accounts involved in the transaction | -| `transaction` | [V2LogTransaction](../../models/shared/V2LogTransaction.md) | :heavy_check_mark: | Transaction structure as it appears in log payloads | \ No newline at end of file +| `v2LogTransaction` | [V2LogTransaction](../../models/shared/V2LogTransaction.md) | :heavy_check_mark: | Transaction structure as it appears in log payloads | +| `accountMetadata` | Map\> | :heavy_check_mark: | Metadata applied to accounts involved in the transaction | \ No newline at end of file diff --git a/docs/models/shared/V2LogDataRevertedTransaction.md b/docs/models/ledger/V2LogDataRevertedTransaction.md similarity index 89% rename from docs/models/shared/V2LogDataRevertedTransaction.md rename to docs/models/ledger/V2LogDataRevertedTransaction.md index afb3bd372..eb2e1b3bd 100644 --- a/docs/models/shared/V2LogDataRevertedTransaction.md +++ b/docs/models/ledger/V2LogDataRevertedTransaction.md @@ -7,5 +7,5 @@ Payload for REVERTED_TRANSACTION log entries. Contains both the original reverte | Field | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `revertedTransaction` | [V2LogTransaction](../../models/shared/V2LogTransaction.md) | :heavy_check_mark: | Transaction structure as it appears in log payloads | -| `transaction` | [V2LogTransaction](../../models/shared/V2LogTransaction.md) | :heavy_check_mark: | Transaction structure as it appears in log payloads | \ No newline at end of file +| `v2LogTransaction` | [V2LogTransaction](../../models/shared/V2LogTransaction.md) | :heavy_check_mark: | Transaction structure as it appears in log payloads | +| `v2LogTransaction1` | [V2LogTransaction](../../models/shared/V2LogTransaction.md) | :heavy_check_mark: | Transaction structure as it appears in log payloads | \ No newline at end of file diff --git a/docs/models/shared/V2LogDataSetMetadata.md b/docs/models/ledger/V2LogDataSetMetadata.md similarity index 97% rename from docs/models/shared/V2LogDataSetMetadata.md rename to docs/models/ledger/V2LogDataSetMetadata.md index 4dc94f3af..a0b8795ca 100644 --- a/docs/models/shared/V2LogDataSetMetadata.md +++ b/docs/models/ledger/V2LogDataSetMetadata.md @@ -7,6 +7,6 @@ Payload for SET_METADATA log entries. Contains the target entity and the metadat | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `v2Metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | | `targetId` | [V2LogDataSetMetadataTargetId](../../models/shared/V2LogDataSetMetadataTargetId.md) | :heavy_check_mark: | N/A | | | `targetType` | [V2LogDataSetMetadataTargetType](../../models/shared/V2LogDataSetMetadataTargetType.md) | :heavy_check_mark: | Type of the target entity | | \ No newline at end of file diff --git a/docs/models/shared/V2LogDataSetMetadataTargetId.md b/docs/models/ledger/V2LogDataSetMetadataTargetId.md similarity index 100% rename from docs/models/shared/V2LogDataSetMetadataTargetId.md rename to docs/models/ledger/V2LogDataSetMetadataTargetId.md diff --git a/docs/models/shared/V2LogDataSetMetadataTargetType.md b/docs/models/ledger/V2LogDataSetMetadataTargetType.md similarity index 83% rename from docs/models/shared/V2LogDataSetMetadataTargetType.md rename to docs/models/ledger/V2LogDataSetMetadataTargetType.md index 9a9a1f280..874b81735 100644 --- a/docs/models/shared/V2LogDataSetMetadataTargetType.md +++ b/docs/models/ledger/V2LogDataSetMetadataTargetType.md @@ -5,7 +5,7 @@ Type of the target entity ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2LogDataSetMetadataTargetType; +import com.formance.formance_sdk.models.ledger.V2LogDataSetMetadataTargetType; V2LogDataSetMetadataTargetType value = V2LogDataSetMetadataTargetType.ACCOUNT; ``` diff --git a/docs/models/shared/V2LogTransaction.md b/docs/models/ledger/V2LogTransaction.md similarity index 97% rename from docs/models/shared/V2LogTransaction.md rename to docs/models/ledger/V2LogTransaction.md index ebbf5b46e..1ae9c54ee 100644 --- a/docs/models/shared/V2LogTransaction.md +++ b/docs/models/ledger/V2LogTransaction.md @@ -7,14 +7,14 @@ Transaction structure as it appears in log payloads | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `v2AggregatedVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2AggregatedVolumes1` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2AggregatedVolumes2` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2AggregatedVolumes3` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2Metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | | `id` | *BigInteger* | :heavy_check_mark: | N/A | | | `insertedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postCommitEffectiveVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `postCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | | `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_check_mark: | N/A | | -| `preCommitEffectiveVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `preCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | | `reference` | *Optional\* | :heavy_minus_sign: | N/A | | | `reverted` | *boolean* | :heavy_check_mark: | Indicates if the transaction has been reverted | | | `revertedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/shared/V2LogType.md b/docs/models/ledger/V2LogType.md similarity index 89% rename from docs/models/shared/V2LogType.md rename to docs/models/ledger/V2LogType.md index db9c65eb7..2a6f303c0 100644 --- a/docs/models/shared/V2LogType.md +++ b/docs/models/ledger/V2LogType.md @@ -5,7 +5,7 @@ The type of operation this log represents ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2LogType; +import com.formance.formance_sdk.models.ledger.V2LogType; V2LogType value = V2LogType.NEW_TRANSACTION; ``` diff --git a/docs/models/shared/V2LogsCursorResponse.md b/docs/models/ledger/V2LogsCursorResponse.md similarity index 100% rename from docs/models/shared/V2LogsCursorResponse.md rename to docs/models/ledger/V2LogsCursorResponse.md diff --git a/docs/models/shared/V2LogsCursorResponseCursor.md b/docs/models/ledger/V2LogsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V2LogsCursorResponseCursor.md rename to docs/models/ledger/V2LogsCursorResponseCursor.md diff --git a/docs/models/shared/V2LogsCursorResponseResource.md b/docs/models/ledger/V2LogsCursorResponseResource.md similarity index 77% rename from docs/models/shared/V2LogsCursorResponseResource.md rename to docs/models/ledger/V2LogsCursorResponseResource.md index 85ec0bd0b..09e27b40f 100644 --- a/docs/models/shared/V2LogsCursorResponseResource.md +++ b/docs/models/ledger/V2LogsCursorResponseResource.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2LogsCursorResponseResource; +import com.formance.formance_sdk.models.ledger.V2LogsCursorResponseResource; V2LogsCursorResponseResource value = V2LogsCursorResponseResource.LOGS; ``` diff --git a/docs/models/shared/V2MigrationInfo.md b/docs/models/ledger/V2MigrationInfo.md similarity index 100% rename from docs/models/shared/V2MigrationInfo.md rename to docs/models/ledger/V2MigrationInfo.md diff --git a/docs/models/shared/V2MigrationInfoState.md b/docs/models/ledger/V2MigrationInfoState.md similarity index 80% rename from docs/models/shared/V2MigrationInfoState.md rename to docs/models/ledger/V2MigrationInfoState.md index 40fa20c6c..3642888df 100644 --- a/docs/models/shared/V2MigrationInfoState.md +++ b/docs/models/ledger/V2MigrationInfoState.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2MigrationInfoState; +import com.formance.formance_sdk.models.ledger.V2MigrationInfoState; V2MigrationInfoState value = V2MigrationInfoState.TO_DO; ``` diff --git a/docs/models/ledger/V2PipelineConfiguration.md b/docs/models/ledger/V2PipelineConfiguration.md new file mode 100644 index 000000000..122994f8e --- /dev/null +++ b/docs/models/ledger/V2PipelineConfiguration.md @@ -0,0 +1,13 @@ +# V2PipelineConfiguration + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `enabled` | *Optional\* | :heavy_minus_sign: | N/A | +| `exporterID` | *String* | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `lastLogID` | *Optional\* | :heavy_minus_sign: | N/A | +| `ledger` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2PipelinesCursorResponse.md b/docs/models/ledger/V2PipelinesCursorResponse.md new file mode 100644 index 000000000..0671889d0 --- /dev/null +++ b/docs/models/ledger/V2PipelinesCursorResponse.md @@ -0,0 +1,10 @@ +# V2PipelinesCursorResponse + +Pipelines list + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `cursor` | [V2PipelinesCursorResponseCursor](../../models/shared/V2PipelinesCursorResponseCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2PipelinesCursorResponseCursor.md b/docs/models/ledger/V2PipelinesCursorResponseCursor.md new file mode 100644 index 000000000..cf0b0746f --- /dev/null +++ b/docs/models/ledger/V2PipelinesCursorResponseCursor.md @@ -0,0 +1,12 @@ +# V2PipelinesCursorResponseCursor + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `data` | List\<[V2PipelineConfiguration](../../models/shared/V2PipelineConfiguration.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ= | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/ledger/V2PostTransaction.md b/docs/models/ledger/V2PostTransaction.md new file mode 100644 index 000000000..3f59ec188 --- /dev/null +++ b/docs/models/ledger/V2PostTransaction.md @@ -0,0 +1,15 @@ +# V2PostTransaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `runtime` | [Optional\](../../models/shared/Runtime.md) | :heavy_minus_sign: | The numscript runtime used to execute the script. Uses "machine" by default, unless the "--experimental-numscript-interpreter" feature flag is passed. | | +| `v2Metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `accountMetadata` | Map\> | :heavy_minus_sign: | N/A | | +| `force` | *Optional\* | :heavy_minus_sign: | N/A | | +| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_minus_sign: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `script` | [Optional\](../../models/shared/V2PostTransactionScript.md) | :heavy_minus_sign: | N/A | | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2PostTransactionScript.md b/docs/models/ledger/V2PostTransactionScript.md similarity index 100% rename from docs/models/shared/V2PostTransactionScript.md rename to docs/models/ledger/V2PostTransactionScript.md diff --git a/docs/models/shared/V2Posting.md b/docs/models/ledger/V2Posting.md similarity index 100% rename from docs/models/shared/V2Posting.md rename to docs/models/ledger/V2Posting.md diff --git a/docs/models/shared/V2QueryParams.md b/docs/models/ledger/V2QueryParams.md similarity index 100% rename from docs/models/shared/V2QueryParams.md rename to docs/models/ledger/V2QueryParams.md diff --git a/docs/models/shared/V2QueryParamsResourceAccounts.md b/docs/models/ledger/V2QueryParamsResourceAccounts.md similarity index 79% rename from docs/models/shared/V2QueryParamsResourceAccounts.md rename to docs/models/ledger/V2QueryParamsResourceAccounts.md index d4a6d3aee..f26d92189 100644 --- a/docs/models/shared/V2QueryParamsResourceAccounts.md +++ b/docs/models/ledger/V2QueryParamsResourceAccounts.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2QueryParamsResourceAccounts; +import com.formance.formance_sdk.models.ledger.V2QueryParamsResourceAccounts; V2QueryParamsResourceAccounts value = V2QueryParamsResourceAccounts.ACCOUNTS; ``` diff --git a/docs/models/shared/V2QueryParamsResourceLogs.md b/docs/models/ledger/V2QueryParamsResourceLogs.md similarity index 76% rename from docs/models/shared/V2QueryParamsResourceLogs.md rename to docs/models/ledger/V2QueryParamsResourceLogs.md index d4c16a2d6..5548017f6 100644 --- a/docs/models/shared/V2QueryParamsResourceLogs.md +++ b/docs/models/ledger/V2QueryParamsResourceLogs.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2QueryParamsResourceLogs; +import com.formance.formance_sdk.models.ledger.V2QueryParamsResourceLogs; V2QueryParamsResourceLogs value = V2QueryParamsResourceLogs.LOGS; ``` diff --git a/docs/models/shared/V2QueryParamsResourceTransactions.md b/docs/models/ledger/V2QueryParamsResourceTransactions.md similarity index 82% rename from docs/models/shared/V2QueryParamsResourceTransactions.md rename to docs/models/ledger/V2QueryParamsResourceTransactions.md index 9bf5d4092..2f58c6a94 100644 --- a/docs/models/shared/V2QueryParamsResourceTransactions.md +++ b/docs/models/ledger/V2QueryParamsResourceTransactions.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2QueryParamsResourceTransactions; +import com.formance.formance_sdk.models.ledger.V2QueryParamsResourceTransactions; V2QueryParamsResourceTransactions value = V2QueryParamsResourceTransactions.TRANSACTIONS; ``` diff --git a/docs/models/shared/V2QueryParamsResourceVolumes.md b/docs/models/ledger/V2QueryParamsResourceVolumes.md similarity index 79% rename from docs/models/shared/V2QueryParamsResourceVolumes.md rename to docs/models/ledger/V2QueryParamsResourceVolumes.md index 8b9a35776..8e7cab153 100644 --- a/docs/models/shared/V2QueryParamsResourceVolumes.md +++ b/docs/models/ledger/V2QueryParamsResourceVolumes.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2QueryParamsResourceVolumes; +import com.formance.formance_sdk.models.ledger.V2QueryParamsResourceVolumes; V2QueryParamsResourceVolumes value = V2QueryParamsResourceVolumes.VOLUMES; ``` diff --git a/docs/models/shared/V2QueryResource.md b/docs/models/ledger/V2QueryResource.md similarity index 83% rename from docs/models/shared/V2QueryResource.md rename to docs/models/ledger/V2QueryResource.md index 10e81c1ff..17f03550a 100644 --- a/docs/models/shared/V2QueryResource.md +++ b/docs/models/ledger/V2QueryResource.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2QueryResource; +import com.formance.formance_sdk.models.ledger.V2QueryResource; V2QueryResource value = V2QueryResource.TRANSACTIONS; ``` diff --git a/docs/models/shared/V2QueryTemplate.md b/docs/models/ledger/V2QueryTemplate.md similarity index 94% rename from docs/models/shared/V2QueryTemplate.md rename to docs/models/ledger/V2QueryTemplate.md index 21760b057..edce92b69 100644 --- a/docs/models/shared/V2QueryTemplate.md +++ b/docs/models/ledger/V2QueryTemplate.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `v2QueryParams` | [Optional\](../../models/shared/V2QueryParams.md) | :heavy_minus_sign: | N/A | +| `v2QueryResource` | [Optional\](../../models/shared/V2QueryResource.md) | :heavy_minus_sign: | N/A | | `body` | Map\ | :heavy_minus_sign: | N/A | | `description` | *Optional\* | :heavy_minus_sign: | N/A | -| `params` | [Optional\](../../models/shared/V2QueryParams.md) | :heavy_minus_sign: | N/A | -| `resource` | [Optional\](../../models/shared/V2QueryResource.md) | :heavy_minus_sign: | N/A | | `vars` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2QueryTemplateVar.md b/docs/models/ledger/V2QueryTemplateVar.md similarity index 100% rename from docs/models/shared/V2QueryTemplateVar.md rename to docs/models/ledger/V2QueryTemplateVar.md diff --git a/docs/models/shared/V2RevertTransactionRequest.md b/docs/models/ledger/V2RevertTransactionRequest.md similarity index 100% rename from docs/models/shared/V2RevertTransactionRequest.md rename to docs/models/ledger/V2RevertTransactionRequest.md diff --git a/docs/models/ledger/V2SchemaData1.md b/docs/models/ledger/V2SchemaData1.md new file mode 100644 index 000000000..2a358ab8e --- /dev/null +++ b/docs/models/ledger/V2SchemaData1.md @@ -0,0 +1,14 @@ +# V2SchemaData1 + +Complete schema structure with metadata + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2ChartOfAccounts` | Map\ | :heavy_check_mark: | Chart of account | {
"users": {
"$userID": {
".pattern": "^[0-9]{16}$"
}
}
} | +| `v2QueryTemplates` | Map\ | :heavy_minus_sign: | Query templates | | +| `v2TransactionTemplates` | Map\ | :heavy_minus_sign: | Transaction templates | | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Schema creation timestamp | 2023-01-01T00:00:00Z | +| `version` | *String* | :heavy_check_mark: | Schema version | v1.0.0 | \ No newline at end of file diff --git a/docs/models/ledger/V2SchemaData2.md b/docs/models/ledger/V2SchemaData2.md new file mode 100644 index 000000000..c383b3ff2 --- /dev/null +++ b/docs/models/ledger/V2SchemaData2.md @@ -0,0 +1,12 @@ +# V2SchemaData2 + +Schema data structure for ledger schemas + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `v2ChartOfAccounts` | Map\ | :heavy_check_mark: | Chart of account | {
"users": {
"$userID": {
".pattern": "^[0-9]{16}$"
}
}
} | +| `v2QueryTemplates` | Map\ | :heavy_minus_sign: | Query templates | | +| `v2TransactionTemplates` | Map\ | :heavy_minus_sign: | Transaction templates | | \ No newline at end of file diff --git a/docs/models/ledger/V2SchemaResponse.md b/docs/models/ledger/V2SchemaResponse.md new file mode 100644 index 000000000..8961410c7 --- /dev/null +++ b/docs/models/ledger/V2SchemaResponse.md @@ -0,0 +1,8 @@ +# V2SchemaResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `v2SchemaData` | [V2SchemaData1](../../models/shared/V2SchemaData1.md) | :heavy_check_mark: | Complete schema structure with metadata | \ No newline at end of file diff --git a/docs/models/ledger/V2SchemasCursor.md b/docs/models/ledger/V2SchemasCursor.md new file mode 100644 index 000000000..ace63536a --- /dev/null +++ b/docs/models/ledger/V2SchemasCursor.md @@ -0,0 +1,12 @@ +# V2SchemasCursor + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `data` | List\<[V2SchemaData1](../../models/shared/V2SchemaData1.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ= | +| `pageSize` | *long* | :heavy_check_mark: | N/A | | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/V2SchemasCursorResponse.md b/docs/models/ledger/V2SchemasCursorResponse.md similarity index 91% rename from docs/models/shared/V2SchemasCursorResponse.md rename to docs/models/ledger/V2SchemasCursorResponse.md index 5461b91d0..e416e097c 100644 --- a/docs/models/shared/V2SchemasCursorResponse.md +++ b/docs/models/ledger/V2SchemasCursorResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `cursor` | [V2SchemasCursor](../../models/shared/V2SchemasCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2SchemasCursor` | [V2SchemasCursor](../../models/shared/V2SchemasCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Stats.md b/docs/models/ledger/V2Stats.md similarity index 100% rename from docs/models/shared/V2Stats.md rename to docs/models/ledger/V2Stats.md diff --git a/docs/models/shared/V2StatsResponse.md b/docs/models/ledger/V2StatsResponse.md similarity index 88% rename from docs/models/shared/V2StatsResponse.md rename to docs/models/ledger/V2StatsResponse.md index 07cb4a033..1292fd500 100644 --- a/docs/models/shared/V2StatsResponse.md +++ b/docs/models/ledger/V2StatsResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `data` | [V2Stats](../../models/shared/V2Stats.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2Stats` | [V2Stats](../../models/shared/V2Stats.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/ledger/V2Transaction.md b/docs/models/ledger/V2Transaction.md new file mode 100644 index 000000000..78d5ede96 --- /dev/null +++ b/docs/models/ledger/V2Transaction.md @@ -0,0 +1,21 @@ +# V2Transaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| `v2AggregatedVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2AggregatedVolumes1` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2AggregatedVolumes2` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2AggregatedVolumes3` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | +| `v2Metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `id` | *BigInteger* | :heavy_check_mark: | N/A | | +| `insertedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | +| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_check_mark: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `reverted` | *boolean* | :heavy_check_mark: | N/A | | +| `revertedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | +| `template` | *Optional\* | :heavy_minus_sign: | N/A | | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2TransactionTemplate.md b/docs/models/ledger/V2TransactionTemplate.md similarity index 100% rename from docs/models/shared/V2TransactionTemplate.md rename to docs/models/ledger/V2TransactionTemplate.md index 5e6d86bbb..9caa8e943 100644 --- a/docs/models/shared/V2TransactionTemplate.md +++ b/docs/models/ledger/V2TransactionTemplate.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `description` | *Optional\* | :heavy_minus_sign: | N/A | | `runtime` | [Optional\](../../models/shared/Runtime.md) | :heavy_minus_sign: | The numscript runtime used to execute the script. Uses "machine" by default, unless the "--experimental-numscript-interpreter" feature flag is passed. | +| `description` | *Optional\* | :heavy_minus_sign: | N/A | | `script` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2TransactionsCursorResponse.md b/docs/models/ledger/V2TransactionsCursorResponse.md similarity index 100% rename from docs/models/shared/V2TransactionsCursorResponse.md rename to docs/models/ledger/V2TransactionsCursorResponse.md diff --git a/docs/models/shared/V2TransactionsCursorResponseCursor.md b/docs/models/ledger/V2TransactionsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V2TransactionsCursorResponseCursor.md rename to docs/models/ledger/V2TransactionsCursorResponseCursor.md diff --git a/docs/models/shared/V2TransactionsCursorResponseResource.md b/docs/models/ledger/V2TransactionsCursorResponseResource.md similarity index 82% rename from docs/models/shared/V2TransactionsCursorResponseResource.md rename to docs/models/ledger/V2TransactionsCursorResponseResource.md index 6089ca173..ee62e2e6d 100644 --- a/docs/models/shared/V2TransactionsCursorResponseResource.md +++ b/docs/models/ledger/V2TransactionsCursorResponseResource.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2TransactionsCursorResponseResource; +import com.formance.formance_sdk.models.ledger.V2TransactionsCursorResponseResource; V2TransactionsCursorResponseResource value = V2TransactionsCursorResponseResource.TRANSACTIONS; ``` diff --git a/docs/models/shared/V2Volume.md b/docs/models/ledger/V2Volume.md similarity index 100% rename from docs/models/shared/V2Volume.md rename to docs/models/ledger/V2Volume.md diff --git a/docs/models/shared/V2VolumesWithBalance.md b/docs/models/ledger/V2VolumesWithBalance.md similarity index 100% rename from docs/models/shared/V2VolumesWithBalance.md rename to docs/models/ledger/V2VolumesWithBalance.md diff --git a/docs/models/shared/V2VolumesWithBalanceCursorResponse.md b/docs/models/ledger/V2VolumesWithBalanceCursorResponse.md similarity index 100% rename from docs/models/shared/V2VolumesWithBalanceCursorResponse.md rename to docs/models/ledger/V2VolumesWithBalanceCursorResponse.md diff --git a/docs/models/shared/V2VolumesWithBalanceCursorResponseCursor.md b/docs/models/ledger/V2VolumesWithBalanceCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V2VolumesWithBalanceCursorResponseCursor.md rename to docs/models/ledger/V2VolumesWithBalanceCursorResponseCursor.md diff --git a/docs/models/shared/V2VolumesWithBalanceCursorResponseResource.md b/docs/models/ledger/V2VolumesWithBalanceCursorResponseResource.md similarity index 82% rename from docs/models/shared/V2VolumesWithBalanceCursorResponseResource.md rename to docs/models/ledger/V2VolumesWithBalanceCursorResponseResource.md index 3f04cfc95..42ca872d4 100644 --- a/docs/models/shared/V2VolumesWithBalanceCursorResponseResource.md +++ b/docs/models/ledger/V2VolumesWithBalanceCursorResponseResource.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2VolumesWithBalanceCursorResponseResource; +import com.formance.formance_sdk.models.ledger.V2VolumesWithBalanceCursorResponseResource; V2VolumesWithBalanceCursorResponseResource value = V2VolumesWithBalanceCursorResponseResource.VOLUMES; ``` diff --git a/docs/models/shared/Volume.md b/docs/models/ledger/Volume.md similarity index 100% rename from docs/models/shared/Volume.md rename to docs/models/ledger/Volume.md diff --git a/docs/models/operations/CreateAccountResponse.md b/docs/models/operations/CreateAccountResponse.md index e1924e6cb..aaf79864c 100644 --- a/docs/models/operations/CreateAccountResponse.md +++ b/docs/models/operations/CreateAccountResponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `accountResponse` | [Optional\](../../models/shared/AccountResponse.md) | :heavy_minus_sign: | OK | | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `paymentsAccountResponse` | [Optional\](../../models/shared/PaymentsAccountResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/CreateBalanceRequest.md b/docs/models/operations/CreateBalanceRequest.md index 0c19d8f98..32751619c 100644 --- a/docs/models/operations/CreateBalanceRequest.md +++ b/docs/models/operations/CreateBalanceRequest.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `createBalanceRequest` | [Optional\](../../models/shared/CreateBalanceRequest.md) | :heavy_minus_sign: | N/A | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | Use an idempotency key | -| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `balance` | [Optional\](../../models/shared/Balance.md) | :heavy_minus_sign: | N/A | +| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | Use an idempotency key | +| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/CreateSecretRequest.md b/docs/models/operations/CreateSecretRequest.md index 99b6952db..c7a30f82d 100644 --- a/docs/models/operations/CreateSecretRequest.md +++ b/docs/models/operations/CreateSecretRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `createSecretRequest` | [Optional\](../../models/shared/CreateSecretRequest.md) | :heavy_minus_sign: | N/A | -| `clientId` | *String* | :heavy_check_mark: | Client ID | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `secretOptions` | [Optional\](../../models/shared/SecretOptions1.md) | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Client ID | \ No newline at end of file diff --git a/docs/models/operations/GetAccountLedgerRequest.md b/docs/models/operations/GetAccountLedgerRequest.md new file mode 100644 index 000000000..cf14bc104 --- /dev/null +++ b/docs/models/operations/GetAccountLedgerRequest.md @@ -0,0 +1,9 @@ +# GetAccountLedgerRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `address` | *String* | :heavy_check_mark: | Exact address of the account. It must match the following regular expressions pattern:
```
^\w+(:\w+)*$
```
| users:001 | +| `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | \ No newline at end of file diff --git a/docs/models/operations/GetAccountLedgerResponse.md b/docs/models/operations/GetAccountLedgerResponse.md new file mode 100644 index 000000000..e2f70811b --- /dev/null +++ b/docs/models/operations/GetAccountLedgerResponse.md @@ -0,0 +1,11 @@ +# GetAccountLedgerResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `accountResponse` | [Optional\](../../models/shared/AccountResponse.md) | :heavy_minus_sign: | OK | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetAccountPaymentsRequest.md b/docs/models/operations/GetAccountPaymentsRequest.md new file mode 100644 index 000000000..cdfbab008 --- /dev/null +++ b/docs/models/operations/GetAccountPaymentsRequest.md @@ -0,0 +1,8 @@ +# GetAccountPaymentsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `accountId` | *String* | :heavy_check_mark: | The account ID. | XXX | \ No newline at end of file diff --git a/docs/models/operations/GetAccountPaymentsResponse.md b/docs/models/operations/GetAccountPaymentsResponse.md new file mode 100644 index 000000000..3bad3caa9 --- /dev/null +++ b/docs/models/operations/GetAccountPaymentsResponse.md @@ -0,0 +1,11 @@ +# GetAccountPaymentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `accountResponse` | [Optional\](../../models/shared/AccountResponse.md) | :heavy_minus_sign: | OK | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetAccountRequest.md b/docs/models/operations/GetAccountRequest.md deleted file mode 100644 index 32fe7be8d..000000000 --- a/docs/models/operations/GetAccountRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetAccountRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | -| `address` | *String* | :heavy_check_mark: | Exact address of the account. It must match the following regular expressions pattern:
```
^\w+(:\w+)*$
```
| users:001 | -| `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | \ No newline at end of file diff --git a/docs/models/operations/GetAccountResponse.md b/docs/models/operations/GetAccountResponse.md deleted file mode 100644 index 2b1959cb9..000000000 --- a/docs/models/operations/GetAccountResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetAccountResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `accountResponse` | [Optional\](../../models/shared/AccountResponse.md) | :heavy_minus_sign: | OK | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoAuthResponse.md b/docs/models/operations/GetServerInfoAuthResponse.md new file mode 100644 index 000000000..6c53151a1 --- /dev/null +++ b/docs/models/operations/GetServerInfoAuthResponse.md @@ -0,0 +1,11 @@ +# GetServerInfoAuthResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoOrchestrationResponse.md b/docs/models/operations/GetServerInfoOrchestrationResponse.md new file mode 100644 index 000000000..426174b8a --- /dev/null +++ b/docs/models/operations/GetServerInfoOrchestrationResponse.md @@ -0,0 +1,11 @@ +# GetServerInfoOrchestrationResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoPaymentsResponse.md b/docs/models/operations/GetServerInfoPaymentsResponse.md new file mode 100644 index 000000000..415377f9d --- /dev/null +++ b/docs/models/operations/GetServerInfoPaymentsResponse.md @@ -0,0 +1,11 @@ +# GetServerInfoPaymentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoReconciliationResponse.md b/docs/models/operations/GetServerInfoReconciliationResponse.md new file mode 100644 index 000000000..63f9b2d8f --- /dev/null +++ b/docs/models/operations/GetServerInfoReconciliationResponse.md @@ -0,0 +1,11 @@ +# GetServerInfoReconciliationResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoResponse.md b/docs/models/operations/GetServerInfoResponse.md deleted file mode 100644 index 02b8cc0e8..000000000 --- a/docs/models/operations/GetServerInfoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetServerInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoSearchResponse.md b/docs/models/operations/GetServerInfoSearchResponse.md new file mode 100644 index 000000000..c8a3e4a67 --- /dev/null +++ b/docs/models/operations/GetServerInfoSearchResponse.md @@ -0,0 +1,11 @@ +# GetServerInfoSearchResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/GetServerInfoWalletsResponse.md b/docs/models/operations/GetServerInfoWalletsResponse.md new file mode 100644 index 000000000..919eda7fb --- /dev/null +++ b/docs/models/operations/GetServerInfoWalletsResponse.md @@ -0,0 +1,11 @@ +# GetServerInfoWalletsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListAccountsLedgerRequest.md b/docs/models/operations/ListAccountsLedgerRequest.md new file mode 100644 index 000000000..381077544 --- /dev/null +++ b/docs/models/operations/ListAccountsLedgerRequest.md @@ -0,0 +1,15 @@ +# ListAccountsLedgerRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `address` | *Optional\* | :heavy_minus_sign: | Filter accounts by address pattern (regular expression placed between ^ and $). | users:.+ | +| `after` | *Optional\* | :heavy_minus_sign: | Pagination cursor, will return accounts after given address, in descending order. | users:003 | +| `balance` | *Optional\* | :heavy_minus_sign: | Filter accounts by their balance (default operator is gte) | 2400 | +| `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 1000.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | +| `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | +| `metadata` | Map\ | :heavy_minus_sign: | Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example below. | metadata[key]=value1&metadata[a.nested.key]=value2 | +| `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | +| ~~`paginationToken`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Parameter used in pagination requests. Maximum page size is set to 1000.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
Deprecated, please use `cursor` instead.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | \ No newline at end of file diff --git a/docs/models/operations/ListAccountsLedgerResponse.md b/docs/models/operations/ListAccountsLedgerResponse.md new file mode 100644 index 000000000..26ca893af --- /dev/null +++ b/docs/models/operations/ListAccountsLedgerResponse.md @@ -0,0 +1,12 @@ +# ListAccountsLedgerResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `accountsCursorResponse` | [Optional\](../../models/shared/AccountsCursorResponse.md) | :heavy_minus_sign: | OK | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `errorResponse` | [Optional\](../../models/shared/ErrorResponse.md) | :heavy_minus_sign: | Not found | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListAccountsPaymentsRequest.md b/docs/models/operations/ListAccountsPaymentsRequest.md new file mode 100644 index 000000000..22eb8d06f --- /dev/null +++ b/docs/models/operations/ListAccountsPaymentsRequest.md @@ -0,0 +1,12 @@ +# ListAccountsPaymentsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | +| `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | +| `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | +| `query` | *Optional\* | :heavy_minus_sign: | Filters used to filter resources.
| | +| `sort` | List\<*String*> | :heavy_minus_sign: | Fields used to sort payments (default is date:desc). | [
"date:asc",
"status:desc"
] | \ No newline at end of file diff --git a/docs/models/operations/ListAccountsPaymentsResponse.md b/docs/models/operations/ListAccountsPaymentsResponse.md new file mode 100644 index 000000000..74eca97a3 --- /dev/null +++ b/docs/models/operations/ListAccountsPaymentsResponse.md @@ -0,0 +1,11 @@ +# ListAccountsPaymentsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | +| `accountsCursor` | [Optional\](../../models/shared/AccountsCursor.md) | :heavy_minus_sign: | OK | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListAccountsRequest.md b/docs/models/operations/ListAccountsRequest.md deleted file mode 100644 index ef7a685bd..000000000 --- a/docs/models/operations/ListAccountsRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# ListAccountsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `address` | *Optional\* | :heavy_minus_sign: | Filter accounts by address pattern (regular expression placed between ^ and $). | users:.+ | -| `after` | *Optional\* | :heavy_minus_sign: | Pagination cursor, will return accounts after given address, in descending order. | users:003 | -| `balance` | *Optional\* | :heavy_minus_sign: | Filter accounts by their balance (default operator is gte) | 2400 | -| `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 1000.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | -| `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | -| `metadata` | Map\ | :heavy_minus_sign: | Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example below. | metadata[key]=value1&metadata[a.nested.key]=value2 | -| `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | -| ~~`paginationToken`~~ | *Optional\* | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

Parameter used in pagination requests. Maximum page size is set to 1000.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
Deprecated, please use `cursor` instead.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | \ No newline at end of file diff --git a/docs/models/operations/ListAccountsResponse.md b/docs/models/operations/ListAccountsResponse.md deleted file mode 100644 index 597762f44..000000000 --- a/docs/models/operations/ListAccountsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ListAccountsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `accountsCursorResponse` | [Optional\](../../models/shared/AccountsCursorResponse.md) | :heavy_minus_sign: | OK | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `errorResponse` | [Optional\](../../models/shared/ErrorResponse.md) | :heavy_minus_sign: | Not found | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ListPoliciesRequest.md b/docs/models/operations/ListPoliciesRequest.md index 3f87c04a9..3f1d58cdc 100644 --- a/docs/models/operations/ListPoliciesRequest.md +++ b/docs/models/operations/ListPoliciesRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | \ No newline at end of file diff --git a/docs/models/operations/ListReconciliationsRequest.md b/docs/models/operations/ListReconciliationsRequest.md index 4b0a1c235..03f441211 100644 --- a/docs/models/operations/ListReconciliationsRequest.md +++ b/docs/models/operations/ListReconciliationsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | \ No newline at end of file diff --git a/docs/models/operations/OrchestrationgetServerInfoResponse.md b/docs/models/operations/OrchestrationgetServerInfoResponse.md deleted file mode 100644 index f68cccba3..000000000 --- a/docs/models/operations/OrchestrationgetServerInfoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# OrchestrationgetServerInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/PaymentsgetAccountRequest.md b/docs/models/operations/PaymentsgetAccountRequest.md deleted file mode 100644 index be918e308..000000000 --- a/docs/models/operations/PaymentsgetAccountRequest.md +++ /dev/null @@ -1,8 +0,0 @@ -# PaymentsgetAccountRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | -| `accountId` | *String* | :heavy_check_mark: | The account ID. | XXX | \ No newline at end of file diff --git a/docs/models/operations/PaymentsgetAccountResponse.md b/docs/models/operations/PaymentsgetAccountResponse.md deleted file mode 100644 index 5e68a79b7..000000000 --- a/docs/models/operations/PaymentsgetAccountResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentsgetAccountResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `paymentsAccountResponse` | [Optional\](../../models/shared/PaymentsAccountResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/PaymentsgetServerInfoResponse.md b/docs/models/operations/PaymentsgetServerInfoResponse.md deleted file mode 100644 index ca5e55cdd..000000000 --- a/docs/models/operations/PaymentsgetServerInfoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentsgetServerInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `paymentsServerInfo` | [Optional\](../../models/shared/PaymentsServerInfo.md) | :heavy_minus_sign: | Server information | \ No newline at end of file diff --git a/docs/models/operations/PaymentslistAccountsRequest.md b/docs/models/operations/PaymentslistAccountsRequest.md deleted file mode 100644 index 00db25cb9..000000000 --- a/docs/models/operations/PaymentslistAccountsRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentslistAccountsRequest - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | -| `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | -| `query` | *Optional\* | :heavy_minus_sign: | Filters used to filter resources.
| | -| `sort` | List\<*String*> | :heavy_minus_sign: | Fields used to sort payments (default is date:desc). | [
"date:asc",
"status:desc"
] | \ No newline at end of file diff --git a/docs/models/operations/PaymentslistAccountsResponse.md b/docs/models/operations/PaymentslistAccountsResponse.md deleted file mode 100644 index ed981c89b..000000000 --- a/docs/models/operations/PaymentslistAccountsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentslistAccountsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `accountsCursor` | [Optional\](../../models/shared/AccountsCursor.md) | :heavy_minus_sign: | OK | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/ReconciliationgetServerInfoResponse.md b/docs/models/operations/ReconciliationgetServerInfoResponse.md deleted file mode 100644 index 67462ddff..000000000 --- a/docs/models/operations/ReconciliationgetServerInfoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ReconciliationgetServerInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/RunScriptResponse.md b/docs/models/operations/RunScriptResponse.md index 6430a0760..740ffe14c 100644 --- a/docs/models/operations/RunScriptResponse.md +++ b/docs/models/operations/RunScriptResponse.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `scriptResponse` | [Optional\](../../models/shared/ScriptResponse.md) | :heavy_minus_sign: | On success, it will return a 200 status code, and the resulting transaction under the `transaction` field.

On failure, it will also return a 200 status code, and the following fields:

- `details`: contains a URL. When there is an error parsing Numscript, the result can be difficult to read—the provided URL will render the error in an easy-to-read format.
- `errorCode` and `error_code` (deprecated): contains the string code of the error
- `errorMessage` and `error_message` (deprecated): contains a human-readable indication of what went wrong, for example that an account had insufficient funds, or that there was an error in the provided Numscript.
| -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `scriptResponse` | [Optional\](../../models/shared/ScriptResponse.md) | :heavy_minus_sign: | On success, it will return a 200 status code, and the resulting transaction under the `transaction` field.

On failure, it will also return a 200 status code, and the following fields:


- `details`: contains a URL. When there is an error parsing Numscript, the result can be difficult to read—the provided URL will render the error in an easy-to-read format.
- `errorCode` and `error_code` (deprecated): contains the string code of the error
- `errorMessage` and `error_message` (deprecated): contains a human-readable indication of what went wrong, for example that an account had insufficient funds, or that there was an error in the provided Numscript.
| +| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/SearchgetServerInfoResponse.md b/docs/models/operations/SearchgetServerInfoResponse.md deleted file mode 100644 index 3241cccb9..000000000 --- a/docs/models/operations/SearchgetServerInfoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SearchgetServerInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/UpdateClientRequest.md b/docs/models/operations/UpdateClientRequest.md index 4dbe536e1..e750ffd7b 100644 --- a/docs/models/operations/UpdateClientRequest.md +++ b/docs/models/operations/UpdateClientRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `createClientRequest` | [Optional\](../../models/shared/CreateClientRequest.md) | :heavy_minus_sign: | N/A | -| `clientId` | *String* | :heavy_check_mark: | Client ID | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `clientOptions` | [Optional\](../../models/shared/ClientOptions2.md) | :heavy_minus_sign: | N/A | +| `clientId` | *String* | :heavy_check_mark: | Client ID | \ No newline at end of file diff --git a/docs/models/operations/UpdateClientResponse.md b/docs/models/operations/UpdateClientResponse.md index 4b6ba5c21..adfa9c05d 100644 --- a/docs/models/operations/UpdateClientResponse.md +++ b/docs/models/operations/UpdateClientResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | +| `createClientResponse` | [Optional\](../../models/shared/CreateClientResponse.md) | :heavy_minus_sign: | Updated client | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `updateClientResponse` | [Optional\](../../models/shared/UpdateClientResponse.md) | :heavy_minus_sign: | Updated client | \ No newline at end of file +| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/V2CountAccountsRequest.md b/docs/models/operations/V2CountAccountsRequest.md index 3d409c7bd..64bd816ba 100644 --- a/docs/models/operations/V2CountAccountsRequest.md +++ b/docs/models/operations/V2CountAccountsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | | `pit` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/V2CountTransactionsRequest.md b/docs/models/operations/V2CountTransactionsRequest.md index 6ae127e44..322d30a94 100644 --- a/docs/models/operations/V2CountTransactionsRequest.md +++ b/docs/models/operations/V2CountTransactionsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | | `pit` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/operations/V2CreateBulkRequest.md b/docs/models/operations/V2CreateBulkRequest.md index d47c86874..730422722 100644 --- a/docs/models/operations/V2CreateBulkRequest.md +++ b/docs/models/operations/V2CreateBulkRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `requestBody` | List\<[V2BulkElement](../../models/shared/V2BulkElement.md)> | :heavy_check_mark: | N/A | | +| `requestBody` | List\<*Object*> | :heavy_check_mark: | N/A | | | `atomic` | *Optional\* | :heavy_minus_sign: | Make bulk atomic | true | | `continueOnFailure` | *Optional\* | :heavy_minus_sign: | Continue on failure | true | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | diff --git a/docs/models/operations/V2CreateExporterResponse.md b/docs/models/operations/V2CreateExporterResponse.md index 2d41bfb9a..63addc955 100644 --- a/docs/models/operations/V2CreateExporterResponse.md +++ b/docs/models/operations/V2CreateExporterResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional\](../../models/operations/V2CreateExporterResponseBody.md) | :heavy_minus_sign: | Created exporter | \ No newline at end of file +| `v2CreateExporterResponse` | [Optional\](../../models/operations/V2CreateExporterResponse.md) | :heavy_minus_sign: | Created exporter | \ No newline at end of file diff --git a/docs/models/operations/V2CreateExporterResponseBody.md b/docs/models/operations/V2CreateExporterResponseBody.md deleted file mode 100644 index e5e8fb0f9..000000000 --- a/docs/models/operations/V2CreateExporterResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2CreateExporterResponseBody - -Created exporter - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V2Exporter](../../models/shared/V2Exporter.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2CreatePipelineResponse.md b/docs/models/operations/V2CreatePipelineResponse.md index fc6c58e74..7a4898836 100644 --- a/docs/models/operations/V2CreatePipelineResponse.md +++ b/docs/models/operations/V2CreatePipelineResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional\](../../models/operations/V2CreatePipelineResponseBody.md) | :heavy_minus_sign: | Created ipeline | \ No newline at end of file +| `v2CreatePipelineResponse` | [Optional\](../../models/operations/V2CreatePipelineResponse.md) | :heavy_minus_sign: | Created ipeline | \ No newline at end of file diff --git a/docs/models/operations/V2CreatePipelineResponseBody.md b/docs/models/operations/V2CreatePipelineResponseBody.md deleted file mode 100644 index b48652fd8..000000000 --- a/docs/models/operations/V2CreatePipelineResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2CreatePipelineResponseBody - -Created ipeline - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V2Pipeline](../../models/shared/V2Pipeline.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2GetBalancesAggregatedRequest.md b/docs/models/operations/V2GetBalancesAggregatedRequest.md index 7b1348778..2763f4e30 100644 --- a/docs/models/operations/V2GetBalancesAggregatedRequest.md +++ b/docs/models/operations/V2GetBalancesAggregatedRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | | `pit` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | | `useInsertionDate` | *Optional\* | :heavy_minus_sign: | Use insertion date instead of effective date | | \ No newline at end of file diff --git a/docs/models/operations/V2GetExporterStateResponse.md b/docs/models/operations/V2GetExporterStateResponse.md index 13e62e46a..b28312976 100644 --- a/docs/models/operations/V2GetExporterStateResponse.md +++ b/docs/models/operations/V2GetExporterStateResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional\](../../models/operations/V2GetExporterStateResponseBody.md) | :heavy_minus_sign: | Exporter information | \ No newline at end of file +| `v2GetExporterStateResponse` | [Optional\](../../models/operations/V2GetExporterStateResponse.md) | :heavy_minus_sign: | Exporter information | \ No newline at end of file diff --git a/docs/models/operations/V2GetExporterStateResponseBody.md b/docs/models/operations/V2GetExporterStateResponseBody.md deleted file mode 100644 index b6ab8092f..000000000 --- a/docs/models/operations/V2GetExporterStateResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2GetExporterStateResponseBody - -Exporter information - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V2Exporter](../../models/shared/V2Exporter.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2GetInfoResponse.md b/docs/models/operations/V2GetInfoResponse.md index 63a74faa0..163409394 100644 --- a/docs/models/operations/V2GetInfoResponse.md +++ b/docs/models/operations/V2GetInfoResponse.md @@ -8,5 +8,5 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `v2ConfigInfoResponse` | [Optional\](../../models/shared/V2ConfigInfoResponse.md) | :heavy_minus_sign: | OK | +| `v2ConfigInfo` | [Optional\](../../models/shared/V2ConfigInfo.md) | :heavy_minus_sign: | OK | | `v2ErrorResponse` | [Optional\](../../models/shared/V2ErrorResponse.md) | :heavy_minus_sign: | Error | \ No newline at end of file diff --git a/docs/models/operations/V2GetPipelineStateResponse.md b/docs/models/operations/V2GetPipelineStateResponse.md index 538be290e..652431aff 100644 --- a/docs/models/operations/V2GetPipelineStateResponse.md +++ b/docs/models/operations/V2GetPipelineStateResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional\](../../models/operations/V2GetPipelineStateResponseBody.md) | :heavy_minus_sign: | Pipeline information | \ No newline at end of file +| `v2GetPipelineStateResponse` | [Optional\](../../models/operations/V2GetPipelineStateResponse.md) | :heavy_minus_sign: | Pipeline information | \ No newline at end of file diff --git a/docs/models/operations/V2GetPipelineStateResponseBody.md b/docs/models/operations/V2GetPipelineStateResponseBody.md deleted file mode 100644 index 777200192..000000000 --- a/docs/models/operations/V2GetPipelineStateResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2GetPipelineStateResponseBody - -Pipeline information - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V2Pipeline](../../models/shared/V2Pipeline.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2GetVolumesWithBalancesRequest.md b/docs/models/operations/V2GetVolumesWithBalancesRequest.md index debba6aef..197c04716 100644 --- a/docs/models/operations/V2GetVolumesWithBalancesRequest.md +++ b/docs/models/operations/V2GetVolumesWithBalancesRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `endTime` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | | `groupBy` | *Optional\* | :heavy_minus_sign: | Group volumes and balance by the level of the segment of the address | 3 | diff --git a/docs/models/operations/V2InsertSchemaRequest.md b/docs/models/operations/V2InsertSchemaRequest.md index 9375e635d..edf924d88 100644 --- a/docs/models/operations/V2InsertSchemaRequest.md +++ b/docs/models/operations/V2InsertSchemaRequest.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | Use an idempotency key | | -| `v2SchemaData` | [V2SchemaData](../../models/shared/V2SchemaData.md) | :heavy_check_mark: | N/A | | -| `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | -| `version` | *String* | :heavy_check_mark: | Schema version. | v1.0.0 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | +| `idempotencyKey` | *Optional\* | :heavy_minus_sign: | Use an idempotency key | | +| `v2SchemaData` | [V2SchemaData2](../../models/shared/V2SchemaData2.md) | :heavy_check_mark: | N/A | | +| `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | +| `version` | *String* | :heavy_check_mark: | Schema version. | v1.0.0 | \ No newline at end of file diff --git a/docs/models/operations/V2ListAccountsRequest.md b/docs/models/operations/V2ListAccountsRequest.md index d42cbe14b..ec48694ae 100644 --- a/docs/models/operations/V2ListAccountsRequest.md +++ b/docs/models/operations/V2ListAccountsRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `expand` | *Optional\* | :heavy_minus_sign: | N/A | | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | diff --git a/docs/models/operations/V2ListExportersCursor1.md b/docs/models/operations/V2ListExportersCursor1.md deleted file mode 100644 index 1c2f63a88..000000000 --- a/docs/models/operations/V2ListExportersCursor1.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2ListExportersCursor1 - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `cursor` | [V2ListExportersCursor2](../../models/operations/V2ListExportersCursor2.md) | :heavy_check_mark: | N/A | -| `data` | List\<[V2Exporter](../../models/shared/V2Exporter.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2ListExportersCursor2.md b/docs/models/operations/V2ListExportersCursor2.md deleted file mode 100644 index b379f899d..000000000 --- a/docs/models/operations/V2ListExportersCursor2.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2ListExportersCursor2 - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `data` | List\<[V2Exporter](../../models/shared/V2Exporter.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ= | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/operations/V2ListExportersResponse.md b/docs/models/operations/V2ListExportersResponse.md index 6f1d5d078..cea3da6de 100644 --- a/docs/models/operations/V2ListExportersResponse.md +++ b/docs/models/operations/V2ListExportersResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional\](../../models/operations/V2ListExportersResponseBody.md) | :heavy_minus_sign: | Exporters list | \ No newline at end of file +| `v2ExportersCursorResponse` | [Optional\](../../models/shared/V2ExportersCursorResponse.md) | :heavy_minus_sign: | Exporters list | \ No newline at end of file diff --git a/docs/models/operations/V2ListExportersResponseBody.md b/docs/models/operations/V2ListExportersResponseBody.md deleted file mode 100644 index 6d8d1f5a4..000000000 --- a/docs/models/operations/V2ListExportersResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2ListExportersResponseBody - -Exporters list - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `cursor` | [Optional\](../../models/operations/V2ListExportersCursor1.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2ListLedgersRequest.md b/docs/models/operations/V2ListLedgersRequest.md index ecb5b8bca..a4066b4ee 100644 --- a/docs/models/operations/V2ListLedgersRequest.md +++ b/docs/models/operations/V2ListLedgersRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `includeDeleted` | *Optional\* | :heavy_minus_sign: | If true, include deleted ledgers in the results. By default, deleted ledgers are excluded.
| false | | `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | diff --git a/docs/models/operations/V2ListLogsRequest.md b/docs/models/operations/V2ListLogsRequest.md index a5c5bca81..715db8a9a 100644 --- a/docs/models/operations/V2ListLogsRequest.md +++ b/docs/models/operations/V2ListLogsRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | | `pageSize` | *Optional\* | :heavy_minus_sign: | The maximum number of results to return per page.
| 100 | diff --git a/docs/models/operations/V2ListPipelinesCursor1.md b/docs/models/operations/V2ListPipelinesCursor1.md deleted file mode 100644 index 5e3b8b9b0..000000000 --- a/docs/models/operations/V2ListPipelinesCursor1.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2ListPipelinesCursor1 - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `cursor` | [V2ListPipelinesCursor2](../../models/operations/V2ListPipelinesCursor2.md) | :heavy_check_mark: | N/A | -| `data` | List\<[V2Pipeline](../../models/shared/V2Pipeline.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2ListPipelinesCursor2.md b/docs/models/operations/V2ListPipelinesCursor2.md deleted file mode 100644 index 1943a0a9f..000000000 --- a/docs/models/operations/V2ListPipelinesCursor2.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2ListPipelinesCursor2 - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `data` | List\<[V2Pipeline](../../models/shared/V2Pipeline.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ= | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/operations/V2ListPipelinesResponse.md b/docs/models/operations/V2ListPipelinesResponse.md index 534c52914..84b6c00cf 100644 --- a/docs/models/operations/V2ListPipelinesResponse.md +++ b/docs/models/operations/V2ListPipelinesResponse.md @@ -8,4 +8,4 @@ | `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `object` | [Optional\](../../models/operations/V2ListPipelinesResponseBody.md) | :heavy_minus_sign: | Pipelines list | \ No newline at end of file +| `v2PipelinesCursorResponse` | [Optional\](../../models/shared/V2PipelinesCursorResponse.md) | :heavy_minus_sign: | Pipelines list | \ No newline at end of file diff --git a/docs/models/operations/V2ListPipelinesResponseBody.md b/docs/models/operations/V2ListPipelinesResponseBody.md deleted file mode 100644 index 9b9dae537..000000000 --- a/docs/models/operations/V2ListPipelinesResponseBody.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2ListPipelinesResponseBody - -Pipelines list - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `cursor` | [Optional\](../../models/operations/V2ListPipelinesCursor1.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2ListTransactionsRequest.md b/docs/models/operations/V2ListTransactionsRequest.md index 3fddd2ece..dfeb29720 100644 --- a/docs/models/operations/V2ListTransactionsRequest.md +++ b/docs/models/operations/V2ListTransactionsRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `requestBody` | Map\ | :heavy_check_mark: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Maximum page size is set to 15.
Set to the value of next for the next page of results.
Set to the value of previous for the previous page of results.
No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `expand` | *Optional\* | :heavy_minus_sign: | N/A | | | `ledger` | *String* | :heavy_check_mark: | Name of the ledger. | ledger001 | diff --git a/docs/models/operations/V2RevertTransactionResponse.md b/docs/models/operations/V2RevertTransactionResponse.md index 2093afd87..aea6a71fc 100644 --- a/docs/models/operations/V2RevertTransactionResponse.md +++ b/docs/models/operations/V2RevertTransactionResponse.md @@ -9,4 +9,4 @@ | `headers` | Map\> | :heavy_check_mark: | N/A | | `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `v2RevertTransactionResponse` | [Optional\](../../models/shared/V2RevertTransactionResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file +| `v2CreateTransactionResponse` | [Optional\](../../models/shared/V2CreateTransactionResponse.md) | :heavy_minus_sign: | OK | \ No newline at end of file diff --git a/docs/models/operations/V2RunQueryRequestBody.md b/docs/models/operations/V2RunQueryRequestBody.md index 29f8ab4d8..01f4fb2a9 100644 --- a/docs/models/operations/V2RunQueryRequestBody.md +++ b/docs/models/operations/V2RunQueryRequestBody.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | +| `v2QueryParams` | [Optional\](../../models/shared/V2QueryParams.md) | :heavy_minus_sign: | N/A | | `cursor` | *Optional\* | :heavy_minus_sign: | N/A | -| `params` | [Optional\](../../models/shared/V2QueryParams.md) | :heavy_minus_sign: | N/A | | `vars` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/V2UpdateExporterRequest.md b/docs/models/operations/V2UpdateExporterRequest.md index 702d6e0d3..9580fb33c 100644 --- a/docs/models/operations/V2UpdateExporterRequest.md +++ b/docs/models/operations/V2UpdateExporterRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `v2CreateExporterRequest` | [V2CreateExporterRequest](../../models/shared/V2CreateExporterRequest.md) | :heavy_check_mark: | N/A | -| `exporterID` | *String* | :heavy_check_mark: | The exporter id | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `v2ExporterConfiguration` | [V2ExporterConfiguration2](../../models/shared/V2ExporterConfiguration2.md) | :heavy_check_mark: | N/A | +| `exporterID` | *String* | :heavy_check_mark: | The exporter id | \ No newline at end of file diff --git a/docs/models/operations/V3InstallConnectorRequest.md b/docs/models/operations/V3InstallConnectorRequest.md index a8e9adf50..800b39382 100644 --- a/docs/models/operations/V3InstallConnectorRequest.md +++ b/docs/models/operations/V3InstallConnectorRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `v3InstallConnectorRequest` | [Optional\](../../models/shared/V3InstallConnectorRequest.md) | :heavy_minus_sign: | N/A | -| `connector` | *String* | :heavy_check_mark: | The connector to filter by | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `v3ConnectorConfig` | [Optional\](../../models/shared/V3ConnectorConfig.md) | :heavy_minus_sign: | N/A | +| `connector` | *String* | :heavy_check_mark: | The connector to filter by | \ No newline at end of file diff --git a/docs/models/operations/V3ListAccountsRequest.md b/docs/models/operations/V3ListAccountsRequest.md index d5c650d2d..91f6b6b61 100644 --- a/docs/models/operations/V3ListAccountsRequest.md +++ b/docs/models/operations/V3ListAccountsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListBankAccountsRequest.md b/docs/models/operations/V3ListBankAccountsRequest.md index cbd7bc545..caf1a074f 100644 --- a/docs/models/operations/V3ListBankAccountsRequest.md +++ b/docs/models/operations/V3ListBankAccountsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListConnectorSchedulesRequest.md b/docs/models/operations/V3ListConnectorSchedulesRequest.md index 44ebd7843..9ce7c8791 100644 --- a/docs/models/operations/V3ListConnectorSchedulesRequest.md +++ b/docs/models/operations/V3ListConnectorSchedulesRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `connectorID` | *String* | :heavy_check_mark: | The connector ID | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListConnectorsRequest.md b/docs/models/operations/V3ListConnectorsRequest.md index 3b1470c91..f3a9af23d 100644 --- a/docs/models/operations/V3ListConnectorsRequest.md +++ b/docs/models/operations/V3ListConnectorsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListPaymentInitiationAdjustmentsRequest.md b/docs/models/operations/V3ListPaymentInitiationAdjustmentsRequest.md index 1ff852cd3..e1a4e0485 100644 --- a/docs/models/operations/V3ListPaymentInitiationAdjustmentsRequest.md +++ b/docs/models/operations/V3ListPaymentInitiationAdjustmentsRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | | `paymentInitiationID` | *String* | :heavy_check_mark: | The payment initiation ID | | \ No newline at end of file diff --git a/docs/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.md b/docs/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.md index f3b026e39..7d28474d1 100644 --- a/docs/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.md +++ b/docs/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | | `paymentInitiationID` | *String* | :heavy_check_mark: | The payment initiation ID | | \ No newline at end of file diff --git a/docs/models/operations/V3ListPaymentInitiationsRequest.md b/docs/models/operations/V3ListPaymentInitiationsRequest.md index 52d88c068..dca0277d3 100644 --- a/docs/models/operations/V3ListPaymentInitiationsRequest.md +++ b/docs/models/operations/V3ListPaymentInitiationsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.md b/docs/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.md index 57fc2bdeb..c1a5fe563 100644 --- a/docs/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.md +++ b/docs/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `connectorID` | *String* | :heavy_check_mark: | The connector ID | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | diff --git a/docs/models/operations/V3ListPaymentServiceUserConnectionsRequest.md b/docs/models/operations/V3ListPaymentServiceUserConnectionsRequest.md index 29147f5ae..f858482fd 100644 --- a/docs/models/operations/V3ListPaymentServiceUserConnectionsRequest.md +++ b/docs/models/operations/V3ListPaymentServiceUserConnectionsRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | | `paymentServiceUserID` | *String* | :heavy_check_mark: | The payment service user ID | | \ No newline at end of file diff --git a/docs/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.md b/docs/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.md index c289eb995..32997e05b 100644 --- a/docs/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.md +++ b/docs/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `connectorID` | *String* | :heavy_check_mark: | The connector ID | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | diff --git a/docs/models/operations/V3ListPaymentServiceUsersRequest.md b/docs/models/operations/V3ListPaymentServiceUsersRequest.md index 8c493840a..3151adced 100644 --- a/docs/models/operations/V3ListPaymentServiceUsersRequest.md +++ b/docs/models/operations/V3ListPaymentServiceUsersRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListPaymentsRequest.md b/docs/models/operations/V3ListPaymentsRequest.md index 0bf4f6b17..8bf896e44 100644 --- a/docs/models/operations/V3ListPaymentsRequest.md +++ b/docs/models/operations/V3ListPaymentsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3ListPoolsRequest.md b/docs/models/operations/V3ListPoolsRequest.md index f9d52dd31..479c398e7 100644 --- a/docs/models/operations/V3ListPoolsRequest.md +++ b/docs/models/operations/V3ListPoolsRequest.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `requestBody` | Map\ | :heavy_minus_sign: | N/A | | | `cursor` | *Optional\* | :heavy_minus_sign: | Parameter used in pagination requests. Set to the value of next for the next page of results. Set to the value of previous for the previous page of results. No other parameters can be set when this parameter is set.
| aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ== | | `pageSize` | *Optional\* | :heavy_minus_sign: | The number of items to return | 100 | \ No newline at end of file diff --git a/docs/models/operations/V3UpdateConnectorConfigRequest.md b/docs/models/operations/V3UpdateConnectorConfigRequest.md index bc7dadee1..e39c5c21c 100644 --- a/docs/models/operations/V3UpdateConnectorConfigRequest.md +++ b/docs/models/operations/V3UpdateConnectorConfigRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `v3InstallConnectorRequest` | [Optional\](../../models/shared/V3InstallConnectorRequest.md) | :heavy_minus_sign: | N/A | -| `connectorID` | *String* | :heavy_check_mark: | The connector ID | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `v3ConnectorConfig` | [Optional\](../../models/shared/V3ConnectorConfig.md) | :heavy_minus_sign: | N/A | +| `connectorID` | *String* | :heavy_check_mark: | The connector ID | \ No newline at end of file diff --git a/docs/models/operations/WalletsgetServerInfoResponse.md b/docs/models/operations/WalletsgetServerInfoResponse.md deleted file mode 100644 index b4a3c7af8..000000000 --- a/docs/models/operations/WalletsgetServerInfoResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# WalletsgetServerInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | -| `contentType` | *String* | :heavy_check_mark: | HTTP response content type for this operation | -| `serverInfo` | [Optional\](../../models/shared/ServerInfo.md) | :heavy_minus_sign: | Server information | -| `statusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `rawResponse` | [HttpResponse\](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/orchestration/Account.md b/docs/models/orchestration/Account.md new file mode 100644 index 000000000..1c44ec65b --- /dev/null +++ b/docs/models/orchestration/Account.md @@ -0,0 +1,11 @@ +# Account + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | +| `volumes1` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | +| `address` | *String* | :heavy_check_mark: | N/A | users:001 | +| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | \ No newline at end of file diff --git a/docs/models/orchestration/AccountResponse.md b/docs/models/orchestration/AccountResponse.md new file mode 100644 index 000000000..4305f2408 --- /dev/null +++ b/docs/models/orchestration/AccountResponse.md @@ -0,0 +1,8 @@ +# AccountResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `account` | [Account](../../models/shared/Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ActivityAddAccountMetadata.md b/docs/models/orchestration/ActivityAddAccountMetadata.md similarity index 100% rename from docs/models/shared/ActivityAddAccountMetadata.md rename to docs/models/orchestration/ActivityAddAccountMetadata.md diff --git a/docs/models/shared/ActivityConfirmHold.md b/docs/models/orchestration/ActivityConfirmHold.md similarity index 100% rename from docs/models/shared/ActivityConfirmHold.md rename to docs/models/orchestration/ActivityConfirmHold.md diff --git a/docs/models/orchestration/ActivityCreateTransaction.md b/docs/models/orchestration/ActivityCreateTransaction.md new file mode 100644 index 000000000..cc1fde5e4 --- /dev/null +++ b/docs/models/orchestration/ActivityCreateTransaction.md @@ -0,0 +1,9 @@ +# ActivityCreateTransaction + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | +| `postTransaction` | [Optional\](../../models/shared/PostTransaction.md) | :heavy_minus_sign: | N/A | +| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/ActivityCreditWallet.md b/docs/models/orchestration/ActivityCreditWallet.md new file mode 100644 index 000000000..d442b9ffd --- /dev/null +++ b/docs/models/orchestration/ActivityCreditWallet.md @@ -0,0 +1,9 @@ +# ActivityCreditWallet + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `creditWalletRequest` | [Optional\](../../models/shared/CreditWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"sources": []
} | +| `id` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ActivityDebitWallet.md b/docs/models/orchestration/ActivityDebitWallet.md similarity index 96% rename from docs/models/shared/ActivityDebitWallet.md rename to docs/models/orchestration/ActivityDebitWallet.md index e2f9c6886..3aea30d3b 100644 --- a/docs/models/shared/ActivityDebitWallet.md +++ b/docs/models/orchestration/ActivityDebitWallet.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/DebitWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"pending": true
} | +| `debitWalletRequest` | [Optional\](../../models/shared/DebitWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"pending": true
} | | `id` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ActivityGetAccount.md b/docs/models/orchestration/ActivityGetAccount.md similarity index 100% rename from docs/models/shared/ActivityGetAccount.md rename to docs/models/orchestration/ActivityGetAccount.md diff --git a/docs/models/shared/ActivityGetPayment.md b/docs/models/orchestration/ActivityGetPayment.md similarity index 100% rename from docs/models/shared/ActivityGetPayment.md rename to docs/models/orchestration/ActivityGetPayment.md diff --git a/docs/models/shared/ActivityGetWallet.md b/docs/models/orchestration/ActivityGetWallet.md similarity index 100% rename from docs/models/shared/ActivityGetWallet.md rename to docs/models/orchestration/ActivityGetWallet.md diff --git a/docs/models/shared/ActivityListWallets.md b/docs/models/orchestration/ActivityListWallets.md similarity index 100% rename from docs/models/shared/ActivityListWallets.md rename to docs/models/orchestration/ActivityListWallets.md diff --git a/docs/models/shared/ActivityRevertTransaction.md b/docs/models/orchestration/ActivityRevertTransaction.md similarity index 100% rename from docs/models/shared/ActivityRevertTransaction.md rename to docs/models/orchestration/ActivityRevertTransaction.md diff --git a/docs/models/shared/ActivityVoidHold.md b/docs/models/orchestration/ActivityVoidHold.md similarity index 100% rename from docs/models/shared/ActivityVoidHold.md rename to docs/models/orchestration/ActivityVoidHold.md diff --git a/docs/models/shared/AssetHolder.md b/docs/models/orchestration/AssetHolder.md similarity index 100% rename from docs/models/shared/AssetHolder.md rename to docs/models/orchestration/AssetHolder.md diff --git a/docs/models/orchestration/Connector.md b/docs/models/orchestration/Connector.md new file mode 100644 index 000000000..26d0c22d7 --- /dev/null +++ b/docs/models/orchestration/Connector.md @@ -0,0 +1,23 @@ +# Connector + +## Example Usage + +```java +import com.formance.formance_sdk.models.orchestration.Connector; + +Connector value = Connector.STRIPE; +``` + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `STRIPE` | STRIPE | +| `DUMMY_PAY` | DUMMY-PAY | +| `WISE` | WISE | +| `MODULR` | MODULR | +| `CURRENCY_CLOUD` | CURRENCY-CLOUD | +| `BANKING_CIRCLE` | BANKING-CIRCLE | +| `MANGOPAY` | MANGOPAY | +| `MONEYCORP` | MONEYCORP | \ No newline at end of file diff --git a/docs/models/orchestration/CreateTransactionResponse.md b/docs/models/orchestration/CreateTransactionResponse.md new file mode 100644 index 000000000..8e110dfcc --- /dev/null +++ b/docs/models/orchestration/CreateTransactionResponse.md @@ -0,0 +1,8 @@ +# CreateTransactionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `transaction` | [Transaction](../../models/shared/Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/CreateTriggerResponse.md b/docs/models/orchestration/CreateTriggerResponse.md new file mode 100644 index 000000000..028826e7d --- /dev/null +++ b/docs/models/orchestration/CreateTriggerResponse.md @@ -0,0 +1,8 @@ +# CreateTriggerResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `triggerData` | [TriggerData1](../../models/shared/TriggerData1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateWorkflowResponse.md b/docs/models/orchestration/CreateWorkflowResponse.md similarity index 89% rename from docs/models/shared/CreateWorkflowResponse.md rename to docs/models/orchestration/CreateWorkflowResponse.md index 5770d39ed..2903d2d66 100644 --- a/docs/models/shared/CreateWorkflowResponse.md +++ b/docs/models/orchestration/CreateWorkflowResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `data` | [Workflow](../../models/shared/Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflow` | [Workflow](../../models/shared/Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/CreditWalletRequest.md b/docs/models/orchestration/CreditWalletRequest.md new file mode 100644 index 000000000..79040f40a --- /dev/null +++ b/docs/models/orchestration/CreditWalletRequest.md @@ -0,0 +1,13 @@ +# CreditWalletRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `monetary` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | +| `balance` | *Optional\* | :heavy_minus_sign: | The balance to credit | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | +| `sources` | List\<[Subject](../../models/shared/Subject.md)> | :heavy_check_mark: | N/A | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/DebitWalletRequest.md b/docs/models/orchestration/DebitWalletRequest.md new file mode 100644 index 000000000..78e60cb15 --- /dev/null +++ b/docs/models/orchestration/DebitWalletRequest.md @@ -0,0 +1,14 @@ +# DebitWalletRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `monetary` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | +| `subject` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | +| `balances` | List\<*String*> | :heavy_minus_sign: | N/A | +| `description` | *Optional\* | :heavy_minus_sign: | N/A | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | +| `pending` | *Optional\* | :heavy_minus_sign: | Set to true to create a pending hold. If false, the wallet will be debited immediately. | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | cannot be used in conjunction with `pending` property | \ No newline at end of file diff --git a/docs/models/orchestration/DebitWalletResponse.md b/docs/models/orchestration/DebitWalletResponse.md new file mode 100644 index 000000000..dcd5276f6 --- /dev/null +++ b/docs/models/orchestration/DebitWalletResponse.md @@ -0,0 +1,8 @@ +# DebitWalletResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | +| `hold` | [Hold](../../models/shared/Hold.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/Error.md b/docs/models/orchestration/Error.md similarity index 100% rename from docs/models/errors/Error.md rename to docs/models/orchestration/Error.md diff --git a/docs/models/errors/ErrorErrorCode.md b/docs/models/orchestration/ErrorErrorCode.md similarity index 79% rename from docs/models/errors/ErrorErrorCode.md rename to docs/models/orchestration/ErrorErrorCode.md index 2a2983bcf..9549e3749 100644 --- a/docs/models/errors/ErrorErrorCode.md +++ b/docs/models/orchestration/ErrorErrorCode.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.errors.ErrorErrorCode; +import com.formance.formance_sdk.models.orchestration.ErrorErrorCode; ErrorErrorCode value = ErrorErrorCode.VALIDATION; ``` diff --git a/docs/models/shared/Filter.md b/docs/models/orchestration/Filter.md similarity index 100% rename from docs/models/shared/Filter.md rename to docs/models/orchestration/Filter.md diff --git a/docs/models/orchestration/GetWalletResponse.md b/docs/models/orchestration/GetWalletResponse.md new file mode 100644 index 000000000..bd1515c48 --- /dev/null +++ b/docs/models/orchestration/GetWalletResponse.md @@ -0,0 +1,8 @@ +# GetWalletResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `walletWithBalances` | [WalletWithBalances](../../models/shared/WalletWithBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetWorkflowInstanceHistoryResponse.md b/docs/models/orchestration/GetWorkflowInstanceHistoryResponse.md similarity index 93% rename from docs/models/shared/GetWorkflowInstanceHistoryResponse.md rename to docs/models/orchestration/GetWorkflowInstanceHistoryResponse.md index 301b6ff7d..128d0334a 100644 --- a/docs/models/shared/GetWorkflowInstanceHistoryResponse.md +++ b/docs/models/orchestration/GetWorkflowInstanceHistoryResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `data` | List\<[WorkflowInstanceHistory](../../models/shared/WorkflowInstanceHistory.md)> | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflowInstanceHistoryList` | List\<[WorkflowInstanceHistory](../../models/shared/WorkflowInstanceHistory.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetWorkflowInstanceHistoryStageResponse.md b/docs/models/orchestration/GetWorkflowInstanceHistoryStageResponse.md similarity index 94% rename from docs/models/shared/GetWorkflowInstanceHistoryStageResponse.md rename to docs/models/orchestration/GetWorkflowInstanceHistoryStageResponse.md index e12c00559..dd58b0dfc 100644 --- a/docs/models/shared/GetWorkflowInstanceHistoryStageResponse.md +++ b/docs/models/orchestration/GetWorkflowInstanceHistoryStageResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `data` | List\<[WorkflowInstanceHistoryStage](../../models/shared/WorkflowInstanceHistoryStage.md)> | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflowInstanceHistoryStageList` | List\<[WorkflowInstanceHistoryStage](../../models/shared/WorkflowInstanceHistoryStage.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetWorkflowInstanceResponse.md b/docs/models/orchestration/GetWorkflowInstanceResponse.md similarity index 91% rename from docs/models/shared/GetWorkflowInstanceResponse.md rename to docs/models/orchestration/GetWorkflowInstanceResponse.md index 8493f67d0..9a1c5d092 100644 --- a/docs/models/shared/GetWorkflowInstanceResponse.md +++ b/docs/models/orchestration/GetWorkflowInstanceResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `data` | [WorkflowInstance](../../models/shared/WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflowInstance` | [WorkflowInstance](../../models/shared/WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetWorkflowResponse.md b/docs/models/orchestration/GetWorkflowResponse.md similarity index 89% rename from docs/models/shared/GetWorkflowResponse.md rename to docs/models/orchestration/GetWorkflowResponse.md index 0fb48a6f5..957ec0712 100644 --- a/docs/models/shared/GetWorkflowResponse.md +++ b/docs/models/orchestration/GetWorkflowResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `data` | [Workflow](../../models/shared/Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflow` | [Workflow](../../models/shared/Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Hold.md b/docs/models/orchestration/Hold.md similarity index 84% rename from docs/models/shared/Hold.md rename to docs/models/orchestration/Hold.md index 555a0d4fc..60a97d7ef 100644 --- a/docs/models/shared/Hold.md +++ b/docs/models/orchestration/Hold.md @@ -5,9 +5,8 @@ | Field | Type | Required | Description | | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `asset` | *String* | :heavy_check_mark: | N/A | +| `subject` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | | `description` | *String* | :heavy_check_mark: | N/A | -| `destination` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | The unique ID of the hold. | | `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the hold. | | `walletID` | *String* | :heavy_check_mark: | The ID of the wallet the hold is associated with. | \ No newline at end of file diff --git a/docs/models/shared/LedgerAccountSubject.md b/docs/models/orchestration/LedgerAccountSubject.md similarity index 100% rename from docs/models/shared/LedgerAccountSubject.md rename to docs/models/orchestration/LedgerAccountSubject.md diff --git a/docs/models/shared/ListRunsResponse.md b/docs/models/orchestration/ListRunsResponse.md similarity index 100% rename from docs/models/shared/ListRunsResponse.md rename to docs/models/orchestration/ListRunsResponse.md diff --git a/docs/models/shared/ListTriggersOccurrencesResponse.md b/docs/models/orchestration/ListTriggersOccurrencesResponse.md similarity index 100% rename from docs/models/shared/ListTriggersOccurrencesResponse.md rename to docs/models/orchestration/ListTriggersOccurrencesResponse.md diff --git a/docs/models/orchestration/ListTriggersResponse.md b/docs/models/orchestration/ListTriggersResponse.md new file mode 100644 index 000000000..38b1fed70 --- /dev/null +++ b/docs/models/orchestration/ListTriggersResponse.md @@ -0,0 +1,8 @@ +# ListTriggersResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `data` | List\<[TriggerData1](../../models/shared/TriggerData1.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ListWalletsResponse.md b/docs/models/orchestration/ListWalletsResponse.md similarity index 100% rename from docs/models/shared/ListWalletsResponse.md rename to docs/models/orchestration/ListWalletsResponse.md diff --git a/docs/models/shared/ListWalletsResponseCursor.md b/docs/models/orchestration/ListWalletsResponseCursor.md similarity index 100% rename from docs/models/shared/ListWalletsResponseCursor.md rename to docs/models/orchestration/ListWalletsResponseCursor.md diff --git a/docs/models/shared/ListWorkflowsResponse.md b/docs/models/orchestration/ListWorkflowsResponse.md similarity index 100% rename from docs/models/shared/ListWorkflowsResponse.md rename to docs/models/orchestration/ListWorkflowsResponse.md diff --git a/docs/models/shared/Monetary.md b/docs/models/orchestration/Monetary.md similarity index 100% rename from docs/models/shared/Monetary.md rename to docs/models/orchestration/Monetary.md diff --git a/docs/models/orchestration/Payment.md b/docs/models/orchestration/Payment.md new file mode 100644 index 000000000..1053a7b47 --- /dev/null +++ b/docs/models/orchestration/Payment.md @@ -0,0 +1,22 @@ +# Payment + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `connector` | [Optional\](../../models/shared/Connector.md) | :heavy_minus_sign: | N/A | | +| `paymentMetadata` | [Optional\](../../models/shared/PaymentMetadata.md) | :heavy_check_mark: | N/A | | +| `paymentStatus` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | +| `adjustments` | List\<[PaymentAdjustment](../../models/shared/PaymentAdjustment.md)> | :heavy_check_mark: | N/A | | +| `asset` | *String* | :heavy_check_mark: | N/A | USD | +| `connectorID` | *String* | :heavy_check_mark: | N/A | | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `destinationAccountID` | *String* | :heavy_check_mark: | N/A | | +| `id` | *String* | :heavy_check_mark: | N/A | XXX | +| `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `raw` | [Optional\](../../models/shared/PaymentRaw.md) | :heavy_check_mark: | N/A | | +| `reference` | *String* | :heavy_check_mark: | N/A | | +| `scheme` | [PaymentScheme](../../models/shared/PaymentScheme.md) | :heavy_check_mark: | N/A | | +| `sourceAccountID` | *String* | :heavy_check_mark: | N/A | | +| `type` | [PaymentType](../../models/shared/PaymentType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/orchestration/PaymentAdjustment.md b/docs/models/orchestration/PaymentAdjustment.md new file mode 100644 index 000000000..73dd4689a --- /dev/null +++ b/docs/models/orchestration/PaymentAdjustment.md @@ -0,0 +1,12 @@ +# PaymentAdjustment + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `paymentStatus` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | +| `absolute` | *boolean* | :heavy_check_mark: | N/A | | +| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `date` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `raw` | [PaymentAdjustmentRaw](../../models/shared/PaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/PaymentAdjustmentRaw.md b/docs/models/orchestration/PaymentAdjustmentRaw.md similarity index 100% rename from docs/models/shared/PaymentAdjustmentRaw.md rename to docs/models/orchestration/PaymentAdjustmentRaw.md diff --git a/docs/models/orchestration/PaymentMetadata.md b/docs/models/orchestration/PaymentMetadata.md new file mode 100644 index 000000000..4bce7119c --- /dev/null +++ b/docs/models/orchestration/PaymentMetadata.md @@ -0,0 +1,8 @@ +# PaymentMetadata + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `key` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PaymentRaw.md b/docs/models/orchestration/PaymentRaw.md similarity index 100% rename from docs/models/shared/PaymentRaw.md rename to docs/models/orchestration/PaymentRaw.md diff --git a/docs/models/orchestration/PaymentResponse.md b/docs/models/orchestration/PaymentResponse.md new file mode 100644 index 000000000..be21cf8b7 --- /dev/null +++ b/docs/models/orchestration/PaymentResponse.md @@ -0,0 +1,8 @@ +# PaymentResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `payment` | [Payment](../../models/shared/Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/PaymentScheme.md b/docs/models/orchestration/PaymentScheme.md new file mode 100644 index 000000000..62230a7fe --- /dev/null +++ b/docs/models/orchestration/PaymentScheme.md @@ -0,0 +1,33 @@ +# PaymentScheme + +## Example Usage + +```java +import com.formance.formance_sdk.models.orchestration.PaymentScheme; + +PaymentScheme value = PaymentScheme.VISA; +``` + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `VISA` | visa | +| `MASTERCARD` | mastercard | +| `AMEX` | amex | +| `DINERS` | diners | +| `DISCOVER` | discover | +| `JCB` | jcb | +| `UNIONPAY` | unionpay | +| `SEPA_DEBIT` | sepa debit | +| `SEPA_CREDIT` | sepa credit | +| `SEPA` | sepa | +| `APPLE_PAY` | apple pay | +| `GOOGLE_PAY` | google pay | +| `A2A` | a2a | +| `ACH_DEBIT` | ach debit | +| `ACH` | ach | +| `RTP` | rtp | +| `UNKNOWN` | unknown | +| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/orchestration/PaymentStatus.md b/docs/models/orchestration/PaymentStatus.md new file mode 100644 index 000000000..0e4f50a73 --- /dev/null +++ b/docs/models/orchestration/PaymentStatus.md @@ -0,0 +1,21 @@ +# PaymentStatus + +## Example Usage + +```java +import com.formance.formance_sdk.models.orchestration.PaymentStatus; + +PaymentStatus value = PaymentStatus.PENDING; +``` + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `PENDING` | PENDING | +| `ACTIVE` | ACTIVE | +| `TERMINATED` | TERMINATED | +| `FAILED` | FAILED | +| `SUCCEEDED` | SUCCEEDED | +| `CANCELLED` | CANCELLED | \ No newline at end of file diff --git a/docs/models/orchestration/PaymentType.md b/docs/models/orchestration/PaymentType.md new file mode 100644 index 000000000..6510abbf7 --- /dev/null +++ b/docs/models/orchestration/PaymentType.md @@ -0,0 +1,19 @@ +# PaymentType + +## Example Usage + +```java +import com.formance.formance_sdk.models.orchestration.PaymentType; + +PaymentType value = PaymentType.PAY_IN; +``` + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `PAY_IN` | PAY-IN | +| `PAYOUT` | PAYOUT | +| `TRANSFER` | TRANSFER | +| `OTHER` | OTHER | \ No newline at end of file diff --git a/docs/models/orchestration/PostTransaction.md b/docs/models/orchestration/PostTransaction.md new file mode 100644 index 000000000..e7e0e49ea --- /dev/null +++ b/docs/models/orchestration/PostTransaction.md @@ -0,0 +1,12 @@ +# PostTransaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_minus_sign: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `script` | [Optional\](../../models/shared/PostTransactionScript.md) | :heavy_minus_sign: | N/A | | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/orchestration/PostTransactionScript.md b/docs/models/orchestration/PostTransactionScript.md new file mode 100644 index 000000000..7c9704352 --- /dev/null +++ b/docs/models/orchestration/PostTransactionScript.md @@ -0,0 +1,9 @@ +# PostTransactionScript + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `plain` | *String* | :heavy_check_mark: | N/A | vars {
account $user
}
send [COIN 10] (
source = @world
destination = $user
)
| +| `vars` | Map\ | :heavy_minus_sign: | N/A | {
"user": "users:042"
} | \ No newline at end of file diff --git a/docs/models/orchestration/Posting.md b/docs/models/orchestration/Posting.md new file mode 100644 index 000000000..8fca4a0b2 --- /dev/null +++ b/docs/models/orchestration/Posting.md @@ -0,0 +1,11 @@ +# Posting + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `asset` | *String* | :heavy_check_mark: | N/A | COIN | +| `destination` | *String* | :heavy_check_mark: | N/A | users:002 | +| `source` | *String* | :heavy_check_mark: | N/A | users:001 | \ No newline at end of file diff --git a/docs/models/orchestration/ReadTriggerResponse.md b/docs/models/orchestration/ReadTriggerResponse.md new file mode 100644 index 000000000..affdd5bb7 --- /dev/null +++ b/docs/models/orchestration/ReadTriggerResponse.md @@ -0,0 +1,8 @@ +# ReadTriggerResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `triggerData` | [TriggerData1](../../models/shared/TriggerData1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/RunWorkflowResponse.md b/docs/models/orchestration/RunWorkflowResponse.md similarity index 91% rename from docs/models/shared/RunWorkflowResponse.md rename to docs/models/orchestration/RunWorkflowResponse.md index 4d0e9460a..544972abf 100644 --- a/docs/models/shared/RunWorkflowResponse.md +++ b/docs/models/orchestration/RunWorkflowResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `data` | [WorkflowInstance](../../models/shared/WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflowInstance` | [WorkflowInstance](../../models/shared/WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/ServerInfo.md b/docs/models/orchestration/ServerInfo.md new file mode 100644 index 000000000..375caaa22 --- /dev/null +++ b/docs/models/orchestration/ServerInfo.md @@ -0,0 +1,8 @@ +# ServerInfo + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Stage.md b/docs/models/orchestration/Stage.md similarity index 100% rename from docs/models/shared/Stage.md rename to docs/models/orchestration/Stage.md diff --git a/docs/models/shared/StageDelay.md b/docs/models/orchestration/StageDelay.md similarity index 100% rename from docs/models/shared/StageDelay.md rename to docs/models/orchestration/StageDelay.md diff --git a/docs/models/shared/StageSend.md b/docs/models/orchestration/StageSend.md similarity index 92% rename from docs/models/shared/StageSend.md rename to docs/models/orchestration/StageSend.md index 8be606922..0473dd8a4 100644 --- a/docs/models/shared/StageSend.md +++ b/docs/models/orchestration/StageSend.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [Optional\](../../models/shared/Monetary.md) | :heavy_minus_sign: | N/A | -| `destination` | [Optional\](../../models/shared/StageSendDestination.md) | :heavy_minus_sign: | N/A | +| `monetary` | [Optional\](../../models/shared/Monetary.md) | :heavy_minus_sign: | N/A | +| `stageSendDestination` | [Optional\](../../models/shared/StageSendDestination.md) | :heavy_minus_sign: | N/A | +| `stageSendSource` | [Optional\](../../models/shared/StageSendSource.md) | :heavy_minus_sign: | N/A | | `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `source` | [Optional\](../../models/shared/StageSendSource.md) | :heavy_minus_sign: | N/A | | `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageSendDestination.md b/docs/models/orchestration/StageSendDestination.md similarity index 76% rename from docs/models/shared/StageSendDestination.md rename to docs/models/orchestration/StageSendDestination.md index a18e31753..8e9588044 100644 --- a/docs/models/shared/StageSendDestination.md +++ b/docs/models/orchestration/StageSendDestination.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `account` | [Optional\](../../models/shared/StageSendDestinationAccount.md) | :heavy_minus_sign: | N/A | -| `payment` | [Optional\](../../models/shared/StageSendDestinationPayment.md) | :heavy_minus_sign: | N/A | -| `wallet` | [Optional\](../../models/shared/StageSendDestinationWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `stageSendDestinationPayment` | [Optional\](../../models/shared/StageSendDestinationPayment.md) | :heavy_minus_sign: | N/A | +| `stageSendSourceAccount` | [Optional\](../../models/shared/StageSendSourceAccount.md) | :heavy_minus_sign: | N/A | +| `stageSendSourceWallet` | [Optional\](../../models/shared/StageSendSourceWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageSendDestinationPayment.md b/docs/models/orchestration/StageSendDestinationPayment.md similarity index 100% rename from docs/models/shared/StageSendDestinationPayment.md rename to docs/models/orchestration/StageSendDestinationPayment.md diff --git a/docs/models/orchestration/StageSendSource.md b/docs/models/orchestration/StageSendSource.md new file mode 100644 index 000000000..75b4b7bf0 --- /dev/null +++ b/docs/models/orchestration/StageSendSource.md @@ -0,0 +1,10 @@ +# StageSendSource + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `stageSendSourceAccount` | [Optional\](../../models/shared/StageSendSourceAccount.md) | :heavy_minus_sign: | N/A | +| `stageSendSourcePayment` | [Optional\](../../models/shared/StageSendSourcePayment.md) | :heavy_minus_sign: | N/A | +| `stageSendSourceWallet` | [Optional\](../../models/shared/StageSendSourceWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/StageSendSourceAccount.md b/docs/models/orchestration/StageSendSourceAccount.md new file mode 100644 index 000000000..b6efc1182 --- /dev/null +++ b/docs/models/orchestration/StageSendSourceAccount.md @@ -0,0 +1,9 @@ +# StageSendSourceAccount + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageSendSourcePayment.md b/docs/models/orchestration/StageSendSourcePayment.md similarity index 100% rename from docs/models/shared/StageSendSourcePayment.md rename to docs/models/orchestration/StageSendSourcePayment.md diff --git a/docs/models/orchestration/StageSendSourceWallet.md b/docs/models/orchestration/StageSendSourceWallet.md new file mode 100644 index 000000000..442597e49 --- /dev/null +++ b/docs/models/orchestration/StageSendSourceWallet.md @@ -0,0 +1,9 @@ +# StageSendSourceWallet + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `balance` | *Optional\* | :heavy_minus_sign: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageStatus.md b/docs/models/orchestration/StageStatus.md similarity index 100% rename from docs/models/shared/StageStatus.md rename to docs/models/orchestration/StageStatus.md diff --git a/docs/models/shared/StageWaitEvent.md b/docs/models/orchestration/StageWaitEvent.md similarity index 100% rename from docs/models/shared/StageWaitEvent.md rename to docs/models/orchestration/StageWaitEvent.md diff --git a/docs/models/orchestration/StripeTransferRequest.md b/docs/models/orchestration/StripeTransferRequest.md new file mode 100644 index 000000000..0c834fcee --- /dev/null +++ b/docs/models/orchestration/StripeTransferRequest.md @@ -0,0 +1,13 @@ +# StripeTransferRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 100 | +| `asset` | *Optional\* | :heavy_minus_sign: | N/A | USD | +| `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | | +| `destination` | *Optional\* | :heavy_minus_sign: | N/A | acct_1Gqj58KZcSIg2N2q | +| `metadata` | [Optional\](../../models/shared/StripeTransferRequestMetadata.md) | :heavy_minus_sign: | A set of key/value pairs that you can attach to a transfer object.
It can be useful for storing additional information about the transfer in a structured format.
| {
"order_id": "6735"
} | +| `waitingValidation` | *Optional\* | :heavy_minus_sign: | N/A | false | \ No newline at end of file diff --git a/docs/models/orchestration/StripeTransferRequestMetadata.md b/docs/models/orchestration/StripeTransferRequestMetadata.md new file mode 100644 index 000000000..d99b0e678 --- /dev/null +++ b/docs/models/orchestration/StripeTransferRequestMetadata.md @@ -0,0 +1,11 @@ +# StripeTransferRequestMetadata + +A set of key/value pairs that you can attach to a transfer object. +It can be useful for storing additional information about the transfer in a structured format. + + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/Subject.md b/docs/models/orchestration/Subject.md similarity index 100% rename from docs/models/shared/Subject.md rename to docs/models/orchestration/Subject.md diff --git a/docs/models/orchestration/Transaction.md b/docs/models/orchestration/Transaction.md new file mode 100644 index 000000000..de3632efe --- /dev/null +++ b/docs/models/orchestration/Transaction.md @@ -0,0 +1,13 @@ +# Transaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `id` | *BigInteger* | :heavy_check_mark: | N/A | | +| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_check_mark: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `reverted` | *boolean* | :heavy_check_mark: | N/A | | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/orchestration/TriggerData1.md b/docs/models/orchestration/TriggerData1.md new file mode 100644 index 000000000..b5174701d --- /dev/null +++ b/docs/models/orchestration/TriggerData1.md @@ -0,0 +1,15 @@ +# TriggerData1 + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `event` | *String* | :heavy_check_mark: | N/A | +| `filter` | *Optional\* | :heavy_minus_sign: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | +| `vars` | Map\ | :heavy_minus_sign: | N/A | +| `version` | *Optional\* | :heavy_minus_sign: | N/A | +| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/TriggerData2.md b/docs/models/orchestration/TriggerData2.md new file mode 100644 index 000000000..d4988eee9 --- /dev/null +++ b/docs/models/orchestration/TriggerData2.md @@ -0,0 +1,13 @@ +# TriggerData2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `event` | *String* | :heavy_check_mark: | N/A | +| `filter` | *Optional\* | :heavy_minus_sign: | N/A | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | +| `vars` | Map\ | :heavy_minus_sign: | N/A | +| `version` | *Optional\* | :heavy_minus_sign: | N/A | +| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TriggerOccurrence.md b/docs/models/orchestration/TriggerOccurrence.md similarity index 100% rename from docs/models/shared/TriggerOccurrence.md rename to docs/models/orchestration/TriggerOccurrence.md index dd771fb36..73e5c2f5b 100644 --- a/docs/models/shared/TriggerOccurrence.md +++ b/docs/models/orchestration/TriggerOccurrence.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `workflowInstance` | [Optional\](../../models/shared/WorkflowInstance.md) | :heavy_minus_sign: | N/A | | `date` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | | `event` | Map\ | :heavy_check_mark: | N/A | | `triggerID` | *String* | :heavy_check_mark: | N/A | -| `workflowInstance` | [Optional\](../../models/shared/WorkflowInstance.md) | :heavy_minus_sign: | N/A | | `workflowInstanceID` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Update.md b/docs/models/orchestration/Update.md similarity index 92% rename from docs/models/shared/Update.md rename to docs/models/orchestration/Update.md index 4e21319ba..43fedeb0d 100644 --- a/docs/models/shared/Update.md +++ b/docs/models/orchestration/Update.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `account` | [Optional\](../../models/shared/UpdateAccount.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `updateAccount` | [Optional\](../../models/shared/UpdateAccount.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/UpdateAccount.md b/docs/models/orchestration/UpdateAccount.md similarity index 100% rename from docs/models/shared/UpdateAccount.md rename to docs/models/orchestration/UpdateAccount.md diff --git a/docs/models/orchestration/V2Account.md b/docs/models/orchestration/V2Account.md new file mode 100644 index 000000000..d54aebee0 --- /dev/null +++ b/docs/models/orchestration/V2Account.md @@ -0,0 +1,11 @@ +# V2Account + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `v2Volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | +| `v2Volumes1` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | +| `address` | *String* | :heavy_check_mark: | N/A | users:001 | +| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | \ No newline at end of file diff --git a/docs/models/orchestration/V2AccountResponse.md b/docs/models/orchestration/V2AccountResponse.md new file mode 100644 index 000000000..64dbb9ff8 --- /dev/null +++ b/docs/models/orchestration/V2AccountResponse.md @@ -0,0 +1,8 @@ +# V2AccountResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `v2Account` | [V2Account](../../models/shared/V2Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityAddAccountMetadata.md b/docs/models/orchestration/V2ActivityAddAccountMetadata.md similarity index 100% rename from docs/models/shared/V2ActivityAddAccountMetadata.md rename to docs/models/orchestration/V2ActivityAddAccountMetadata.md diff --git a/docs/models/shared/V2ActivityConfirmHold.md b/docs/models/orchestration/V2ActivityConfirmHold.md similarity index 100% rename from docs/models/shared/V2ActivityConfirmHold.md rename to docs/models/orchestration/V2ActivityConfirmHold.md diff --git a/docs/models/orchestration/V2ActivityCreateTransaction.md b/docs/models/orchestration/V2ActivityCreateTransaction.md new file mode 100644 index 000000000..b138b5ef3 --- /dev/null +++ b/docs/models/orchestration/V2ActivityCreateTransaction.md @@ -0,0 +1,9 @@ +# V2ActivityCreateTransaction + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | +| `v2PostTransaction` | [Optional\](../../models/shared/V2PostTransaction.md) | :heavy_minus_sign: | N/A | +| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityCreditWallet.md b/docs/models/orchestration/V2ActivityCreditWallet.md similarity index 96% rename from docs/models/shared/V2ActivityCreditWallet.md rename to docs/models/orchestration/V2ActivityCreditWallet.md index e892b2e7a..75f12abef 100644 --- a/docs/models/shared/V2ActivityCreditWallet.md +++ b/docs/models/orchestration/V2ActivityCreditWallet.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/V2CreditWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"sources": []
} | +| `v2CreditWalletRequest` | [Optional\](../../models/shared/V2CreditWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"sources": []
} | | `id` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityDebitWallet.md b/docs/models/orchestration/V2ActivityDebitWallet.md similarity index 96% rename from docs/models/shared/V2ActivityDebitWallet.md rename to docs/models/orchestration/V2ActivityDebitWallet.md index fbeb8d794..fe8253d05 100644 --- a/docs/models/shared/V2ActivityDebitWallet.md +++ b/docs/models/orchestration/V2ActivityDebitWallet.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/V2DebitWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"pending": true
} | +| `v2DebitWalletRequest` | [Optional\](../../models/shared/V2DebitWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"pending": true
} | | `id` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityGetAccount.md b/docs/models/orchestration/V2ActivityGetAccount.md similarity index 100% rename from docs/models/shared/V2ActivityGetAccount.md rename to docs/models/orchestration/V2ActivityGetAccount.md diff --git a/docs/models/shared/V2ActivityGetPayment.md b/docs/models/orchestration/V2ActivityGetPayment.md similarity index 100% rename from docs/models/shared/V2ActivityGetPayment.md rename to docs/models/orchestration/V2ActivityGetPayment.md diff --git a/docs/models/shared/V2ActivityGetWallet.md b/docs/models/orchestration/V2ActivityGetWallet.md similarity index 100% rename from docs/models/shared/V2ActivityGetWallet.md rename to docs/models/orchestration/V2ActivityGetWallet.md diff --git a/docs/models/shared/V2ActivityListWallets.md b/docs/models/orchestration/V2ActivityListWallets.md similarity index 100% rename from docs/models/shared/V2ActivityListWallets.md rename to docs/models/orchestration/V2ActivityListWallets.md diff --git a/docs/models/shared/V2ActivityVoidHold.md b/docs/models/orchestration/V2ActivityVoidHold.md similarity index 100% rename from docs/models/shared/V2ActivityVoidHold.md rename to docs/models/orchestration/V2ActivityVoidHold.md diff --git a/docs/models/shared/V2AssetHolder.md b/docs/models/orchestration/V2AssetHolder.md similarity index 100% rename from docs/models/shared/V2AssetHolder.md rename to docs/models/orchestration/V2AssetHolder.md diff --git a/docs/models/shared/V2Connector.md b/docs/models/orchestration/V2Connector.md similarity index 88% rename from docs/models/shared/V2Connector.md rename to docs/models/orchestration/V2Connector.md index 8b8d4963c..e18cffec4 100644 --- a/docs/models/shared/V2Connector.md +++ b/docs/models/orchestration/V2Connector.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2Connector; +import com.formance.formance_sdk.models.orchestration.V2Connector; V2Connector value = V2Connector.STRIPE; ``` diff --git a/docs/models/orchestration/V2CreateTransactionResponse.md b/docs/models/orchestration/V2CreateTransactionResponse.md new file mode 100644 index 000000000..a4cbbfa97 --- /dev/null +++ b/docs/models/orchestration/V2CreateTransactionResponse.md @@ -0,0 +1,8 @@ +# V2CreateTransactionResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | +| `data` | List\<[V2Transaction](../../models/shared/V2Transaction.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2CreateTriggerResponse.md b/docs/models/orchestration/V2CreateTriggerResponse.md new file mode 100644 index 000000000..8cd1054d7 --- /dev/null +++ b/docs/models/orchestration/V2CreateTriggerResponse.md @@ -0,0 +1,8 @@ +# V2CreateTriggerResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `v2TriggerData` | [V2TriggerData1](../../models/shared/V2TriggerData1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreateWorkflowResponse.md b/docs/models/orchestration/V2CreateWorkflowResponse.md similarity index 90% rename from docs/models/shared/V2CreateWorkflowResponse.md rename to docs/models/orchestration/V2CreateWorkflowResponse.md index 51c688cb4..b613b9016 100644 --- a/docs/models/shared/V2CreateWorkflowResponse.md +++ b/docs/models/orchestration/V2CreateWorkflowResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V2Workflow](../../models/shared/V2Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2Workflow` | [V2Workflow](../../models/shared/V2Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreditWalletRequest.md b/docs/models/orchestration/V2CreditWalletRequest.md similarity index 97% rename from docs/models/shared/V2CreditWalletRequest.md rename to docs/models/orchestration/V2CreditWalletRequest.md index 2adfc7046..cdf2a35bc 100644 --- a/docs/models/shared/V2CreditWalletRequest.md +++ b/docs/models/orchestration/V2CreditWalletRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [V2Monetary](../../models/shared/V2Monetary.md) | :heavy_check_mark: | N/A | +| `v2Monetary` | [V2Monetary](../../models/shared/V2Monetary.md) | :heavy_check_mark: | N/A | | `balance` | *Optional\* | :heavy_minus_sign: | The balance to credit | | `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | | `reference` | *Optional\* | :heavy_minus_sign: | N/A | diff --git a/docs/models/orchestration/V2Cursor.md b/docs/models/orchestration/V2Cursor.md new file mode 100644 index 000000000..6d94c3e09 --- /dev/null +++ b/docs/models/orchestration/V2Cursor.md @@ -0,0 +1,12 @@ +# V2Cursor + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `data` | List\<[V2Wallet](../../models/shared/V2Wallet.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/V2DebitWalletRequest.md b/docs/models/orchestration/V2DebitWalletRequest.md similarity index 96% rename from docs/models/shared/V2DebitWalletRequest.md rename to docs/models/orchestration/V2DebitWalletRequest.md index 0efdf5bb9..1c2b4f281 100644 --- a/docs/models/shared/V2DebitWalletRequest.md +++ b/docs/models/orchestration/V2DebitWalletRequest.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [V2Monetary](../../models/shared/V2Monetary.md) | :heavy_check_mark: | N/A | +| `v2Monetary` | [V2Monetary](../../models/shared/V2Monetary.md) | :heavy_check_mark: | N/A | +| `v2Subject` | [Optional\](../../models/shared/V2Subject.md) | :heavy_minus_sign: | N/A | | `balances` | List\<*String*> | :heavy_minus_sign: | N/A | | `description` | *Optional\* | :heavy_minus_sign: | N/A | -| `destination` | [Optional\](../../models/shared/V2Subject.md) | :heavy_minus_sign: | N/A | | `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | | `pending` | *Optional\* | :heavy_minus_sign: | Set to true to create a pending hold. If false, the wallet will be debited immediately. | | `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | cannot be used in conjunction with `pending` property | \ No newline at end of file diff --git a/docs/models/orchestration/V2DebitWalletResponse.md b/docs/models/orchestration/V2DebitWalletResponse.md new file mode 100644 index 000000000..31f43a28f --- /dev/null +++ b/docs/models/orchestration/V2DebitWalletResponse.md @@ -0,0 +1,8 @@ +# V2DebitWalletResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `v2Hold` | [V2Hold](../../models/shared/V2Hold.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/errors/V2Error.md b/docs/models/orchestration/V2Error.md similarity index 100% rename from docs/models/errors/V2Error.md rename to docs/models/orchestration/V2Error.md diff --git a/docs/models/errors/V2ErrorErrorCode.md b/docs/models/orchestration/V2ErrorErrorCode.md similarity index 79% rename from docs/models/errors/V2ErrorErrorCode.md rename to docs/models/orchestration/V2ErrorErrorCode.md index a7d658047..698426def 100644 --- a/docs/models/errors/V2ErrorErrorCode.md +++ b/docs/models/orchestration/V2ErrorErrorCode.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.errors.V2ErrorErrorCode; +import com.formance.formance_sdk.models.orchestration.V2ErrorErrorCode; V2ErrorErrorCode value = V2ErrorErrorCode.VALIDATION; ``` diff --git a/docs/models/orchestration/V2GetWalletResponse.md b/docs/models/orchestration/V2GetWalletResponse.md new file mode 100644 index 000000000..82303c981 --- /dev/null +++ b/docs/models/orchestration/V2GetWalletResponse.md @@ -0,0 +1,8 @@ +# V2GetWalletResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `v2WalletWithBalances` | [V2WalletWithBalances](../../models/shared/V2WalletWithBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2GetWorkflowInstanceHistoryResponse.md b/docs/models/orchestration/V2GetWorkflowInstanceHistoryResponse.md similarity index 94% rename from docs/models/shared/V2GetWorkflowInstanceHistoryResponse.md rename to docs/models/orchestration/V2GetWorkflowInstanceHistoryResponse.md index 4d93b007f..968ff53a8 100644 --- a/docs/models/shared/V2GetWorkflowInstanceHistoryResponse.md +++ b/docs/models/orchestration/V2GetWorkflowInstanceHistoryResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `data` | List\<[V2WorkflowInstanceHistory](../../models/shared/V2WorkflowInstanceHistory.md)> | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2WorkflowInstanceHistoryList` | List\<[V2WorkflowInstanceHistory](../../models/shared/V2WorkflowInstanceHistory.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2GetWorkflowInstanceHistoryStageResponse.md b/docs/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.md similarity index 94% rename from docs/models/shared/V2GetWorkflowInstanceHistoryStageResponse.md rename to docs/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.md index 1f0e286c7..6c2705fdd 100644 --- a/docs/models/shared/V2GetWorkflowInstanceHistoryStageResponse.md +++ b/docs/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `data` | List\<[V2WorkflowInstanceHistoryStage](../../models/shared/V2WorkflowInstanceHistoryStage.md)> | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2WorkflowInstanceHistoryStageList` | List\<[V2WorkflowInstanceHistoryStage](../../models/shared/V2WorkflowInstanceHistoryStage.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2GetWorkflowInstanceResponse.md b/docs/models/orchestration/V2GetWorkflowInstanceResponse.md similarity index 92% rename from docs/models/shared/V2GetWorkflowInstanceResponse.md rename to docs/models/orchestration/V2GetWorkflowInstanceResponse.md index 2e9603a75..81c962e2f 100644 --- a/docs/models/shared/V2GetWorkflowInstanceResponse.md +++ b/docs/models/orchestration/V2GetWorkflowInstanceResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `data` | [V2WorkflowInstance](../../models/shared/V2WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2WorkflowInstance` | [V2WorkflowInstance](../../models/shared/V2WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2GetWorkflowResponse.md b/docs/models/orchestration/V2GetWorkflowResponse.md similarity index 90% rename from docs/models/shared/V2GetWorkflowResponse.md rename to docs/models/orchestration/V2GetWorkflowResponse.md index f93fab031..5e41d64a3 100644 --- a/docs/models/shared/V2GetWorkflowResponse.md +++ b/docs/models/orchestration/V2GetWorkflowResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V2Workflow](../../models/shared/V2Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2Workflow` | [V2Workflow](../../models/shared/V2Workflow.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Hold.md b/docs/models/orchestration/V2Hold.md similarity index 96% rename from docs/models/shared/V2Hold.md rename to docs/models/orchestration/V2Hold.md index b36451cb7..94e47a333 100644 --- a/docs/models/shared/V2Hold.md +++ b/docs/models/orchestration/V2Hold.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `v2Subject` | [Optional\](../../models/shared/V2Subject.md) | :heavy_minus_sign: | N/A | | `description` | *String* | :heavy_check_mark: | N/A | -| `destination` | [Optional\](../../models/shared/V2Subject.md) | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | The unique ID of the hold. | | `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the hold. | | `walletID` | *String* | :heavy_check_mark: | The ID of the wallet the hold is associated with. | \ No newline at end of file diff --git a/docs/models/shared/V2LedgerAccountSubject.md b/docs/models/orchestration/V2LedgerAccountSubject.md similarity index 100% rename from docs/models/shared/V2LedgerAccountSubject.md rename to docs/models/orchestration/V2LedgerAccountSubject.md diff --git a/docs/models/shared/V2ListRunsResponse.md b/docs/models/orchestration/V2ListRunsResponse.md similarity index 100% rename from docs/models/shared/V2ListRunsResponse.md rename to docs/models/orchestration/V2ListRunsResponse.md diff --git a/docs/models/shared/V2ListRunsResponseCursor.md b/docs/models/orchestration/V2ListRunsResponseCursor.md similarity index 100% rename from docs/models/shared/V2ListRunsResponseCursor.md rename to docs/models/orchestration/V2ListRunsResponseCursor.md diff --git a/docs/models/shared/V2ListTriggersOccurrencesResponse.md b/docs/models/orchestration/V2ListTriggersOccurrencesResponse.md similarity index 100% rename from docs/models/shared/V2ListTriggersOccurrencesResponse.md rename to docs/models/orchestration/V2ListTriggersOccurrencesResponse.md diff --git a/docs/models/shared/V2ListTriggersOccurrencesResponseCursor.md b/docs/models/orchestration/V2ListTriggersOccurrencesResponseCursor.md similarity index 100% rename from docs/models/shared/V2ListTriggersOccurrencesResponseCursor.md rename to docs/models/orchestration/V2ListTriggersOccurrencesResponseCursor.md diff --git a/docs/models/shared/V2ListTriggersResponse.md b/docs/models/orchestration/V2ListTriggersResponse.md similarity index 100% rename from docs/models/shared/V2ListTriggersResponse.md rename to docs/models/orchestration/V2ListTriggersResponse.md diff --git a/docs/models/orchestration/V2ListTriggersResponseCursor.md b/docs/models/orchestration/V2ListTriggersResponseCursor.md new file mode 100644 index 000000000..7ec3a57a6 --- /dev/null +++ b/docs/models/orchestration/V2ListTriggersResponseCursor.md @@ -0,0 +1,12 @@ +# V2ListTriggersResponseCursor + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `data` | List\<[V2TriggerData1](../../models/shared/V2TriggerData1.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/orchestration/V2ListWalletsResponse.md b/docs/models/orchestration/V2ListWalletsResponse.md new file mode 100644 index 000000000..04ae9ba15 --- /dev/null +++ b/docs/models/orchestration/V2ListWalletsResponse.md @@ -0,0 +1,8 @@ +# V2ListWalletsResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | +| `v2Cursor` | [V2Cursor](../../models/shared/V2Cursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ListWorkflowsResponse.md b/docs/models/orchestration/V2ListWorkflowsResponse.md similarity index 100% rename from docs/models/shared/V2ListWorkflowsResponse.md rename to docs/models/orchestration/V2ListWorkflowsResponse.md diff --git a/docs/models/shared/V2ListWorkflowsResponseCursor.md b/docs/models/orchestration/V2ListWorkflowsResponseCursor.md similarity index 100% rename from docs/models/shared/V2ListWorkflowsResponseCursor.md rename to docs/models/orchestration/V2ListWorkflowsResponseCursor.md diff --git a/docs/models/shared/V2Monetary.md b/docs/models/orchestration/V2Monetary.md similarity index 100% rename from docs/models/shared/V2Monetary.md rename to docs/models/orchestration/V2Monetary.md diff --git a/docs/models/shared/V2Payment.md b/docs/models/orchestration/V2Payment.md similarity index 97% rename from docs/models/shared/V2Payment.md rename to docs/models/orchestration/V2Payment.md index 83282a20d..655704e10 100644 --- a/docs/models/shared/V2Payment.md +++ b/docs/models/orchestration/V2Payment.md @@ -5,6 +5,9 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2Connector` | [Optional\](../../models/shared/V2Connector.md) | :heavy_minus_sign: | N/A | | +| `v2PaymentMetadata` | [Optional\](../../models/shared/V2PaymentMetadata.md) | :heavy_check_mark: | N/A | | +| `v2PaymentStatus` | [V2PaymentStatus](../../models/shared/V2PaymentStatus.md) | :heavy_check_mark: | N/A | | | `adjustments` | List\<[V2PaymentAdjustment](../../models/shared/V2PaymentAdjustment.md)> | :heavy_check_mark: | N/A | | | `asset` | *String* | :heavy_check_mark: | N/A | USD | | `connectorID` | *String* | :heavy_check_mark: | N/A | | @@ -12,11 +15,8 @@ | `destinationAccountID` | *String* | :heavy_check_mark: | N/A | | | `id` | *String* | :heavy_check_mark: | N/A | XXX | | `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | -| `metadata` | [Optional\](../../models/shared/V2PaymentMetadata.md) | :heavy_check_mark: | N/A | | -| `provider` | [Optional\](../../models/shared/V2Connector.md) | :heavy_minus_sign: | N/A | | | `raw` | [Optional\](../../models/shared/V2PaymentRaw.md) | :heavy_check_mark: | N/A | | | `reference` | *String* | :heavy_check_mark: | N/A | | | `scheme` | [V2PaymentScheme](../../models/shared/V2PaymentScheme.md) | :heavy_check_mark: | N/A | | | `sourceAccountID` | *String* | :heavy_check_mark: | N/A | | -| `status` | [V2PaymentStatus](../../models/shared/V2PaymentStatus.md) | :heavy_check_mark: | N/A | | | `type` | [V2PaymentType](../../models/shared/V2PaymentType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2PaymentAdjustment.md b/docs/models/orchestration/V2PaymentAdjustment.md similarity index 98% rename from docs/models/shared/V2PaymentAdjustment.md rename to docs/models/orchestration/V2PaymentAdjustment.md index 07052318d..016a10a20 100644 --- a/docs/models/shared/V2PaymentAdjustment.md +++ b/docs/models/orchestration/V2PaymentAdjustment.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2PaymentStatus` | [V2PaymentStatus](../../models/shared/V2PaymentStatus.md) | :heavy_check_mark: | N/A | | | `absolute` | *boolean* | :heavy_check_mark: | N/A | | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | | `date` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `raw` | [V2PaymentAdjustmentRaw](../../models/shared/V2PaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | | -| `status` | [V2PaymentStatus](../../models/shared/V2PaymentStatus.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| `raw` | [V2PaymentAdjustmentRaw](../../models/shared/V2PaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2PaymentAdjustmentRaw.md b/docs/models/orchestration/V2PaymentAdjustmentRaw.md similarity index 100% rename from docs/models/shared/V2PaymentAdjustmentRaw.md rename to docs/models/orchestration/V2PaymentAdjustmentRaw.md diff --git a/docs/models/shared/V2PaymentMetadata.md b/docs/models/orchestration/V2PaymentMetadata.md similarity index 100% rename from docs/models/shared/V2PaymentMetadata.md rename to docs/models/orchestration/V2PaymentMetadata.md diff --git a/docs/models/shared/V2PaymentRaw.md b/docs/models/orchestration/V2PaymentRaw.md similarity index 100% rename from docs/models/shared/V2PaymentRaw.md rename to docs/models/orchestration/V2PaymentRaw.md diff --git a/docs/models/orchestration/V2PaymentResponse.md b/docs/models/orchestration/V2PaymentResponse.md new file mode 100644 index 000000000..4c174e077 --- /dev/null +++ b/docs/models/orchestration/V2PaymentResponse.md @@ -0,0 +1,8 @@ +# V2PaymentResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `v2Payment` | [V2Payment](../../models/shared/V2Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2PaymentScheme.md b/docs/models/orchestration/V2PaymentScheme.md similarity index 91% rename from docs/models/shared/V2PaymentScheme.md rename to docs/models/orchestration/V2PaymentScheme.md index 09dc211c1..ce6ba2774 100644 --- a/docs/models/shared/V2PaymentScheme.md +++ b/docs/models/orchestration/V2PaymentScheme.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2PaymentScheme; +import com.formance.formance_sdk.models.orchestration.V2PaymentScheme; V2PaymentScheme value = V2PaymentScheme.VISA; ``` diff --git a/docs/models/shared/V2PaymentStatus.md b/docs/models/orchestration/V2PaymentStatus.md similarity index 83% rename from docs/models/shared/V2PaymentStatus.md rename to docs/models/orchestration/V2PaymentStatus.md index 7892c7a80..7e39da2ce 100644 --- a/docs/models/shared/V2PaymentStatus.md +++ b/docs/models/orchestration/V2PaymentStatus.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2PaymentStatus; +import com.formance.formance_sdk.models.orchestration.V2PaymentStatus; V2PaymentStatus value = V2PaymentStatus.PENDING; ``` diff --git a/docs/models/shared/V2PaymentType.md b/docs/models/orchestration/V2PaymentType.md similarity index 79% rename from docs/models/shared/V2PaymentType.md rename to docs/models/orchestration/V2PaymentType.md index 87dbe33e2..7f5240213 100644 --- a/docs/models/shared/V2PaymentType.md +++ b/docs/models/orchestration/V2PaymentType.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V2PaymentType; +import com.formance.formance_sdk.models.orchestration.V2PaymentType; V2PaymentType value = V2PaymentType.PAY_IN; ``` diff --git a/docs/models/orchestration/V2PostTransaction.md b/docs/models/orchestration/V2PostTransaction.md new file mode 100644 index 000000000..c98b875a0 --- /dev/null +++ b/docs/models/orchestration/V2PostTransaction.md @@ -0,0 +1,12 @@ +# V2PostTransaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2Metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_minus_sign: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `script` | [Optional\](../../models/shared/V2PostTransactionScript.md) | :heavy_minus_sign: | N/A | | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/orchestration/V2PostTransactionScript.md b/docs/models/orchestration/V2PostTransactionScript.md new file mode 100644 index 000000000..5b754d91b --- /dev/null +++ b/docs/models/orchestration/V2PostTransactionScript.md @@ -0,0 +1,9 @@ +# V2PostTransactionScript + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `plain` | *String* | :heavy_check_mark: | N/A | vars {
account $user
}
send [COIN 10] (
source = @world
destination = $user
)
| +| `vars` | Map\ | :heavy_minus_sign: | N/A | {
"user": "users:042"
} | \ No newline at end of file diff --git a/docs/models/orchestration/V2Posting.md b/docs/models/orchestration/V2Posting.md new file mode 100644 index 000000000..7e2daedd0 --- /dev/null +++ b/docs/models/orchestration/V2Posting.md @@ -0,0 +1,11 @@ +# V2Posting + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `asset` | *String* | :heavy_check_mark: | N/A | COIN | +| `destination` | *String* | :heavy_check_mark: | N/A | users:002 | +| `source` | *String* | :heavy_check_mark: | N/A | users:001 | \ No newline at end of file diff --git a/docs/models/orchestration/V2ReadTriggerResponse.md b/docs/models/orchestration/V2ReadTriggerResponse.md new file mode 100644 index 000000000..75a521551 --- /dev/null +++ b/docs/models/orchestration/V2ReadTriggerResponse.md @@ -0,0 +1,8 @@ +# V2ReadTriggerResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `v2TriggerData` | [V2TriggerData1](../../models/shared/V2TriggerData1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2RunWorkflowResponse.md b/docs/models/orchestration/V2RunWorkflowResponse.md similarity index 92% rename from docs/models/shared/V2RunWorkflowResponse.md rename to docs/models/orchestration/V2RunWorkflowResponse.md index b45ffaef4..6d9b1b7d5 100644 --- a/docs/models/shared/V2RunWorkflowResponse.md +++ b/docs/models/orchestration/V2RunWorkflowResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `data` | [V2WorkflowInstance](../../models/shared/V2WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2WorkflowInstance` | [V2WorkflowInstance](../../models/shared/V2WorkflowInstance.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ServerInfo.md b/docs/models/orchestration/V2ServerInfo.md similarity index 100% rename from docs/models/shared/V2ServerInfo.md rename to docs/models/orchestration/V2ServerInfo.md diff --git a/docs/models/shared/V2Stage.md b/docs/models/orchestration/V2Stage.md similarity index 100% rename from docs/models/shared/V2Stage.md rename to docs/models/orchestration/V2Stage.md diff --git a/docs/models/shared/V2StageDelay.md b/docs/models/orchestration/V2StageDelay.md similarity index 100% rename from docs/models/shared/V2StageDelay.md rename to docs/models/orchestration/V2StageDelay.md diff --git a/docs/models/shared/V2StageSend.md b/docs/models/orchestration/V2StageSend.md similarity index 92% rename from docs/models/shared/V2StageSend.md rename to docs/models/orchestration/V2StageSend.md index 465cee149..3fca59bd2 100644 --- a/docs/models/shared/V2StageSend.md +++ b/docs/models/orchestration/V2StageSend.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [Optional\](../../models/shared/V2Monetary.md) | :heavy_minus_sign: | N/A | -| `destination` | [Optional\](../../models/shared/V2StageSendDestination.md) | :heavy_minus_sign: | N/A | +| `v2Monetary` | [Optional\](../../models/shared/V2Monetary.md) | :heavy_minus_sign: | N/A | +| `v2StageSendDestination` | [Optional\](../../models/shared/V2StageSendDestination.md) | :heavy_minus_sign: | N/A | +| `v2StageSendSource` | [Optional\](../../models/shared/V2StageSendSource.md) | :heavy_minus_sign: | N/A | | `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `source` | [Optional\](../../models/shared/V2StageSendSource.md) | :heavy_minus_sign: | N/A | | `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2StageSendDestination.md b/docs/models/orchestration/V2StageSendDestination.md new file mode 100644 index 000000000..400f47548 --- /dev/null +++ b/docs/models/orchestration/V2StageSendDestination.md @@ -0,0 +1,10 @@ +# V2StageSendDestination + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `v2StageSendDestinationPayment` | [Optional\](../../models/shared/V2StageSendDestinationPayment.md) | :heavy_minus_sign: | N/A | +| `v2StageSendSourceAccount` | [Optional\](../../models/shared/V2StageSendSourceAccount.md) | :heavy_minus_sign: | N/A | +| `v2StageSendSourceWallet` | [Optional\](../../models/shared/V2StageSendSourceWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2StageSendDestinationPayment.md b/docs/models/orchestration/V2StageSendDestinationPayment.md similarity index 100% rename from docs/models/shared/V2StageSendDestinationPayment.md rename to docs/models/orchestration/V2StageSendDestinationPayment.md diff --git a/docs/models/orchestration/V2StageSendSource.md b/docs/models/orchestration/V2StageSendSource.md new file mode 100644 index 000000000..805f1dcdb --- /dev/null +++ b/docs/models/orchestration/V2StageSendSource.md @@ -0,0 +1,10 @@ +# V2StageSendSource + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `v2StageSendSourceAccount` | [Optional\](../../models/shared/V2StageSendSourceAccount.md) | :heavy_minus_sign: | N/A | +| `v2StageSendSourcePayment` | [Optional\](../../models/shared/V2StageSendSourcePayment.md) | :heavy_minus_sign: | N/A | +| `v2StageSendSourceWallet` | [Optional\](../../models/shared/V2StageSendSourceWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2StageSendSourceAccount.md b/docs/models/orchestration/V2StageSendSourceAccount.md new file mode 100644 index 000000000..9b6e9be1f --- /dev/null +++ b/docs/models/orchestration/V2StageSendSourceAccount.md @@ -0,0 +1,9 @@ +# V2StageSendSourceAccount + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `id` | *String* | :heavy_check_mark: | N/A | +| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2StageSendSourcePayment.md b/docs/models/orchestration/V2StageSendSourcePayment.md similarity index 100% rename from docs/models/shared/V2StageSendSourcePayment.md rename to docs/models/orchestration/V2StageSendSourcePayment.md diff --git a/docs/models/orchestration/V2StageSendSourceWallet.md b/docs/models/orchestration/V2StageSendSourceWallet.md new file mode 100644 index 000000000..8fbafb305 --- /dev/null +++ b/docs/models/orchestration/V2StageSendSourceWallet.md @@ -0,0 +1,9 @@ +# V2StageSendSourceWallet + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `balance` | *Optional\* | :heavy_minus_sign: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2StageStatus.md b/docs/models/orchestration/V2StageStatus.md similarity index 100% rename from docs/models/shared/V2StageStatus.md rename to docs/models/orchestration/V2StageStatus.md diff --git a/docs/models/shared/V2StageWaitEvent.md b/docs/models/orchestration/V2StageWaitEvent.md similarity index 100% rename from docs/models/shared/V2StageWaitEvent.md rename to docs/models/orchestration/V2StageWaitEvent.md diff --git a/docs/models/orchestration/V2StripeTransferRequest.md b/docs/models/orchestration/V2StripeTransferRequest.md new file mode 100644 index 000000000..f802fdbfe --- /dev/null +++ b/docs/models/orchestration/V2StripeTransferRequest.md @@ -0,0 +1,13 @@ +# V2StripeTransferRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 100 | +| `asset` | *Optional\* | :heavy_minus_sign: | N/A | USD | +| `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | | +| `destination` | *Optional\* | :heavy_minus_sign: | N/A | acct_1Gqj58KZcSIg2N2q | +| `metadata` | [Optional\](../../models/shared/V2StripeTransferRequestMetadata.md) | :heavy_minus_sign: | A set of key/value pairs that you can attach to a transfer object.
It can be useful for storing additional information about the transfer in a structured format.
| {
"order_id": "6735"
} | +| `waitingValidation` | *Optional\* | :heavy_minus_sign: | N/A | false | \ No newline at end of file diff --git a/docs/models/orchestration/V2StripeTransferRequestMetadata.md b/docs/models/orchestration/V2StripeTransferRequestMetadata.md new file mode 100644 index 000000000..76e2b9e5e --- /dev/null +++ b/docs/models/orchestration/V2StripeTransferRequestMetadata.md @@ -0,0 +1,11 @@ +# V2StripeTransferRequestMetadata + +A set of key/value pairs that you can attach to a transfer object. +It can be useful for storing additional information about the transfer in a structured format. + + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/V2Subject.md b/docs/models/orchestration/V2Subject.md similarity index 100% rename from docs/models/shared/V2Subject.md rename to docs/models/orchestration/V2Subject.md diff --git a/docs/models/shared/V2TestTriggerResponse.md b/docs/models/orchestration/V2TestTriggerResponse.md similarity index 91% rename from docs/models/shared/V2TestTriggerResponse.md rename to docs/models/orchestration/V2TestTriggerResponse.md index 7ced2ddf3..99a614e5e 100644 --- a/docs/models/shared/V2TestTriggerResponse.md +++ b/docs/models/orchestration/V2TestTriggerResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V2TriggerTest](../../models/shared/V2TriggerTest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2TriggerTest` | [V2TriggerTest](../../models/shared/V2TriggerTest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2Transaction.md b/docs/models/orchestration/V2Transaction.md new file mode 100644 index 000000000..79433751c --- /dev/null +++ b/docs/models/orchestration/V2Transaction.md @@ -0,0 +1,12 @@ +# V2Transaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2Metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | +| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_check_mark: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `txid` | *BigInteger* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/orchestration/V2TriggerData1.md b/docs/models/orchestration/V2TriggerData1.md new file mode 100644 index 000000000..2f358b0b6 --- /dev/null +++ b/docs/models/orchestration/V2TriggerData1.md @@ -0,0 +1,15 @@ +# V2TriggerData1 + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `event` | *String* | :heavy_check_mark: | N/A | +| `filter` | *Optional\* | :heavy_minus_sign: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | +| `vars` | Map\ | :heavy_minus_sign: | N/A | +| `version` | *Optional\* | :heavy_minus_sign: | N/A | +| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2TriggerData2.md b/docs/models/orchestration/V2TriggerData2.md new file mode 100644 index 000000000..d2615057d --- /dev/null +++ b/docs/models/orchestration/V2TriggerData2.md @@ -0,0 +1,13 @@ +# V2TriggerData2 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `event` | *String* | :heavy_check_mark: | N/A | +| `filter` | *Optional\* | :heavy_minus_sign: | N/A | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | +| `vars` | Map\ | :heavy_minus_sign: | N/A | +| `version` | *Optional\* | :heavy_minus_sign: | N/A | +| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2TriggerOccurrence.md b/docs/models/orchestration/V2TriggerOccurrence.md similarity index 97% rename from docs/models/shared/V2TriggerOccurrence.md rename to docs/models/orchestration/V2TriggerOccurrence.md index 2384d2027..7e3df1ef3 100644 --- a/docs/models/shared/V2TriggerOccurrence.md +++ b/docs/models/orchestration/V2TriggerOccurrence.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2WorkflowInstance` | [Optional\](../../models/shared/V2WorkflowInstance.md) | :heavy_minus_sign: | N/A | | `date` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | | `event` | Map\ | :heavy_check_mark: | N/A | | `triggerID` | *String* | :heavy_check_mark: | N/A | -| `workflowInstance` | [Optional\](../../models/shared/V2WorkflowInstance.md) | :heavy_minus_sign: | N/A | | `workflowInstanceID` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2TriggerTest.md b/docs/models/orchestration/V2TriggerTest.md similarity index 100% rename from docs/models/shared/V2TriggerTest.md rename to docs/models/orchestration/V2TriggerTest.md diff --git a/docs/models/shared/V2Update.md b/docs/models/orchestration/V2Update.md similarity index 92% rename from docs/models/shared/V2Update.md rename to docs/models/orchestration/V2Update.md index 1aee7bb0d..c47092cab 100644 --- a/docs/models/shared/V2Update.md +++ b/docs/models/orchestration/V2Update.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `account` | [Optional\](../../models/shared/V2UpdateAccount.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `v2UpdateAccount` | [Optional\](../../models/shared/V2UpdateAccount.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2UpdateAccount.md b/docs/models/orchestration/V2UpdateAccount.md similarity index 100% rename from docs/models/shared/V2UpdateAccount.md rename to docs/models/orchestration/V2UpdateAccount.md diff --git a/docs/models/orchestration/V2Volume.md b/docs/models/orchestration/V2Volume.md new file mode 100644 index 000000000..06c7a1ea4 --- /dev/null +++ b/docs/models/orchestration/V2Volume.md @@ -0,0 +1,10 @@ +# V2Volume + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `balance` | *Optional\* | :heavy_minus_sign: | N/A | +| `input` | *BigInteger* | :heavy_check_mark: | N/A | +| `output` | *BigInteger* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Wallet.md b/docs/models/orchestration/V2Wallet.md similarity index 100% rename from docs/models/shared/V2Wallet.md rename to docs/models/orchestration/V2Wallet.md diff --git a/docs/models/shared/V2WalletSubject.md b/docs/models/orchestration/V2WalletSubject.md similarity index 100% rename from docs/models/shared/V2WalletSubject.md rename to docs/models/orchestration/V2WalletSubject.md diff --git a/docs/models/shared/V2WalletWithBalances.md b/docs/models/orchestration/V2WalletWithBalances.md similarity index 100% rename from docs/models/shared/V2WalletWithBalances.md rename to docs/models/orchestration/V2WalletWithBalances.md diff --git a/docs/models/shared/V2WalletWithBalancesBalances.md b/docs/models/orchestration/V2WalletWithBalancesBalances.md similarity index 91% rename from docs/models/shared/V2WalletWithBalancesBalances.md rename to docs/models/orchestration/V2WalletWithBalancesBalances.md index 45fa5a094..1330a7929 100644 --- a/docs/models/shared/V2WalletWithBalancesBalances.md +++ b/docs/models/orchestration/V2WalletWithBalancesBalances.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `main` | [V2AssetHolder](../../models/shared/V2AssetHolder.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v2AssetHolder` | [V2AssetHolder](../../models/shared/V2AssetHolder.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Workflow.md b/docs/models/orchestration/V2Workflow.md similarity index 91% rename from docs/models/shared/V2Workflow.md rename to docs/models/orchestration/V2Workflow.md index 2d23cf7e3..3aaa8433c 100644 --- a/docs/models/shared/V2Workflow.md +++ b/docs/models/orchestration/V2Workflow.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `config` | [V2CreateWorkflowRequest](../../models/shared/V2CreateWorkflowRequest.md) | :heavy_check_mark: | N/A | +| `v2WorkflowConfig` | [V2WorkflowConfig](../../models/shared/V2WorkflowConfig.md) | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2WorkflowConfig.md b/docs/models/orchestration/V2WorkflowConfig.md new file mode 100644 index 000000000..913de4459 --- /dev/null +++ b/docs/models/orchestration/V2WorkflowConfig.md @@ -0,0 +1,9 @@ +# V2WorkflowConfig + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | +| `stages` | List\> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2WorkflowInstance.md b/docs/models/orchestration/V2WorkflowInstance.md similarity index 98% rename from docs/models/shared/V2WorkflowInstance.md rename to docs/models/orchestration/V2WorkflowInstance.md index 9b8bd49e9..95d95462e 100644 --- a/docs/models/shared/V2WorkflowInstance.md +++ b/docs/models/orchestration/V2WorkflowInstance.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2Workflow` | [Optional\](../../models/shared/V2Workflow.md) | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | @@ -12,5 +13,4 @@ | `terminated` | *boolean* | :heavy_check_mark: | N/A | | `terminatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `workflow` | [Optional\](../../models/shared/V2Workflow.md) | :heavy_minus_sign: | N/A | | `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2WorkflowInstanceHistory.md b/docs/models/orchestration/V2WorkflowInstanceHistory.md similarity index 97% rename from docs/models/shared/V2WorkflowInstanceHistory.md rename to docs/models/orchestration/V2WorkflowInstanceHistory.md index 27632a728..89a5b3020 100644 --- a/docs/models/shared/V2WorkflowInstanceHistory.md +++ b/docs/models/orchestration/V2WorkflowInstanceHistory.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v2Stage` | [V2Stage](../../models/shared/V2Stage.md) | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | -| `input` | [V2Stage](../../models/shared/V2Stage.md) | :heavy_check_mark: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `startedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `terminated` | *boolean* | :heavy_check_mark: | N/A | diff --git a/docs/models/shared/V2WorkflowInstanceHistoryStage.md b/docs/models/orchestration/V2WorkflowInstanceHistoryStage.md similarity index 97% rename from docs/models/shared/V2WorkflowInstanceHistoryStage.md rename to docs/models/orchestration/V2WorkflowInstanceHistoryStage.md index 05e73f274..0e1497724 100644 --- a/docs/models/shared/V2WorkflowInstanceHistoryStage.md +++ b/docs/models/orchestration/V2WorkflowInstanceHistoryStage.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `v2WorkflowInstanceHistoryStageInput` | [V2WorkflowInstanceHistoryStageInput](../../models/shared/V2WorkflowInstanceHistoryStageInput.md) | :heavy_check_mark: | N/A | +| `v2WorkflowInstanceHistoryStageOutput` | [Optional\](../../models/shared/V2WorkflowInstanceHistoryStageOutput.md) | :heavy_minus_sign: | N/A | | `attempt` | *long* | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | -| `input` | [V2WorkflowInstanceHistoryStageInput](../../models/shared/V2WorkflowInstanceHistoryStageInput.md) | :heavy_check_mark: | N/A | | `lastFailure` | *Optional\* | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `nextExecution` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | -| `output` | [Optional\](../../models/shared/V2WorkflowInstanceHistoryStageOutput.md) | :heavy_minus_sign: | N/A | | `startedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `terminated` | *boolean* | :heavy_check_mark: | N/A | | `terminatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2WorkflowInstanceHistoryStageInput.md b/docs/models/orchestration/V2WorkflowInstanceHistoryStageInput.md similarity index 83% rename from docs/models/shared/V2WorkflowInstanceHistoryStageInput.md rename to docs/models/orchestration/V2WorkflowInstanceHistoryStageInput.md index 69cbccea7..b6f9d5ec9 100644 --- a/docs/models/shared/V2WorkflowInstanceHistoryStageInput.md +++ b/docs/models/orchestration/V2WorkflowInstanceHistoryStageInput.md @@ -5,14 +5,14 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `addAccountMetadata` | [Optional\](../../models/shared/V2ActivityAddAccountMetadata.md) | :heavy_minus_sign: | N/A | -| `confirmHold` | [Optional\](../../models/shared/V2ActivityConfirmHold.md) | :heavy_minus_sign: | N/A | -| `createTransaction` | [Optional\](../../models/shared/V2ActivityCreateTransaction.md) | :heavy_minus_sign: | N/A | -| `creditWallet` | [Optional\](../../models/shared/V2ActivityCreditWallet.md) | :heavy_minus_sign: | N/A | -| `debitWallet` | [Optional\](../../models/shared/V2ActivityDebitWallet.md) | :heavy_minus_sign: | N/A | -| `getAccount` | [Optional\](../../models/shared/V2ActivityGetAccount.md) | :heavy_minus_sign: | N/A | -| `getPayment` | [Optional\](../../models/shared/V2ActivityGetPayment.md) | :heavy_minus_sign: | N/A | -| `getWallet` | [Optional\](../../models/shared/V2ActivityGetWallet.md) | :heavy_minus_sign: | N/A | -| `listWallets` | [Optional\](../../models/shared/V2ActivityListWallets.md) | :heavy_minus_sign: | N/A | -| `stripeTransfer` | [Optional\](../../models/shared/V2ActivityStripeTransfer.md) | :heavy_minus_sign: | N/A | -| `voidHold` | [Optional\](../../models/shared/V2ActivityVoidHold.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `v2ActivityAddAccountMetadata` | [Optional\](../../models/shared/V2ActivityAddAccountMetadata.md) | :heavy_minus_sign: | N/A | +| `v2ActivityConfirmHold` | [Optional\](../../models/shared/V2ActivityConfirmHold.md) | :heavy_minus_sign: | N/A | +| `v2ActivityCreateTransaction` | [Optional\](../../models/shared/V2ActivityCreateTransaction.md) | :heavy_minus_sign: | N/A | +| `v2ActivityCreditWallet` | [Optional\](../../models/shared/V2ActivityCreditWallet.md) | :heavy_minus_sign: | N/A | +| `v2ActivityDebitWallet` | [Optional\](../../models/shared/V2ActivityDebitWallet.md) | :heavy_minus_sign: | N/A | +| `v2ActivityGetAccount` | [Optional\](../../models/shared/V2ActivityGetAccount.md) | :heavy_minus_sign: | N/A | +| `v2ActivityGetPayment` | [Optional\](../../models/shared/V2ActivityGetPayment.md) | :heavy_minus_sign: | N/A | +| `v2ActivityGetWallet` | [Optional\](../../models/shared/V2ActivityGetWallet.md) | :heavy_minus_sign: | N/A | +| `v2ActivityListWallets` | [Optional\](../../models/shared/V2ActivityListWallets.md) | :heavy_minus_sign: | N/A | +| `v2ActivityVoidHold` | [Optional\](../../models/shared/V2ActivityVoidHold.md) | :heavy_minus_sign: | N/A | +| `v2StripeTransferRequest` | [Optional\](../../models/shared/V2StripeTransferRequest.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/V2WorkflowInstanceHistoryStageOutput.md b/docs/models/orchestration/V2WorkflowInstanceHistoryStageOutput.md new file mode 100644 index 000000000..77dbf7f49 --- /dev/null +++ b/docs/models/orchestration/V2WorkflowInstanceHistoryStageOutput.md @@ -0,0 +1,13 @@ +# V2WorkflowInstanceHistoryStageOutput + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `v2AccountResponse` | [Optional\](../../models/shared/V2AccountResponse.md) | :heavy_minus_sign: | N/A | +| `v2CreateTransactionResponse` | [Optional\](../../models/shared/V2CreateTransactionResponse.md) | :heavy_minus_sign: | N/A | +| `v2DebitWalletResponse` | [Optional\](../../models/shared/V2DebitWalletResponse.md) | :heavy_minus_sign: | N/A | +| `v2GetWalletResponse` | [Optional\](../../models/shared/V2GetWalletResponse.md) | :heavy_minus_sign: | N/A | +| `v2ListWalletsResponse` | [Optional\](../../models/shared/V2ListWalletsResponse.md) | :heavy_minus_sign: | N/A | +| `v2PaymentResponse` | [Optional\](../../models/shared/V2PaymentResponse.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Variables.md b/docs/models/orchestration/Variables.md similarity index 100% rename from docs/models/shared/Variables.md rename to docs/models/orchestration/Variables.md diff --git a/docs/models/orchestration/Volume.md b/docs/models/orchestration/Volume.md new file mode 100644 index 000000000..a7d322c8c --- /dev/null +++ b/docs/models/orchestration/Volume.md @@ -0,0 +1,10 @@ +# Volume + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `balance` | *Optional\* | :heavy_minus_sign: | N/A | +| `input` | *BigInteger* | :heavy_check_mark: | N/A | +| `output` | *BigInteger* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/Wallet.md b/docs/models/orchestration/Wallet.md new file mode 100644 index 000000000..af3181818 --- /dev/null +++ b/docs/models/orchestration/Wallet.md @@ -0,0 +1,12 @@ +# Wallet + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | The unique ID of the wallet. | +| `ledger` | *String* | :heavy_check_mark: | N/A | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WalletSubject.md b/docs/models/orchestration/WalletSubject.md similarity index 100% rename from docs/models/shared/WalletSubject.md rename to docs/models/orchestration/WalletSubject.md diff --git a/docs/models/shared/WalletWithBalances.md b/docs/models/orchestration/WalletWithBalances.md similarity index 100% rename from docs/models/shared/WalletWithBalances.md rename to docs/models/orchestration/WalletWithBalances.md diff --git a/docs/models/orchestration/WalletWithBalancesBalances.md b/docs/models/orchestration/WalletWithBalancesBalances.md new file mode 100644 index 000000000..05da1ada8 --- /dev/null +++ b/docs/models/orchestration/WalletWithBalancesBalances.md @@ -0,0 +1,8 @@ +# WalletWithBalancesBalances + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | +| `assetHolder` | [AssetHolder](../../models/shared/AssetHolder.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Workflow.md b/docs/models/orchestration/Workflow.md similarity index 91% rename from docs/models/shared/Workflow.md rename to docs/models/orchestration/Workflow.md index e67fff6c6..cd608edf9 100644 --- a/docs/models/shared/Workflow.md +++ b/docs/models/orchestration/Workflow.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `config` | [CreateWorkflowRequest](../../models/shared/CreateWorkflowRequest.md) | :heavy_check_mark: | N/A | +| `workflowConfig` | [WorkflowConfig](../../models/shared/WorkflowConfig.md) | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/WorkflowConfig.md b/docs/models/orchestration/WorkflowConfig.md new file mode 100644 index 000000000..8981720b3 --- /dev/null +++ b/docs/models/orchestration/WorkflowConfig.md @@ -0,0 +1,9 @@ +# WorkflowConfig + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `name` | *Optional\* | :heavy_minus_sign: | N/A | +| `stages` | List\> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WorkflowInstance.md b/docs/models/orchestration/WorkflowInstance.md similarity index 100% rename from docs/models/shared/WorkflowInstance.md rename to docs/models/orchestration/WorkflowInstance.md index d8a4e1d2a..288aa17ea 100644 --- a/docs/models/shared/WorkflowInstance.md +++ b/docs/models/orchestration/WorkflowInstance.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `workflow` | [Optional\](../../models/shared/Workflow.md) | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | @@ -12,5 +13,4 @@ | `terminated` | *boolean* | :heavy_check_mark: | N/A | | `terminatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `workflow` | [Optional\](../../models/shared/Workflow.md) | :heavy_minus_sign: | N/A | | `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WorkflowInstanceHistory.md b/docs/models/orchestration/WorkflowInstanceHistory.md similarity index 97% rename from docs/models/shared/WorkflowInstanceHistory.md rename to docs/models/orchestration/WorkflowInstanceHistory.md index 632e1ced9..5301c5dc5 100644 --- a/docs/models/shared/WorkflowInstanceHistory.md +++ b/docs/models/orchestration/WorkflowInstanceHistory.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `stage` | [Stage](../../models/shared/Stage.md) | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | -| `input` | [Stage](../../models/shared/Stage.md) | :heavy_check_mark: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `startedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `terminated` | *boolean* | :heavy_check_mark: | N/A | diff --git a/docs/models/shared/WorkflowInstanceHistoryStage.md b/docs/models/orchestration/WorkflowInstanceHistoryStage.md similarity index 97% rename from docs/models/shared/WorkflowInstanceHistoryStage.md rename to docs/models/orchestration/WorkflowInstanceHistoryStage.md index db8c3e891..236d09ebc 100644 --- a/docs/models/shared/WorkflowInstanceHistoryStage.md +++ b/docs/models/orchestration/WorkflowInstanceHistoryStage.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | +| `workflowInstanceHistoryStageInput` | [WorkflowInstanceHistoryStageInput](../../models/shared/WorkflowInstanceHistoryStageInput.md) | :heavy_check_mark: | N/A | +| `workflowInstanceHistoryStageOutput` | [Optional\](../../models/shared/WorkflowInstanceHistoryStageOutput.md) | :heavy_minus_sign: | N/A | | `attempt` | *long* | :heavy_check_mark: | N/A | | `error` | *Optional\* | :heavy_minus_sign: | N/A | -| `input` | [WorkflowInstanceHistoryStageInput](../../models/shared/WorkflowInstanceHistoryStageInput.md) | :heavy_check_mark: | N/A | | `lastFailure` | *Optional\* | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `nextExecution` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | -| `output` | [Optional\](../../models/shared/WorkflowInstanceHistoryStageOutput.md) | :heavy_minus_sign: | N/A | | `startedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `terminated` | *boolean* | :heavy_check_mark: | N/A | | `terminatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WorkflowInstanceHistoryStageInput.md b/docs/models/orchestration/WorkflowInstanceHistoryStageInput.md similarity index 84% rename from docs/models/shared/WorkflowInstanceHistoryStageInput.md rename to docs/models/orchestration/WorkflowInstanceHistoryStageInput.md index 230aea49a..1ef21c581 100644 --- a/docs/models/shared/WorkflowInstanceHistoryStageInput.md +++ b/docs/models/orchestration/WorkflowInstanceHistoryStageInput.md @@ -5,15 +5,15 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `addAccountMetadata` | [Optional\](../../models/shared/ActivityAddAccountMetadata.md) | :heavy_minus_sign: | N/A | -| `confirmHold` | [Optional\](../../models/shared/ActivityConfirmHold.md) | :heavy_minus_sign: | N/A | -| `createTransaction` | [Optional\](../../models/shared/ActivityCreateTransaction.md) | :heavy_minus_sign: | N/A | -| `creditWallet` | [Optional\](../../models/shared/ActivityCreditWallet.md) | :heavy_minus_sign: | N/A | -| `debitWallet` | [Optional\](../../models/shared/ActivityDebitWallet.md) | :heavy_minus_sign: | N/A | -| `getAccount` | [Optional\](../../models/shared/ActivityGetAccount.md) | :heavy_minus_sign: | N/A | -| `getPayment` | [Optional\](../../models/shared/ActivityGetPayment.md) | :heavy_minus_sign: | N/A | -| `getWallet` | [Optional\](../../models/shared/ActivityGetWallet.md) | :heavy_minus_sign: | N/A | -| `listWallets` | [Optional\](../../models/shared/ActivityListWallets.md) | :heavy_minus_sign: | N/A | -| `revertTransaction` | [Optional\](../../models/shared/ActivityRevertTransaction.md) | :heavy_minus_sign: | N/A | -| `stripeTransfer` | [Optional\](../../models/shared/ActivityStripeTransfer.md) | :heavy_minus_sign: | N/A | -| `voidHold` | [Optional\](../../models/shared/ActivityVoidHold.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `activityAddAccountMetadata` | [Optional\](../../models/shared/ActivityAddAccountMetadata.md) | :heavy_minus_sign: | N/A | +| `activityConfirmHold` | [Optional\](../../models/shared/ActivityConfirmHold.md) | :heavy_minus_sign: | N/A | +| `activityCreateTransaction` | [Optional\](../../models/shared/ActivityCreateTransaction.md) | :heavy_minus_sign: | N/A | +| `activityCreditWallet` | [Optional\](../../models/shared/ActivityCreditWallet.md) | :heavy_minus_sign: | N/A | +| `activityDebitWallet` | [Optional\](../../models/shared/ActivityDebitWallet.md) | :heavy_minus_sign: | N/A | +| `activityGetAccount` | [Optional\](../../models/shared/ActivityGetAccount.md) | :heavy_minus_sign: | N/A | +| `activityGetPayment` | [Optional\](../../models/shared/ActivityGetPayment.md) | :heavy_minus_sign: | N/A | +| `activityGetWallet` | [Optional\](../../models/shared/ActivityGetWallet.md) | :heavy_minus_sign: | N/A | +| `activityListWallets` | [Optional\](../../models/shared/ActivityListWallets.md) | :heavy_minus_sign: | N/A | +| `activityRevertTransaction` | [Optional\](../../models/shared/ActivityRevertTransaction.md) | :heavy_minus_sign: | N/A | +| `activityVoidHold` | [Optional\](../../models/shared/ActivityVoidHold.md) | :heavy_minus_sign: | N/A | +| `stripeTransferRequest` | [Optional\](../../models/shared/StripeTransferRequest.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/orchestration/WorkflowInstanceHistoryStageOutput.md b/docs/models/orchestration/WorkflowInstanceHistoryStageOutput.md new file mode 100644 index 000000000..6955ec3c6 --- /dev/null +++ b/docs/models/orchestration/WorkflowInstanceHistoryStageOutput.md @@ -0,0 +1,14 @@ +# WorkflowInstanceHistoryStageOutput + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `accountResponse` | [Optional\](../../models/shared/AccountResponse.md) | :heavy_minus_sign: | N/A | +| `createTransactionResponse` | [Optional\](../../models/shared/CreateTransactionResponse.md) | :heavy_minus_sign: | N/A | +| `createTransactionResponse1` | [Optional\](../../models/shared/CreateTransactionResponse.md) | :heavy_minus_sign: | N/A | +| `debitWalletResponse` | [Optional\](../../models/shared/DebitWalletResponse.md) | :heavy_minus_sign: | N/A | +| `getWalletResponse` | [Optional\](../../models/shared/GetWalletResponse.md) | :heavy_minus_sign: | N/A | +| `listWalletsResponse` | [Optional\](../../models/shared/ListWalletsResponse.md) | :heavy_minus_sign: | N/A | +| `paymentResponse` | [Optional\](../../models/shared/PaymentResponse.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/payments/Account.md b/docs/models/payments/Account.md new file mode 100644 index 000000000..f01627cc2 --- /dev/null +++ b/docs/models/payments/Account.md @@ -0,0 +1,19 @@ +# Account + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `accountMetadata` | Map\ | :heavy_check_mark: | N/A | +| `accountType` | [AccountType](../../models/shared/AccountType.md) | :heavy_check_mark: | N/A | +| `accountName` | *String* | :heavy_check_mark: | N/A | +| `connectorID` | *String* | :heavy_check_mark: | N/A | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `defaultAsset` | *String* | :heavy_check_mark: | N/A | +| ~~`defaultCurrency`~~ | *String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | +| `id` | *String* | :heavy_check_mark: | N/A | +| `pools` | List\<*String*> | :heavy_minus_sign: | N/A | +| `provider` | *Optional\* | :heavy_minus_sign: | N/A | +| `raw` | [Optional\](../../models/shared/AccountRaw.md) | :heavy_check_mark: | N/A | +| `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AccountBalance.md b/docs/models/payments/AccountBalance.md similarity index 100% rename from docs/models/shared/AccountBalance.md rename to docs/models/payments/AccountBalance.md diff --git a/docs/models/payments/AccountRaw.md b/docs/models/payments/AccountRaw.md new file mode 100644 index 000000000..6fb20eb1e --- /dev/null +++ b/docs/models/payments/AccountRaw.md @@ -0,0 +1,7 @@ +# AccountRaw + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/AccountRequest.md b/docs/models/payments/AccountRequest.md similarity index 96% rename from docs/models/shared/AccountRequest.md rename to docs/models/payments/AccountRequest.md index 57238900a..cb1808994 100644 --- a/docs/models/shared/AccountRequest.md +++ b/docs/models/payments/AccountRequest.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `accountMetadata` | Map\ | :heavy_minus_sign: | N/A | +| `accountType` | [AccountType](../../models/shared/AccountType.md) | :heavy_check_mark: | N/A | | `accountName` | *Optional\* | :heavy_minus_sign: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `defaultAsset` | *Optional\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `reference` | *String* | :heavy_check_mark: | N/A | -| `type` | [AccountType](../../models/shared/AccountType.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/AccountResponse.md b/docs/models/payments/AccountResponse.md new file mode 100644 index 000000000..2e00e68d2 --- /dev/null +++ b/docs/models/payments/AccountResponse.md @@ -0,0 +1,10 @@ +# AccountResponse + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `account` | [Account](../../models/shared/Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AccountType.md b/docs/models/payments/AccountType.md similarity index 79% rename from docs/models/shared/AccountType.md rename to docs/models/payments/AccountType.md index f034da57c..37532f42d 100644 --- a/docs/models/shared/AccountType.md +++ b/docs/models/payments/AccountType.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.AccountType; +import com.formance.formance_sdk.models.payments.AccountType; AccountType value = AccountType.UNKNOWN; ``` diff --git a/docs/models/payments/AccountsCursor.md b/docs/models/payments/AccountsCursor.md new file mode 100644 index 000000000..d7769d37a --- /dev/null +++ b/docs/models/payments/AccountsCursor.md @@ -0,0 +1,10 @@ +# AccountsCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `cursorBase` | [AccountsCursorCursorBase](../../models/shared/AccountsCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/AccountsCursorCursorBase.md b/docs/models/payments/AccountsCursorCursorBase.md new file mode 100644 index 000000000..3e28c261b --- /dev/null +++ b/docs/models/payments/AccountsCursorCursorBase.md @@ -0,0 +1,12 @@ +# AccountsCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `data` | List\<[Account](../../models/shared/Account.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/AddAccountToPoolRequest.md b/docs/models/payments/AddAccountToPoolRequest.md similarity index 100% rename from docs/models/shared/AddAccountToPoolRequest.md rename to docs/models/payments/AddAccountToPoolRequest.md diff --git a/docs/models/shared/AdyenConfig.md b/docs/models/payments/AdyenConfig.md similarity index 100% rename from docs/models/shared/AdyenConfig.md rename to docs/models/payments/AdyenConfig.md diff --git a/docs/models/shared/AtlarConfig.md b/docs/models/payments/AtlarConfig.md similarity index 100% rename from docs/models/shared/AtlarConfig.md rename to docs/models/payments/AtlarConfig.md diff --git a/docs/models/payments/BalancesCursor.md b/docs/models/payments/BalancesCursor.md new file mode 100644 index 000000000..4e1097804 --- /dev/null +++ b/docs/models/payments/BalancesCursor.md @@ -0,0 +1,10 @@ +# BalancesCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `cursorBase` | [BalancesCursorCursorBase](../../models/shared/BalancesCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/BalancesCursorCursorBase.md b/docs/models/payments/BalancesCursorCursorBase.md new file mode 100644 index 000000000..3d1df6ee4 --- /dev/null +++ b/docs/models/payments/BalancesCursorCursorBase.md @@ -0,0 +1,12 @@ +# BalancesCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `data` | List\<[AccountBalance](../../models/shared/AccountBalance.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/BankAccount.md b/docs/models/payments/BankAccount.md similarity index 98% rename from docs/models/shared/BankAccount.md rename to docs/models/payments/BankAccount.md index 228de6caa..bdecbcd59 100644 --- a/docs/models/shared/BankAccount.md +++ b/docs/models/payments/BankAccount.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `bankAccountMetadata` | Map\ | :heavy_minus_sign: | N/A | | `accountID` | *Optional\* | :heavy_minus_sign: | N/A | | `accountNumber` | *Optional\* | :heavy_minus_sign: | N/A | | `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | @@ -12,7 +13,6 @@ | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `iban` | *Optional\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `provider` | *Optional\* | :heavy_minus_sign: | N/A | | `relatedAccounts` | List\<[BankAccountRelatedAccounts](../../models/shared/BankAccountRelatedAccounts.md)> | :heavy_minus_sign: | N/A | diff --git a/docs/models/shared/BankAccountRelatedAccounts.md b/docs/models/payments/BankAccountRelatedAccounts.md similarity index 100% rename from docs/models/shared/BankAccountRelatedAccounts.md rename to docs/models/payments/BankAccountRelatedAccounts.md diff --git a/docs/models/shared/BankAccountRequest.md b/docs/models/payments/BankAccountRequest.md similarity index 94% rename from docs/models/shared/BankAccountRequest.md rename to docs/models/payments/BankAccountRequest.md index 1ff8d6cb0..87c9a0b28 100644 --- a/docs/models/shared/BankAccountRequest.md +++ b/docs/models/payments/BankAccountRequest.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | Example | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `bankAccountMetadata` | Map\ | :heavy_minus_sign: | N/A | | | `accountNumber` | *Optional\* | :heavy_minus_sign: | N/A | | | `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | | | `country` | *String* | :heavy_check_mark: | N/A | GB | | `iban` | *Optional\* | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | | `name` | *String* | :heavy_check_mark: | N/A | My account | | `swiftBicCode` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/BankAccountResponse.md b/docs/models/payments/BankAccountResponse.md similarity index 90% rename from docs/models/shared/BankAccountResponse.md rename to docs/models/payments/BankAccountResponse.md index e6d758af7..29cdd4ffe 100644 --- a/docs/models/shared/BankAccountResponse.md +++ b/docs/models/payments/BankAccountResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `data` | [BankAccount](../../models/shared/BankAccount.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `bankAccount` | [BankAccount](../../models/shared/BankAccount.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/BankAccountsCursor.md b/docs/models/payments/BankAccountsCursor.md new file mode 100644 index 000000000..265484b94 --- /dev/null +++ b/docs/models/payments/BankAccountsCursor.md @@ -0,0 +1,10 @@ +# BankAccountsCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `cursorBase` | [BankAccountsCursorCursorBase](../../models/shared/BankAccountsCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/BankAccountsCursorCursorBase.md b/docs/models/payments/BankAccountsCursorCursorBase.md new file mode 100644 index 000000000..ccecb7597 --- /dev/null +++ b/docs/models/payments/BankAccountsCursorCursorBase.md @@ -0,0 +1,12 @@ +# BankAccountsCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `data` | List\<[BankAccount](../../models/shared/BankAccount.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/BankingCircleConfig.md b/docs/models/payments/BankingCircleConfig.md similarity index 100% rename from docs/models/shared/BankingCircleConfig.md rename to docs/models/payments/BankingCircleConfig.md diff --git a/docs/models/payments/Config.md b/docs/models/payments/Config.md new file mode 100644 index 000000000..36b0c3684 --- /dev/null +++ b/docs/models/payments/Config.md @@ -0,0 +1,7 @@ +# Config + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/payments/Connector.md b/docs/models/payments/Connector.md new file mode 100644 index 000000000..b84a85666 --- /dev/null +++ b/docs/models/payments/Connector.md @@ -0,0 +1,26 @@ +# Connector + +## Example Usage + +```java +import com.formance.formance_sdk.models.payments.Connector; + +Connector value = Connector.STRIPE; +``` + + +## Values + +| Name | Value | +| ---------------- | ---------------- | +| `STRIPE` | STRIPE | +| `DUMMY_PAY` | DUMMY-PAY | +| `WISE` | WISE | +| `MODULR` | MODULR | +| `CURRENCY_CLOUD` | CURRENCY-CLOUD | +| `BANKING_CIRCLE` | BANKING-CIRCLE | +| `MANGOPAY` | MANGOPAY | +| `MONEYCORP` | MONEYCORP | +| `ATLAR` | ATLAR | +| `ADYEN` | ADYEN | +| `GENERIC` | GENERIC | \ No newline at end of file diff --git a/docs/models/shared/ConnectorConfig.md b/docs/models/payments/ConnectorConfig.md similarity index 100% rename from docs/models/shared/ConnectorConfig.md rename to docs/models/payments/ConnectorConfig.md diff --git a/docs/models/shared/ConnectorConfigResponse.md b/docs/models/payments/ConnectorConfigResponse.md similarity index 91% rename from docs/models/shared/ConnectorConfigResponse.md rename to docs/models/payments/ConnectorConfigResponse.md index 3c3692543..1ef1bc365 100644 --- a/docs/models/shared/ConnectorConfigResponse.md +++ b/docs/models/payments/ConnectorConfigResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `data` | [ConnectorConfig](../../models/shared/ConnectorConfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `connectorConfig` | [ConnectorConfig](../../models/shared/ConnectorConfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConnectorResponse.md b/docs/models/payments/ConnectorResponse.md similarity index 100% rename from docs/models/shared/ConnectorResponse.md rename to docs/models/payments/ConnectorResponse.md diff --git a/docs/models/shared/ConnectorResponseData.md b/docs/models/payments/ConnectorResponseData.md similarity index 100% rename from docs/models/shared/ConnectorResponseData.md rename to docs/models/payments/ConnectorResponseData.md diff --git a/docs/models/shared/ConnectorsConfigsResponse.md b/docs/models/payments/ConnectorsConfigsResponse.md similarity index 100% rename from docs/models/shared/ConnectorsConfigsResponse.md rename to docs/models/payments/ConnectorsConfigsResponse.md diff --git a/docs/models/shared/ConnectorsConfigsResponseData.md b/docs/models/payments/ConnectorsConfigsResponseData.md similarity index 100% rename from docs/models/shared/ConnectorsConfigsResponseData.md rename to docs/models/payments/ConnectorsConfigsResponseData.md diff --git a/docs/models/shared/ConnectorsResponse.md b/docs/models/payments/ConnectorsResponse.md similarity index 100% rename from docs/models/shared/ConnectorsResponse.md rename to docs/models/payments/ConnectorsResponse.md diff --git a/docs/models/shared/ConnectorsResponseData.md b/docs/models/payments/ConnectorsResponseData.md similarity index 94% rename from docs/models/shared/ConnectorsResponseData.md rename to docs/models/payments/ConnectorsResponseData.md index 56cf2d227..2b635dca9 100644 --- a/docs/models/shared/ConnectorsResponseData.md +++ b/docs/models/payments/ConnectorsResponseData.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `connector` | [Connector](../../models/shared/Connector.md) | :heavy_check_mark: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `enabled` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| `provider` | [Connector](../../models/shared/Connector.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CurrencyCloudConfig.md b/docs/models/payments/CurrencyCloudConfig.md similarity index 100% rename from docs/models/shared/CurrencyCloudConfig.md rename to docs/models/payments/CurrencyCloudConfig.md diff --git a/docs/models/payments/Descriptor.md b/docs/models/payments/Descriptor.md new file mode 100644 index 000000000..96af20cc6 --- /dev/null +++ b/docs/models/payments/Descriptor.md @@ -0,0 +1,10 @@ +# Descriptor + + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `account` | *String* | :heavy_check_mark: | N/A | +| `main` | *Optional\* | :heavy_minus_sign: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DummyPayConfig.md b/docs/models/payments/DummyPayConfig.md similarity index 100% rename from docs/models/shared/DummyPayConfig.md rename to docs/models/payments/DummyPayConfig.md diff --git a/docs/models/shared/ForwardBankAccountRequest.md b/docs/models/payments/ForwardBankAccountRequest.md similarity index 100% rename from docs/models/shared/ForwardBankAccountRequest.md rename to docs/models/payments/ForwardBankAccountRequest.md diff --git a/docs/models/shared/GenericConfig.md b/docs/models/payments/GenericConfig.md similarity index 100% rename from docs/models/shared/GenericConfig.md rename to docs/models/payments/GenericConfig.md diff --git a/docs/models/shared/LegacyPaymentStatus.md b/docs/models/payments/LegacyPaymentStatus.md similarity index 95% rename from docs/models/shared/LegacyPaymentStatus.md rename to docs/models/payments/LegacyPaymentStatus.md index c837d27bd..f3fd8c22b 100644 --- a/docs/models/shared/LegacyPaymentStatus.md +++ b/docs/models/payments/LegacyPaymentStatus.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.LegacyPaymentStatus; +import com.formance.formance_sdk.models.payments.LegacyPaymentStatus; LegacyPaymentStatus value = LegacyPaymentStatus.PENDING; ``` diff --git a/docs/models/shared/MangoPayConfig.md b/docs/models/payments/MangoPayConfig.md similarity index 100% rename from docs/models/shared/MangoPayConfig.md rename to docs/models/payments/MangoPayConfig.md diff --git a/docs/models/shared/ModulrConfig.md b/docs/models/payments/ModulrConfig.md similarity index 100% rename from docs/models/shared/ModulrConfig.md rename to docs/models/payments/ModulrConfig.md diff --git a/docs/models/shared/MoneycorpConfig.md b/docs/models/payments/MoneycorpConfig.md similarity index 100% rename from docs/models/shared/MoneycorpConfig.md rename to docs/models/payments/MoneycorpConfig.md diff --git a/docs/models/payments/Payment.md b/docs/models/payments/Payment.md new file mode 100644 index 000000000..1205206e2 --- /dev/null +++ b/docs/models/payments/Payment.md @@ -0,0 +1,23 @@ +# Payment + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `connector` | [Optional\](../../models/shared/Connector.md) | :heavy_minus_sign: | N/A | | +| `paymentMetadata` | Map\ | :heavy_check_mark: | N/A | | +| `paymentScheme` | [PaymentScheme](../../models/shared/PaymentScheme.md) | :heavy_check_mark: | N/A | | +| `paymentStatus` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | +| `paymentType` | [PaymentType](../../models/shared/PaymentType.md) | :heavy_check_mark: | N/A | | +| `adjustments` | List\<[PaymentAdjustment](../../models/shared/PaymentAdjustment.md)> | :heavy_check_mark: | N/A | | +| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `asset` | *String* | :heavy_check_mark: | N/A | USD | +| `connectorID` | *String* | :heavy_check_mark: | N/A | | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `destinationAccountID` | *String* | :heavy_check_mark: | N/A | | +| `id` | *String* | :heavy_check_mark: | N/A | XXX | +| `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `raw` | [Optional\](../../models/shared/PaymentRaw.md) | :heavy_check_mark: | N/A | | +| `reference` | *String* | :heavy_check_mark: | N/A | | +| `sourceAccountID` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/payments/PaymentAdjustment.md b/docs/models/payments/PaymentAdjustment.md new file mode 100644 index 000000000..964ddb499 --- /dev/null +++ b/docs/models/payments/PaymentAdjustment.md @@ -0,0 +1,12 @@ +# PaymentAdjustment + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `paymentStatus` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | +| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | +| `raw` | [PaymentAdjustmentRaw](../../models/shared/PaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | | +| `reference` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/payments/PaymentAdjustmentRaw.md b/docs/models/payments/PaymentAdjustmentRaw.md new file mode 100644 index 000000000..78f88aee5 --- /dev/null +++ b/docs/models/payments/PaymentAdjustmentRaw.md @@ -0,0 +1,7 @@ +# PaymentAdjustmentRaw + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/payments/PaymentRaw.md b/docs/models/payments/PaymentRaw.md new file mode 100644 index 000000000..e884afe32 --- /dev/null +++ b/docs/models/payments/PaymentRaw.md @@ -0,0 +1,7 @@ +# PaymentRaw + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/PaymentRequest.md b/docs/models/payments/PaymentRequest.md similarity index 96% rename from docs/models/shared/PaymentRequest.md rename to docs/models/payments/PaymentRequest.md index 718685d74..c8938a05a 100644 --- a/docs/models/shared/PaymentRequest.md +++ b/docs/models/payments/PaymentRequest.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `paymentScheme` | [PaymentScheme](../../models/shared/PaymentScheme.md) | :heavy_check_mark: | N/A | | +| `paymentStatus` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | +| `paymentType` | [PaymentType](../../models/shared/PaymentType.md) | :heavy_check_mark: | N/A | | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | | `asset` | *String* | :heavy_check_mark: | N/A | USD | | `connectorID` | *String* | :heavy_check_mark: | N/A | | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | | `destinationAccountID` | *Optional\* | :heavy_minus_sign: | N/A | | | `reference` | *String* | :heavy_check_mark: | N/A | | -| `scheme` | [PaymentScheme](../../models/shared/PaymentScheme.md) | :heavy_check_mark: | N/A | | -| `sourceAccountID` | *Optional\* | :heavy_minus_sign: | N/A | | -| `status` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | -| `type` | [PaymentType](../../models/shared/PaymentType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| `sourceAccountID` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/payments/PaymentResponse.md b/docs/models/payments/PaymentResponse.md new file mode 100644 index 000000000..9505070d8 --- /dev/null +++ b/docs/models/payments/PaymentResponse.md @@ -0,0 +1,10 @@ +# PaymentResponse + +OK + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `payment` | [Payment](../../models/shared/Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/PaymentScheme.md b/docs/models/payments/PaymentScheme.md new file mode 100644 index 000000000..6627e02f1 --- /dev/null +++ b/docs/models/payments/PaymentScheme.md @@ -0,0 +1,39 @@ +# PaymentScheme + +## Example Usage + +```java +import com.formance.formance_sdk.models.payments.PaymentScheme; + +PaymentScheme value = PaymentScheme.UNKNOWN; +``` + + +## Values + +| Name | Value | +| ------------- | ------------- | +| `UNKNOWN` | unknown | +| `OTHER` | other | +| `VISA` | visa | +| `MASTERCARD` | mastercard | +| `AMEX` | amex | +| `DINERS` | diners | +| `DISCOVER` | discover | +| `JCB` | jcb | +| `UNIONPAY` | unionpay | +| `ALIPAY` | alipay | +| `CUP` | cup | +| `SEPA_DEBIT` | sepa debit | +| `SEPA_CREDIT` | sepa credit | +| `SEPA` | sepa | +| `APPLE_PAY` | apple pay | +| `GOOGLE_PAY` | google pay | +| `DOKU` | doku | +| `DRAGONPAY` | dragonpay | +| `MAESTRO` | maestro | +| `MOLPAY` | molpay | +| `A2A` | a2a | +| `ACH_DEBIT` | ach debit | +| `ACH` | ach | +| `RTP` | rtp | \ No newline at end of file diff --git a/docs/models/payments/PaymentStatus.md b/docs/models/payments/PaymentStatus.md new file mode 100644 index 000000000..c9bc207d3 --- /dev/null +++ b/docs/models/payments/PaymentStatus.md @@ -0,0 +1,26 @@ +# PaymentStatus + +## Example Usage + +```java +import com.formance.formance_sdk.models.payments.PaymentStatus; + +PaymentStatus value = PaymentStatus.PENDING; +``` + + +## Values + +| Name | Value | +| ------------------ | ------------------ | +| `PENDING` | PENDING | +| `SUCCEEDED` | SUCCEEDED | +| `CANCELLED` | CANCELLED | +| `FAILED` | FAILED | +| `EXPIRED` | EXPIRED | +| `REFUNDED` | REFUNDED | +| `REFUNDED_FAILURE` | REFUNDED_FAILURE | +| `DISPUTE` | DISPUTE | +| `DISPUTE_WON` | DISPUTE_WON | +| `DISPUTE_LOST` | DISPUTE_LOST | +| `OTHER` | OTHER | \ No newline at end of file diff --git a/docs/models/payments/PaymentType.md b/docs/models/payments/PaymentType.md new file mode 100644 index 000000000..d7e2e956d --- /dev/null +++ b/docs/models/payments/PaymentType.md @@ -0,0 +1,19 @@ +# PaymentType + +## Example Usage + +```java +import com.formance.formance_sdk.models.payments.PaymentType; + +PaymentType value = PaymentType.PAY_IN; +``` + + +## Values + +| Name | Value | +| ---------- | ---------- | +| `PAY_IN` | PAY-IN | +| `PAYOUT` | PAYOUT | +| `TRANSFER` | TRANSFER | +| `OTHER` | OTHER | \ No newline at end of file diff --git a/docs/models/payments/PaymentsCursor.md b/docs/models/payments/PaymentsCursor.md new file mode 100644 index 000000000..7405f042d --- /dev/null +++ b/docs/models/payments/PaymentsCursor.md @@ -0,0 +1,10 @@ +# PaymentsCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `cursorBase` | [PaymentsCursorCursorBase](../../models/shared/PaymentsCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/PaymentsCursorCursorBase.md b/docs/models/payments/PaymentsCursorCursorBase.md new file mode 100644 index 000000000..28bd422b6 --- /dev/null +++ b/docs/models/payments/PaymentsCursorCursorBase.md @@ -0,0 +1,12 @@ +# PaymentsCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `data` | List\<[Payment](../../models/shared/Payment.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/errors/PaymentsErrorResponse.md b/docs/models/payments/PaymentsErrorResponse.md similarity index 95% rename from docs/models/errors/PaymentsErrorResponse.md rename to docs/models/payments/PaymentsErrorResponse.md index 5501a571f..b78bd6066 100644 --- a/docs/models/errors/PaymentsErrorResponse.md +++ b/docs/models/payments/PaymentsErrorResponse.md @@ -7,5 +7,5 @@ Error | Field | Type | Required | Description | Example | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `errorCode` | [PaymentsErrorsEnum](../../models/shared/PaymentsErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | +| `paymentsErrorsEnum` | [PaymentsErrorsEnum](../../models/shared/PaymentsErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | | `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] missing reference | \ No newline at end of file diff --git a/docs/models/shared/PaymentsErrorsEnum.md b/docs/models/payments/PaymentsErrorsEnum.md similarity index 80% rename from docs/models/shared/PaymentsErrorsEnum.md rename to docs/models/payments/PaymentsErrorsEnum.md index ed6ec7846..5a38d91d3 100644 --- a/docs/models/shared/PaymentsErrorsEnum.md +++ b/docs/models/payments/PaymentsErrorsEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.PaymentsErrorsEnum; +import com.formance.formance_sdk.models.payments.PaymentsErrorsEnum; PaymentsErrorsEnum value = PaymentsErrorsEnum.INTERNAL; ``` diff --git a/docs/models/shared/Pool.md b/docs/models/payments/Pool.md similarity index 96% rename from docs/models/shared/Pool.md rename to docs/models/payments/Pool.md index c0a48fb94..d6614bbe8 100644 --- a/docs/models/shared/Pool.md +++ b/docs/models/payments/Pool.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `poolTypeEnum` | [Optional\](../../models/shared/PoolTypeEnum.md) | :heavy_minus_sign: | N/A | | `accounts` | List\<*String*> | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | -| `query` | Map\ | :heavy_minus_sign: | N/A | -| `type` | [Optional\](../../models/shared/PoolTypeEnum.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `query` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PoolBalance.md b/docs/models/payments/PoolBalance.md similarity index 100% rename from docs/models/shared/PoolBalance.md rename to docs/models/payments/PoolBalance.md diff --git a/docs/models/shared/PoolBalances.md b/docs/models/payments/PoolBalances.md similarity index 100% rename from docs/models/shared/PoolBalances.md rename to docs/models/payments/PoolBalances.md diff --git a/docs/models/shared/PoolBalancesLatestResponse.md b/docs/models/payments/PoolBalancesLatestResponse.md similarity index 91% rename from docs/models/shared/PoolBalancesLatestResponse.md rename to docs/models/payments/PoolBalancesLatestResponse.md index 092471c42..4a1d008b8 100644 --- a/docs/models/shared/PoolBalancesLatestResponse.md +++ b/docs/models/payments/PoolBalancesLatestResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `data` | List\<[PoolBalance](../../models/shared/PoolBalance.md)> | :heavy_check_mark: | N/A | \ No newline at end of file +| `poolBalancesLatest` | List\<[PoolBalance](../../models/shared/PoolBalance.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PoolBalancesResponse.md b/docs/models/payments/PoolBalancesResponse.md similarity index 90% rename from docs/models/shared/PoolBalancesResponse.md rename to docs/models/payments/PoolBalancesResponse.md index 5a2cc8f78..824b0066c 100644 --- a/docs/models/shared/PoolBalancesResponse.md +++ b/docs/models/payments/PoolBalancesResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `data` | [PoolBalances](../../models/shared/PoolBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `poolBalances` | [PoolBalances](../../models/shared/PoolBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PoolRequest.md b/docs/models/payments/PoolRequest.md similarity index 100% rename from docs/models/shared/PoolRequest.md rename to docs/models/payments/PoolRequest.md diff --git a/docs/models/shared/PoolResponse.md b/docs/models/payments/PoolResponse.md similarity index 87% rename from docs/models/shared/PoolResponse.md rename to docs/models/payments/PoolResponse.md index ab8f1c9a6..1a411feb7 100644 --- a/docs/models/shared/PoolResponse.md +++ b/docs/models/payments/PoolResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `data` | [Pool](../../models/shared/Pool.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `pool` | [Pool](../../models/shared/Pool.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PoolTypeEnum.md b/docs/models/payments/PoolTypeEnum.md similarity index 76% rename from docs/models/shared/PoolTypeEnum.md rename to docs/models/payments/PoolTypeEnum.md index ac5b221c7..07a2a5ec7 100644 --- a/docs/models/shared/PoolTypeEnum.md +++ b/docs/models/payments/PoolTypeEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.PoolTypeEnum; +import com.formance.formance_sdk.models.payments.PoolTypeEnum; PoolTypeEnum value = PoolTypeEnum.STATIC; ``` diff --git a/docs/models/payments/PoolsCursor.md b/docs/models/payments/PoolsCursor.md new file mode 100644 index 000000000..07608c76b --- /dev/null +++ b/docs/models/payments/PoolsCursor.md @@ -0,0 +1,10 @@ +# PoolsCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `cursorBase` | [PoolsCursorCursorBase](../../models/shared/PoolsCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/PoolsCursorCursorBase.md b/docs/models/payments/PoolsCursorCursorBase.md new file mode 100644 index 000000000..f548e6719 --- /dev/null +++ b/docs/models/payments/PoolsCursorCursorBase.md @@ -0,0 +1,12 @@ +# PoolsCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `data` | List\<[Pool](../../models/shared/Pool.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/ReverseTransferInitiationRequest.md b/docs/models/payments/ReverseTransferInitiationRequest.md similarity index 100% rename from docs/models/shared/ReverseTransferInitiationRequest.md rename to docs/models/payments/ReverseTransferInitiationRequest.md diff --git a/docs/models/payments/ServerInfo.md b/docs/models/payments/ServerInfo.md new file mode 100644 index 000000000..d9f8cb095 --- /dev/null +++ b/docs/models/payments/ServerInfo.md @@ -0,0 +1,11 @@ +# ServerInfo + +Server information + + +## Fields + +| Field | Type | Required | Description | +| -------------------- | -------------------- | -------------------- | -------------------- | +| `debug` | *Optional\* | :heavy_minus_sign: | N/A | +| `version` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/payments/State.md b/docs/models/payments/State.md new file mode 100644 index 000000000..158adc520 --- /dev/null +++ b/docs/models/payments/State.md @@ -0,0 +1,7 @@ +# State + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/Status.md b/docs/models/payments/Status.md similarity index 78% rename from docs/models/shared/Status.md rename to docs/models/payments/Status.md index b8c5663da..ce33b95f4 100644 --- a/docs/models/shared/Status.md +++ b/docs/models/payments/Status.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.Status; +import com.formance.formance_sdk.models.payments.Status; Status value = Status.REJECTED; ``` diff --git a/docs/models/shared/StripeConfig.md b/docs/models/payments/StripeConfig.md similarity index 100% rename from docs/models/shared/StripeConfig.md rename to docs/models/payments/StripeConfig.md diff --git a/docs/models/payments/TaskBase.md b/docs/models/payments/TaskBase.md new file mode 100644 index 000000000..65228ff0c --- /dev/null +++ b/docs/models/payments/TaskBase.md @@ -0,0 +1,15 @@ +# TaskBase + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `taskStatus` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | +| `connectorID` | *String* | :heavy_check_mark: | N/A | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `descriptor` | [Descriptor](../../models/shared/Descriptor.md) | :heavy_check_mark: | N/A | +| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | +| `id` | *String* | :heavy_check_mark: | N/A | +| `state` | [JsonNullable\](../../models/shared/State.md) | :heavy_minus_sign: | N/A | +| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/TaskResponse.md b/docs/models/payments/TaskResponse.md new file mode 100644 index 000000000..41cfe4f14 --- /dev/null +++ b/docs/models/payments/TaskResponse.md @@ -0,0 +1,10 @@ +# TaskResponse + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `data` | *Object* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskStatus.md b/docs/models/payments/TaskStatus.md similarity index 83% rename from docs/models/shared/TaskStatus.md rename to docs/models/payments/TaskStatus.md index 5113b816a..ab69f4ef7 100644 --- a/docs/models/shared/TaskStatus.md +++ b/docs/models/payments/TaskStatus.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.TaskStatus; +import com.formance.formance_sdk.models.payments.TaskStatus; TaskStatus value = TaskStatus.PENDING; ``` diff --git a/docs/models/payments/TasksCursor.md b/docs/models/payments/TasksCursor.md new file mode 100644 index 000000000..634eb98ad --- /dev/null +++ b/docs/models/payments/TasksCursor.md @@ -0,0 +1,10 @@ +# TasksCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | +| `cursorBase` | [TasksCursorCursorBase](../../models/shared/TasksCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/TasksCursorCursorBase.md b/docs/models/payments/TasksCursorCursorBase.md new file mode 100644 index 000000000..14e729c85 --- /dev/null +++ b/docs/models/payments/TasksCursorCursorBase.md @@ -0,0 +1,12 @@ +# TasksCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `data` | List\<*Object*> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiation.md b/docs/models/payments/TransferInitiation.md similarity index 99% rename from docs/models/shared/TransferInitiation.md rename to docs/models/payments/TransferInitiation.md index 40347e8fe..75bf8f2a2 100644 --- a/docs/models/shared/TransferInitiation.md +++ b/docs/models/payments/TransferInitiation.md @@ -5,6 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `transferInitiationStatus` | [TransferInitiationStatus](../../models/shared/TransferInitiationStatus.md) | :heavy_check_mark: | N/A | | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | | | `asset` | *String* | :heavy_check_mark: | N/A | USD | | `connectorID` | *String* | :heavy_check_mark: | N/A | | @@ -21,5 +22,4 @@ | `relatedPayments` | List\<[TransferInitiationPayments](../../models/shared/TransferInitiationPayments.md)> | :heavy_minus_sign: | N/A | | | `scheduledAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | | `sourceAccountID` | *String* | :heavy_check_mark: | N/A | | -| `status` | [TransferInitiationStatus](../../models/shared/TransferInitiationStatus.md) | :heavy_check_mark: | N/A | | | `type` | [TransferInitiationType](../../models/shared/TransferInitiationType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiationAdjustments.md b/docs/models/payments/TransferInitiationAdjustments.md similarity index 97% rename from docs/models/shared/TransferInitiationAdjustments.md rename to docs/models/payments/TransferInitiationAdjustments.md index 5844977e0..403599102 100644 --- a/docs/models/shared/TransferInitiationAdjustments.md +++ b/docs/models/payments/TransferInitiationAdjustments.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `transferInitiationStatus` | [TransferInitiationStatus](../../models/shared/TransferInitiationStatus.md) | :heavy_check_mark: | N/A | | `adjustmentID` | *String* | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `status` | [TransferInitiationStatus](../../models/shared/TransferInitiationStatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `metadata` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiationPayments.md b/docs/models/payments/TransferInitiationPayments.md similarity index 97% rename from docs/models/shared/TransferInitiationPayments.md rename to docs/models/payments/TransferInitiationPayments.md index a2bb8729a..55f80fdc7 100644 --- a/docs/models/shared/TransferInitiationPayments.md +++ b/docs/models/payments/TransferInitiationPayments.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `legacyPaymentStatus` | [LegacyPaymentStatus](../../models/shared/LegacyPaymentStatus.md) | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `paymentID` | *String* | :heavy_check_mark: | N/A | -| `status` | [LegacyPaymentStatus](../../models/shared/LegacyPaymentStatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `paymentID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiationRequest.md b/docs/models/payments/TransferInitiationRequest.md similarity index 100% rename from docs/models/shared/TransferInitiationRequest.md rename to docs/models/payments/TransferInitiationRequest.md diff --git a/docs/models/shared/TransferInitiationRequestType.md b/docs/models/payments/TransferInitiationRequestType.md similarity index 76% rename from docs/models/shared/TransferInitiationRequestType.md rename to docs/models/payments/TransferInitiationRequestType.md index f122523cd..2b14da8ba 100644 --- a/docs/models/shared/TransferInitiationRequestType.md +++ b/docs/models/payments/TransferInitiationRequestType.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.TransferInitiationRequestType; +import com.formance.formance_sdk.models.payments.TransferInitiationRequestType; TransferInitiationRequestType value = TransferInitiationRequestType.TRANSFER; ``` diff --git a/docs/models/shared/TransferInitiationResponse.md b/docs/models/payments/TransferInitiationResponse.md similarity index 92% rename from docs/models/shared/TransferInitiationResponse.md rename to docs/models/payments/TransferInitiationResponse.md index e56cb01f0..90147cc18 100644 --- a/docs/models/shared/TransferInitiationResponse.md +++ b/docs/models/payments/TransferInitiationResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `data` | [TransferInitiation](../../models/shared/TransferInitiation.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `transferInitiation` | [TransferInitiation](../../models/shared/TransferInitiation.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiationStatus.md b/docs/models/payments/TransferInitiationStatus.md similarity index 92% rename from docs/models/shared/TransferInitiationStatus.md rename to docs/models/payments/TransferInitiationStatus.md index 3175b0d2e..cb1a6980c 100644 --- a/docs/models/shared/TransferInitiationStatus.md +++ b/docs/models/payments/TransferInitiationStatus.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.TransferInitiationStatus; +import com.formance.formance_sdk.models.payments.TransferInitiationStatus; TransferInitiationStatus value = TransferInitiationStatus.WAITING_FOR_VALIDATION; ``` diff --git a/docs/models/shared/TransferInitiationType.md b/docs/models/payments/TransferInitiationType.md similarity index 77% rename from docs/models/shared/TransferInitiationType.md rename to docs/models/payments/TransferInitiationType.md index dd54c249b..277b34b60 100644 --- a/docs/models/shared/TransferInitiationType.md +++ b/docs/models/payments/TransferInitiationType.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.TransferInitiationType; +import com.formance.formance_sdk.models.payments.TransferInitiationType; TransferInitiationType value = TransferInitiationType.TRANSFER; ``` diff --git a/docs/models/payments/TransferInitiationsCursor.md b/docs/models/payments/TransferInitiationsCursor.md new file mode 100644 index 000000000..32277a3ce --- /dev/null +++ b/docs/models/payments/TransferInitiationsCursor.md @@ -0,0 +1,10 @@ +# TransferInitiationsCursor + +OK + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `cursorBase` | [TransferInitiationsCursorCursorBase](../../models/shared/TransferInitiationsCursorCursorBase.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/TransferInitiationsCursorCursorBase.md b/docs/models/payments/TransferInitiationsCursorCursorBase.md new file mode 100644 index 000000000..85a7d8577 --- /dev/null +++ b/docs/models/payments/TransferInitiationsCursorCursorBase.md @@ -0,0 +1,12 @@ +# TransferInitiationsCursorCursorBase + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `data` | List\<[TransferInitiation](../../models/shared/TransferInitiation.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/TransferRequest.md b/docs/models/payments/TransferRequest.md similarity index 100% rename from docs/models/shared/TransferRequest.md rename to docs/models/payments/TransferRequest.md diff --git a/docs/models/shared/TransferResponse.md b/docs/models/payments/TransferResponse.md similarity index 100% rename from docs/models/shared/TransferResponse.md rename to docs/models/payments/TransferResponse.md diff --git a/docs/models/shared/UpdateBankAccountMetadataRequest.md b/docs/models/payments/UpdateBankAccountMetadataRequest.md similarity index 81% rename from docs/models/shared/UpdateBankAccountMetadataRequest.md rename to docs/models/payments/UpdateBankAccountMetadataRequest.md index 1e4aecbcb..78724119a 100644 --- a/docs/models/shared/UpdateBankAccountMetadataRequest.md +++ b/docs/models/payments/UpdateBankAccountMetadataRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file +| `bankAccountMetadata` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/UpdatePoolQueryRequest.md b/docs/models/payments/UpdatePoolQueryRequest.md similarity index 100% rename from docs/models/shared/UpdatePoolQueryRequest.md rename to docs/models/payments/UpdatePoolQueryRequest.md diff --git a/docs/models/shared/UpdateTransferInitiationStatusRequest.md b/docs/models/payments/UpdateTransferInitiationStatusRequest.md similarity index 100% rename from docs/models/shared/UpdateTransferInitiationStatusRequest.md rename to docs/models/payments/UpdateTransferInitiationStatusRequest.md diff --git a/docs/models/shared/V3Account.md b/docs/models/payments/V3Account.md similarity index 96% rename from docs/models/shared/V3Account.md rename to docs/models/payments/V3Account.md index 1e9e4f8ea..25e1a0485 100644 --- a/docs/models/shared/V3Account.md +++ b/docs/models/payments/V3Account.md @@ -5,14 +5,14 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connector` | [Optional\](../../models/shared/V3ConnectorBase.md) | :heavy_minus_sign: | N/A | +| `v3AccountTypeEnum` | [V3AccountTypeEnum](../../models/shared/V3AccountTypeEnum.md) | :heavy_check_mark: | N/A | +| `v3ConnectorBase` | [Optional\](../../models/shared/V3ConnectorBase.md) | :heavy_minus_sign: | N/A | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `defaultAsset` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `provider` | *String* | :heavy_check_mark: | N/A | | `raw` | [V3AccountRaw](../../models/shared/V3AccountRaw.md) | :heavy_check_mark: | N/A | -| `reference` | *String* | :heavy_check_mark: | N/A | -| `type` | [V3AccountTypeEnum](../../models/shared/V3AccountTypeEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3AccountRaw.md b/docs/models/payments/V3AccountRaw.md similarity index 100% rename from docs/models/shared/V3AccountRaw.md rename to docs/models/payments/V3AccountRaw.md diff --git a/docs/models/shared/V3AccountTypeEnum.md b/docs/models/payments/V3AccountTypeEnum.md similarity index 79% rename from docs/models/shared/V3AccountTypeEnum.md rename to docs/models/payments/V3AccountTypeEnum.md index 3a2b0dfbe..52bb4359d 100644 --- a/docs/models/shared/V3AccountTypeEnum.md +++ b/docs/models/payments/V3AccountTypeEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3AccountTypeEnum; +import com.formance.formance_sdk.models.payments.V3AccountTypeEnum; V3AccountTypeEnum value = V3AccountTypeEnum.UNKNOWN; ``` diff --git a/docs/models/shared/V3AccountsCursorResponse.md b/docs/models/payments/V3AccountsCursorResponse.md similarity index 100% rename from docs/models/shared/V3AccountsCursorResponse.md rename to docs/models/payments/V3AccountsCursorResponse.md diff --git a/docs/models/shared/V3AccountsCursorResponseCursor.md b/docs/models/payments/V3AccountsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3AccountsCursorResponseCursor.md rename to docs/models/payments/V3AccountsCursorResponseCursor.md diff --git a/docs/models/shared/V3Address.md b/docs/models/payments/V3Address.md similarity index 100% rename from docs/models/shared/V3Address.md rename to docs/models/payments/V3Address.md diff --git a/docs/models/shared/V3AddressRequest.md b/docs/models/payments/V3AddressRequest.md similarity index 100% rename from docs/models/shared/V3AddressRequest.md rename to docs/models/payments/V3AddressRequest.md diff --git a/docs/models/shared/V3AdyenConfig.md b/docs/models/payments/V3AdyenConfig.md similarity index 100% rename from docs/models/shared/V3AdyenConfig.md rename to docs/models/payments/V3AdyenConfig.md diff --git a/docs/models/shared/V3ApprovePaymentInitiationResponse.md b/docs/models/payments/V3ApprovePaymentInitiationResponse.md similarity index 100% rename from docs/models/shared/V3ApprovePaymentInitiationResponse.md rename to docs/models/payments/V3ApprovePaymentInitiationResponse.md diff --git a/docs/models/shared/V3ApprovePaymentInitiationResponseData.md b/docs/models/payments/V3ApprovePaymentInitiationResponseData.md similarity index 100% rename from docs/models/shared/V3ApprovePaymentInitiationResponseData.md rename to docs/models/payments/V3ApprovePaymentInitiationResponseData.md diff --git a/docs/models/shared/V3AtlarConfig.md b/docs/models/payments/V3AtlarConfig.md similarity index 100% rename from docs/models/shared/V3AtlarConfig.md rename to docs/models/payments/V3AtlarConfig.md diff --git a/docs/models/shared/V3Balance.md b/docs/models/payments/V3Balance.md similarity index 100% rename from docs/models/shared/V3Balance.md rename to docs/models/payments/V3Balance.md diff --git a/docs/models/shared/V3BalancesCursorResponse.md b/docs/models/payments/V3BalancesCursorResponse.md similarity index 100% rename from docs/models/shared/V3BalancesCursorResponse.md rename to docs/models/payments/V3BalancesCursorResponse.md diff --git a/docs/models/shared/V3BalancesCursorResponseCursor.md b/docs/models/payments/V3BalancesCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3BalancesCursorResponseCursor.md rename to docs/models/payments/V3BalancesCursorResponseCursor.md diff --git a/docs/models/shared/V3BankAccount.md b/docs/models/payments/V3BankAccount.md similarity index 98% rename from docs/models/shared/V3BankAccount.md rename to docs/models/payments/V3BankAccount.md index fd05932d3..c88675fed 100644 --- a/docs/models/shared/V3BankAccount.md +++ b/docs/models/payments/V3BankAccount.md @@ -5,12 +5,12 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `accountNumber` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `country` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `iban` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `relatedAccounts` | List\<[V3BankAccountRelatedAccount](../../models/shared/V3BankAccountRelatedAccount.md)> | :heavy_minus_sign: | N/A | | `swiftBicCode` | *JsonNullable\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3BankAccountRelatedAccount.md b/docs/models/payments/V3BankAccountRelatedAccount.md similarity index 100% rename from docs/models/shared/V3BankAccountRelatedAccount.md rename to docs/models/payments/V3BankAccountRelatedAccount.md diff --git a/docs/models/shared/V3BankAccountsCursorResponse.md b/docs/models/payments/V3BankAccountsCursorResponse.md similarity index 100% rename from docs/models/shared/V3BankAccountsCursorResponse.md rename to docs/models/payments/V3BankAccountsCursorResponse.md diff --git a/docs/models/shared/V3BankAccountsCursorResponseCursor.md b/docs/models/payments/V3BankAccountsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3BankAccountsCursorResponseCursor.md rename to docs/models/payments/V3BankAccountsCursorResponseCursor.md diff --git a/docs/models/shared/V3BankingcircleConfig.md b/docs/models/payments/V3BankingcircleConfig.md similarity index 100% rename from docs/models/shared/V3BankingcircleConfig.md rename to docs/models/payments/V3BankingcircleConfig.md diff --git a/docs/models/shared/V3CoinbaseprimeConfig.md b/docs/models/payments/V3CoinbaseprimeConfig.md similarity index 100% rename from docs/models/shared/V3CoinbaseprimeConfig.md rename to docs/models/payments/V3CoinbaseprimeConfig.md diff --git a/docs/models/shared/V3ColumnConfig.md b/docs/models/payments/V3ColumnConfig.md similarity index 100% rename from docs/models/shared/V3ColumnConfig.md rename to docs/models/payments/V3ColumnConfig.md diff --git a/docs/models/shared/V3ConnectionStatusEnum.md b/docs/models/payments/V3ConnectionStatusEnum.md similarity index 75% rename from docs/models/shared/V3ConnectionStatusEnum.md rename to docs/models/payments/V3ConnectionStatusEnum.md index 4518cf7bc..b8df56c15 100644 --- a/docs/models/shared/V3ConnectionStatusEnum.md +++ b/docs/models/payments/V3ConnectionStatusEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3ConnectionStatusEnum; +import com.formance.formance_sdk.models.payments.V3ConnectionStatusEnum; V3ConnectionStatusEnum value = V3ConnectionStatusEnum.ACTIVE; ``` diff --git a/docs/models/shared/V3Connector.md b/docs/models/payments/V3Connector.md similarity index 96% rename from docs/models/shared/V3Connector.md rename to docs/models/payments/V3Connector.md index ee471a44b..1198d501d 100644 --- a/docs/models/shared/V3Connector.md +++ b/docs/models/payments/V3Connector.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `config` | [V3ConnectorConfig](../../models/shared/V3ConnectorConfig.md) | :heavy_check_mark: | N/A | +| `config` | [Config](../../models/shared/Config.md) | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | diff --git a/docs/models/shared/V3ConnectorBase.md b/docs/models/payments/V3ConnectorBase.md similarity index 100% rename from docs/models/shared/V3ConnectorBase.md rename to docs/models/payments/V3ConnectorBase.md diff --git a/docs/models/payments/V3ConnectorConfig.md b/docs/models/payments/V3ConnectorConfig.md new file mode 100644 index 000000000..95a6fe911 --- /dev/null +++ b/docs/models/payments/V3ConnectorConfig.md @@ -0,0 +1,2 @@ +# V3ConnectorConfig + diff --git a/docs/models/shared/V3ConnectorConfigsResponse.md b/docs/models/payments/V3ConnectorConfigsResponse.md similarity index 100% rename from docs/models/shared/V3ConnectorConfigsResponse.md rename to docs/models/payments/V3ConnectorConfigsResponse.md diff --git a/docs/models/shared/V3ConnectorConfigsResponseData.md b/docs/models/payments/V3ConnectorConfigsResponseData.md similarity index 100% rename from docs/models/shared/V3ConnectorConfigsResponseData.md rename to docs/models/payments/V3ConnectorConfigsResponseData.md diff --git a/docs/models/shared/V3ConnectorScheduleInstancesCursorResponse.md b/docs/models/payments/V3ConnectorScheduleInstancesCursorResponse.md similarity index 100% rename from docs/models/shared/V3ConnectorScheduleInstancesCursorResponse.md rename to docs/models/payments/V3ConnectorScheduleInstancesCursorResponse.md diff --git a/docs/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.md b/docs/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.md rename to docs/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.md diff --git a/docs/models/shared/V3ConnectorScheduleResponse.md b/docs/models/payments/V3ConnectorScheduleResponse.md similarity index 90% rename from docs/models/shared/V3ConnectorScheduleResponse.md rename to docs/models/payments/V3ConnectorScheduleResponse.md index ea76cefc4..e4eb36ba2 100644 --- a/docs/models/shared/V3ConnectorScheduleResponse.md +++ b/docs/models/payments/V3ConnectorScheduleResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `data` | [V3Schedule](../../models/shared/V3Schedule.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Schedule` | [V3Schedule](../../models/shared/V3Schedule.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3ConnectorSchedulesCursorResponse.md b/docs/models/payments/V3ConnectorSchedulesCursorResponse.md similarity index 100% rename from docs/models/shared/V3ConnectorSchedulesCursorResponse.md rename to docs/models/payments/V3ConnectorSchedulesCursorResponse.md diff --git a/docs/models/shared/V3ConnectorSchedulesCursorResponseCursor.md b/docs/models/payments/V3ConnectorSchedulesCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3ConnectorSchedulesCursorResponseCursor.md rename to docs/models/payments/V3ConnectorSchedulesCursorResponseCursor.md diff --git a/docs/models/shared/V3ConnectorsCursorResponse.md b/docs/models/payments/V3ConnectorsCursorResponse.md similarity index 100% rename from docs/models/shared/V3ConnectorsCursorResponse.md rename to docs/models/payments/V3ConnectorsCursorResponse.md diff --git a/docs/models/shared/V3ConnectorsCursorResponseCursor.md b/docs/models/payments/V3ConnectorsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3ConnectorsCursorResponseCursor.md rename to docs/models/payments/V3ConnectorsCursorResponseCursor.md diff --git a/docs/models/shared/V3ContactDetails.md b/docs/models/payments/V3ContactDetails.md similarity index 100% rename from docs/models/shared/V3ContactDetails.md rename to docs/models/payments/V3ContactDetails.md diff --git a/docs/models/shared/V3ContactDetailsRequest.md b/docs/models/payments/V3ContactDetailsRequest.md similarity index 100% rename from docs/models/shared/V3ContactDetailsRequest.md rename to docs/models/payments/V3ContactDetailsRequest.md diff --git a/docs/models/shared/V3CreateAccountRequest.md b/docs/models/payments/V3CreateAccountRequest.md similarity index 96% rename from docs/models/shared/V3CreateAccountRequest.md rename to docs/models/payments/V3CreateAccountRequest.md index b5deb2772..280c0e468 100644 --- a/docs/models/shared/V3CreateAccountRequest.md +++ b/docs/models/payments/V3CreateAccountRequest.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3AccountTypeEnum` | [V3AccountTypeEnum](../../models/shared/V3AccountTypeEnum.md) | :heavy_check_mark: | N/A | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `accountName` | *String* | :heavy_check_mark: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `defaultAsset` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `reference` | *String* | :heavy_check_mark: | N/A | -| `type` | [V3AccountTypeEnum](../../models/shared/V3AccountTypeEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreateAccountResponse.md b/docs/models/payments/V3CreateAccountResponse.md similarity index 89% rename from docs/models/shared/V3CreateAccountResponse.md rename to docs/models/payments/V3CreateAccountResponse.md index 188405a2b..a38aa1151 100644 --- a/docs/models/shared/V3CreateAccountResponse.md +++ b/docs/models/payments/V3CreateAccountResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V3Account](../../models/shared/V3Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Account` | [V3Account](../../models/shared/V3Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreateBankAccountRequest.md b/docs/models/payments/V3CreateBankAccountRequest.md similarity index 92% rename from docs/models/shared/V3CreateBankAccountRequest.md rename to docs/models/payments/V3CreateBankAccountRequest.md index 621de3fe3..d4842ac84 100644 --- a/docs/models/shared/V3CreateBankAccountRequest.md +++ b/docs/models/payments/V3CreateBankAccountRequest.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `accountNumber` | *Optional\* | :heavy_minus_sign: | N/A | | `country` | *Optional\* | :heavy_minus_sign: | N/A | | `iban` | *Optional\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `swiftBicCode` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreateBankAccountResponse.md b/docs/models/payments/V3CreateBankAccountResponse.md similarity index 100% rename from docs/models/shared/V3CreateBankAccountResponse.md rename to docs/models/payments/V3CreateBankAccountResponse.md diff --git a/docs/models/shared/V3CreatePaymentAdjustmentRequest.md b/docs/models/payments/V3CreatePaymentAdjustmentRequest.md similarity index 95% rename from docs/models/shared/V3CreatePaymentAdjustmentRequest.md rename to docs/models/payments/V3CreatePaymentAdjustmentRequest.md index 6824ec94a..8a4d85fee 100644 --- a/docs/models/shared/V3CreatePaymentAdjustmentRequest.md +++ b/docs/models/payments/V3CreatePaymentAdjustmentRequest.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentStatusEnum` | [V3PaymentStatusEnum](../../models/shared/V3PaymentStatusEnum.md) | :heavy_check_mark: | N/A | | `amount` | *Optional\* | :heavy_minus_sign: | N/A | | `asset` | *Optional\* | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `reference` | *String* | :heavy_check_mark: | N/A | -| `status` | [V3PaymentStatusEnum](../../models/shared/V3PaymentStatusEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreatePaymentRequest.md b/docs/models/payments/V3CreatePaymentRequest.md similarity index 97% rename from docs/models/shared/V3CreatePaymentRequest.md rename to docs/models/payments/V3CreatePaymentRequest.md index c5178f399..e3f3d2825 100644 --- a/docs/models/shared/V3CreatePaymentRequest.md +++ b/docs/models/payments/V3CreatePaymentRequest.md @@ -5,6 +5,8 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentTypeEnum` | [V3PaymentTypeEnum](../../models/shared/V3PaymentTypeEnum.md) | :heavy_check_mark: | N/A | | `adjustments` | List\<[V3CreatePaymentAdjustmentRequest](../../models/shared/V3CreatePaymentAdjustmentRequest.md)> | :heavy_minus_sign: | N/A | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | | `asset` | *String* | :heavy_check_mark: | N/A | @@ -12,8 +14,6 @@ | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `destinationAccountID` | *Optional\* | :heavy_minus_sign: | N/A | | `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `reference` | *String* | :heavy_check_mark: | N/A | | `scheme` | *String* | :heavy_check_mark: | N/A | -| `sourceAccountID` | *Optional\* | :heavy_minus_sign: | N/A | -| `type` | [V3PaymentTypeEnum](../../models/shared/V3PaymentTypeEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `sourceAccountID` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreatePaymentResponse.md b/docs/models/payments/V3CreatePaymentResponse.md similarity index 89% rename from docs/models/shared/V3CreatePaymentResponse.md rename to docs/models/payments/V3CreatePaymentResponse.md index c47b6be0b..18c47ee11 100644 --- a/docs/models/shared/V3CreatePaymentResponse.md +++ b/docs/models/payments/V3CreatePaymentResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V3Payment](../../models/shared/V3Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Payment` | [V3Payment](../../models/shared/V3Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreatePaymentServiceUserRequest.md b/docs/models/payments/V3CreatePaymentServiceUserRequest.md similarity index 92% rename from docs/models/shared/V3CreatePaymentServiceUserRequest.md rename to docs/models/payments/V3CreatePaymentServiceUserRequest.md index 7db3a4726..adbf3670b 100644 --- a/docs/models/shared/V3CreatePaymentServiceUserRequest.md +++ b/docs/models/payments/V3CreatePaymentServiceUserRequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `address` | [Optional\](../../models/shared/V3AddressRequest.md) | :heavy_minus_sign: | N/A | +| `v3AddressRequest` | [Optional\](../../models/shared/V3AddressRequest.md) | :heavy_minus_sign: | N/A | +| `v3ContactDetailsRequest` | [Optional\](../../models/shared/V3ContactDetailsRequest.md) | :heavy_minus_sign: | N/A | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `bankAccountIDs` | List\<*String*> | :heavy_minus_sign: | N/A | -| `contactDetails` | [Optional\](../../models/shared/V3ContactDetailsRequest.md) | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3CreatePaymentServiceUserResponse.md b/docs/models/payments/V3CreatePaymentServiceUserResponse.md similarity index 100% rename from docs/models/shared/V3CreatePaymentServiceUserResponse.md rename to docs/models/payments/V3CreatePaymentServiceUserResponse.md diff --git a/docs/models/shared/V3CreatePoolRequest.md b/docs/models/payments/V3CreatePoolRequest.md similarity index 100% rename from docs/models/shared/V3CreatePoolRequest.md rename to docs/models/payments/V3CreatePoolRequest.md diff --git a/docs/models/shared/V3CreatePoolResponse.md b/docs/models/payments/V3CreatePoolResponse.md similarity index 100% rename from docs/models/shared/V3CreatePoolResponse.md rename to docs/models/payments/V3CreatePoolResponse.md diff --git a/docs/models/shared/V3CurrencycloudConfig.md b/docs/models/payments/V3CurrencycloudConfig.md similarity index 100% rename from docs/models/shared/V3CurrencycloudConfig.md rename to docs/models/payments/V3CurrencycloudConfig.md diff --git a/docs/models/shared/V3DummypayConfig.md b/docs/models/payments/V3DummypayConfig.md similarity index 100% rename from docs/models/shared/V3DummypayConfig.md rename to docs/models/payments/V3DummypayConfig.md diff --git a/docs/models/errors/V3ErrorResponse.md b/docs/models/payments/V3ErrorResponse.md similarity index 95% rename from docs/models/errors/V3ErrorResponse.md rename to docs/models/payments/V3ErrorResponse.md index db1c3cd87..815e36b9c 100644 --- a/docs/models/errors/V3ErrorResponse.md +++ b/docs/models/payments/V3ErrorResponse.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `v3ErrorsEnum` | [V3ErrorsEnum](../../models/shared/V3ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | | `details` | *Optional\* | :heavy_minus_sign: | N/A | | -| `errorCode` | [V3ErrorsEnum](../../models/shared/V3ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | | `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] missing required config field: pollingPeriod | \ No newline at end of file diff --git a/docs/models/shared/V3ErrorsEnum.md b/docs/models/payments/V3ErrorsEnum.md similarity index 90% rename from docs/models/shared/V3ErrorsEnum.md rename to docs/models/payments/V3ErrorsEnum.md index 6285079f0..a2423ae47 100644 --- a/docs/models/shared/V3ErrorsEnum.md +++ b/docs/models/payments/V3ErrorsEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3ErrorsEnum; +import com.formance.formance_sdk.models.payments.V3ErrorsEnum; V3ErrorsEnum value = V3ErrorsEnum.INTERNAL; ``` diff --git a/docs/models/shared/V3FireblocksConfig.md b/docs/models/payments/V3FireblocksConfig.md similarity index 100% rename from docs/models/shared/V3FireblocksConfig.md rename to docs/models/payments/V3FireblocksConfig.md diff --git a/docs/models/shared/V3ForwardBankAccountRequest.md b/docs/models/payments/V3ForwardBankAccountRequest.md similarity index 100% rename from docs/models/shared/V3ForwardBankAccountRequest.md rename to docs/models/payments/V3ForwardBankAccountRequest.md diff --git a/docs/models/shared/V3ForwardBankAccountResponse.md b/docs/models/payments/V3ForwardBankAccountResponse.md similarity index 100% rename from docs/models/shared/V3ForwardBankAccountResponse.md rename to docs/models/payments/V3ForwardBankAccountResponse.md diff --git a/docs/models/shared/V3ForwardBankAccountResponseData.md b/docs/models/payments/V3ForwardBankAccountResponseData.md similarity index 100% rename from docs/models/shared/V3ForwardBankAccountResponseData.md rename to docs/models/payments/V3ForwardBankAccountResponseData.md diff --git a/docs/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.md b/docs/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.md similarity index 100% rename from docs/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.md rename to docs/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.md diff --git a/docs/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.md b/docs/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.md similarity index 100% rename from docs/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.md rename to docs/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.md diff --git a/docs/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.md b/docs/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.md similarity index 100% rename from docs/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.md rename to docs/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.md diff --git a/docs/models/shared/V3GenericConfig.md b/docs/models/payments/V3GenericConfig.md similarity index 100% rename from docs/models/shared/V3GenericConfig.md rename to docs/models/payments/V3GenericConfig.md diff --git a/docs/models/shared/V3GetAccountResponse.md b/docs/models/payments/V3GetAccountResponse.md similarity index 89% rename from docs/models/shared/V3GetAccountResponse.md rename to docs/models/payments/V3GetAccountResponse.md index 17ae8a74c..c286a0dc4 100644 --- a/docs/models/shared/V3GetAccountResponse.md +++ b/docs/models/payments/V3GetAccountResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V3Account](../../models/shared/V3Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Account` | [V3Account](../../models/shared/V3Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3GetBankAccountResponse.md b/docs/models/payments/V3GetBankAccountResponse.md similarity index 91% rename from docs/models/shared/V3GetBankAccountResponse.md rename to docs/models/payments/V3GetBankAccountResponse.md index a09558bcc..6cbbf60c3 100644 --- a/docs/models/shared/V3GetBankAccountResponse.md +++ b/docs/models/payments/V3GetBankAccountResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V3BankAccount](../../models/shared/V3BankAccount.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3BankAccount` | [V3BankAccount](../../models/shared/V3BankAccount.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/payments/V3GetConnectorConfigResponse.md b/docs/models/payments/V3GetConnectorConfigResponse.md new file mode 100644 index 000000000..531f95d6b --- /dev/null +++ b/docs/models/payments/V3GetConnectorConfigResponse.md @@ -0,0 +1,8 @@ +# V3GetConnectorConfigResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `v3ConnectorConfig` | [V3ConnectorConfig](../../models/shared/V3ConnectorConfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3GetPaymentInitiationResponse.md b/docs/models/payments/V3GetPaymentInitiationResponse.md similarity index 92% rename from docs/models/shared/V3GetPaymentInitiationResponse.md rename to docs/models/payments/V3GetPaymentInitiationResponse.md index 6f2ca0995..08be88c5e 100644 --- a/docs/models/shared/V3GetPaymentInitiationResponse.md +++ b/docs/models/payments/V3GetPaymentInitiationResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `data` | [V3PaymentInitiation](../../models/shared/V3PaymentInitiation.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3PaymentInitiation` | [V3PaymentInitiation](../../models/shared/V3PaymentInitiation.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3GetPaymentResponse.md b/docs/models/payments/V3GetPaymentResponse.md similarity index 89% rename from docs/models/shared/V3GetPaymentResponse.md rename to docs/models/payments/V3GetPaymentResponse.md index e6b446f32..35dea75e3 100644 --- a/docs/models/shared/V3GetPaymentResponse.md +++ b/docs/models/payments/V3GetPaymentResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V3Payment](../../models/shared/V3Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Payment` | [V3Payment](../../models/shared/V3Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3GetPaymentServiceUserResponse.md b/docs/models/payments/V3GetPaymentServiceUserResponse.md similarity index 92% rename from docs/models/shared/V3GetPaymentServiceUserResponse.md rename to docs/models/payments/V3GetPaymentServiceUserResponse.md index 8b548e863..9e632bee5 100644 --- a/docs/models/shared/V3GetPaymentServiceUserResponse.md +++ b/docs/models/payments/V3GetPaymentServiceUserResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `data` | [V3PaymentServiceUser](../../models/shared/V3PaymentServiceUser.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3PaymentServiceUser` | [V3PaymentServiceUser](../../models/shared/V3PaymentServiceUser.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3GetPoolResponse.md b/docs/models/payments/V3GetPoolResponse.md similarity index 88% rename from docs/models/shared/V3GetPoolResponse.md rename to docs/models/payments/V3GetPoolResponse.md index 5a4e464c5..331044c91 100644 --- a/docs/models/shared/V3GetPoolResponse.md +++ b/docs/models/payments/V3GetPoolResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `data` | [V3Pool](../../models/shared/V3Pool.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Pool` | [V3Pool](../../models/shared/V3Pool.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3GetTaskResponse.md b/docs/models/payments/V3GetTaskResponse.md similarity index 88% rename from docs/models/shared/V3GetTaskResponse.md rename to docs/models/payments/V3GetTaskResponse.md index 8bee0e534..ae00d8498 100644 --- a/docs/models/shared/V3GetTaskResponse.md +++ b/docs/models/payments/V3GetTaskResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `data` | [V3Task](../../models/shared/V3Task.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Task` | [V3Task](../../models/shared/V3Task.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3IncreaseConfig.md b/docs/models/payments/V3IncreaseConfig.md similarity index 100% rename from docs/models/shared/V3IncreaseConfig.md rename to docs/models/payments/V3IncreaseConfig.md diff --git a/docs/models/shared/V3InitiatePaymentRequest.md b/docs/models/payments/V3InitiatePaymentRequest.md similarity index 97% rename from docs/models/shared/V3InitiatePaymentRequest.md rename to docs/models/payments/V3InitiatePaymentRequest.md index 008426db9..46a29f8ba 100644 --- a/docs/models/shared/V3InitiatePaymentRequest.md +++ b/docs/models/payments/V3InitiatePaymentRequest.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentInitiationTypeEnum` | [V3PaymentInitiationTypeEnum](../../models/shared/V3PaymentInitiationTypeEnum.md) | :heavy_check_mark: | N/A | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | | `asset` | *String* | :heavy_check_mark: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `description` | *String* | :heavy_check_mark: | N/A | | `destinationAccountID` | *Optional\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `reference` | *String* | :heavy_check_mark: | N/A | | `scheduledAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `sourceAccountID` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `type` | [V3PaymentInitiationTypeEnum](../../models/shared/V3PaymentInitiationTypeEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `sourceAccountID` | *JsonNullable\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3InitiatePaymentResponse.md b/docs/models/payments/V3InitiatePaymentResponse.md similarity index 100% rename from docs/models/shared/V3InitiatePaymentResponse.md rename to docs/models/payments/V3InitiatePaymentResponse.md diff --git a/docs/models/shared/V3InitiatePaymentResponseData.md b/docs/models/payments/V3InitiatePaymentResponseData.md similarity index 100% rename from docs/models/shared/V3InitiatePaymentResponseData.md rename to docs/models/payments/V3InitiatePaymentResponseData.md diff --git a/docs/models/shared/V3InstallConnectorResponse.md b/docs/models/payments/V3InstallConnectorResponse.md similarity index 100% rename from docs/models/shared/V3InstallConnectorResponse.md rename to docs/models/payments/V3InstallConnectorResponse.md diff --git a/docs/models/shared/V3Instance.md b/docs/models/payments/V3Instance.md similarity index 100% rename from docs/models/shared/V3Instance.md rename to docs/models/payments/V3Instance.md diff --git a/docs/models/shared/V3MangopayConfig.md b/docs/models/payments/V3MangopayConfig.md similarity index 100% rename from docs/models/shared/V3MangopayConfig.md rename to docs/models/payments/V3MangopayConfig.md diff --git a/docs/models/shared/V3ModulrConfig.md b/docs/models/payments/V3ModulrConfig.md similarity index 100% rename from docs/models/shared/V3ModulrConfig.md rename to docs/models/payments/V3ModulrConfig.md diff --git a/docs/models/shared/V3MoneycorpConfig.md b/docs/models/payments/V3MoneycorpConfig.md similarity index 100% rename from docs/models/shared/V3MoneycorpConfig.md rename to docs/models/payments/V3MoneycorpConfig.md diff --git a/docs/models/shared/V3OpenBankingConnectionAttemptStatusEnum.md b/docs/models/payments/V3OpenBankingConnectionAttemptStatusEnum.md similarity index 78% rename from docs/models/shared/V3OpenBankingConnectionAttemptStatusEnum.md rename to docs/models/payments/V3OpenBankingConnectionAttemptStatusEnum.md index 08de47920..ebf79a0c5 100644 --- a/docs/models/shared/V3OpenBankingConnectionAttemptStatusEnum.md +++ b/docs/models/payments/V3OpenBankingConnectionAttemptStatusEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3OpenBankingConnectionAttemptStatusEnum; +import com.formance.formance_sdk.models.payments.V3OpenBankingConnectionAttemptStatusEnum; V3OpenBankingConnectionAttemptStatusEnum value = V3OpenBankingConnectionAttemptStatusEnum.PENDING; ``` diff --git a/docs/models/shared/V3Payment.md b/docs/models/payments/V3Payment.md similarity index 96% rename from docs/models/shared/V3Payment.md rename to docs/models/payments/V3Payment.md index 2f35f2b5b..573f1a3fe 100644 --- a/docs/models/shared/V3Payment.md +++ b/docs/models/payments/V3Payment.md @@ -5,6 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentStatusEnum` | [V3PaymentStatusEnum](../../models/shared/V3PaymentStatusEnum.md) | :heavy_check_mark: | N/A | +| `v3PaymentTypeEnum` | [V3PaymentTypeEnum](../../models/shared/V3PaymentTypeEnum.md) | :heavy_check_mark: | N/A | | `adjustments` | List\<[V3PaymentAdjustment](../../models/shared/V3PaymentAdjustment.md)> | :heavy_minus_sign: | N/A | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | | `asset` | *String* | :heavy_check_mark: | N/A | @@ -13,10 +16,7 @@ | `destinationAccountID` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `provider` | *String* | :heavy_check_mark: | N/A | | `reference` | *String* | :heavy_check_mark: | N/A | | `scheme` | *String* | :heavy_check_mark: | N/A | -| `sourceAccountID` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `status` | [V3PaymentStatusEnum](../../models/shared/V3PaymentStatusEnum.md) | :heavy_check_mark: | N/A | -| `type` | [V3PaymentTypeEnum](../../models/shared/V3PaymentTypeEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `sourceAccountID` | *JsonNullable\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentAdjustment.md b/docs/models/payments/V3PaymentAdjustment.md similarity index 96% rename from docs/models/shared/V3PaymentAdjustment.md rename to docs/models/payments/V3PaymentAdjustment.md index 0ae5098f7..24912d8b7 100644 --- a/docs/models/shared/V3PaymentAdjustment.md +++ b/docs/models/payments/V3PaymentAdjustment.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentStatusEnum` | [V3PaymentStatusEnum](../../models/shared/V3PaymentStatusEnum.md) | :heavy_check_mark: | N/A | | `amount` | *Optional\* | :heavy_minus_sign: | N/A | | `asset` | *Optional\* | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `raw` | [V3PaymentAdjustmentRaw](../../models/shared/V3PaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | -| `reference` | *String* | :heavy_check_mark: | N/A | -| `status` | [V3PaymentStatusEnum](../../models/shared/V3PaymentStatusEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentAdjustmentRaw.md b/docs/models/payments/V3PaymentAdjustmentRaw.md similarity index 100% rename from docs/models/shared/V3PaymentAdjustmentRaw.md rename to docs/models/payments/V3PaymentAdjustmentRaw.md diff --git a/docs/models/shared/V3PaymentInitiation.md b/docs/models/payments/V3PaymentInitiation.md similarity index 96% rename from docs/models/shared/V3PaymentInitiation.md rename to docs/models/payments/V3PaymentInitiation.md index 8137e3275..2ef1fd932 100644 --- a/docs/models/shared/V3PaymentInitiation.md +++ b/docs/models/payments/V3PaymentInitiation.md @@ -5,6 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentInitiationStatusEnum` | [V3PaymentInitiationStatusEnum](../../models/shared/V3PaymentInitiationStatusEnum.md) | :heavy_check_mark: | N/A | +| `v3PaymentInitiationTypeEnum` | [V3PaymentInitiationTypeEnum](../../models/shared/V3PaymentInitiationTypeEnum.md) | :heavy_check_mark: | N/A | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | | `asset` | *String* | :heavy_check_mark: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | @@ -13,10 +16,7 @@ | `destinationAccountID` | *Optional\* | :heavy_minus_sign: | N/A | | `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `provider` | *String* | :heavy_check_mark: | N/A | | `reference` | *String* | :heavy_check_mark: | N/A | | `scheduledAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `sourceAccountID` | *Optional\* | :heavy_minus_sign: | N/A | -| `status` | [V3PaymentInitiationStatusEnum](../../models/shared/V3PaymentInitiationStatusEnum.md) | :heavy_check_mark: | N/A | -| `type` | [V3PaymentInitiationTypeEnum](../../models/shared/V3PaymentInitiationTypeEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `sourceAccountID` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentInitiationAdjustment.md b/docs/models/payments/V3PaymentInitiationAdjustment.md similarity index 96% rename from docs/models/shared/V3PaymentInitiationAdjustment.md rename to docs/models/payments/V3PaymentInitiationAdjustment.md index ee21a369e..bdca89498 100644 --- a/docs/models/shared/V3PaymentInitiationAdjustment.md +++ b/docs/models/payments/V3PaymentInitiationAdjustment.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | +| `v3PaymentInitiationStatusEnum` | [V3PaymentInitiationStatusEnum](../../models/shared/V3PaymentInitiationStatusEnum.md) | :heavy_check_mark: | N/A | | `amount` | *Optional\* | :heavy_minus_sign: | N/A | | `asset` | *Optional\* | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `status` | [V3PaymentInitiationStatusEnum](../../models/shared/V3PaymentInitiationStatusEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.md b/docs/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.md rename to docs/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.md diff --git a/docs/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.md b/docs/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.md rename to docs/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.md diff --git a/docs/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.md b/docs/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.md rename to docs/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.md diff --git a/docs/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.md b/docs/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.md rename to docs/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.md diff --git a/docs/models/shared/V3PaymentInitiationStatusEnum.md b/docs/models/payments/V3PaymentInitiationStatusEnum.md similarity index 91% rename from docs/models/shared/V3PaymentInitiationStatusEnum.md rename to docs/models/payments/V3PaymentInitiationStatusEnum.md index fafb1430d..15e66752c 100644 --- a/docs/models/shared/V3PaymentInitiationStatusEnum.md +++ b/docs/models/payments/V3PaymentInitiationStatusEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3PaymentInitiationStatusEnum; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationStatusEnum; V3PaymentInitiationStatusEnum value = V3PaymentInitiationStatusEnum.UNKNOWN; ``` diff --git a/docs/models/shared/V3PaymentInitiationTypeEnum.md b/docs/models/payments/V3PaymentInitiationTypeEnum.md similarity index 78% rename from docs/models/shared/V3PaymentInitiationTypeEnum.md rename to docs/models/payments/V3PaymentInitiationTypeEnum.md index 6b627ca86..96d566e4a 100644 --- a/docs/models/shared/V3PaymentInitiationTypeEnum.md +++ b/docs/models/payments/V3PaymentInitiationTypeEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3PaymentInitiationTypeEnum; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationTypeEnum; V3PaymentInitiationTypeEnum value = V3PaymentInitiationTypeEnum.UNKNOWN; ``` diff --git a/docs/models/shared/V3PaymentInitiationsCursorResponse.md b/docs/models/payments/V3PaymentInitiationsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentInitiationsCursorResponse.md rename to docs/models/payments/V3PaymentInitiationsCursorResponse.md diff --git a/docs/models/shared/V3PaymentInitiationsCursorResponseCursor.md b/docs/models/payments/V3PaymentInitiationsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentInitiationsCursorResponseCursor.md rename to docs/models/payments/V3PaymentInitiationsCursorResponseCursor.md diff --git a/docs/models/shared/V3PaymentServiceUser.md b/docs/models/payments/V3PaymentServiceUser.md similarity index 94% rename from docs/models/shared/V3PaymentServiceUser.md rename to docs/models/payments/V3PaymentServiceUser.md index 11d10e12e..f9be9bb3c 100644 --- a/docs/models/shared/V3PaymentServiceUser.md +++ b/docs/models/payments/V3PaymentServiceUser.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `address` | [Optional\](../../models/shared/V3Address.md) | :heavy_minus_sign: | N/A | +| `v3Address` | [Optional\](../../models/shared/V3Address.md) | :heavy_minus_sign: | N/A | +| `v3ContactDetails` | [Optional\](../../models/shared/V3ContactDetails.md) | :heavy_minus_sign: | N/A | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `bankAccountIDs` | List\<*String*> | :heavy_minus_sign: | N/A | -| `contactDetails` | [Optional\](../../models/shared/V3ContactDetails.md) | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentServiceUserConnection.md b/docs/models/payments/V3PaymentServiceUserConnection.md similarity index 96% rename from docs/models/shared/V3PaymentServiceUserConnection.md rename to docs/models/payments/V3PaymentServiceUserConnection.md index 7f71c7ca6..384982f7f 100644 --- a/docs/models/shared/V3PaymentServiceUserConnection.md +++ b/docs/models/payments/V3PaymentServiceUserConnection.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3ConnectionStatusEnum` | [V3ConnectionStatusEnum](../../models/shared/V3ConnectionStatusEnum.md) | :heavy_check_mark: | N/A | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `connectionID` | *String* | :heavy_check_mark: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `dataUpdatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `status` | [V3ConnectionStatusEnum](../../models/shared/V3ConnectionStatusEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentServiceUserConnectionsCursorResponse.md b/docs/models/payments/V3PaymentServiceUserConnectionsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserConnectionsCursorResponse.md rename to docs/models/payments/V3PaymentServiceUserConnectionsCursorResponse.md diff --git a/docs/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.md b/docs/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.md rename to docs/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.md diff --git a/docs/models/shared/V3PaymentServiceUserCreateLinkRequest.md b/docs/models/payments/V3PaymentServiceUserCreateLinkRequest.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserCreateLinkRequest.md rename to docs/models/payments/V3PaymentServiceUserCreateLinkRequest.md diff --git a/docs/models/shared/V3PaymentServiceUserCreateLinkResponse.md b/docs/models/payments/V3PaymentServiceUserCreateLinkResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserCreateLinkResponse.md rename to docs/models/payments/V3PaymentServiceUserCreateLinkResponse.md diff --git a/docs/models/shared/V3PaymentServiceUserDeleteConnectionResponse.md b/docs/models/payments/V3PaymentServiceUserDeleteConnectionResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserDeleteConnectionResponse.md rename to docs/models/payments/V3PaymentServiceUserDeleteConnectionResponse.md diff --git a/docs/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.md b/docs/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.md rename to docs/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.md diff --git a/docs/models/shared/V3PaymentServiceUserDeleteConnectorResponse.md b/docs/models/payments/V3PaymentServiceUserDeleteConnectorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserDeleteConnectorResponse.md rename to docs/models/payments/V3PaymentServiceUserDeleteConnectorResponse.md diff --git a/docs/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.md b/docs/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.md rename to docs/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.md diff --git a/docs/models/shared/V3PaymentServiceUserDeleteResponse.md b/docs/models/payments/V3PaymentServiceUserDeleteResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserDeleteResponse.md rename to docs/models/payments/V3PaymentServiceUserDeleteResponse.md diff --git a/docs/models/shared/V3PaymentServiceUserDeleteResponseData.md b/docs/models/payments/V3PaymentServiceUserDeleteResponseData.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserDeleteResponseData.md rename to docs/models/payments/V3PaymentServiceUserDeleteResponseData.md diff --git a/docs/models/shared/V3PaymentServiceUserLinkAttempt.md b/docs/models/payments/V3PaymentServiceUserLinkAttempt.md similarity index 98% rename from docs/models/shared/V3PaymentServiceUserLinkAttempt.md rename to docs/models/payments/V3PaymentServiceUserLinkAttempt.md index 85e905aee..b5b0e6cb3 100644 --- a/docs/models/shared/V3PaymentServiceUserLinkAttempt.md +++ b/docs/models/payments/V3PaymentServiceUserLinkAttempt.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `v3OpenBankingConnectionAttemptStatusEnum` | [V3OpenBankingConnectionAttemptStatusEnum](../../models/shared/V3OpenBankingConnectionAttemptStatusEnum.md) | :heavy_check_mark: | N/A | | `clientRedirectURL` | *String* | :heavy_check_mark: | N/A | | `connectorID` | *String* | :heavy_check_mark: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `psuID` | *String* | :heavy_check_mark: | N/A | -| `status` | [V3OpenBankingConnectionAttemptStatusEnum](../../models/shared/V3OpenBankingConnectionAttemptStatusEnum.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `psuID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.md b/docs/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.md rename to docs/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.md diff --git a/docs/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.md b/docs/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.md rename to docs/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.md diff --git a/docs/models/shared/V3PaymentServiceUserUpdateLinkRequest.md b/docs/models/payments/V3PaymentServiceUserUpdateLinkRequest.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserUpdateLinkRequest.md rename to docs/models/payments/V3PaymentServiceUserUpdateLinkRequest.md diff --git a/docs/models/shared/V3PaymentServiceUserUpdateLinkResponse.md b/docs/models/payments/V3PaymentServiceUserUpdateLinkResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUserUpdateLinkResponse.md rename to docs/models/payments/V3PaymentServiceUserUpdateLinkResponse.md diff --git a/docs/models/shared/V3PaymentServiceUsersCursorResponse.md b/docs/models/payments/V3PaymentServiceUsersCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUsersCursorResponse.md rename to docs/models/payments/V3PaymentServiceUsersCursorResponse.md diff --git a/docs/models/shared/V3PaymentServiceUsersCursorResponseCursor.md b/docs/models/payments/V3PaymentServiceUsersCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentServiceUsersCursorResponseCursor.md rename to docs/models/payments/V3PaymentServiceUsersCursorResponseCursor.md diff --git a/docs/models/shared/V3PaymentStatusEnum.md b/docs/models/payments/V3PaymentStatusEnum.md similarity index 93% rename from docs/models/shared/V3PaymentStatusEnum.md rename to docs/models/payments/V3PaymentStatusEnum.md index 1a44137b6..02f17a412 100644 --- a/docs/models/shared/V3PaymentStatusEnum.md +++ b/docs/models/payments/V3PaymentStatusEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3PaymentStatusEnum; +import com.formance.formance_sdk.models.payments.V3PaymentStatusEnum; V3PaymentStatusEnum value = V3PaymentStatusEnum.UNKNOWN; ``` diff --git a/docs/models/shared/V3PaymentTypeEnum.md b/docs/models/payments/V3PaymentTypeEnum.md similarity index 82% rename from docs/models/shared/V3PaymentTypeEnum.md rename to docs/models/payments/V3PaymentTypeEnum.md index daf923a03..40e7f9384 100644 --- a/docs/models/shared/V3PaymentTypeEnum.md +++ b/docs/models/payments/V3PaymentTypeEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3PaymentTypeEnum; +import com.formance.formance_sdk.models.payments.V3PaymentTypeEnum; V3PaymentTypeEnum value = V3PaymentTypeEnum.UNKNOWN; ``` diff --git a/docs/models/shared/V3PaymentsCursorResponse.md b/docs/models/payments/V3PaymentsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PaymentsCursorResponse.md rename to docs/models/payments/V3PaymentsCursorResponse.md diff --git a/docs/models/shared/V3PaymentsCursorResponseCursor.md b/docs/models/payments/V3PaymentsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PaymentsCursorResponseCursor.md rename to docs/models/payments/V3PaymentsCursorResponseCursor.md diff --git a/docs/models/shared/V3PlaidConfig.md b/docs/models/payments/V3PlaidConfig.md similarity index 100% rename from docs/models/shared/V3PlaidConfig.md rename to docs/models/payments/V3PlaidConfig.md diff --git a/docs/models/shared/V3Pool.md b/docs/models/payments/V3Pool.md similarity index 97% rename from docs/models/shared/V3Pool.md rename to docs/models/payments/V3Pool.md index 8d77f2005..17f222404 100644 --- a/docs/models/shared/V3Pool.md +++ b/docs/models/payments/V3Pool.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3PoolTypeEnum` | [Optional\](../../models/shared/V3PoolTypeEnum.md) | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | | `name` | *String* | :heavy_check_mark: | N/A | | `poolAccounts` | List\<*String*> | :heavy_check_mark: | N/A | -| `query` | Map\ | :heavy_minus_sign: | N/A | -| `type` | [Optional\](../../models/shared/V3PoolTypeEnum.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `query` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PoolBalance.md b/docs/models/payments/V3PoolBalance.md similarity index 100% rename from docs/models/shared/V3PoolBalance.md rename to docs/models/payments/V3PoolBalance.md diff --git a/docs/models/shared/V3PoolBalancesResponse.md b/docs/models/payments/V3PoolBalancesResponse.md similarity index 91% rename from docs/models/shared/V3PoolBalancesResponse.md rename to docs/models/payments/V3PoolBalancesResponse.md index 7561ac924..96040dcab 100644 --- a/docs/models/shared/V3PoolBalancesResponse.md +++ b/docs/models/payments/V3PoolBalancesResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `data` | List\<[V3PoolBalance](../../models/shared/V3PoolBalance.md)> | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3PoolBalances` | List\<[V3PoolBalance](../../models/shared/V3PoolBalance.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3PoolTypeEnum.md b/docs/models/payments/V3PoolTypeEnum.md similarity index 76% rename from docs/models/shared/V3PoolTypeEnum.md rename to docs/models/payments/V3PoolTypeEnum.md index cd4d092f3..7da4d41b1 100644 --- a/docs/models/shared/V3PoolTypeEnum.md +++ b/docs/models/payments/V3PoolTypeEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3PoolTypeEnum; +import com.formance.formance_sdk.models.payments.V3PoolTypeEnum; V3PoolTypeEnum value = V3PoolTypeEnum.STATIC; ``` diff --git a/docs/models/shared/V3PoolsCursorResponse.md b/docs/models/payments/V3PoolsCursorResponse.md similarity index 100% rename from docs/models/shared/V3PoolsCursorResponse.md rename to docs/models/payments/V3PoolsCursorResponse.md diff --git a/docs/models/shared/V3PoolsCursorResponseCursor.md b/docs/models/payments/V3PoolsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/V3PoolsCursorResponseCursor.md rename to docs/models/payments/V3PoolsCursorResponseCursor.md diff --git a/docs/models/shared/V3PowensConfig.md b/docs/models/payments/V3PowensConfig.md similarity index 100% rename from docs/models/shared/V3PowensConfig.md rename to docs/models/payments/V3PowensConfig.md diff --git a/docs/models/shared/V3QontoConfig.md b/docs/models/payments/V3QontoConfig.md similarity index 100% rename from docs/models/shared/V3QontoConfig.md rename to docs/models/payments/V3QontoConfig.md diff --git a/docs/models/shared/V3ResetConnectorResponse.md b/docs/models/payments/V3ResetConnectorResponse.md similarity index 100% rename from docs/models/shared/V3ResetConnectorResponse.md rename to docs/models/payments/V3ResetConnectorResponse.md diff --git a/docs/models/shared/V3RetryPaymentInitiationResponse.md b/docs/models/payments/V3RetryPaymentInitiationResponse.md similarity index 100% rename from docs/models/shared/V3RetryPaymentInitiationResponse.md rename to docs/models/payments/V3RetryPaymentInitiationResponse.md diff --git a/docs/models/shared/V3RetryPaymentInitiationResponseData.md b/docs/models/payments/V3RetryPaymentInitiationResponseData.md similarity index 100% rename from docs/models/shared/V3RetryPaymentInitiationResponseData.md rename to docs/models/payments/V3RetryPaymentInitiationResponseData.md diff --git a/docs/models/shared/V3ReversePaymentInitiationRequest.md b/docs/models/payments/V3ReversePaymentInitiationRequest.md similarity index 91% rename from docs/models/shared/V3ReversePaymentInitiationRequest.md rename to docs/models/payments/V3ReversePaymentInitiationRequest.md index 37c0e8dd4..7f079c2a6 100644 --- a/docs/models/shared/V3ReversePaymentInitiationRequest.md +++ b/docs/models/payments/V3ReversePaymentInitiationRequest.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | +| `v3Metadata` | Map\ | :heavy_minus_sign: | N/A | | `amount` | *BigInteger* | :heavy_check_mark: | N/A | | `asset` | *String* | :heavy_check_mark: | N/A | | `description` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | `reference` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3ReversePaymentInitiationResponse.md b/docs/models/payments/V3ReversePaymentInitiationResponse.md similarity index 100% rename from docs/models/shared/V3ReversePaymentInitiationResponse.md rename to docs/models/payments/V3ReversePaymentInitiationResponse.md diff --git a/docs/models/shared/V3ReversePaymentInitiationResponseData.md b/docs/models/payments/V3ReversePaymentInitiationResponseData.md similarity index 100% rename from docs/models/shared/V3ReversePaymentInitiationResponseData.md rename to docs/models/payments/V3ReversePaymentInitiationResponseData.md diff --git a/docs/models/shared/V3Schedule.md b/docs/models/payments/V3Schedule.md similarity index 100% rename from docs/models/shared/V3Schedule.md rename to docs/models/payments/V3Schedule.md diff --git a/docs/models/shared/V3StripeConfig.md b/docs/models/payments/V3StripeConfig.md similarity index 100% rename from docs/models/shared/V3StripeConfig.md rename to docs/models/payments/V3StripeConfig.md diff --git a/docs/models/shared/V3Task.md b/docs/models/payments/V3Task.md similarity index 98% rename from docs/models/shared/V3Task.md rename to docs/models/payments/V3Task.md index 51ef50400..1f06b94bb 100644 --- a/docs/models/shared/V3Task.md +++ b/docs/models/payments/V3Task.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `v3TaskStatusEnum` | [V3TaskStatusEnum](../../models/shared/V3TaskStatusEnum.md) | :heavy_check_mark: | N/A | | `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | `createdObjectID` | *Optional\* | :heavy_minus_sign: | N/A | | `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | | `id` | *String* | :heavy_check_mark: | N/A | -| `status` | [V3TaskStatusEnum](../../models/shared/V3TaskStatusEnum.md) | :heavy_check_mark: | N/A | | `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3TaskStatusEnum.md b/docs/models/payments/V3TaskStatusEnum.md similarity index 80% rename from docs/models/shared/V3TaskStatusEnum.md rename to docs/models/payments/V3TaskStatusEnum.md index fa3feb1e4..c550f9103 100644 --- a/docs/models/shared/V3TaskStatusEnum.md +++ b/docs/models/payments/V3TaskStatusEnum.md @@ -3,7 +3,7 @@ ## Example Usage ```java -import com.formance.formance_sdk.models.shared.V3TaskStatusEnum; +import com.formance.formance_sdk.models.payments.V3TaskStatusEnum; V3TaskStatusEnum value = V3TaskStatusEnum.PROCESSING; ``` diff --git a/docs/models/shared/V3TinkConfig.md b/docs/models/payments/V3TinkConfig.md similarity index 100% rename from docs/models/shared/V3TinkConfig.md rename to docs/models/payments/V3TinkConfig.md diff --git a/docs/models/shared/V3UninstallConnectorResponse.md b/docs/models/payments/V3UninstallConnectorResponse.md similarity index 100% rename from docs/models/shared/V3UninstallConnectorResponse.md rename to docs/models/payments/V3UninstallConnectorResponse.md diff --git a/docs/models/shared/V3UninstallConnectorResponseData.md b/docs/models/payments/V3UninstallConnectorResponseData.md similarity index 100% rename from docs/models/shared/V3UninstallConnectorResponseData.md rename to docs/models/payments/V3UninstallConnectorResponseData.md diff --git a/docs/models/shared/V3UpdateBankAccountMetadataRequest.md b/docs/models/payments/V3UpdateBankAccountMetadataRequest.md similarity index 81% rename from docs/models/shared/V3UpdateBankAccountMetadataRequest.md rename to docs/models/payments/V3UpdateBankAccountMetadataRequest.md index 322c81ba9..8f76f40c0 100644 --- a/docs/models/shared/V3UpdateBankAccountMetadataRequest.md +++ b/docs/models/payments/V3UpdateBankAccountMetadataRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Metadata` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3UpdatePaymentMetadataRequest.md b/docs/models/payments/V3UpdatePaymentMetadataRequest.md similarity index 81% rename from docs/models/shared/V3UpdatePaymentMetadataRequest.md rename to docs/models/payments/V3UpdatePaymentMetadataRequest.md index 438682c0b..03c8aba11 100644 --- a/docs/models/shared/V3UpdatePaymentMetadataRequest.md +++ b/docs/models/payments/V3UpdatePaymentMetadataRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file +| `v3Metadata` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3UpdatePoolQueryRequest.md b/docs/models/payments/V3UpdatePoolQueryRequest.md similarity index 100% rename from docs/models/shared/V3UpdatePoolQueryRequest.md rename to docs/models/payments/V3UpdatePoolQueryRequest.md diff --git a/docs/models/shared/V3WiseConfig.md b/docs/models/payments/V3WiseConfig.md similarity index 100% rename from docs/models/shared/V3WiseConfig.md rename to docs/models/payments/V3WiseConfig.md diff --git a/docs/models/shared/WiseConfig.md b/docs/models/payments/WiseConfig.md similarity index 100% rename from docs/models/shared/WiseConfig.md rename to docs/models/payments/WiseConfig.md diff --git a/docs/models/reconciliation/ErrorResponse.md b/docs/models/reconciliation/ErrorResponse.md new file mode 100644 index 000000000..c72f4be0c --- /dev/null +++ b/docs/models/reconciliation/ErrorResponse.md @@ -0,0 +1,12 @@ +# ErrorResponse + +Error response + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `details` | *Optional\* | :heavy_minus_sign: | N/A | | +| `errorCode` | *String* | :heavy_check_mark: | N/A | VALIDATION | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/PoliciesCursorResponse.md b/docs/models/reconciliation/PoliciesCursorResponse.md similarity index 100% rename from docs/models/shared/PoliciesCursorResponse.md rename to docs/models/reconciliation/PoliciesCursorResponse.md diff --git a/docs/models/shared/PoliciesCursorResponseCursor.md b/docs/models/reconciliation/PoliciesCursorResponseCursor.md similarity index 100% rename from docs/models/shared/PoliciesCursorResponseCursor.md rename to docs/models/reconciliation/PoliciesCursorResponseCursor.md diff --git a/docs/models/shared/Policy.md b/docs/models/reconciliation/Policy.md similarity index 100% rename from docs/models/shared/Policy.md rename to docs/models/reconciliation/Policy.md diff --git a/docs/models/shared/PolicyRequest.md b/docs/models/reconciliation/PolicyRequest.md similarity index 100% rename from docs/models/shared/PolicyRequest.md rename to docs/models/reconciliation/PolicyRequest.md diff --git a/docs/models/shared/PolicyResponse.md b/docs/models/reconciliation/PolicyResponse.md similarity index 88% rename from docs/models/shared/PolicyResponse.md rename to docs/models/reconciliation/PolicyResponse.md index 7ae5e378c..839458abb 100644 --- a/docs/models/shared/PolicyResponse.md +++ b/docs/models/reconciliation/PolicyResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `data` | [Policy](../../models/shared/Policy.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `policy` | [Policy](../../models/shared/Policy.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Reconciliation.md b/docs/models/reconciliation/Reconciliation.md similarity index 100% rename from docs/models/shared/Reconciliation.md rename to docs/models/reconciliation/Reconciliation.md diff --git a/docs/models/shared/ReconciliationRequest.md b/docs/models/reconciliation/ReconciliationRequest.md similarity index 100% rename from docs/models/shared/ReconciliationRequest.md rename to docs/models/reconciliation/ReconciliationRequest.md diff --git a/docs/models/shared/ReconciliationResponse.md b/docs/models/reconciliation/ReconciliationResponse.md similarity index 91% rename from docs/models/shared/ReconciliationResponse.md rename to docs/models/reconciliation/ReconciliationResponse.md index 1646679f0..c9eb86ffd 100644 --- a/docs/models/shared/ReconciliationResponse.md +++ b/docs/models/reconciliation/ReconciliationResponse.md @@ -7,4 +7,4 @@ OK | Field | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `data` | [Reconciliation](../../models/shared/Reconciliation.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `reconciliation` | [Reconciliation](../../models/shared/Reconciliation.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ReconciliationsCursorResponse.md b/docs/models/reconciliation/ReconciliationsCursorResponse.md similarity index 100% rename from docs/models/shared/ReconciliationsCursorResponse.md rename to docs/models/reconciliation/ReconciliationsCursorResponse.md diff --git a/docs/models/shared/ReconciliationsCursorResponseCursor.md b/docs/models/reconciliation/ReconciliationsCursorResponseCursor.md similarity index 100% rename from docs/models/shared/ReconciliationsCursorResponseCursor.md rename to docs/models/reconciliation/ReconciliationsCursorResponseCursor.md diff --git a/docs/models/reconciliation/ServerInfo.md b/docs/models/reconciliation/ServerInfo.md new file mode 100644 index 000000000..86404cd1b --- /dev/null +++ b/docs/models/reconciliation/ServerInfo.md @@ -0,0 +1,10 @@ +# ServerInfo + +Server information + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/search/Cursor.md b/docs/models/search/Cursor.md new file mode 100644 index 000000000..799fa8828 --- /dev/null +++ b/docs/models/search/Cursor.md @@ -0,0 +1,13 @@ +# Cursor + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | +| `data` | List\> | :heavy_minus_sign: | N/A | | +| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | +| `pageSize` | *Optional\* | :heavy_minus_sign: | N/A | | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | +| `total` | [Optional\](../../models/shared/Total.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/search/Query.md b/docs/models/search/Query.md new file mode 100644 index 000000000..bbb17c652 --- /dev/null +++ b/docs/models/search/Query.md @@ -0,0 +1,16 @@ +# Query + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | +| `after` | List\<*String*> | :heavy_minus_sign: | N/A | | +| `cursor` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | +| `ledgers` | List\<*String*> | :heavy_minus_sign: | N/A | | +| `pageSize` | *Optional\* | :heavy_minus_sign: | N/A | | +| `policy` | *Optional\* | :heavy_minus_sign: | N/A | OR | +| `raw` | [Optional\](../../models/shared/Raw.md) | :heavy_minus_sign: | N/A | {
"query": {
"match_all": {}
}
} | +| `sort` | *Optional\* | :heavy_minus_sign: | N/A | id:asc | +| `target` | *Optional\* | :heavy_minus_sign: | N/A | | +| `terms` | List\<*String*> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/search/Raw.md b/docs/models/search/Raw.md new file mode 100644 index 000000000..4d7c1a04f --- /dev/null +++ b/docs/models/search/Raw.md @@ -0,0 +1,7 @@ +# Raw + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/search/Response.md b/docs/models/search/Response.md new file mode 100644 index 000000000..71bcd53a7 --- /dev/null +++ b/docs/models/search/Response.md @@ -0,0 +1,9 @@ +# Response + + +## Fields + +| Field | Type | Required | Description | +| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | +| `cursor` | [Optional\](../../models/shared/Cursor.md) | :heavy_minus_sign: | N/A | +| `data` | Map\ | :heavy_minus_sign: | The payload | \ No newline at end of file diff --git a/docs/models/search/ServerInfo.md b/docs/models/search/ServerInfo.md new file mode 100644 index 000000000..375caaa22 --- /dev/null +++ b/docs/models/search/ServerInfo.md @@ -0,0 +1,8 @@ +# ServerInfo + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Total.md b/docs/models/search/Total.md similarity index 100% rename from docs/models/shared/Total.md rename to docs/models/search/Total.md diff --git a/docs/models/shared/AccountResponse.md b/docs/models/shared/AccountResponse.md deleted file mode 100644 index 9c03b2238..000000000 --- a/docs/models/shared/AccountResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# AccountResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `data` | [AccountWithVolumesAndBalances](../../models/shared/AccountWithVolumesAndBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AccountsCursor.md b/docs/models/shared/AccountsCursor.md deleted file mode 100644 index bd746c968..000000000 --- a/docs/models/shared/AccountsCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# AccountsCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `cursor` | [AccountsCursorCursor](../../models/shared/AccountsCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/AccountsCursorCursor.md b/docs/models/shared/AccountsCursorCursor.md deleted file mode 100644 index 8f85b15ef..000000000 --- a/docs/models/shared/AccountsCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# AccountsCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `data` | List\<[PaymentsAccount](../../models/shared/PaymentsAccount.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/ActivityCreateTransaction.md b/docs/models/shared/ActivityCreateTransaction.md deleted file mode 100644 index 6ebea6f97..000000000 --- a/docs/models/shared/ActivityCreateTransaction.md +++ /dev/null @@ -1,9 +0,0 @@ -# ActivityCreateTransaction - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/OrchestrationPostTransaction.md) | :heavy_minus_sign: | N/A | -| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ActivityCreditWallet.md b/docs/models/shared/ActivityCreditWallet.md deleted file mode 100644 index f0fc8ce19..000000000 --- a/docs/models/shared/ActivityCreditWallet.md +++ /dev/null @@ -1,9 +0,0 @@ -# ActivityCreditWallet - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `data` | [Optional\](../../models/shared/OrchestrationCreditWalletRequest.md) | :heavy_minus_sign: | N/A | {
"amount": {
"asset": "USD/2",
"amount": 100
},
"metadata": {
"key": ""
},
"sources": []
} | -| `id` | *Optional\* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/ActivityDebitWalletOutput.md b/docs/models/shared/ActivityDebitWalletOutput.md deleted file mode 100644 index a473a00d3..000000000 --- a/docs/models/shared/ActivityDebitWalletOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# ActivityDebitWalletOutput - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `data` | [OrchestrationHold](../../models/shared/OrchestrationHold.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ActivityGetAccountOutput.md b/docs/models/shared/ActivityGetAccountOutput.md deleted file mode 100644 index 59e7cbb92..000000000 --- a/docs/models/shared/ActivityGetAccountOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# ActivityGetAccountOutput - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `data` | [OrchestrationAccount](../../models/shared/OrchestrationAccount.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ActivityGetPaymentOutput.md b/docs/models/shared/ActivityGetPaymentOutput.md deleted file mode 100644 index 9822266cd..000000000 --- a/docs/models/shared/ActivityGetPaymentOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# ActivityGetPaymentOutput - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `data` | [OrchestrationPayment](../../models/shared/OrchestrationPayment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ActivityGetWalletOutput.md b/docs/models/shared/ActivityGetWalletOutput.md deleted file mode 100644 index a5d82f437..000000000 --- a/docs/models/shared/ActivityGetWalletOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# ActivityGetWalletOutput - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `data` | [WalletWithBalances](../../models/shared/WalletWithBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ActivityStripeTransfer.md b/docs/models/shared/ActivityStripeTransfer.md deleted file mode 100644 index bacaad684..000000000 --- a/docs/models/shared/ActivityStripeTransfer.md +++ /dev/null @@ -1,13 +0,0 @@ -# ActivityStripeTransfer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 100 | -| `asset` | *Optional\* | :heavy_minus_sign: | N/A | USD | -| `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | | -| `destination` | *Optional\* | :heavy_minus_sign: | N/A | acct_1Gqj58KZcSIg2N2q | -| `metadata` | [Optional\](../../models/shared/ActivityStripeTransferMetadata.md) | :heavy_minus_sign: | A set of key/value pairs that you can attach to a transfer object.
It can be useful for storing additional information about the transfer in a structured format.
| {
"order_id": "6735"
} | -| `waitingValidation` | *Optional\* | :heavy_minus_sign: | N/A | false | \ No newline at end of file diff --git a/docs/models/shared/ActivityStripeTransferMetadata.md b/docs/models/shared/ActivityStripeTransferMetadata.md deleted file mode 100644 index 055e707c8..000000000 --- a/docs/models/shared/ActivityStripeTransferMetadata.md +++ /dev/null @@ -1,11 +0,0 @@ -# ActivityStripeTransferMetadata - -A set of key/value pairs that you can attach to a transfer object. -It can be useful for storing additional information about the transfer in a structured format. - - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/BalanceWithAssets.md b/docs/models/shared/BalanceWithAssets.md deleted file mode 100644 index f2e750dae..000000000 --- a/docs/models/shared/BalanceWithAssets.md +++ /dev/null @@ -1,11 +0,0 @@ -# BalanceWithAssets - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `assets` | Map\ | :heavy_check_mark: | N/A | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| `priority` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/BalancesCursor.md b/docs/models/shared/BalancesCursor.md deleted file mode 100644 index 085b15d23..000000000 --- a/docs/models/shared/BalancesCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# BalancesCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `cursor` | [BalancesCursorCursor](../../models/shared/BalancesCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/BalancesCursorCursor.md b/docs/models/shared/BalancesCursorCursor.md deleted file mode 100644 index 7f4114de2..000000000 --- a/docs/models/shared/BalancesCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# BalancesCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `data` | List\<[AccountBalance](../../models/shared/AccountBalance.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/BankAccountsCursor.md b/docs/models/shared/BankAccountsCursor.md deleted file mode 100644 index 785e85bb8..000000000 --- a/docs/models/shared/BankAccountsCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# BankAccountsCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `cursor` | [BankAccountsCursorCursor](../../models/shared/BankAccountsCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/BankAccountsCursorCursor.md b/docs/models/shared/BankAccountsCursorCursor.md deleted file mode 100644 index 0347adbbb..000000000 --- a/docs/models/shared/BankAccountsCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# BankAccountsCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -| `data` | List\<[BankAccount](../../models/shared/BankAccount.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/Client.md b/docs/models/shared/Client.md deleted file mode 100644 index b8e9950b9..000000000 --- a/docs/models/shared/Client.md +++ /dev/null @@ -1,17 +0,0 @@ -# Client - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | -| `description` | *Optional\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| `postLogoutRedirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | -| `public_` | *Optional\* | :heavy_minus_sign: | N/A | -| `redirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | -| `scopes` | List\<*String*> | :heavy_minus_sign: | N/A | -| `secrets` | List\<[ClientSecret](../../models/shared/ClientSecret.md)> | :heavy_minus_sign: | N/A | -| `trusted` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Config.md b/docs/models/shared/Config.md deleted file mode 100644 index ec51f86d7..000000000 --- a/docs/models/shared/Config.md +++ /dev/null @@ -1,8 +0,0 @@ -# Config - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `storage` | [LedgerStorage](../../models/shared/LedgerStorage.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConfigsResponse.md b/docs/models/shared/ConfigsResponse.md deleted file mode 100644 index 8471dd707..000000000 --- a/docs/models/shared/ConfigsResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# ConfigsResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `cursor` | [ConfigsResponseCursor](../../models/shared/ConfigsResponseCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConfigsResponseCursor.md b/docs/models/shared/ConfigsResponseCursor.md deleted file mode 100644 index e4476be8f..000000000 --- a/docs/models/shared/ConfigsResponseCursor.md +++ /dev/null @@ -1,9 +0,0 @@ -# ConfigsResponseCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `data` | List\<[WebhooksConfig](../../models/shared/WebhooksConfig.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | \ No newline at end of file diff --git a/docs/models/shared/Connector.md b/docs/models/shared/Connector.md deleted file mode 100644 index 12093fa68..000000000 --- a/docs/models/shared/Connector.md +++ /dev/null @@ -1,26 +0,0 @@ -# Connector - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.Connector; - -Connector value = Connector.STRIPE; -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `STRIPE` | STRIPE | -| `DUMMY_PAY` | DUMMY-PAY | -| `WISE` | WISE | -| `MODULR` | MODULR | -| `CURRENCY_CLOUD` | CURRENCY-CLOUD | -| `BANKING_CIRCLE` | BANKING-CIRCLE | -| `MANGOPAY` | MANGOPAY | -| `MONEYCORP` | MONEYCORP | -| `ATLAR` | ATLAR | -| `ADYEN` | ADYEN | -| `GENERIC` | GENERIC | \ No newline at end of file diff --git a/docs/models/shared/CreateBalanceRequest.md b/docs/models/shared/CreateBalanceRequest.md deleted file mode 100644 index 14b8f235a..000000000 --- a/docs/models/shared/CreateBalanceRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# CreateBalanceRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| `priority` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateBalanceResponse.md b/docs/models/shared/CreateBalanceResponse.md deleted file mode 100644 index 6fbda5962..000000000 --- a/docs/models/shared/CreateBalanceResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# CreateBalanceResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `data` | [CreateBalanceRequest](../../models/shared/CreateBalanceRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateClientRequest.md b/docs/models/shared/CreateClientRequest.md deleted file mode 100644 index 69d0e8a14..000000000 --- a/docs/models/shared/CreateClientRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# CreateClientRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------ | ------------------------ | ------------------------ | ------------------------ | -| `description` | *Optional\* | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | -| `postLogoutRedirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | -| `public_` | *Optional\* | :heavy_minus_sign: | N/A | -| `redirectUris` | List\<*String*> | :heavy_minus_sign: | N/A | -| `scopes` | List\<*String*> | :heavy_minus_sign: | N/A | -| `trusted` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateClientResponse.md b/docs/models/shared/CreateClientResponse.md deleted file mode 100644 index 030a835f7..000000000 --- a/docs/models/shared/CreateClientResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# CreateClientResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | [Optional\](../../models/shared/Client.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateSecretRequest.md b/docs/models/shared/CreateSecretRequest.md deleted file mode 100644 index 5ba815f62..000000000 --- a/docs/models/shared/CreateSecretRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CreateSecretRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateSecretResponse.md b/docs/models/shared/CreateSecretResponse.md deleted file mode 100644 index 288571874..000000000 --- a/docs/models/shared/CreateSecretResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# CreateSecretResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | [Optional\](../../models/shared/Secret.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateTriggerResponse.md b/docs/models/shared/CreateTriggerResponse.md deleted file mode 100644 index 77533c90b..000000000 --- a/docs/models/shared/CreateTriggerResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# CreateTriggerResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `data` | [Trigger](../../models/shared/Trigger.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateWorkflowRequest.md b/docs/models/shared/CreateWorkflowRequest.md deleted file mode 100644 index 163001884..000000000 --- a/docs/models/shared/CreateWorkflowRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CreateWorkflowRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `stages` | List\> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreditWalletRequest.md b/docs/models/shared/CreditWalletRequest.md deleted file mode 100644 index f343f7830..000000000 --- a/docs/models/shared/CreditWalletRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# CreditWalletRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | -| `balance` | *Optional\* | :heavy_minus_sign: | The balance to credit | -| `metadata` | Map\ | :heavy_minus_sign: | Metadata associated with the wallet. | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | -| `sources` | List\<[Subject](../../models/shared/Subject.md)> | :heavy_minus_sign: | N/A | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/DebitWalletRequest.md b/docs/models/shared/DebitWalletRequest.md deleted file mode 100644 index bbb377a79..000000000 --- a/docs/models/shared/DebitWalletRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# DebitWalletRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | -| `balances` | List\<*String*> | :heavy_minus_sign: | N/A | -| `description` | *Optional\* | :heavy_minus_sign: | N/A | -| `destination` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | -| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | -| `pending` | *Optional\* | :heavy_minus_sign: | Set to true to create a pending hold. If false, the wallet will be debited immediately. | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | cannot be used in conjunction with `pending` property | \ No newline at end of file diff --git a/docs/models/shared/DebitWalletResponse.md b/docs/models/shared/DebitWalletResponse.md deleted file mode 100644 index 8ee4f1663..000000000 --- a/docs/models/shared/DebitWalletResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# DebitWalletResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | ----------------------------------- | -| `data` | [Hold](../../models/shared/Hold.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ErrorResponse.md b/docs/models/shared/ErrorResponse.md deleted file mode 100644 index 292197fab..000000000 --- a/docs/models/shared/ErrorResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# ErrorResponse - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | -| `errorCode` | [ErrorsEnum](../../models/shared/ErrorsEnum.md) | :heavy_check_mark: | N/A | INSUFFICIENT_FUND | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | [INSUFFICIENT_FUND] account had insufficient funds | \ No newline at end of file diff --git a/docs/models/shared/ErrorsEnum.md b/docs/models/shared/ErrorsEnum.md deleted file mode 100644 index 8071e2828..000000000 --- a/docs/models/shared/ErrorsEnum.md +++ /dev/null @@ -1,24 +0,0 @@ -# ErrorsEnum - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.ErrorsEnum; - -ErrorsEnum value = ErrorsEnum.INTERNAL; -``` - - -## Values - -| Name | Value | -| -------------------- | -------------------- | -| `INTERNAL` | INTERNAL | -| `INSUFFICIENT_FUND` | INSUFFICIENT_FUND | -| `VALIDATION` | VALIDATION | -| `CONFLICT` | CONFLICT | -| `NO_SCRIPT` | NO_SCRIPT | -| `COMPILATION_FAILED` | COMPILATION_FAILED | -| `METADATA_OVERRIDE` | METADATA_OVERRIDE | -| `NOT_FOUND` | NOT_FOUND | -| `TIMEOUT` | TIMEOUT | \ No newline at end of file diff --git a/docs/models/shared/ExpandedDebitHold.md b/docs/models/shared/ExpandedDebitHold.md deleted file mode 100644 index 06e043527..000000000 --- a/docs/models/shared/ExpandedDebitHold.md +++ /dev/null @@ -1,15 +0,0 @@ -# ExpandedDebitHold - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `asset` | *String* | :heavy_check_mark: | N/A | | -| `description` | *String* | :heavy_check_mark: | N/A | | -| `destination` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | | -| `id` | *String* | :heavy_check_mark: | The unique ID of the hold. | | -| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the hold. | | -| `originalAmount` | *BigInteger* | :heavy_check_mark: | Original amount on hold | 100 | -| `remaining` | *BigInteger* | :heavy_check_mark: | Remaining amount on hold | 10 | -| `walletID` | *String* | :heavy_check_mark: | The ID of the wallet the hold is associated with. | | \ No newline at end of file diff --git a/docs/models/shared/GetBalanceResponse.md b/docs/models/shared/GetBalanceResponse.md deleted file mode 100644 index 8cd7c2aa7..000000000 --- a/docs/models/shared/GetBalanceResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetBalanceResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `data` | [BalanceWithAssets](../../models/shared/BalanceWithAssets.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetHoldResponse.md b/docs/models/shared/GetHoldResponse.md deleted file mode 100644 index ebcf374d3..000000000 --- a/docs/models/shared/GetHoldResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetHoldResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `data` | [ExpandedDebitHold](../../models/shared/ExpandedDebitHold.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetTransactionsResponseCursor.md b/docs/models/shared/GetTransactionsResponseCursor.md deleted file mode 100644 index 0eaca3a71..000000000 --- a/docs/models/shared/GetTransactionsResponseCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# GetTransactionsResponseCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `data` | List\<[WalletsTransaction](../../models/shared/WalletsTransaction.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/GetWalletResponse.md b/docs/models/shared/GetWalletResponse.md deleted file mode 100644 index 59699440f..000000000 --- a/docs/models/shared/GetWalletResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# GetWalletResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `data` | [WalletWithBalances](../../models/shared/WalletWithBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ListClientsResponse.md b/docs/models/shared/ListClientsResponse.md deleted file mode 100644 index a4f07d468..000000000 --- a/docs/models/shared/ListClientsResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# ListClientsResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | -| `data` | List\<[Client](../../models/shared/Client.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ListTriggersResponse.md b/docs/models/shared/ListTriggersResponse.md deleted file mode 100644 index a04fa9a8b..000000000 --- a/docs/models/shared/ListTriggersResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# ListTriggersResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `data` | List\<[Trigger](../../models/shared/Trigger.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationAccount.md b/docs/models/shared/OrchestrationAccount.md deleted file mode 100644 index 8c88d1a45..000000000 --- a/docs/models/shared/OrchestrationAccount.md +++ /dev/null @@ -1,11 +0,0 @@ -# OrchestrationAccount - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `address` | *String* | :heavy_check_mark: | N/A | users:001 | -| `effectiveVolumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationConnector.md b/docs/models/shared/OrchestrationConnector.md deleted file mode 100644 index 130d31953..000000000 --- a/docs/models/shared/OrchestrationConnector.md +++ /dev/null @@ -1,23 +0,0 @@ -# OrchestrationConnector - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.OrchestrationConnector; - -OrchestrationConnector value = OrchestrationConnector.STRIPE; -``` - - -## Values - -| Name | Value | -| ---------------- | ---------------- | -| `STRIPE` | STRIPE | -| `DUMMY_PAY` | DUMMY-PAY | -| `WISE` | WISE | -| `MODULR` | MODULR | -| `CURRENCY_CLOUD` | CURRENCY-CLOUD | -| `BANKING_CIRCLE` | BANKING-CIRCLE | -| `MANGOPAY` | MANGOPAY | -| `MONEYCORP` | MONEYCORP | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationCreditWalletRequest.md b/docs/models/shared/OrchestrationCreditWalletRequest.md deleted file mode 100644 index 78724a64b..000000000 --- a/docs/models/shared/OrchestrationCreditWalletRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# OrchestrationCreditWalletRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | -| `balance` | *Optional\* | :heavy_minus_sign: | The balance to credit | -| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | -| `sources` | List\<[Subject](../../models/shared/Subject.md)> | :heavy_check_mark: | N/A | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationHold.md b/docs/models/shared/OrchestrationHold.md deleted file mode 100644 index d5e77b6bf..000000000 --- a/docs/models/shared/OrchestrationHold.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationHold - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `description` | *String* | :heavy_check_mark: | N/A | -| `destination` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | The unique ID of the hold. | -| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the hold. | -| `walletID` | *String* | :heavy_check_mark: | The ID of the wallet the hold is associated with. | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationListWalletsResponse.md b/docs/models/shared/OrchestrationListWalletsResponse.md deleted file mode 100644 index d444aa1ba..000000000 --- a/docs/models/shared/OrchestrationListWalletsResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# OrchestrationListWalletsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `cursor` | [OrchestrationListWalletsResponseCursor](../../models/shared/OrchestrationListWalletsResponseCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationListWalletsResponseCursor.md b/docs/models/shared/OrchestrationListWalletsResponseCursor.md deleted file mode 100644 index 14c4ea576..000000000 --- a/docs/models/shared/OrchestrationListWalletsResponseCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationListWalletsResponseCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `data` | List\<[OrchestrationWallet](../../models/shared/OrchestrationWallet.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPayment.md b/docs/models/shared/OrchestrationPayment.md deleted file mode 100644 index 35a56f32f..000000000 --- a/docs/models/shared/OrchestrationPayment.md +++ /dev/null @@ -1,22 +0,0 @@ -# OrchestrationPayment - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `adjustments` | List\<[OrchestrationPaymentAdjustment](../../models/shared/OrchestrationPaymentAdjustment.md)> | :heavy_check_mark: | N/A | | -| `asset` | *String* | :heavy_check_mark: | N/A | USD | -| `connectorID` | *String* | :heavy_check_mark: | N/A | | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `destinationAccountID` | *String* | :heavy_check_mark: | N/A | | -| `id` | *String* | :heavy_check_mark: | N/A | XXX | -| `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | -| `metadata` | [Optional\](../../models/shared/OrchestrationPaymentMetadata.md) | :heavy_check_mark: | N/A | | -| `provider` | [Optional\](../../models/shared/OrchestrationConnector.md) | :heavy_minus_sign: | N/A | | -| `raw` | [Optional\](../../models/shared/OrchestrationPaymentRaw.md) | :heavy_check_mark: | N/A | | -| `reference` | *String* | :heavy_check_mark: | N/A | | -| `scheme` | [OrchestrationPaymentScheme](../../models/shared/OrchestrationPaymentScheme.md) | :heavy_check_mark: | N/A | | -| `sourceAccountID` | *String* | :heavy_check_mark: | N/A | | -| `status` | [OrchestrationPaymentStatus](../../models/shared/OrchestrationPaymentStatus.md) | :heavy_check_mark: | N/A | | -| `type` | [OrchestrationPaymentType](../../models/shared/OrchestrationPaymentType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentAdjustment.md b/docs/models/shared/OrchestrationPaymentAdjustment.md deleted file mode 100644 index 38b593ab0..000000000 --- a/docs/models/shared/OrchestrationPaymentAdjustment.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationPaymentAdjustment - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `absolute` | *boolean* | :heavy_check_mark: | N/A | | -| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | -| `date` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `raw` | [OrchestrationPaymentAdjustmentRaw](../../models/shared/OrchestrationPaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | | -| `status` | [OrchestrationPaymentStatus](../../models/shared/OrchestrationPaymentStatus.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentAdjustmentRaw.md b/docs/models/shared/OrchestrationPaymentAdjustmentRaw.md deleted file mode 100644 index 77c60320d..000000000 --- a/docs/models/shared/OrchestrationPaymentAdjustmentRaw.md +++ /dev/null @@ -1,7 +0,0 @@ -# OrchestrationPaymentAdjustmentRaw - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentMetadata.md b/docs/models/shared/OrchestrationPaymentMetadata.md deleted file mode 100644 index 716d055fd..000000000 --- a/docs/models/shared/OrchestrationPaymentMetadata.md +++ /dev/null @@ -1,8 +0,0 @@ -# OrchestrationPaymentMetadata - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentRaw.md b/docs/models/shared/OrchestrationPaymentRaw.md deleted file mode 100644 index fe549dd27..000000000 --- a/docs/models/shared/OrchestrationPaymentRaw.md +++ /dev/null @@ -1,7 +0,0 @@ -# OrchestrationPaymentRaw - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentScheme.md b/docs/models/shared/OrchestrationPaymentScheme.md deleted file mode 100644 index a898be55e..000000000 --- a/docs/models/shared/OrchestrationPaymentScheme.md +++ /dev/null @@ -1,33 +0,0 @@ -# OrchestrationPaymentScheme - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.OrchestrationPaymentScheme; - -OrchestrationPaymentScheme value = OrchestrationPaymentScheme.VISA; -``` - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `VISA` | visa | -| `MASTERCARD` | mastercard | -| `AMEX` | amex | -| `DINERS` | diners | -| `DISCOVER` | discover | -| `JCB` | jcb | -| `UNIONPAY` | unionpay | -| `SEPA_DEBIT` | sepa debit | -| `SEPA_CREDIT` | sepa credit | -| `SEPA` | sepa | -| `APPLE_PAY` | apple pay | -| `GOOGLE_PAY` | google pay | -| `A2A` | a2a | -| `ACH_DEBIT` | ach debit | -| `ACH` | ach | -| `RTP` | rtp | -| `UNKNOWN` | unknown | -| `OTHER` | other | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentStatus.md b/docs/models/shared/OrchestrationPaymentStatus.md deleted file mode 100644 index f3dfe6515..000000000 --- a/docs/models/shared/OrchestrationPaymentStatus.md +++ /dev/null @@ -1,21 +0,0 @@ -# OrchestrationPaymentStatus - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.OrchestrationPaymentStatus; - -OrchestrationPaymentStatus value = OrchestrationPaymentStatus.PENDING; -``` - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `PENDING` | PENDING | -| `ACTIVE` | ACTIVE | -| `TERMINATED` | TERMINATED | -| `FAILED` | FAILED | -| `SUCCEEDED` | SUCCEEDED | -| `CANCELLED` | CANCELLED | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPaymentType.md b/docs/models/shared/OrchestrationPaymentType.md deleted file mode 100644 index 752a268e1..000000000 --- a/docs/models/shared/OrchestrationPaymentType.md +++ /dev/null @@ -1,19 +0,0 @@ -# OrchestrationPaymentType - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.OrchestrationPaymentType; - -OrchestrationPaymentType value = OrchestrationPaymentType.PAY_IN; -``` - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `PAY_IN` | PAY-IN | -| `PAYOUT` | PAYOUT | -| `TRANSFER` | TRANSFER | -| `OTHER` | OTHER | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPostTransaction.md b/docs/models/shared/OrchestrationPostTransaction.md deleted file mode 100644 index 8a115d047..000000000 --- a/docs/models/shared/OrchestrationPostTransaction.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationPostTransaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_minus_sign: | N/A | | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `script` | [Optional\](../../models/shared/OrchestrationPostTransactionScript.md) | :heavy_minus_sign: | N/A | | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationPostTransactionScript.md b/docs/models/shared/OrchestrationPostTransactionScript.md deleted file mode 100644 index 135aea72a..000000000 --- a/docs/models/shared/OrchestrationPostTransactionScript.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrchestrationPostTransactionScript - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `plain` | *String* | :heavy_check_mark: | N/A | vars {
account $user
}
send [COIN 10] (
source = @world
destination = $user
)
| -| `vars` | Map\ | :heavy_minus_sign: | N/A | {
"user": "users:042"
} | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationTransaction.md b/docs/models/shared/OrchestrationTransaction.md deleted file mode 100644 index 5753153b6..000000000 --- a/docs/models/shared/OrchestrationTransaction.md +++ /dev/null @@ -1,13 +0,0 @@ -# OrchestrationTransaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `id` | *BigInteger* | :heavy_check_mark: | N/A | | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_check_mark: | N/A | | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `reverted` | *boolean* | :heavy_check_mark: | N/A | | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationV2Account.md b/docs/models/shared/OrchestrationV2Account.md deleted file mode 100644 index 0d3baf068..000000000 --- a/docs/models/shared/OrchestrationV2Account.md +++ /dev/null @@ -1,11 +0,0 @@ -# OrchestrationV2Account - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `address` | *String* | :heavy_check_mark: | N/A | users:001 | -| `effectiveVolumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationV2PostTransaction.md b/docs/models/shared/OrchestrationV2PostTransaction.md deleted file mode 100644 index 175ec522a..000000000 --- a/docs/models/shared/OrchestrationV2PostTransaction.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationV2PostTransaction - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_minus_sign: | N/A | | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `script` | [Optional\](../../models/shared/OrchestrationV2PostTransactionScript.md) | :heavy_minus_sign: | N/A | | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationV2PostTransactionScript.md b/docs/models/shared/OrchestrationV2PostTransactionScript.md deleted file mode 100644 index 10e919810..000000000 --- a/docs/models/shared/OrchestrationV2PostTransactionScript.md +++ /dev/null @@ -1,9 +0,0 @@ -# OrchestrationV2PostTransactionScript - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `plain` | *String* | :heavy_check_mark: | N/A | vars {
account $user
}
send [COIN 10] (
source = @world
destination = $user
)
| -| `vars` | Map\ | :heavy_minus_sign: | N/A | {
"user": "users:042"
} | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationV2Transaction.md b/docs/models/shared/OrchestrationV2Transaction.md deleted file mode 100644 index f5b8545d0..000000000 --- a/docs/models/shared/OrchestrationV2Transaction.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationV2Transaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_check_mark: | N/A | | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `txid` | *BigInteger* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/OrchestrationWallet.md b/docs/models/shared/OrchestrationWallet.md deleted file mode 100644 index a9f9a1843..000000000 --- a/docs/models/shared/OrchestrationWallet.md +++ /dev/null @@ -1,12 +0,0 @@ -# OrchestrationWallet - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | The unique ID of the wallet. | -| `ledger` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | -| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Payment.md b/docs/models/shared/Payment.md deleted file mode 100644 index 2ca7056ae..000000000 --- a/docs/models/shared/Payment.md +++ /dev/null @@ -1,23 +0,0 @@ -# Payment - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `adjustments` | List\<[PaymentAdjustment](../../models/shared/PaymentAdjustment.md)> | :heavy_check_mark: | N/A | | -| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | -| `asset` | *String* | :heavy_check_mark: | N/A | USD | -| `connectorID` | *String* | :heavy_check_mark: | N/A | | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `destinationAccountID` | *String* | :heavy_check_mark: | N/A | | -| `id` | *String* | :heavy_check_mark: | N/A | XXX | -| `initialAmount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | -| `metadata` | Map\ | :heavy_check_mark: | N/A | | -| `provider` | [Optional\](../../models/shared/Connector.md) | :heavy_minus_sign: | N/A | | -| `raw` | [Optional\](../../models/shared/PaymentRaw.md) | :heavy_check_mark: | N/A | | -| `reference` | *String* | :heavy_check_mark: | N/A | | -| `scheme` | [PaymentScheme](../../models/shared/PaymentScheme.md) | :heavy_check_mark: | N/A | | -| `sourceAccountID` | *String* | :heavy_check_mark: | N/A | | -| `status` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | -| `type` | [PaymentType](../../models/shared/PaymentType.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/PaymentAdjustment.md b/docs/models/shared/PaymentAdjustment.md deleted file mode 100644 index 740213721..000000000 --- a/docs/models/shared/PaymentAdjustment.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaymentAdjustment - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `raw` | [PaymentAdjustmentRaw](../../models/shared/PaymentAdjustmentRaw.md) | :heavy_check_mark: | N/A | | -| `reference` | *String* | :heavy_check_mark: | N/A | | -| `status` | [PaymentStatus](../../models/shared/PaymentStatus.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/PaymentResponse.md b/docs/models/shared/PaymentResponse.md deleted file mode 100644 index 7dc458014..000000000 --- a/docs/models/shared/PaymentResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentResponse - -OK - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `data` | [Payment](../../models/shared/Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PaymentScheme.md b/docs/models/shared/PaymentScheme.md deleted file mode 100644 index 1ab68fee1..000000000 --- a/docs/models/shared/PaymentScheme.md +++ /dev/null @@ -1,39 +0,0 @@ -# PaymentScheme - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.PaymentScheme; - -PaymentScheme value = PaymentScheme.UNKNOWN; -``` - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `UNKNOWN` | unknown | -| `OTHER` | other | -| `VISA` | visa | -| `MASTERCARD` | mastercard | -| `AMEX` | amex | -| `DINERS` | diners | -| `DISCOVER` | discover | -| `JCB` | jcb | -| `UNIONPAY` | unionpay | -| `ALIPAY` | alipay | -| `CUP` | cup | -| `SEPA_DEBIT` | sepa debit | -| `SEPA_CREDIT` | sepa credit | -| `SEPA` | sepa | -| `APPLE_PAY` | apple pay | -| `GOOGLE_PAY` | google pay | -| `DOKU` | doku | -| `DRAGONPAY` | dragonpay | -| `MAESTRO` | maestro | -| `MOLPAY` | molpay | -| `A2A` | a2a | -| `ACH_DEBIT` | ach debit | -| `ACH` | ach | -| `RTP` | rtp | \ No newline at end of file diff --git a/docs/models/shared/PaymentStatus.md b/docs/models/shared/PaymentStatus.md deleted file mode 100644 index fdb0c63a2..000000000 --- a/docs/models/shared/PaymentStatus.md +++ /dev/null @@ -1,26 +0,0 @@ -# PaymentStatus - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.PaymentStatus; - -PaymentStatus value = PaymentStatus.PENDING; -``` - - -## Values - -| Name | Value | -| ------------------ | ------------------ | -| `PENDING` | PENDING | -| `SUCCEEDED` | SUCCEEDED | -| `CANCELLED` | CANCELLED | -| `FAILED` | FAILED | -| `EXPIRED` | EXPIRED | -| `REFUNDED` | REFUNDED | -| `REFUNDED_FAILURE` | REFUNDED_FAILURE | -| `DISPUTE` | DISPUTE | -| `DISPUTE_WON` | DISPUTE_WON | -| `DISPUTE_LOST` | DISPUTE_LOST | -| `OTHER` | OTHER | \ No newline at end of file diff --git a/docs/models/shared/PaymentType.md b/docs/models/shared/PaymentType.md deleted file mode 100644 index 5d26508b9..000000000 --- a/docs/models/shared/PaymentType.md +++ /dev/null @@ -1,19 +0,0 @@ -# PaymentType - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.PaymentType; - -PaymentType value = PaymentType.PAY_IN; -``` - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `PAY_IN` | PAY-IN | -| `PAYOUT` | PAYOUT | -| `TRANSFER` | TRANSFER | -| `OTHER` | OTHER | \ No newline at end of file diff --git a/docs/models/shared/PaymentsAccount.md b/docs/models/shared/PaymentsAccount.md deleted file mode 100644 index 4fc590f33..000000000 --- a/docs/models/shared/PaymentsAccount.md +++ /dev/null @@ -1,19 +0,0 @@ -# PaymentsAccount - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `accountName` | *String* | :heavy_check_mark: | N/A | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `defaultAsset` | *String* | :heavy_check_mark: | N/A | -| ~~`defaultCurrency`~~ | *String* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | -| `id` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_check_mark: | N/A | -| `pools` | List\<*String*> | :heavy_minus_sign: | N/A | -| `provider` | *Optional\* | :heavy_minus_sign: | N/A | -| `raw` | [Optional\](../../models/shared/PaymentsAccountRaw.md) | :heavy_check_mark: | N/A | -| `reference` | *String* | :heavy_check_mark: | N/A | -| `type` | [AccountType](../../models/shared/AccountType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PaymentsAccountRaw.md b/docs/models/shared/PaymentsAccountRaw.md deleted file mode 100644 index 2bde2458b..000000000 --- a/docs/models/shared/PaymentsAccountRaw.md +++ /dev/null @@ -1,7 +0,0 @@ -# PaymentsAccountRaw - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/PaymentsAccountResponse.md b/docs/models/shared/PaymentsAccountResponse.md deleted file mode 100644 index 62c8bb008..000000000 --- a/docs/models/shared/PaymentsAccountResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentsAccountResponse - -OK - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `data` | [PaymentsAccount](../../models/shared/PaymentsAccount.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PaymentsCursor.md b/docs/models/shared/PaymentsCursor.md deleted file mode 100644 index eefce1397..000000000 --- a/docs/models/shared/PaymentsCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# PaymentsCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `cursor` | [PaymentsCursorCursor](../../models/shared/PaymentsCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PaymentsCursorCursor.md b/docs/models/shared/PaymentsCursorCursor.md deleted file mode 100644 index c34f63c5a..000000000 --- a/docs/models/shared/PaymentsCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# PaymentsCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `data` | List\<[Payment](../../models/shared/Payment.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/PaymentsServerInfo.md b/docs/models/shared/PaymentsServerInfo.md deleted file mode 100644 index 529fb9449..000000000 --- a/docs/models/shared/PaymentsServerInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# PaymentsServerInfo - -Server information - - -## Fields - -| Field | Type | Required | Description | -| -------------------- | -------------------- | -------------------- | -------------------- | -| `debug` | *Optional\* | :heavy_minus_sign: | N/A | -| `version` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PoolsCursor.md b/docs/models/shared/PoolsCursor.md deleted file mode 100644 index 853996bba..000000000 --- a/docs/models/shared/PoolsCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# PoolsCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `cursor` | [PoolsCursorCursor](../../models/shared/PoolsCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/PoolsCursorCursor.md b/docs/models/shared/PoolsCursorCursor.md deleted file mode 100644 index 2bd85a308..000000000 --- a/docs/models/shared/PoolsCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# PoolsCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `data` | List\<[Pool](../../models/shared/Pool.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/Query.md b/docs/models/shared/Query.md deleted file mode 100644 index 03c70ffc9..000000000 --- a/docs/models/shared/Query.md +++ /dev/null @@ -1,16 +0,0 @@ -# Query - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | ------------------------------------------------------ | -| `after` | List\<*String*> | :heavy_minus_sign: | N/A | | -| `cursor` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | -| `ledgers` | List\<*String*> | :heavy_minus_sign: | N/A | | -| `pageSize` | *Optional\* | :heavy_minus_sign: | N/A | | -| `policy` | *Optional\* | :heavy_minus_sign: | N/A | OR | -| `raw` | [Optional\](../../models/shared/QueryRaw.md) | :heavy_minus_sign: | N/A | {
"query": {
"match_all": {}
}
} | -| `sort` | *Optional\* | :heavy_minus_sign: | N/A | id:asc | -| `target` | *Optional\* | :heavy_minus_sign: | N/A | | -| `terms` | List\<*String*> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/QueryRaw.md b/docs/models/shared/QueryRaw.md deleted file mode 100644 index 997785b45..000000000 --- a/docs/models/shared/QueryRaw.md +++ /dev/null @@ -1,7 +0,0 @@ -# QueryRaw - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/ReadClientResponse.md b/docs/models/shared/ReadClientResponse.md deleted file mode 100644 index 578a5dcd8..000000000 --- a/docs/models/shared/ReadClientResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# ReadClientResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | [Optional\](../../models/shared/Client.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ReadTriggerResponse.md b/docs/models/shared/ReadTriggerResponse.md deleted file mode 100644 index a18878b1b..000000000 --- a/docs/models/shared/ReadTriggerResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# ReadTriggerResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `data` | [Trigger](../../models/shared/Trigger.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Response.md b/docs/models/shared/Response.md deleted file mode 100644 index 29a41fa8e..000000000 --- a/docs/models/shared/Response.md +++ /dev/null @@ -1,9 +0,0 @@ -# Response - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `cursor` | [Optional\](../../models/shared/ResponseCursor.md) | :heavy_minus_sign: | N/A | -| `data` | Map\ | :heavy_minus_sign: | The payload | \ No newline at end of file diff --git a/docs/models/shared/ResponseCursor.md b/docs/models/shared/ResponseCursor.md deleted file mode 100644 index 84ac22595..000000000 --- a/docs/models/shared/ResponseCursor.md +++ /dev/null @@ -1,13 +0,0 @@ -# ResponseCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | ------------------------------------------------ | -| `data` | List\> | :heavy_minus_sign: | N/A | | -| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | -| `pageSize` | *Optional\* | :heavy_minus_sign: | N/A | | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | -| `total` | [Optional\](../../models/shared/Total.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/RevertTransactionResponse.md b/docs/models/shared/RevertTransactionResponse.md deleted file mode 100644 index 6997f094b..000000000 --- a/docs/models/shared/RevertTransactionResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# RevertTransactionResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `data` | [OrchestrationTransaction](../../models/shared/OrchestrationTransaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Secret.md b/docs/models/shared/Secret.md deleted file mode 100644 index a557ff4da..000000000 --- a/docs/models/shared/Secret.md +++ /dev/null @@ -1,12 +0,0 @@ -# Secret - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `clear` | *String* | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `lastDigits` | *String* | :heavy_check_mark: | N/A | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageSendDestinationAccount.md b/docs/models/shared/StageSendDestinationAccount.md deleted file mode 100644 index 5798627aa..000000000 --- a/docs/models/shared/StageSendDestinationAccount.md +++ /dev/null @@ -1,9 +0,0 @@ -# StageSendDestinationAccount - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageSendDestinationWallet.md b/docs/models/shared/StageSendDestinationWallet.md deleted file mode 100644 index a75f2cc42..000000000 --- a/docs/models/shared/StageSendDestinationWallet.md +++ /dev/null @@ -1,9 +0,0 @@ -# StageSendDestinationWallet - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `balance` | *Optional\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/StageSendSource.md b/docs/models/shared/StageSendSource.md deleted file mode 100644 index 33cf5fa9e..000000000 --- a/docs/models/shared/StageSendSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# StageSendSource - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `account` | [Optional\](../../models/shared/StageSendDestinationAccount.md) | :heavy_minus_sign: | N/A | -| `payment` | [Optional\](../../models/shared/StageSendSourcePayment.md) | :heavy_minus_sign: | N/A | -| `wallet` | [Optional\](../../models/shared/StageSendDestinationWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskBankingCircle.md b/docs/models/shared/TaskBankingCircle.md deleted file mode 100644 index e355f1ab2..000000000 --- a/docs/models/shared/TaskBankingCircle.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskBankingCircle - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskBankingCircleDescriptor](../../models/shared/TaskBankingCircleDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskBankingCircleState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskBankingCircleDescriptor.md b/docs/models/shared/TaskBankingCircleDescriptor.md deleted file mode 100644 index b93c4c206..000000000 --- a/docs/models/shared/TaskBankingCircleDescriptor.md +++ /dev/null @@ -1,9 +0,0 @@ -# TaskBankingCircleDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskBankingCircleState.md b/docs/models/shared/TaskBankingCircleState.md deleted file mode 100644 index ab19f6451..000000000 --- a/docs/models/shared/TaskBankingCircleState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskBankingCircleState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskCurrencyCloud.md b/docs/models/shared/TaskCurrencyCloud.md deleted file mode 100644 index f18d705f9..000000000 --- a/docs/models/shared/TaskCurrencyCloud.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskCurrencyCloud - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskCurrencyCloudDescriptor](../../models/shared/TaskCurrencyCloudDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskCurrencyCloudState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskCurrencyCloudDescriptor.md b/docs/models/shared/TaskCurrencyCloudDescriptor.md deleted file mode 100644 index ad7da55e7..000000000 --- a/docs/models/shared/TaskCurrencyCloudDescriptor.md +++ /dev/null @@ -1,8 +0,0 @@ -# TaskCurrencyCloudDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskCurrencyCloudState.md b/docs/models/shared/TaskCurrencyCloudState.md deleted file mode 100644 index dee02a3ec..000000000 --- a/docs/models/shared/TaskCurrencyCloudState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskCurrencyCloudState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskDummyPay.md b/docs/models/shared/TaskDummyPay.md deleted file mode 100644 index 6c42427f4..000000000 --- a/docs/models/shared/TaskDummyPay.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskDummyPay - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskDummyPayDescriptor](../../models/shared/TaskDummyPayDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskDummyPayState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskDummyPayDescriptor.md b/docs/models/shared/TaskDummyPayDescriptor.md deleted file mode 100644 index b5fba07b5..000000000 --- a/docs/models/shared/TaskDummyPayDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskDummyPayDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `fileName` | *Optional\* | :heavy_minus_sign: | N/A | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskDummyPayState.md b/docs/models/shared/TaskDummyPayState.md deleted file mode 100644 index c48e90864..000000000 --- a/docs/models/shared/TaskDummyPayState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskDummyPayState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskMangoPay.md b/docs/models/shared/TaskMangoPay.md deleted file mode 100644 index a160fc4d7..000000000 --- a/docs/models/shared/TaskMangoPay.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskMangoPay - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskMangoPayDescriptor](../../models/shared/TaskMangoPayDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskMangoPayState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskMangoPayDescriptor.md b/docs/models/shared/TaskMangoPayDescriptor.md deleted file mode 100644 index 6ee418797..000000000 --- a/docs/models/shared/TaskMangoPayDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskMangoPayDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `userID` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskMangoPayState.md b/docs/models/shared/TaskMangoPayState.md deleted file mode 100644 index 19e1c1cc7..000000000 --- a/docs/models/shared/TaskMangoPayState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskMangoPayState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskModulr.md b/docs/models/shared/TaskModulr.md deleted file mode 100644 index 401ea3b37..000000000 --- a/docs/models/shared/TaskModulr.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskModulr - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskModulrDescriptor](../../models/shared/TaskModulrDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskModulrState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskModulrDescriptor.md b/docs/models/shared/TaskModulrDescriptor.md deleted file mode 100644 index 4c16eab4a..000000000 --- a/docs/models/shared/TaskModulrDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskModulrDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `accountID` | *Optional\* | :heavy_minus_sign: | N/A | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskModulrState.md b/docs/models/shared/TaskModulrState.md deleted file mode 100644 index 291d63b54..000000000 --- a/docs/models/shared/TaskModulrState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskModulrState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskMoneycorp.md b/docs/models/shared/TaskMoneycorp.md deleted file mode 100644 index d3f1ddcab..000000000 --- a/docs/models/shared/TaskMoneycorp.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskMoneycorp - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskMoneycorpDescriptor](../../models/shared/TaskMoneycorpDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskMoneycorpState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskMoneycorpDescriptor.md b/docs/models/shared/TaskMoneycorpDescriptor.md deleted file mode 100644 index 01a519fb0..000000000 --- a/docs/models/shared/TaskMoneycorpDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskMoneycorpDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `accountID` | *Optional\* | :heavy_minus_sign: | N/A | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskMoneycorpState.md b/docs/models/shared/TaskMoneycorpState.md deleted file mode 100644 index f5beca88a..000000000 --- a/docs/models/shared/TaskMoneycorpState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskMoneycorpState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskResponse.md b/docs/models/shared/TaskResponse.md deleted file mode 100644 index bc6b06551..000000000 --- a/docs/models/shared/TaskResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskResponse - -OK - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `data` | [TaskResponseData](../../models/shared/TaskResponseData.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskResponseData.md b/docs/models/shared/TaskResponseData.md deleted file mode 100644 index 54a94089b..000000000 --- a/docs/models/shared/TaskResponseData.md +++ /dev/null @@ -1,2 +0,0 @@ -# TaskResponseData - diff --git a/docs/models/shared/TaskStripe.md b/docs/models/shared/TaskStripe.md deleted file mode 100644 index 779a9a3a8..000000000 --- a/docs/models/shared/TaskStripe.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskStripe - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskStripeDescriptor](../../models/shared/TaskStripeDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskStripeState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskStripeDescriptor.md b/docs/models/shared/TaskStripeDescriptor.md deleted file mode 100644 index b4d355761..000000000 --- a/docs/models/shared/TaskStripeDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskStripeDescriptor - - -## Fields - -| Field | Type | Required | Description | -| -------------------- | -------------------- | -------------------- | -------------------- | -| `account` | *String* | :heavy_check_mark: | N/A | -| `main` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskStripeState.md b/docs/models/shared/TaskStripeState.md deleted file mode 100644 index 9639b5c9c..000000000 --- a/docs/models/shared/TaskStripeState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskStripeState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TaskWise.md b/docs/models/shared/TaskWise.md deleted file mode 100644 index 220af1731..000000000 --- a/docs/models/shared/TaskWise.md +++ /dev/null @@ -1,15 +0,0 @@ -# TaskWise - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `connectorID` | *String* | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `descriptor` | [TaskWiseDescriptor](../../models/shared/TaskWiseDescriptor.md) | :heavy_check_mark: | N/A | -| `error` | *JsonNullable\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `state` | [JsonNullable\](../../models/shared/TaskWiseState.md) | :heavy_minus_sign: | N/A | -| `status` | [TaskStatus](../../models/shared/TaskStatus.md) | :heavy_check_mark: | N/A | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskWiseDescriptor.md b/docs/models/shared/TaskWiseDescriptor.md deleted file mode 100644 index 20f8ae99d..000000000 --- a/docs/models/shared/TaskWiseDescriptor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TaskWiseDescriptor - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `key` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `profileID` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TaskWiseState.md b/docs/models/shared/TaskWiseState.md deleted file mode 100644 index fc76ce01d..000000000 --- a/docs/models/shared/TaskWiseState.md +++ /dev/null @@ -1,7 +0,0 @@ -# TaskWiseState - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/TasksCursor.md b/docs/models/shared/TasksCursor.md deleted file mode 100644 index 50c6b3c87..000000000 --- a/docs/models/shared/TasksCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TasksCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `cursor` | [TasksCursorCursor](../../models/shared/TasksCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TasksCursorCursor.md b/docs/models/shared/TasksCursorCursor.md deleted file mode 100644 index 56e3ec9bb..000000000 --- a/docs/models/shared/TasksCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# TasksCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------------- | -| `data` | List\<[TasksCursorData](../../models/shared/TasksCursorData.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/TasksCursorData.md b/docs/models/shared/TasksCursorData.md deleted file mode 100644 index 26c8e78ea..000000000 --- a/docs/models/shared/TasksCursorData.md +++ /dev/null @@ -1,2 +0,0 @@ -# TasksCursorData - diff --git a/docs/models/shared/Transaction.md b/docs/models/shared/Transaction.md deleted file mode 100644 index 8e04193d8..000000000 --- a/docs/models/shared/Transaction.md +++ /dev/null @@ -1,14 +0,0 @@ -# Transaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | | -| `postCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_check_mark: | N/A | | -| `preCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `txid` | *BigInteger* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiationsCursor.md b/docs/models/shared/TransferInitiationsCursor.md deleted file mode 100644 index 80d7088ef..000000000 --- a/docs/models/shared/TransferInitiationsCursor.md +++ /dev/null @@ -1,10 +0,0 @@ -# TransferInitiationsCursor - -OK - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `cursor` | [TransferInitiationsCursorCursor](../../models/shared/TransferInitiationsCursorCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TransferInitiationsCursorCursor.md b/docs/models/shared/TransferInitiationsCursorCursor.md deleted file mode 100644 index b4c867a7d..000000000 --- a/docs/models/shared/TransferInitiationsCursorCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# TransferInitiationsCursorCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | -| `data` | List\<[TransferInitiation](../../models/shared/TransferInitiation.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/Trigger.md b/docs/models/shared/Trigger.md deleted file mode 100644 index d11cf3b1b..000000000 --- a/docs/models/shared/Trigger.md +++ /dev/null @@ -1,15 +0,0 @@ -# Trigger - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `event` | *String* | :heavy_check_mark: | N/A | -| `filter` | *Optional\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `vars` | Map\ | :heavy_minus_sign: | N/A | -| `version` | *Optional\* | :heavy_minus_sign: | N/A | -| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/TriggerData.md b/docs/models/shared/TriggerData.md deleted file mode 100644 index 7dc1897cf..000000000 --- a/docs/models/shared/TriggerData.md +++ /dev/null @@ -1,13 +0,0 @@ -# TriggerData - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `event` | *String* | :heavy_check_mark: | N/A | -| `filter` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `vars` | Map\ | :heavy_minus_sign: | N/A | -| `version` | *Optional\* | :heavy_minus_sign: | N/A | -| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/UpdateClientResponse.md b/docs/models/shared/UpdateClientResponse.md deleted file mode 100644 index 3478dba40..000000000 --- a/docs/models/shared/UpdateClientResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# UpdateClientResponse - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | [Optional\](../../models/shared/Client.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Account.md b/docs/models/shared/V2Account.md deleted file mode 100644 index eb129e894..000000000 --- a/docs/models/shared/V2Account.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2Account - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -| `address` | *String* | :heavy_check_mark: | N/A | users:001 | -| `effectiveVolumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | -| `firstUsage` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-01-01T00:00:00Z | -| `insertionDate` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-01-01T00:00:00Z | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | 2023-01-01T00:00:00Z | -| `volumes` | Map\ | :heavy_minus_sign: | N/A | {
"USD": {
"input": 100,
"output": 10,
"balance": 90
},
"EUR": {
"input": 100,
"output": 10,
"balance": 90
}
} | \ No newline at end of file diff --git a/docs/models/shared/V2AccountResponse.md b/docs/models/shared/V2AccountResponse.md deleted file mode 100644 index 3f671f56f..000000000 --- a/docs/models/shared/V2AccountResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2AccountResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V2Account](../../models/shared/V2Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityCreateTransaction.md b/docs/models/shared/V2ActivityCreateTransaction.md deleted file mode 100644 index e81635280..000000000 --- a/docs/models/shared/V2ActivityCreateTransaction.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2ActivityCreateTransaction - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `data` | [Optional\](../../models/shared/OrchestrationV2PostTransaction.md) | :heavy_minus_sign: | N/A | -| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityCreateTransactionOutput.md b/docs/models/shared/V2ActivityCreateTransactionOutput.md deleted file mode 100644 index d4a5ef8a3..000000000 --- a/docs/models/shared/V2ActivityCreateTransactionOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ActivityCreateTransactionOutput - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -| `data` | List\<[OrchestrationV2Transaction](../../models/shared/OrchestrationV2Transaction.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityDebitWalletOutput.md b/docs/models/shared/V2ActivityDebitWalletOutput.md deleted file mode 100644 index 67d805057..000000000 --- a/docs/models/shared/V2ActivityDebitWalletOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ActivityDebitWalletOutput - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `data` | [V2Hold](../../models/shared/V2Hold.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityGetAccountOutput.md b/docs/models/shared/V2ActivityGetAccountOutput.md deleted file mode 100644 index 9f254617c..000000000 --- a/docs/models/shared/V2ActivityGetAccountOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ActivityGetAccountOutput - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `data` | [OrchestrationV2Account](../../models/shared/OrchestrationV2Account.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityGetPaymentOutput.md b/docs/models/shared/V2ActivityGetPaymentOutput.md deleted file mode 100644 index ab0b7b842..000000000 --- a/docs/models/shared/V2ActivityGetPaymentOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ActivityGetPaymentOutput - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V2Payment](../../models/shared/V2Payment.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityGetWalletOutput.md b/docs/models/shared/V2ActivityGetWalletOutput.md deleted file mode 100644 index 6db52f64a..000000000 --- a/docs/models/shared/V2ActivityGetWalletOutput.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ActivityGetWalletOutput - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `data` | [V2WalletWithBalances](../../models/shared/V2WalletWithBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityStripeTransfer.md b/docs/models/shared/V2ActivityStripeTransfer.md deleted file mode 100644 index ac34e8473..000000000 --- a/docs/models/shared/V2ActivityStripeTransfer.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2ActivityStripeTransfer - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `amount` | *Optional\* | :heavy_minus_sign: | N/A | 100 | -| `asset` | *Optional\* | :heavy_minus_sign: | N/A | USD | -| `connectorID` | *Optional\* | :heavy_minus_sign: | N/A | | -| `destination` | *Optional\* | :heavy_minus_sign: | N/A | acct_1Gqj58KZcSIg2N2q | -| `metadata` | [Optional\](../../models/shared/V2ActivityStripeTransferMetadata.md) | :heavy_minus_sign: | A set of key/value pairs that you can attach to a transfer object.
It can be useful for storing additional information about the transfer in a structured format.
| {
"order_id": "6735"
} | -| `waitingValidation` | *Optional\* | :heavy_minus_sign: | N/A | false | \ No newline at end of file diff --git a/docs/models/shared/V2ActivityStripeTransferMetadata.md b/docs/models/shared/V2ActivityStripeTransferMetadata.md deleted file mode 100644 index 2f03195ad..000000000 --- a/docs/models/shared/V2ActivityStripeTransferMetadata.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2ActivityStripeTransferMetadata - -A set of key/value pairs that you can attach to a transfer object. -It can be useful for storing additional information about the transfer in a structured format. - - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElement.md b/docs/models/shared/V2BulkElement.md deleted file mode 100644 index ad80f1d74..000000000 --- a/docs/models/shared/V2BulkElement.md +++ /dev/null @@ -1,2 +0,0 @@ -# V2BulkElement - diff --git a/docs/models/shared/V2BulkElementAddMetadata.md b/docs/models/shared/V2BulkElementAddMetadata.md deleted file mode 100644 index 9819baa69..000000000 --- a/docs/models/shared/V2BulkElementAddMetadata.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementAddMetadata - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | -| `action` | *String* | :heavy_check_mark: | N/A | -| `data` | [Optional\](../../models/shared/V2BulkElementAddMetadataData.md) | :heavy_minus_sign: | N/A | -| `ik` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementAddMetadataData.md b/docs/models/shared/V2BulkElementAddMetadataData.md deleted file mode 100644 index fcc0514b2..000000000 --- a/docs/models/shared/V2BulkElementAddMetadataData.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementAddMetadataData - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `metadata` | Map\ | :heavy_check_mark: | N/A | -| `targetId` | [V2TargetId](../../models/shared/V2TargetId.md) | :heavy_check_mark: | N/A | -| `targetType` | [V2TargetType](../../models/shared/V2TargetType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementCreateTransaction.md b/docs/models/shared/V2BulkElementCreateTransaction.md deleted file mode 100644 index 104f0fe29..000000000 --- a/docs/models/shared/V2BulkElementCreateTransaction.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementCreateTransaction - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `action` | *String* | :heavy_check_mark: | N/A | -| `data` | [Optional\](../../models/shared/V2PostTransaction.md) | :heavy_minus_sign: | N/A | -| `ik` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementDeleteMetadata.md b/docs/models/shared/V2BulkElementDeleteMetadata.md deleted file mode 100644 index 1f3f90e65..000000000 --- a/docs/models/shared/V2BulkElementDeleteMetadata.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementDeleteMetadata - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | -| `action` | *String* | :heavy_check_mark: | N/A | -| `data` | [Optional\](../../models/shared/V2BulkElementDeleteMetadataData.md) | :heavy_minus_sign: | N/A | -| `ik` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementDeleteMetadataData.md b/docs/models/shared/V2BulkElementDeleteMetadataData.md deleted file mode 100644 index 286674b6f..000000000 --- a/docs/models/shared/V2BulkElementDeleteMetadataData.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementDeleteMetadataData - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | -| `key` | *String* | :heavy_check_mark: | N/A | -| `targetId` | [V2TargetId](../../models/shared/V2TargetId.md) | :heavy_check_mark: | N/A | -| `targetType` | [V2TargetType](../../models/shared/V2TargetType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementResultAddMetadata.md b/docs/models/shared/V2BulkElementResultAddMetadata.md deleted file mode 100644 index 7155adff6..000000000 --- a/docs/models/shared/V2BulkElementResultAddMetadata.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2BulkElementResultAddMetadata - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `logID` | *long* | :heavy_check_mark: | N/A | -| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementResultCreateTransaction.md b/docs/models/shared/V2BulkElementResultCreateTransaction.md deleted file mode 100644 index f44daca8e..000000000 --- a/docs/models/shared/V2BulkElementResultCreateTransaction.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementResultCreateTransaction - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | -| `logID` | *long* | :heavy_check_mark: | N/A | -| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementResultDeleteMetadata.md b/docs/models/shared/V2BulkElementResultDeleteMetadata.md deleted file mode 100644 index 8cbdea1d2..000000000 --- a/docs/models/shared/V2BulkElementResultDeleteMetadata.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2BulkElementResultDeleteMetadata - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `logID` | *long* | :heavy_check_mark: | N/A | -| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementResultError.md b/docs/models/shared/V2BulkElementResultError.md deleted file mode 100644 index 34445142d..000000000 --- a/docs/models/shared/V2BulkElementResultError.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2BulkElementResultError - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `errorCode` | *String* | :heavy_check_mark: | N/A | -| `errorDescription` | *String* | :heavy_check_mark: | N/A | -| `errorDetails` | *Optional\* | :heavy_minus_sign: | N/A | -| `logID` | *long* | :heavy_check_mark: | N/A | -| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementResultRevertTransaction.md b/docs/models/shared/V2BulkElementResultRevertTransaction.md deleted file mode 100644 index 5fa250e11..000000000 --- a/docs/models/shared/V2BulkElementResultRevertTransaction.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementResultRevertTransaction - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | -| `logID` | *long* | :heavy_check_mark: | N/A | -| `responseType` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementRevertTransaction.md b/docs/models/shared/V2BulkElementRevertTransaction.md deleted file mode 100644 index 80301985e..000000000 --- a/docs/models/shared/V2BulkElementRevertTransaction.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2BulkElementRevertTransaction - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `action` | *String* | :heavy_check_mark: | N/A | -| `data` | [Optional\](../../models/shared/V2BulkElementRevertTransactionData.md) | :heavy_minus_sign: | N/A | -| `ik` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2BulkElementRevertTransactionData.md b/docs/models/shared/V2BulkElementRevertTransactionData.md deleted file mode 100644 index 5420d0b7d..000000000 --- a/docs/models/shared/V2BulkElementRevertTransactionData.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2BulkElementRevertTransactionData - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `atEffectiveDate` | *Optional\* | :heavy_minus_sign: | N/A | | -| `force` | *Optional\* | :heavy_minus_sign: | N/A | | -| `id` | *BigInteger* | :heavy_check_mark: | N/A | | -| `metadata` | Map\ | :heavy_minus_sign: | N/A | {
"admin": "true"
} | \ No newline at end of file diff --git a/docs/models/shared/V2ConfigInfoResponse.md b/docs/models/shared/V2ConfigInfoResponse.md deleted file mode 100644 index 257a4f7f9..000000000 --- a/docs/models/shared/V2ConfigInfoResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2ConfigInfoResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `server` | *String* | :heavy_check_mark: | N/A | -| `version` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreateExporterRequest.md b/docs/models/shared/V2CreateExporterRequest.md deleted file mode 100644 index 393703826..000000000 --- a/docs/models/shared/V2CreateExporterRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2CreateExporterRequest - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `config` | Map\ | :heavy_check_mark: | N/A | -| `driver` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreateTransactionResponse.md b/docs/models/shared/V2CreateTransactionResponse.md deleted file mode 100644 index 3c194356a..000000000 --- a/docs/models/shared/V2CreateTransactionResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2CreateTransactionResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreateTriggerResponse.md b/docs/models/shared/V2CreateTriggerResponse.md deleted file mode 100644 index c4b64c32e..000000000 --- a/docs/models/shared/V2CreateTriggerResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2CreateTriggerResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V2Trigger](../../models/shared/V2Trigger.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2CreateWorkflowRequest.md b/docs/models/shared/V2CreateWorkflowRequest.md deleted file mode 100644 index 3355c98fa..000000000 --- a/docs/models/shared/V2CreateWorkflowRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2CreateWorkflowRequest - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `stages` | List\> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ErrorResponse.md b/docs/models/shared/V2ErrorResponse.md deleted file mode 100644 index bb36b2288..000000000 --- a/docs/models/shared/V2ErrorResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2ErrorResponse - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | -| `errorCode` | [V2ErrorsEnum](../../models/shared/V2ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | -| `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/shared/V2Exporter.md b/docs/models/shared/V2Exporter.md deleted file mode 100644 index 07d227ddf..000000000 --- a/docs/models/shared/V2Exporter.md +++ /dev/null @@ -1,11 +0,0 @@ -# V2Exporter - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `config` | Map\ | :heavy_check_mark: | N/A | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `driver` | *String* | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ListTriggersResponseCursor.md b/docs/models/shared/V2ListTriggersResponseCursor.md deleted file mode 100644 index 474ed8c51..000000000 --- a/docs/models/shared/V2ListTriggersResponseCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2ListTriggersResponseCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | -| `data` | List\<[V2Trigger](../../models/shared/V2Trigger.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/V2ListWalletsResponse.md b/docs/models/shared/V2ListWalletsResponse.md deleted file mode 100644 index 31ce84640..000000000 --- a/docs/models/shared/V2ListWalletsResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ListWalletsResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `cursor` | [V2ListWalletsResponseCursor](../../models/shared/V2ListWalletsResponseCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2ListWalletsResponseCursor.md b/docs/models/shared/V2ListWalletsResponseCursor.md deleted file mode 100644 index 3e4879bf7..000000000 --- a/docs/models/shared/V2ListWalletsResponseCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2ListWalletsResponseCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | List\<[V2Wallet](../../models/shared/V2Wallet.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | | -| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/V2LogData.md b/docs/models/shared/V2LogData.md deleted file mode 100644 index e48b8f2e6..000000000 --- a/docs/models/shared/V2LogData.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2LogData - -The payload of the log entry. Structure depends on the log type: -- NEW_TRANSACTION: V2LogDataNewTransaction -- SET_METADATA: V2LogDataSetMetadata -- REVERTED_TRANSACTION: V2LogDataRevertedTransaction -- DELETE_METADATA: V2LogDataDeleteMetadata -- INSERTED_SCHEMA: V2LogDataInsertedSchema - - diff --git a/docs/models/shared/V2LogDataInsertedSchema.md b/docs/models/shared/V2LogDataInsertedSchema.md deleted file mode 100644 index 527969b4d..000000000 --- a/docs/models/shared/V2LogDataInsertedSchema.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2LogDataInsertedSchema - -Payload for INSERTED_SCHEMA log entries. Contains the schema that was inserted into the ledger. - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `schema` | [V2Schema](../../models/shared/V2Schema.md) | :heavy_check_mark: | Complete schema structure with metadata | \ No newline at end of file diff --git a/docs/models/shared/V2Pipeline.md b/docs/models/shared/V2Pipeline.md deleted file mode 100644 index be78985de..000000000 --- a/docs/models/shared/V2Pipeline.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2Pipeline - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `enabled` | *Optional\* | :heavy_minus_sign: | N/A | -| `exporterID` | *String* | :heavy_check_mark: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `lastLogID` | *Optional\* | :heavy_minus_sign: | N/A | -| `ledger` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2PostTransaction.md b/docs/models/shared/V2PostTransaction.md deleted file mode 100644 index 0574d7d72..000000000 --- a/docs/models/shared/V2PostTransaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2PostTransaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `accountMetadata` | Map\> | :heavy_minus_sign: | N/A | | -| `force` | *Optional\* | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_minus_sign: | N/A | | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `runtime` | [Optional\](../../models/shared/Runtime.md) | :heavy_minus_sign: | The numscript runtime used to execute the script. Uses "machine" by default, unless the "--experimental-numscript-interpreter" feature flag is passed. | | -| `script` | [Optional\](../../models/shared/V2PostTransactionScript.md) | :heavy_minus_sign: | N/A | | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2ReadTriggerResponse.md b/docs/models/shared/V2ReadTriggerResponse.md deleted file mode 100644 index 82a594cea..000000000 --- a/docs/models/shared/V2ReadTriggerResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2ReadTriggerResponse - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `data` | [V2Trigger](../../models/shared/V2Trigger.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2RevertTransactionResponse.md b/docs/models/shared/V2RevertTransactionResponse.md deleted file mode 100644 index 491d76f9d..000000000 --- a/docs/models/shared/V2RevertTransactionResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2RevertTransactionResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [V2Transaction](../../models/shared/V2Transaction.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2Schema.md b/docs/models/shared/V2Schema.md deleted file mode 100644 index d7f790231..000000000 --- a/docs/models/shared/V2Schema.md +++ /dev/null @@ -1,14 +0,0 @@ -# V2Schema - -Complete schema structure with metadata - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `chart` | Map\ | :heavy_check_mark: | Chart of account | {
"users": {
"$userID": {
".pattern": "^[0-9]{16}$"
}
}
} | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | Schema creation timestamp | 2023-01-01T00:00:00Z | -| `queries` | Map\ | :heavy_minus_sign: | Query templates | | -| `transactions` | Map\ | :heavy_minus_sign: | Transaction templates | | -| `version` | *String* | :heavy_check_mark: | Schema version | v1.0.0 | \ No newline at end of file diff --git a/docs/models/shared/V2SchemaData.md b/docs/models/shared/V2SchemaData.md deleted file mode 100644 index 1638207b1..000000000 --- a/docs/models/shared/V2SchemaData.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2SchemaData - -Schema data structure for ledger schemas - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | -| `chart` | Map\ | :heavy_check_mark: | Chart of account | {
"users": {
"$userID": {
".pattern": "^[0-9]{16}$"
}
}
} | -| `queries` | Map\ | :heavy_minus_sign: | Query templates | | -| `transactions` | Map\ | :heavy_minus_sign: | Transaction templates | | \ No newline at end of file diff --git a/docs/models/shared/V2SchemaResponse.md b/docs/models/shared/V2SchemaResponse.md deleted file mode 100644 index 8483dd01c..000000000 --- a/docs/models/shared/V2SchemaResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V2SchemaResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | ------------------------------------------- | -| `data` | [V2Schema](../../models/shared/V2Schema.md) | :heavy_check_mark: | Complete schema structure with metadata | \ No newline at end of file diff --git a/docs/models/shared/V2SchemasCursor.md b/docs/models/shared/V2SchemasCursor.md deleted file mode 100644 index f84541758..000000000 --- a/docs/models/shared/V2SchemasCursor.md +++ /dev/null @@ -1,12 +0,0 @@ -# V2SchemasCursor - - -## Fields - -| Field | Type | Required | Description | Example | -| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -| `data` | List\<[V2Schema](../../models/shared/V2Schema.md)> | :heavy_check_mark: | N/A | | -| `hasMore` | *boolean* | :heavy_check_mark: | N/A | | -| `next` | *Optional\* | :heavy_minus_sign: | N/A | aW0gdmVuaWFtLCBxdWlzIG5vc3RydWQ= | -| `pageSize` | *long* | :heavy_check_mark: | N/A | | -| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/shared/V2StageSendDestination.md b/docs/models/shared/V2StageSendDestination.md deleted file mode 100644 index 8fe992530..000000000 --- a/docs/models/shared/V2StageSendDestination.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2StageSendDestination - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `account` | [Optional\](../../models/shared/V2StageSendDestinationAccount.md) | :heavy_minus_sign: | N/A | -| `payment` | [Optional\](../../models/shared/V2StageSendDestinationPayment.md) | :heavy_minus_sign: | N/A | -| `wallet` | [Optional\](../../models/shared/V2StageSendDestinationWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2StageSendDestinationAccount.md b/docs/models/shared/V2StageSendDestinationAccount.md deleted file mode 100644 index 7ab5d58da..000000000 --- a/docs/models/shared/V2StageSendDestinationAccount.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2StageSendDestinationAccount - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `id` | *String* | :heavy_check_mark: | N/A | -| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2StageSendDestinationWallet.md b/docs/models/shared/V2StageSendDestinationWallet.md deleted file mode 100644 index 4e7011c0e..000000000 --- a/docs/models/shared/V2StageSendDestinationWallet.md +++ /dev/null @@ -1,9 +0,0 @@ -# V2StageSendDestinationWallet - - -## Fields - -| Field | Type | Required | Description | -| ------------------- | ------------------- | ------------------- | ------------------- | -| `balance` | *Optional\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2StageSendSource.md b/docs/models/shared/V2StageSendSource.md deleted file mode 100644 index d4bd17daf..000000000 --- a/docs/models/shared/V2StageSendSource.md +++ /dev/null @@ -1,10 +0,0 @@ -# V2StageSendSource - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `account` | [Optional\](../../models/shared/V2StageSendDestinationAccount.md) | :heavy_minus_sign: | N/A | -| `payment` | [Optional\](../../models/shared/V2StageSendSourcePayment.md) | :heavy_minus_sign: | N/A | -| `wallet` | [Optional\](../../models/shared/V2StageSendDestinationWallet.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2TargetId.md b/docs/models/shared/V2TargetId.md deleted file mode 100644 index 229dd75dd..000000000 --- a/docs/models/shared/V2TargetId.md +++ /dev/null @@ -1,2 +0,0 @@ -# V2TargetId - diff --git a/docs/models/shared/V2TargetType.md b/docs/models/shared/V2TargetType.md deleted file mode 100644 index 48ed3b4bf..000000000 --- a/docs/models/shared/V2TargetType.md +++ /dev/null @@ -1,17 +0,0 @@ -# V2TargetType - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.V2TargetType; - -V2TargetType value = V2TargetType.TRANSACTION; -``` - - -## Values - -| Name | Value | -| ------------- | ------------- | -| `TRANSACTION` | TRANSACTION | -| `ACCOUNT` | ACCOUNT | \ No newline at end of file diff --git a/docs/models/shared/V2Transaction.md b/docs/models/shared/V2Transaction.md deleted file mode 100644 index 80bff8020..000000000 --- a/docs/models/shared/V2Transaction.md +++ /dev/null @@ -1,21 +0,0 @@ -# V2Transaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | -| `id` | *BigInteger* | :heavy_check_mark: | N/A | | -| `insertedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_check_mark: | N/A | {
"admin": "true"
} | -| `postCommitEffectiveVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `postCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `postings` | List\<[V2Posting](../../models/shared/V2Posting.md)> | :heavy_check_mark: | N/A | | -| `preCommitEffectiveVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `preCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | {
"orders:1": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
},
"orders:2": {
"USD": {
"input": 100,
"output": 10,
"balance": 90
}
}
} | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `reverted` | *boolean* | :heavy_check_mark: | N/A | | -| `revertedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | -| `template` | *Optional\* | :heavy_minus_sign: | N/A | | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | -| `updatedAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/V2Trigger.md b/docs/models/shared/V2Trigger.md deleted file mode 100644 index 3deac6ca2..000000000 --- a/docs/models/shared/V2Trigger.md +++ /dev/null @@ -1,15 +0,0 @@ -# V2Trigger - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | -| `event` | *String* | :heavy_check_mark: | N/A | -| `filter` | *Optional\* | :heavy_minus_sign: | N/A | -| `id` | *String* | :heavy_check_mark: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `vars` | Map\ | :heavy_minus_sign: | N/A | -| `version` | *Optional\* | :heavy_minus_sign: | N/A | -| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2TriggerData.md b/docs/models/shared/V2TriggerData.md deleted file mode 100644 index e0af4b4ab..000000000 --- a/docs/models/shared/V2TriggerData.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2TriggerData - - -## Fields - -| Field | Type | Required | Description | -| ---------------------- | ---------------------- | ---------------------- | ---------------------- | -| `event` | *String* | :heavy_check_mark: | N/A | -| `filter` | *Optional\* | :heavy_minus_sign: | N/A | -| `name` | *Optional\* | :heavy_minus_sign: | N/A | -| `vars` | Map\ | :heavy_minus_sign: | N/A | -| `version` | *Optional\* | :heavy_minus_sign: | N/A | -| `workflowID` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V2WorkflowInstanceHistoryStageOutput.md b/docs/models/shared/V2WorkflowInstanceHistoryStageOutput.md deleted file mode 100644 index d98d89d90..000000000 --- a/docs/models/shared/V2WorkflowInstanceHistoryStageOutput.md +++ /dev/null @@ -1,13 +0,0 @@ -# V2WorkflowInstanceHistoryStageOutput - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- | -| `createTransaction` | [Optional\](../../models/shared/V2ActivityCreateTransactionOutput.md) | :heavy_minus_sign: | N/A | -| `debitWallet` | [Optional\](../../models/shared/V2ActivityDebitWalletOutput.md) | :heavy_minus_sign: | N/A | -| `getAccount` | [Optional\](../../models/shared/V2ActivityGetAccountOutput.md) | :heavy_minus_sign: | N/A | -| `getPayment` | [Optional\](../../models/shared/V2ActivityGetPaymentOutput.md) | :heavy_minus_sign: | N/A | -| `getWallet` | [Optional\](../../models/shared/V2ActivityGetWalletOutput.md) | :heavy_minus_sign: | N/A | -| `listWallets` | [Optional\](../../models/shared/V2ListWalletsResponse.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3ConnectorConfig.md b/docs/models/shared/V3ConnectorConfig.md deleted file mode 100644 index 3b08b1849..000000000 --- a/docs/models/shared/V3ConnectorConfig.md +++ /dev/null @@ -1,7 +0,0 @@ -# V3ConnectorConfig - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/V3GetConnectorConfigResponse.md b/docs/models/shared/V3GetConnectorConfigResponse.md deleted file mode 100644 index 3b772267a..000000000 --- a/docs/models/shared/V3GetConnectorConfigResponse.md +++ /dev/null @@ -1,8 +0,0 @@ -# V3GetConnectorConfigResponse - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `data` | [V3InstallConnectorRequest](../../models/shared/V3InstallConnectorRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/V3InstallConnectorRequest.md b/docs/models/shared/V3InstallConnectorRequest.md deleted file mode 100644 index 3b6273f8c..000000000 --- a/docs/models/shared/V3InstallConnectorRequest.md +++ /dev/null @@ -1,2 +0,0 @@ -# V3InstallConnectorRequest - diff --git a/docs/models/shared/WalletBalances.md b/docs/models/shared/WalletBalances.md deleted file mode 100644 index 515085d95..000000000 --- a/docs/models/shared/WalletBalances.md +++ /dev/null @@ -1,8 +0,0 @@ -# WalletBalances - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `main` | [AssetHolder](../../models/shared/AssetHolder.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WalletSummary.md b/docs/models/shared/WalletSummary.md deleted file mode 100644 index a4198e02f..000000000 --- a/docs/models/shared/WalletSummary.md +++ /dev/null @@ -1,12 +0,0 @@ -# WalletSummary - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `availableFunds` | Map\ | :heavy_check_mark: | N/A | -| `balances` | List\<[BalanceWithAssets](../../models/shared/BalanceWithAssets.md)> | :heavy_check_mark: | N/A | -| `expirableFunds` | Map\ | :heavy_check_mark: | N/A | -| `expiredFunds` | Map\ | :heavy_check_mark: | N/A | -| `holdFunds` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WalletWithBalancesBalances.md b/docs/models/shared/WalletWithBalancesBalances.md deleted file mode 100644 index 6d0a279be..000000000 --- a/docs/models/shared/WalletWithBalancesBalances.md +++ /dev/null @@ -1,8 +0,0 @@ -# WalletWithBalancesBalances - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `main` | [AssetHolder](../../models/shared/AssetHolder.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WalletsTransaction.md b/docs/models/shared/WalletsTransaction.md deleted file mode 100644 index 18a042a89..000000000 --- a/docs/models/shared/WalletsTransaction.md +++ /dev/null @@ -1,15 +0,0 @@ -# WalletsTransaction - - -## Fields - -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `id` | *long* | :heavy_check_mark: | N/A | | -| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | | -| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | | -| `postCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | | -| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_check_mark: | N/A | | -| `preCommitVolumes` | Map\> | :heavy_minus_sign: | N/A | | -| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | -| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/WalletsVolume.md b/docs/models/shared/WalletsVolume.md deleted file mode 100644 index 4da3414a2..000000000 --- a/docs/models/shared/WalletsVolume.md +++ /dev/null @@ -1,10 +0,0 @@ -# WalletsVolume - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `balance` | *BigInteger* | :heavy_check_mark: | N/A | -| `input` | *BigInteger* | :heavy_check_mark: | N/A | -| `output` | *BigInteger* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/WebhooksErrorsEnum.md b/docs/models/shared/WebhooksErrorsEnum.md deleted file mode 100644 index b564c6863..000000000 --- a/docs/models/shared/WebhooksErrorsEnum.md +++ /dev/null @@ -1,18 +0,0 @@ -# WebhooksErrorsEnum - -## Example Usage - -```java -import com.formance.formance_sdk.models.shared.WebhooksErrorsEnum; - -WebhooksErrorsEnum value = WebhooksErrorsEnum.INTERNAL; -``` - - -## Values - -| Name | Value | -| ------------ | ------------ | -| `INTERNAL` | INTERNAL | -| `VALIDATION` | VALIDATION | -| `NOT_FOUND` | NOT_FOUND | \ No newline at end of file diff --git a/docs/models/shared/WorkflowInstanceHistoryStageOutput.md b/docs/models/shared/WorkflowInstanceHistoryStageOutput.md deleted file mode 100644 index 2ebd0ecc3..000000000 --- a/docs/models/shared/WorkflowInstanceHistoryStageOutput.md +++ /dev/null @@ -1,14 +0,0 @@ -# WorkflowInstanceHistoryStageOutput - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | -| `createTransaction` | [Optional\](../../models/shared/RevertTransactionResponse.md) | :heavy_minus_sign: | N/A | -| `debitWallet` | [Optional\](../../models/shared/ActivityDebitWalletOutput.md) | :heavy_minus_sign: | N/A | -| `getAccount` | [Optional\](../../models/shared/ActivityGetAccountOutput.md) | :heavy_minus_sign: | N/A | -| `getPayment` | [Optional\](../../models/shared/ActivityGetPaymentOutput.md) | :heavy_minus_sign: | N/A | -| `getWallet` | [Optional\](../../models/shared/ActivityGetWalletOutput.md) | :heavy_minus_sign: | N/A | -| `listWallets` | [Optional\](../../models/shared/OrchestrationListWalletsResponse.md) | :heavy_minus_sign: | N/A | -| `revertTransaction` | [Optional\](../../models/shared/RevertTransactionResponse.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/AssetHolder1.md b/docs/models/wallets/AssetHolder1.md new file mode 100644 index 000000000..02f754756 --- /dev/null +++ b/docs/models/wallets/AssetHolder1.md @@ -0,0 +1,8 @@ +# AssetHolder1 + + +## Fields + +| Field | Type | Required | Description | +| -------------------------- | -------------------------- | -------------------------- | -------------------------- | +| `assets` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/AssetHolder2.md b/docs/models/wallets/AssetHolder2.md new file mode 100644 index 000000000..2f55e3ed4 --- /dev/null +++ b/docs/models/wallets/AssetHolder2.md @@ -0,0 +1,11 @@ +# AssetHolder2 + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `assets` | Map\ | :heavy_check_mark: | N/A | +| `expiresAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | +| `name` | *String* | :heavy_check_mark: | N/A | +| `priority` | *Optional\* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Balance.md b/docs/models/wallets/Balance.md similarity index 100% rename from docs/models/shared/Balance.md rename to docs/models/wallets/Balance.md diff --git a/docs/models/shared/ConfirmHoldRequest.md b/docs/models/wallets/ConfirmHoldRequest.md similarity index 100% rename from docs/models/shared/ConfirmHoldRequest.md rename to docs/models/wallets/ConfirmHoldRequest.md diff --git a/docs/models/wallets/CreateBalanceResponse.md b/docs/models/wallets/CreateBalanceResponse.md new file mode 100644 index 000000000..461632886 --- /dev/null +++ b/docs/models/wallets/CreateBalanceResponse.md @@ -0,0 +1,8 @@ +# CreateBalanceResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | +| `balance` | [Balance](../../models/shared/Balance.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/CreateWalletRequest.md b/docs/models/wallets/CreateWalletRequest.md similarity index 100% rename from docs/models/shared/CreateWalletRequest.md rename to docs/models/wallets/CreateWalletRequest.md diff --git a/docs/models/shared/CreateWalletResponse.md b/docs/models/wallets/CreateWalletResponse.md similarity index 88% rename from docs/models/shared/CreateWalletResponse.md rename to docs/models/wallets/CreateWalletResponse.md index 2dec37bc8..d96eaa1d2 100644 --- a/docs/models/shared/CreateWalletResponse.md +++ b/docs/models/wallets/CreateWalletResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| `data` | [Wallet](../../models/shared/Wallet.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `wallet` | [Wallet](../../models/shared/Wallet.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/CreditWalletRequest.md b/docs/models/wallets/CreditWalletRequest.md new file mode 100644 index 000000000..be924067c --- /dev/null +++ b/docs/models/wallets/CreditWalletRequest.md @@ -0,0 +1,13 @@ +# CreditWalletRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `monetary` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | +| `balance` | *Optional\* | :heavy_minus_sign: | The balance to credit | +| `metadata` | Map\ | :heavy_minus_sign: | Metadata associated with the wallet. | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | +| `sources` | List\<[Subject](../../models/shared/Subject.md)> | :heavy_minus_sign: | N/A | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/DebitWalletRequest.md b/docs/models/wallets/DebitWalletRequest.md new file mode 100644 index 000000000..78e60cb15 --- /dev/null +++ b/docs/models/wallets/DebitWalletRequest.md @@ -0,0 +1,14 @@ +# DebitWalletRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `monetary` | [Monetary](../../models/shared/Monetary.md) | :heavy_check_mark: | N/A | +| `subject` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | +| `balances` | List\<*String*> | :heavy_minus_sign: | N/A | +| `description` | *Optional\* | :heavy_minus_sign: | N/A | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | +| `pending` | *Optional\* | :heavy_minus_sign: | Set to true to create a pending hold. If false, the wallet will be debited immediately. | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | cannot be used in conjunction with `pending` property | \ No newline at end of file diff --git a/docs/models/wallets/DebitWalletResponse.md b/docs/models/wallets/DebitWalletResponse.md new file mode 100644 index 000000000..7601689ed --- /dev/null +++ b/docs/models/wallets/DebitWalletResponse.md @@ -0,0 +1,8 @@ +# DebitWalletResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `hold` | [Hold1](../../models/shared/Hold1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/ErrorCode.md b/docs/models/wallets/ErrorCode.md new file mode 100644 index 000000000..333ebfa0a --- /dev/null +++ b/docs/models/wallets/ErrorCode.md @@ -0,0 +1,19 @@ +# ErrorCode + +## Example Usage + +```java +import com.formance.formance_sdk.models.wallets.ErrorCode; + +ErrorCode value = ErrorCode.VALIDATION; +``` + + +## Values + +| Name | Value | +| ------------------- | ------------------- | +| `VALIDATION` | VALIDATION | +| `INTERNAL_ERROR` | INTERNAL_ERROR | +| `INSUFFICIENT_FUND` | INSUFFICIENT_FUND | +| `HOLD_CLOSED` | HOLD_CLOSED | \ No newline at end of file diff --git a/docs/models/wallets/ErrorResponse.md b/docs/models/wallets/ErrorResponse.md new file mode 100644 index 000000000..dfffb882e --- /dev/null +++ b/docs/models/wallets/ErrorResponse.md @@ -0,0 +1,9 @@ +# ErrorResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `errorCode` | [ErrorCode](../../models/errors/ErrorCode.md) | :heavy_check_mark: | N/A | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/GetBalanceResponse.md b/docs/models/wallets/GetBalanceResponse.md new file mode 100644 index 000000000..590250e8f --- /dev/null +++ b/docs/models/wallets/GetBalanceResponse.md @@ -0,0 +1,8 @@ +# GetBalanceResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `assetHolder` | [AssetHolder2](../../models/shared/AssetHolder2.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/GetHoldResponse.md b/docs/models/wallets/GetHoldResponse.md new file mode 100644 index 000000000..ffd2f27d5 --- /dev/null +++ b/docs/models/wallets/GetHoldResponse.md @@ -0,0 +1,8 @@ +# GetHoldResponse + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | +| `hold` | [Hold2](../../models/shared/Hold2.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetHoldsResponse.md b/docs/models/wallets/GetHoldsResponse.md similarity index 100% rename from docs/models/shared/GetHoldsResponse.md rename to docs/models/wallets/GetHoldsResponse.md diff --git a/docs/models/shared/GetHoldsResponseCursor.md b/docs/models/wallets/GetHoldsResponseCursor.md similarity index 92% rename from docs/models/shared/GetHoldsResponseCursor.md rename to docs/models/wallets/GetHoldsResponseCursor.md index fee7a48b5..075517f3b 100644 --- a/docs/models/shared/GetHoldsResponseCursor.md +++ b/docs/models/wallets/GetHoldsResponseCursor.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| `data` | List\<[Hold](../../models/shared/Hold.md)> | :heavy_check_mark: | N/A | | +| `data` | List\<[Hold1](../../models/shared/Hold1.md)> | :heavy_check_mark: | N/A | | | `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | | `next` | *Optional\* | :heavy_minus_sign: | N/A | | | `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | diff --git a/docs/models/shared/GetTransactionsResponse.md b/docs/models/wallets/GetTransactionsResponse.md similarity index 100% rename from docs/models/shared/GetTransactionsResponse.md rename to docs/models/wallets/GetTransactionsResponse.md diff --git a/docs/models/wallets/GetTransactionsResponseCursor.md b/docs/models/wallets/GetTransactionsResponseCursor.md new file mode 100644 index 000000000..500fc42a6 --- /dev/null +++ b/docs/models/wallets/GetTransactionsResponseCursor.md @@ -0,0 +1,12 @@ +# GetTransactionsResponseCursor + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | -------------------------------------------------------- | +| `data` | List\<[Transaction](../../models/shared/Transaction.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/wallets/GetWalletResponse.md b/docs/models/wallets/GetWalletResponse.md new file mode 100644 index 000000000..bd1515c48 --- /dev/null +++ b/docs/models/wallets/GetWalletResponse.md @@ -0,0 +1,8 @@ +# GetWalletResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `walletWithBalances` | [WalletWithBalances](../../models/shared/WalletWithBalances.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/GetWalletSummaryResponse.md b/docs/models/wallets/GetWalletSummaryResponse.md similarity index 91% rename from docs/models/shared/GetWalletSummaryResponse.md rename to docs/models/wallets/GetWalletSummaryResponse.md index 9044dbd36..d75b49f49 100644 --- a/docs/models/shared/GetWalletSummaryResponse.md +++ b/docs/models/wallets/GetWalletSummaryResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `data` | [WalletSummary](../../models/shared/WalletSummary.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `walletSummary` | [WalletSummary](../../models/shared/WalletSummary.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/Hold1.md b/docs/models/wallets/Hold1.md new file mode 100644 index 000000000..3d9c5d5fd --- /dev/null +++ b/docs/models/wallets/Hold1.md @@ -0,0 +1,13 @@ +# Hold1 + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `subject` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | +| `asset` | *String* | :heavy_check_mark: | N/A | +| `description` | *String* | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | The unique ID of the hold. | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the hold. | +| `walletID` | *String* | :heavy_check_mark: | The ID of the wallet the hold is associated with. | \ No newline at end of file diff --git a/docs/models/wallets/Hold2.md b/docs/models/wallets/Hold2.md new file mode 100644 index 000000000..1e8a79f09 --- /dev/null +++ b/docs/models/wallets/Hold2.md @@ -0,0 +1,15 @@ +# Hold2 + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | +| `subject` | [Optional\](../../models/shared/Subject.md) | :heavy_minus_sign: | N/A | | +| `asset` | *String* | :heavy_check_mark: | N/A | | +| `description` | *String* | :heavy_check_mark: | N/A | | +| `id` | *String* | :heavy_check_mark: | The unique ID of the hold. | | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the hold. | | +| `originalAmount` | *BigInteger* | :heavy_check_mark: | Original amount on hold | 100 | +| `remaining` | *BigInteger* | :heavy_check_mark: | Remaining amount on hold | 10 | +| `walletID` | *String* | :heavy_check_mark: | The ID of the wallet the hold is associated with. | | \ No newline at end of file diff --git a/docs/models/wallets/LedgerAccountSubject.md b/docs/models/wallets/LedgerAccountSubject.md new file mode 100644 index 000000000..3e76e3dbd --- /dev/null +++ b/docs/models/wallets/LedgerAccountSubject.md @@ -0,0 +1,9 @@ +# LedgerAccountSubject + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `identifier` | *String* | :heavy_check_mark: | N/A | +| `type` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ListBalancesResponse.md b/docs/models/wallets/ListBalancesResponse.md similarity index 100% rename from docs/models/shared/ListBalancesResponse.md rename to docs/models/wallets/ListBalancesResponse.md diff --git a/docs/models/shared/ListBalancesResponseCursor.md b/docs/models/wallets/ListBalancesResponseCursor.md similarity index 100% rename from docs/models/shared/ListBalancesResponseCursor.md rename to docs/models/wallets/ListBalancesResponseCursor.md diff --git a/docs/models/wallets/ListWalletsResponse.md b/docs/models/wallets/ListWalletsResponse.md new file mode 100644 index 000000000..c43727057 --- /dev/null +++ b/docs/models/wallets/ListWalletsResponse.md @@ -0,0 +1,8 @@ +# ListWalletsResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `cursor` | [ListWalletsResponseCursor](../../models/shared/ListWalletsResponseCursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/ListWalletsResponseCursor.md b/docs/models/wallets/ListWalletsResponseCursor.md new file mode 100644 index 000000000..0d1c0e47e --- /dev/null +++ b/docs/models/wallets/ListWalletsResponseCursor.md @@ -0,0 +1,12 @@ +# ListWalletsResponseCursor + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `data` | List\<[Wallet](../../models/shared/Wallet.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *Optional\* | :heavy_minus_sign: | N/A | false | +| `next` | *Optional\* | :heavy_minus_sign: | N/A | | +| `pageSize` | *long* | :heavy_check_mark: | N/A | 15 | +| `previous` | *Optional\* | :heavy_minus_sign: | N/A | YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol= | \ No newline at end of file diff --git a/docs/models/wallets/Monetary.md b/docs/models/wallets/Monetary.md new file mode 100644 index 000000000..c31bbd6a5 --- /dev/null +++ b/docs/models/wallets/Monetary.md @@ -0,0 +1,9 @@ +# Monetary + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `amount` | *BigInteger* | :heavy_check_mark: | The amount of the monetary value. | +| `asset` | *String* | :heavy_check_mark: | The asset of the monetary value. | \ No newline at end of file diff --git a/docs/models/wallets/Posting.md b/docs/models/wallets/Posting.md new file mode 100644 index 000000000..8fca4a0b2 --- /dev/null +++ b/docs/models/wallets/Posting.md @@ -0,0 +1,11 @@ +# Posting + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `amount` | *BigInteger* | :heavy_check_mark: | N/A | 100 | +| `asset` | *String* | :heavy_check_mark: | N/A | COIN | +| `destination` | *String* | :heavy_check_mark: | N/A | users:002 | +| `source` | *String* | :heavy_check_mark: | N/A | users:001 | \ No newline at end of file diff --git a/docs/models/wallets/ServerInfo.md b/docs/models/wallets/ServerInfo.md new file mode 100644 index 000000000..375caaa22 --- /dev/null +++ b/docs/models/wallets/ServerInfo.md @@ -0,0 +1,8 @@ +# ServerInfo + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `version` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/Subject.md b/docs/models/wallets/Subject.md new file mode 100644 index 000000000..94112ee8e --- /dev/null +++ b/docs/models/wallets/Subject.md @@ -0,0 +1,2 @@ +# Subject + diff --git a/docs/models/wallets/Transaction.md b/docs/models/wallets/Transaction.md new file mode 100644 index 000000000..c783915d5 --- /dev/null +++ b/docs/models/wallets/Transaction.md @@ -0,0 +1,15 @@ +# Transaction + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `aggregatedVolumes` | Map\> | :heavy_minus_sign: | N/A | | +| `aggregatedVolumes1` | Map\> | :heavy_minus_sign: | N/A | | +| `id` | *long* | :heavy_check_mark: | N/A | | +| `ledger` | *Optional\* | :heavy_minus_sign: | N/A | | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | | +| `postings` | List\<[Posting](../../models/shared/Posting.md)> | :heavy_check_mark: | N/A | | +| `reference` | *Optional\* | :heavy_minus_sign: | N/A | ref:001 | +| `timestamp` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/models/wallets/Volume.md b/docs/models/wallets/Volume.md new file mode 100644 index 000000000..99aa86d6a --- /dev/null +++ b/docs/models/wallets/Volume.md @@ -0,0 +1,10 @@ +# Volume + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `balance` | *BigInteger* | :heavy_check_mark: | N/A | +| `input` | *BigInteger* | :heavy_check_mark: | N/A | +| `output` | *BigInteger* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Wallet.md b/docs/models/wallets/Wallet.md similarity index 100% rename from docs/models/shared/Wallet.md rename to docs/models/wallets/Wallet.md diff --git a/docs/models/wallets/WalletBalances.md b/docs/models/wallets/WalletBalances.md new file mode 100644 index 000000000..7e4eefe64 --- /dev/null +++ b/docs/models/wallets/WalletBalances.md @@ -0,0 +1,8 @@ +# WalletBalances + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `assetHolder` | [AssetHolder1](../../models/shared/AssetHolder1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/WalletSubject.md b/docs/models/wallets/WalletSubject.md new file mode 100644 index 000000000..5219e9430 --- /dev/null +++ b/docs/models/wallets/WalletSubject.md @@ -0,0 +1,10 @@ +# WalletSubject + + +## Fields + +| Field | Type | Required | Description | +| ------------------- | ------------------- | ------------------- | ------------------- | +| `balance` | *Optional\* | :heavy_minus_sign: | N/A | +| `identifier` | *String* | :heavy_check_mark: | N/A | +| `type` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/WalletSummary.md b/docs/models/wallets/WalletSummary.md new file mode 100644 index 000000000..169354efc --- /dev/null +++ b/docs/models/wallets/WalletSummary.md @@ -0,0 +1,12 @@ +# WalletSummary + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------- | +| `availableFunds` | Map\ | :heavy_check_mark: | N/A | +| `balances` | List\<[AssetHolder2](../../models/shared/AssetHolder2.md)> | :heavy_check_mark: | N/A | +| `expirableFunds` | Map\ | :heavy_check_mark: | N/A | +| `expiredFunds` | Map\ | :heavy_check_mark: | N/A | +| `holdFunds` | Map\ | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/WalletWithBalances.md b/docs/models/wallets/WalletWithBalances.md new file mode 100644 index 000000000..63f951906 --- /dev/null +++ b/docs/models/wallets/WalletWithBalances.md @@ -0,0 +1,13 @@ +# WalletWithBalances + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `balances` | [WalletWithBalancesBalances](../../models/shared/WalletWithBalancesBalances.md) | :heavy_check_mark: | N/A | +| `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | +| `id` | *String* | :heavy_check_mark: | The unique ID of the wallet. | +| `ledger` | *String* | :heavy_check_mark: | N/A | +| `metadata` | Map\ | :heavy_check_mark: | Metadata associated with the wallet. | +| `name` | *String* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/wallets/WalletWithBalancesBalances.md b/docs/models/wallets/WalletWithBalancesBalances.md new file mode 100644 index 000000000..a0da0dbdb --- /dev/null +++ b/docs/models/wallets/WalletWithBalancesBalances.md @@ -0,0 +1,8 @@ +# WalletWithBalancesBalances + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `assetHolder` | [AssetHolder1](../../models/shared/AssetHolder1.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/Attempt.md b/docs/models/webhooks/Attempt.md similarity index 98% rename from docs/models/shared/Attempt.md rename to docs/models/webhooks/Attempt.md index 1778b7992..6ad71bdb1 100644 --- a/docs/models/shared/Attempt.md +++ b/docs/models/webhooks/Attempt.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | Example | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | -| `config` | [WebhooksConfig](../../models/shared/WebhooksConfig.md) | :heavy_check_mark: | N/A | | +| `webhooksConfig` | [WebhooksConfig](../../models/shared/WebhooksConfig.md) | :heavy_check_mark: | N/A | | | `createdAt` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_check_mark: | N/A | | | `id` | *String* | :heavy_check_mark: | N/A | | | `nextRetryAfter` | [OffsetDateTime](https://docs.oracle.com/javase/8/docs/api/java/time/OffsetDateTime.html) | :heavy_minus_sign: | N/A | | diff --git a/docs/models/shared/AttemptResponse.md b/docs/models/webhooks/AttemptResponse.md similarity index 88% rename from docs/models/shared/AttemptResponse.md rename to docs/models/webhooks/AttemptResponse.md index ce956f24d..440beb103 100644 --- a/docs/models/shared/AttemptResponse.md +++ b/docs/models/webhooks/AttemptResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| `data` | [Attempt](../../models/shared/Attempt.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `attempt` | [Attempt](../../models/shared/Attempt.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConfigChangeSecret.md b/docs/models/webhooks/ConfigChangeSecret.md similarity index 100% rename from docs/models/shared/ConfigChangeSecret.md rename to docs/models/webhooks/ConfigChangeSecret.md diff --git a/docs/models/shared/ConfigResponse.md b/docs/models/webhooks/ConfigResponse.md similarity index 91% rename from docs/models/shared/ConfigResponse.md rename to docs/models/webhooks/ConfigResponse.md index 4fcf52d8a..cb008e57e 100644 --- a/docs/models/shared/ConfigResponse.md +++ b/docs/models/webhooks/ConfigResponse.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `data` | [WebhooksConfig](../../models/shared/WebhooksConfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `webhooksConfig` | [WebhooksConfig](../../models/shared/WebhooksConfig.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ConfigUser.md b/docs/models/webhooks/ConfigUser.md similarity index 100% rename from docs/models/shared/ConfigUser.md rename to docs/models/webhooks/ConfigUser.md diff --git a/docs/models/webhooks/ConfigsResponse.md b/docs/models/webhooks/ConfigsResponse.md new file mode 100644 index 000000000..5685f2a2b --- /dev/null +++ b/docs/models/webhooks/ConfigsResponse.md @@ -0,0 +1,8 @@ +# ConfigsResponse + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `cursor` | [Cursor](../../models/shared/Cursor.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/webhooks/Cursor.md b/docs/models/webhooks/Cursor.md new file mode 100644 index 000000000..cfaa2fb21 --- /dev/null +++ b/docs/models/webhooks/Cursor.md @@ -0,0 +1,9 @@ +# Cursor + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | +| `data` | List\<[WebhooksConfig](../../models/shared/WebhooksConfig.md)> | :heavy_check_mark: | N/A | | +| `hasMore` | *boolean* | :heavy_check_mark: | N/A | false | \ No newline at end of file diff --git a/docs/models/webhooks/ErrorResponse.md b/docs/models/webhooks/ErrorResponse.md new file mode 100644 index 000000000..88c4ada55 --- /dev/null +++ b/docs/models/webhooks/ErrorResponse.md @@ -0,0 +1,10 @@ +# ErrorResponse + + +## Fields + +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `errorsEnum` | [ErrorsEnum](../../models/shared/ErrorsEnum.md) | :heavy_check_mark: | N/A | VALIDATION | +| `details` | *Optional\* | :heavy_minus_sign: | N/A | https://play.numscript.org/?payload=eyJlcnJvciI6ImFjY291bnQgaGFkIGluc3VmZmljaWVudCBmdW5kcyJ9 | +| `errorMessage` | *String* | :heavy_check_mark: | N/A | [VALIDATION] invalid 'cursor' query param | \ No newline at end of file diff --git a/docs/models/webhooks/ErrorsEnum.md b/docs/models/webhooks/ErrorsEnum.md new file mode 100644 index 000000000..40216fbf1 --- /dev/null +++ b/docs/models/webhooks/ErrorsEnum.md @@ -0,0 +1,18 @@ +# ErrorsEnum + +## Example Usage + +```java +import com.formance.formance_sdk.models.webhooks.ErrorsEnum; + +ErrorsEnum value = ErrorsEnum.INTERNAL; +``` + + +## Values + +| Name | Value | +| ------------ | ------------ | +| `INTERNAL` | INTERNAL | +| `VALIDATION` | VALIDATION | +| `NOT_FOUND` | NOT_FOUND | \ No newline at end of file diff --git a/docs/models/shared/WebhooksConfig.md b/docs/models/webhooks/WebhooksConfig.md similarity index 100% rename from docs/models/shared/WebhooksConfig.md rename to docs/models/webhooks/WebhooksConfig.md diff --git a/docs/sdks/authv1/README.md b/docs/sdks/authv1/README.md index fc61bbe41..5f8012342 100644 --- a/docs/sdks/authv1/README.md +++ b/docs/sdks/authv1/README.md @@ -9,7 +9,7 @@ * [deleteClient](#deleteclient) - Delete client * [deleteSecret](#deletesecret) - Delete a secret from a client * [getOIDCWellKnowns](#getoidcwellknowns) - Retrieve OpenID connect well-knowns. -* [getServerInfo](#getserverinfo) - Get server info +* [getServerInfoAuth](#getserverinfoauth) - Get server info * [listClients](#listclients) - List clients * [listUsers](#listusers) - List users * [readClient](#readclient) - Read client @@ -54,9 +54,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [CreateClientRequest](../../models/shared/CreateClientRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `request` | [ClientOptions2](../../models/shared/ClientOptions2.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -115,6 +116,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [CreateSecretRequest](../../models/operations/CreateSecretRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -171,6 +173,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [DeleteClientRequest](../../models/operations/DeleteClientRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -228,6 +231,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [DeleteSecretRequest](../../models/operations/DeleteSecretRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -273,6 +277,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[GetOIDCWellKnownsResponse](../../models/operations/GetOIDCWellKnownsResponse.md)** @@ -283,18 +293,18 @@ public class Application { | ---------------------- | ---------------------- | ---------------------- | | models/errors/SDKError | 4XX, 5XX | \*/\* | -## getServerInfo +## getServerInfoAuth Get server info ### Example Usage - + ```java package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.operations.GetServerInfoResponse; +import com.formance.formance_sdk.models.operations.GetServerInfoAuthResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -309,7 +319,7 @@ public class Application { .build()) .build(); - GetServerInfoResponse res = sdk.auth().v1().getServerInfo() + GetServerInfoAuthResponse res = sdk.auth().v1().getServerInfoAuth() .call(); if (res.serverInfo().isPresent()) { @@ -319,9 +329,15 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response -**[GetServerInfoResponse](../../models/operations/GetServerInfoResponse.md)** +**[GetServerInfoAuthResponse](../../models/operations/GetServerInfoAuthResponse.md)** ### Errors @@ -365,6 +381,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[ListClientsResponse](../../models/operations/ListClientsResponse.md)** @@ -411,6 +433,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[ListUsersResponse](../../models/operations/ListUsersResponse.md)** @@ -468,6 +496,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [ReadClientRequest](../../models/operations/ReadClientRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -526,6 +555,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `request` | [ReadUserRequest](../../models/operations/ReadUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -572,8 +602,8 @@ public class Application { .request(req) .call(); - if (res.updateClientResponse().isPresent()) { - System.out.println(res.updateClientResponse().get()); + if (res.createClientResponse().isPresent()) { + System.out.println(res.createClientResponse().get()); } } } @@ -584,6 +614,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [UpdateClientRequest](../../models/operations/UpdateClientRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response diff --git a/docs/sdks/ledger/README.md b/docs/sdks/ledger/README.md index fe1191dd0..a51850d56 100644 --- a/docs/sdks/ledger/README.md +++ b/docs/sdks/ledger/README.md @@ -18,14 +18,14 @@ Show server information package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetInfoResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -37,23 +37,29 @@ public class Application { V2GetInfoResponse res = sdk.ledger().getInfo() .call(); - if (res.v2ConfigInfoResponse().isPresent()) { - System.out.println(res.v2ConfigInfoResponse().get()); + if (res.v2ConfigInfo().isPresent()) { + System.out.println(res.v2ConfigInfo().get()); } } } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[V2GetInfoResponse](../../models/operations/V2GetInfoResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getMetrics @@ -66,14 +72,14 @@ Read in memory metrics package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.GetMetricsResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -92,13 +98,19 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[GetMetricsResponse](../../models/operations/GetMetricsResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/ledgerv1/README.md b/docs/sdks/ledgerv1/README.md index 35e6e341b..5ff330605 100644 --- a/docs/sdks/ledgerv1/README.md +++ b/docs/sdks/ledgerv1/README.md @@ -10,14 +10,14 @@ * [countAccounts](#countaccounts) - Count the accounts from a ledger * [countTransactions](#counttransactions) - Count the transactions from a ledger * [createTransaction](#createtransaction) - Create a new transaction to a ledger -* [getAccount](#getaccount) - Get account by its address +* [getAccountLedger](#getaccountledger) - Get account by its address * [getBalances](#getbalances) - Get the balances from a ledger's account * [getBalancesAggregated](#getbalancesaggregated) - Get the aggregated balances from selected accounts * [getInfo](#getinfo) - Show server information * [getLedgerInfo](#getledgerinfo) - Get information about a ledger * [getMapping](#getmapping) - Get the mapping of a ledger * [getTransaction](#gettransaction) - Get transaction from a ledger by its ID -* [listAccounts](#listaccounts) - List accounts from a ledger +* [listAccountsLedger](#listaccountsledger) - List accounts from a ledger * [listLogs](#listlogs) - List the logs from a ledger * [listTransactions](#listtransactions) - List transactions from a ledger * [readStats](#readstats) - Get statistics from a ledger @@ -36,17 +36,17 @@ Create a new batch of transactions to a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.*; import com.formance.formance_sdk.models.operations.CreateTransactionsRequest; import com.formance.formance_sdk.models.operations.CreateTransactionsResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; import java.util.List; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -88,6 +88,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [CreateTransactionsRequest](../../models/operations/CreateTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -95,10 +96,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## addMetadataOnTransaction @@ -111,7 +112,7 @@ Set the metadata of a transaction by its ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.AddMetadataOnTransactionRequest; import com.formance.formance_sdk.models.operations.AddMetadataOnTransactionResponse; import com.formance.formance_sdk.models.shared.Security; @@ -121,7 +122,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -151,6 +152,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [AddMetadataOnTransactionRequest](../../models/operations/AddMetadataOnTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -158,10 +160,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## addMetadataToAccount @@ -174,7 +176,7 @@ Add metadata to an account package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.AddMetadataToAccountRequest; import com.formance.formance_sdk.models.operations.AddMetadataToAccountResponse; import com.formance.formance_sdk.models.shared.Security; @@ -183,7 +185,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -215,6 +217,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [AddMetadataToAccountRequest](../../models/operations/AddMetadataToAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -222,10 +225,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## countAccounts @@ -238,7 +241,7 @@ Count the accounts from a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.CountAccountsRequest; import com.formance.formance_sdk.models.operations.CountAccountsResponse; import com.formance.formance_sdk.models.shared.Security; @@ -247,7 +250,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -326,6 +329,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [CountAccountsRequest](../../models/operations/CountAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -333,10 +337,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## countTransactions @@ -349,14 +353,14 @@ Count the transactions from a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.*; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -389,6 +393,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [CountTransactionsRequest](../../models/operations/CountTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -396,10 +401,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createTransaction @@ -412,10 +417,10 @@ Create a new transaction to a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.*; import com.formance.formance_sdk.models.operations.CreateTransactionRequest; import com.formance.formance_sdk.models.operations.CreateTransactionResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; import java.util.List; @@ -423,7 +428,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -468,6 +473,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [CreateTransactionRequest](../../models/operations/CreateTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -475,31 +481,31 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | -## getAccount +## getAccountLedger Get account by its address ### Example Usage - + ```java package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; -import com.formance.formance_sdk.models.operations.GetAccountRequest; -import com.formance.formance_sdk.models.operations.GetAccountResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.operations.GetAccountLedgerRequest; +import com.formance.formance_sdk.models.operations.GetAccountLedgerResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -508,12 +514,12 @@ public class Application { .build()) .build(); - GetAccountRequest req = GetAccountRequest.builder() + GetAccountLedgerRequest req = GetAccountLedgerRequest.builder() .address("users:001") .ledger("ledger001") .build(); - GetAccountResponse res = sdk.ledger().v1().getAccount() + GetAccountLedgerResponse res = sdk.ledger().v1().getAccountLedger() .request(req) .call(); @@ -526,20 +532,21 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [GetAccountRequest](../../models/operations/GetAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | +| `request` | [GetAccountLedgerRequest](../../models/operations/GetAccountLedgerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[GetAccountResponse](../../models/operations/GetAccountResponse.md)** +**[GetAccountLedgerResponse](../../models/operations/GetAccountLedgerResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getBalances @@ -552,7 +559,7 @@ Get the balances from a ledger's account package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetBalancesRequest; import com.formance.formance_sdk.models.operations.GetBalancesResponse; import com.formance.formance_sdk.models.shared.Security; @@ -560,7 +567,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -592,6 +599,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [GetBalancesRequest](../../models/operations/GetBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -599,10 +607,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getBalancesAggregated @@ -615,7 +623,7 @@ Get the aggregated balances from selected accounts package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedRequest; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedResponse; import com.formance.formance_sdk.models.shared.Security; @@ -623,7 +631,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -653,6 +661,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [GetBalancesAggregatedRequest](../../models/operations/GetBalancesAggregatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -660,10 +669,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getInfo @@ -676,14 +685,14 @@ Show server information package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetInfoResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -702,16 +711,22 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[GetInfoResponse](../../models/operations/GetInfoResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getLedgerInfo @@ -724,7 +739,7 @@ Get information about a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetLedgerInfoRequest; import com.formance.formance_sdk.models.operations.GetLedgerInfoResponse; import com.formance.formance_sdk.models.shared.Security; @@ -732,7 +747,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -761,6 +776,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [GetLedgerInfoRequest](../../models/operations/GetLedgerInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -768,10 +784,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getMapping @@ -784,7 +800,7 @@ Get the mapping of a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetMappingRequest; import com.formance.formance_sdk.models.operations.GetMappingResponse; import com.formance.formance_sdk.models.shared.Security; @@ -792,7 +808,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -821,6 +837,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [GetMappingRequest](../../models/operations/GetMappingRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -828,10 +845,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getTransaction @@ -844,7 +861,7 @@ Get transaction from a ledger by its ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetTransactionRequest; import com.formance.formance_sdk.models.operations.GetTransactionResponse; import com.formance.formance_sdk.models.shared.Security; @@ -853,7 +870,7 @@ import java.math.BigInteger; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -883,6 +900,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [GetTransactionRequest](../../models/operations/GetTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -890,32 +908,32 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | -## listAccounts +## listAccountsLedger List accounts from a ledger, sorted by address in descending order. ### Example Usage - + ```java package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; -import com.formance.formance_sdk.models.operations.ListAccountsRequest; -import com.formance.formance_sdk.models.operations.ListAccountsResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerRequest; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -924,7 +942,7 @@ public class Application { .build()) .build(); - ListAccountsRequest req = ListAccountsRequest.builder() + ListAccountsLedgerRequest req = ListAccountsLedgerRequest.builder() .ledger("ledger001") .address("users:.+") .after("users:003") @@ -984,7 +1002,7 @@ public class Application { .pageSize(100L) .build(); - ListAccountsResponse res = sdk.ledger().v1().listAccounts() + ListAccountsLedgerResponse res = sdk.ledger().v1().listAccountsLedger() .request(req) .call(); @@ -997,20 +1015,21 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [ListAccountsRequest](../../models/operations/ListAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [ListAccountsLedgerRequest](../../models/operations/ListAccountsLedgerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[ListAccountsResponse](../../models/operations/ListAccountsResponse.md)** +**[ListAccountsLedgerResponse](../../models/operations/ListAccountsLedgerResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listLogs @@ -1023,7 +1042,7 @@ List the logs from a ledger, sorted by ID in descending order. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.ListLogsRequest; import com.formance.formance_sdk.models.operations.ListLogsResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1031,7 +1050,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1063,6 +1082,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `request` | [ListLogsRequest](../../models/operations/ListLogsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1070,10 +1090,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listTransactions @@ -1086,7 +1106,7 @@ List transactions from a ledger, sorted by txid in descending order. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.ListTransactionsRequest; import com.formance.formance_sdk.models.operations.ListTransactionsResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1094,7 +1114,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1130,6 +1150,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [ListTransactionsRequest](../../models/operations/ListTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1137,10 +1158,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## readStats @@ -1154,7 +1175,7 @@ Get statistics from a ledger. (aggregate metrics on accounts and transactions) package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.ReadStatsRequest; import com.formance.formance_sdk.models.operations.ReadStatsResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1162,7 +1183,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1191,6 +1212,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [ReadStatsRequest](../../models/operations/ReadStatsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1198,10 +1220,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## revertTransaction @@ -1214,7 +1236,7 @@ Revert a ledger transaction by its ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.RevertTransactionRequest; import com.formance.formance_sdk.models.operations.RevertTransactionResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1223,7 +1245,7 @@ import java.math.BigInteger; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1253,6 +1275,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [RevertTransactionRequest](../../models/operations/RevertTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1260,10 +1283,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## ~~runScript~~ @@ -1279,9 +1302,9 @@ This route is deprecated, and has been merged into `POST /{ledger}/transactions` package hello.world; import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.ledger.Script; import com.formance.formance_sdk.models.operations.RunScriptRequest; import com.formance.formance_sdk.models.operations.RunScriptResponse; -import com.formance.formance_sdk.models.shared.Script; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.Map; @@ -1324,6 +1347,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [RunScriptRequest](../../models/operations/RunScriptRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1346,7 +1370,7 @@ Update the mapping of a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateMappingRequest; import com.formance.formance_sdk.models.operations.UpdateMappingResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1355,7 +1379,7 @@ import java.util.Optional; public class Application { - public static void main(String[] args) throws ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1385,6 +1409,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [UpdateMappingRequest](../../models/operations/UpdateMappingRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1392,7 +1417,7 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| --------------------------- | --------------------------- | --------------------------- | -| models/errors/ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| --------------------------------- | --------------------------------- | --------------------------------- | +| models/errors/ErrorsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/ledgerv2/README.md b/docs/sdks/ledgerv2/README.md index c6db5ff21..566968ba2 100644 --- a/docs/sdks/ledgerv2/README.md +++ b/docs/sdks/ledgerv2/README.md @@ -59,7 +59,7 @@ Set the metadata of a transaction by its ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionRequest; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionResponse; import com.formance.formance_sdk.models.shared.Security; @@ -69,7 +69,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -101,6 +101,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `request` | [V2AddMetadataOnTransactionRequest](../../models/operations/V2AddMetadataOnTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -108,10 +109,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## addMetadataToAccount @@ -124,7 +125,7 @@ Add metadata to an account package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2AddMetadataToAccountRequest; import com.formance.formance_sdk.models.operations.V2AddMetadataToAccountResponse; import com.formance.formance_sdk.models.shared.Security; @@ -133,7 +134,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -165,6 +166,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [V2AddMetadataToAccountRequest](../../models/operations/V2AddMetadataToAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -172,10 +174,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## countAccounts @@ -188,15 +190,16 @@ Count the accounts from a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CountAccountsRequest; import com.formance.formance_sdk.models.operations.V2CountAccountsResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -206,6 +209,9 @@ public class Application { .build(); V2CountAccountsRequest req = V2CountAccountsRequest.builder() + .requestBody(Map.ofEntries( + Map.entry("key", ""), + Map.entry("key1", ""))) .ledger("ledger001") .build(); @@ -223,6 +229,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2CountAccountsRequest](../../models/operations/V2CountAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -230,10 +237,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## countTransactions @@ -246,15 +253,16 @@ Count the transactions from a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CountTransactionsRequest; import com.formance.formance_sdk.models.operations.V2CountTransactionsResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -264,6 +272,8 @@ public class Application { .build(); V2CountTransactionsRequest req = V2CountTransactionsRequest.builder() + .requestBody(Map.ofEntries( + Map.entry("key", ""))) .ledger("ledger001") .build(); @@ -281,6 +291,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [V2CountTransactionsRequest](../../models/operations/V2CountTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -288,10 +299,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createBulk @@ -304,17 +315,17 @@ Bulk request package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2BaseBulkElement; import com.formance.formance_sdk.models.operations.V2CreateBulkRequest; import com.formance.formance_sdk.models.operations.V2CreateBulkResponse; import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.V2BulkElementRevertTransaction; import java.lang.Exception; import java.util.List; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -325,7 +336,7 @@ public class Application { V2CreateBulkRequest req = V2CreateBulkRequest.builder() .requestBody(List.of( - V2BulkElementRevertTransaction.builder() + V2BaseBulkElement.builder() .action("REVERT_TRANSACTION") .build())) .ledger("ledger001") @@ -351,6 +362,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V2CreateBulkRequest](../../models/operations/V2CreateBulkRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -358,10 +370,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createExporter @@ -374,25 +386,20 @@ Create exporter package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ExporterConfiguration2; import com.formance.formance_sdk.models.operations.V2CreateExporterResponse; -import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.V2CreateExporterRequest; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); - V2CreateExporterRequest req = V2CreateExporterRequest.builder() + V2ExporterConfiguration2 req = V2ExporterConfiguration2.builder() .config(Map.ofEntries( Map.entry("key", ""))) .driver("") @@ -402,8 +409,8 @@ public class Application { .request(req) .call(); - if (res.object().isPresent()) { - System.out.println(res.object().get()); + if (res.v2CreateExporterResponse().isPresent()) { + System.out.println(res.v2CreateExporterResponse().get()); } } } @@ -411,9 +418,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [V2CreateExporterRequest](../../models/shared/V2CreateExporterRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | +| `request` | [V2ExporterConfiguration2](../../models/shared/V2ExporterConfiguration2.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -421,10 +429,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createLedger @@ -437,16 +445,16 @@ Create a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest; import com.formance.formance_sdk.models.operations.V2CreateLedgerResponse; import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.V2CreateLedgerRequest; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -457,7 +465,7 @@ public class Application { com.formance.formance_sdk.models.operations.V2CreateLedgerRequest req = com.formance.formance_sdk.models.operations.V2CreateLedgerRequest.builder() .v2CreateLedgerRequest(V2CreateLedgerRequest.builder() - .metadata(Map.ofEntries( + .v2Metadata(Map.ofEntries( Map.entry("admin", "true"))) .build()) .ledger("ledger001") @@ -477,6 +485,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V2CreateLedgerRequest](../../models/operations/V2CreateLedgerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -484,10 +493,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createPipeline @@ -500,21 +509,16 @@ Create pipeline package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CreatePipelineRequest; import com.formance.formance_sdk.models.operations.V2CreatePipelineResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2CreatePipelineRequest req = V2CreatePipelineRequest.builder() @@ -525,8 +529,8 @@ public class Application { .request(req) .call(); - if (res.object().isPresent()) { - System.out.println(res.object().get()); + if (res.v2CreatePipelineResponse().isPresent()) { + System.out.println(res.v2CreatePipelineResponse().get()); } } } @@ -537,6 +541,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V2CreatePipelineRequest](../../models/operations/V2CreatePipelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -544,10 +549,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createTransaction @@ -560,10 +565,10 @@ Create a new transaction to a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.*; import com.formance.formance_sdk.models.operations.V2CreateTransactionRequest; import com.formance.formance_sdk.models.operations.V2CreateTransactionResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; import java.util.List; @@ -571,7 +576,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -582,7 +587,7 @@ public class Application { V2CreateTransactionRequest req = V2CreateTransactionRequest.builder() .v2PostTransaction(V2PostTransaction.builder() - .metadata(Map.ofEntries( + .v2Metadata(Map.ofEntries( Map.entry("admin", "true"))) .accountMetadata(Map.ofEntries( Map.entry("key", Map.ofEntries( @@ -628,6 +633,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [V2CreateTransactionRequest](../../models/operations/V2CreateTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -635,10 +641,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deleteAccountMetadata @@ -651,7 +657,7 @@ Delete metadata by key package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteAccountMetadataRequest; import com.formance.formance_sdk.models.operations.V2DeleteAccountMetadataResponse; import com.formance.formance_sdk.models.shared.Security; @@ -659,7 +665,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -688,6 +694,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V2DeleteAccountMetadataRequest](../../models/operations/V2DeleteAccountMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -695,10 +702,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deleteBucket @@ -711,7 +718,7 @@ Delete a bucket by marking all ledgers in the bucket as deleted (soft delete). A package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteBucketRequest; import com.formance.formance_sdk.models.operations.V2DeleteBucketResponse; import com.formance.formance_sdk.models.shared.Security; @@ -719,7 +726,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -748,6 +755,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V2DeleteBucketRequest](../../models/operations/V2DeleteBucketRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -755,10 +763,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deleteExporter @@ -771,21 +779,16 @@ Delete exporter package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteExporterRequest; import com.formance.formance_sdk.models.operations.V2DeleteExporterResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2DeleteExporterRequest req = V2DeleteExporterRequest.builder() @@ -806,6 +809,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V2DeleteExporterRequest](../../models/operations/V2DeleteExporterRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -813,10 +817,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deleteLedgerMetadata @@ -829,7 +833,7 @@ Delete ledger metadata by key package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteLedgerMetadataRequest; import com.formance.formance_sdk.models.operations.V2DeleteLedgerMetadataResponse; import com.formance.formance_sdk.models.shared.Security; @@ -837,7 +841,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -865,6 +869,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [V2DeleteLedgerMetadataRequest](../../models/operations/V2DeleteLedgerMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -872,10 +877,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deletePipeline @@ -888,21 +893,16 @@ Delete pipeline package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeletePipelineRequest; import com.formance.formance_sdk.models.operations.V2DeletePipelineResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2DeletePipelineRequest req = V2DeletePipelineRequest.builder() @@ -924,6 +924,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V2DeletePipelineRequest](../../models/operations/V2DeletePipelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -931,10 +932,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deleteTransactionMetadata @@ -947,7 +948,7 @@ Delete metadata by key package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteTransactionMetadataRequest; import com.formance.formance_sdk.models.operations.V2DeleteTransactionMetadataResponse; import com.formance.formance_sdk.models.shared.Security; @@ -956,7 +957,7 @@ import java.math.BigInteger; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -985,6 +986,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | `request` | [V2DeleteTransactionMetadataRequest](../../models/operations/V2DeleteTransactionMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -992,10 +994,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## exportLogs @@ -1042,6 +1044,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V2ExportLogsRequest](../../models/operations/V2ExportLogsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1064,7 +1067,7 @@ Get account by its address package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetAccountRequest; import com.formance.formance_sdk.models.operations.V2GetAccountResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1072,7 +1075,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1102,6 +1105,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V2GetAccountRequest](../../models/operations/V2GetAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1109,10 +1113,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getBalancesAggregated @@ -1125,15 +1129,16 @@ Get the aggregated balances from selected accounts package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetBalancesAggregatedRequest; import com.formance.formance_sdk.models.operations.V2GetBalancesAggregatedResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1143,6 +1148,10 @@ public class Application { .build(); V2GetBalancesAggregatedRequest req = V2GetBalancesAggregatedRequest.builder() + .requestBody(Map.ofEntries( + Map.entry("key", ""), + Map.entry("key1", ""), + Map.entry("key2", ""))) .ledger("ledger001") .build(); @@ -1162,6 +1171,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V2GetBalancesAggregatedRequest](../../models/operations/V2GetBalancesAggregatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1169,10 +1179,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getExporterState @@ -1185,21 +1195,16 @@ Get exporter state package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetExporterStateRequest; import com.formance.formance_sdk.models.operations.V2GetExporterStateResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2GetExporterStateRequest req = V2GetExporterStateRequest.builder() @@ -1210,8 +1215,8 @@ public class Application { .request(req) .call(); - if (res.object().isPresent()) { - System.out.println(res.object().get()); + if (res.v2GetExporterStateResponse().isPresent()) { + System.out.println(res.v2GetExporterStateResponse().get()); } } } @@ -1222,6 +1227,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [V2GetExporterStateRequest](../../models/operations/V2GetExporterStateRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1229,10 +1235,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getLedger @@ -1245,7 +1251,7 @@ Get a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetLedgerRequest; import com.formance.formance_sdk.models.operations.V2GetLedgerResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1253,7 +1259,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1282,6 +1288,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [V2GetLedgerRequest](../../models/operations/V2GetLedgerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1289,10 +1296,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getLedgerInfo @@ -1305,7 +1312,7 @@ Get information about a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetLedgerInfoRequest; import com.formance.formance_sdk.models.operations.V2GetLedgerInfoResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1313,7 +1320,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1342,6 +1349,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2GetLedgerInfoRequest](../../models/operations/V2GetLedgerInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1349,10 +1357,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getPipelineState @@ -1365,21 +1373,16 @@ Get pipeline state package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetPipelineStateRequest; import com.formance.formance_sdk.models.operations.V2GetPipelineStateResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2GetPipelineStateRequest req = V2GetPipelineStateRequest.builder() @@ -1391,8 +1394,8 @@ public class Application { .request(req) .call(); - if (res.object().isPresent()) { - System.out.println(res.object().get()); + if (res.v2GetPipelineStateResponse().isPresent()) { + System.out.println(res.v2GetPipelineStateResponse().get()); } } } @@ -1403,6 +1406,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [V2GetPipelineStateRequest](../../models/operations/V2GetPipelineStateRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1410,10 +1414,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getSchema @@ -1426,7 +1430,7 @@ Get a schema for a ledger by version package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetSchemaRequest; import com.formance.formance_sdk.models.operations.V2GetSchemaResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1434,7 +1438,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1464,6 +1468,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [V2GetSchemaRequest](../../models/operations/V2GetSchemaRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1471,10 +1476,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getTransaction @@ -1487,7 +1492,7 @@ Get transaction from a ledger by its ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetTransactionRequest; import com.formance.formance_sdk.models.operations.V2GetTransactionResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1496,7 +1501,7 @@ import java.math.BigInteger; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1526,6 +1531,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V2GetTransactionRequest](../../models/operations/V2GetTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1533,10 +1539,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getVolumesWithBalances @@ -1549,15 +1555,16 @@ Get list of volumes with balances for (account/asset) package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetVolumesWithBalancesRequest; import com.formance.formance_sdk.models.operations.V2GetVolumesWithBalancesResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1567,6 +1574,8 @@ public class Application { .build(); V2GetVolumesWithBalancesRequest req = V2GetVolumesWithBalancesRequest.builder() + .requestBody(Map.ofEntries( + Map.entry("key", ""))) .ledger("ledger001") .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .groupBy(3L) @@ -1590,6 +1599,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [V2GetVolumesWithBalancesRequest](../../models/operations/V2GetVolumesWithBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1597,10 +1607,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## importLogs @@ -1611,7 +1621,7 @@ public class Application { package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ImportLogsRequest; import com.formance.formance_sdk.models.operations.V2ImportLogsResponse; import com.formance.formance_sdk.models.shared.Security; @@ -1620,7 +1630,7 @@ import java.nio.charset.StandardCharsets; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1647,6 +1657,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V2ImportLogsRequest](../../models/operations/V2ImportLogsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1654,10 +1665,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## insertSchema @@ -1670,16 +1681,16 @@ Insert a schema for a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.*; import com.formance.formance_sdk.models.operations.V2InsertSchemaRequest; import com.formance.formance_sdk.models.operations.V2InsertSchemaResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1689,17 +1700,17 @@ public class Application { .build(); V2InsertSchemaRequest req = V2InsertSchemaRequest.builder() - .v2SchemaData(V2SchemaData.builder() - .chart(Map.ofEntries( + .v2SchemaData(V2SchemaData2.builder() + .v2ChartOfAccounts(Map.ofEntries( Map.entry("users", V2ChartSegment.builder() .additionalProperties(Map.ofEntries( Map.entry("$userID", V2ChartSegment.builder() .dotPattern("^[0-9]{16}$") .build()))) .build()))) - .queries(Map.ofEntries( + .v2QueryTemplates(Map.ofEntries( Map.entry("key", V2QueryTemplate.builder() - .params(V2QueryParams.of(QueryTemplateAccountParams.builder() + .v2QueryParams(V2QueryParams.of(QueryTemplateAccountParams.builder() .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .pageSize(100L) .sort("id:desc") @@ -1724,6 +1735,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V2InsertSchemaRequest](../../models/operations/V2InsertSchemaRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1731,10 +1743,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listAccounts @@ -1747,15 +1759,16 @@ List accounts from a ledger, sorted by address in descending order. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListAccountsRequest; import com.formance.formance_sdk.models.operations.V2ListAccountsResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1765,6 +1778,8 @@ public class Application { .build(); V2ListAccountsRequest req = V2ListAccountsRequest.builder() + .requestBody(Map.ofEntries( + )) .ledger("ledger001") .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .pageSize(100L) @@ -1787,6 +1802,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V2ListAccountsRequest](../../models/operations/V2ListAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1794,10 +1810,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listExporters @@ -1810,42 +1826,43 @@ List exporters package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListExportersResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2ListExportersResponse res = sdk.ledger().v2().listExporters() .call(); - if (res.object().isPresent()) { - System.out.println(res.object().get()); + if (res.v2ExportersCursorResponse().isPresent()) { + System.out.println(res.v2ExportersCursorResponse().get()); } } } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[V2ListExportersResponse](../../models/operations/V2ListExportersResponse.md)** ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listLedgers @@ -1858,15 +1875,16 @@ List ledgers package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListLedgersRequest; import com.formance.formance_sdk.models.operations.V2ListLedgersResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1876,6 +1894,10 @@ public class Application { .build(); V2ListLedgersRequest req = V2ListLedgersRequest.builder() + .requestBody(Map.ofEntries( + Map.entry("key", ""), + Map.entry("key1", ""), + Map.entry("key2", ""))) .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .pageSize(100L) .sort("id:desc") @@ -1897,6 +1919,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2ListLedgersRequest](../../models/operations/V2ListLedgersRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1904,10 +1927,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listLogs @@ -1920,15 +1943,16 @@ List the logs from a ledger, sorted by ID in descending order. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListLogsRequest; import com.formance.formance_sdk.models.operations.V2ListLogsResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -1938,6 +1962,8 @@ public class Application { .build(); V2ListLogsRequest req = V2ListLogsRequest.builder() + .requestBody(Map.ofEntries( + )) .ledger("ledger001") .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .pageSize(100L) @@ -1960,6 +1986,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [V2ListLogsRequest](../../models/operations/V2ListLogsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1967,10 +1994,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listPipelines @@ -1983,21 +2010,16 @@ List pipelines package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListPipelinesRequest; import com.formance.formance_sdk.models.operations.V2ListPipelinesResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2ListPipelinesRequest req = V2ListPipelinesRequest.builder() @@ -2008,8 +2030,8 @@ public class Application { .request(req) .call(); - if (res.object().isPresent()) { - System.out.println(res.object().get()); + if (res.v2PipelinesCursorResponse().isPresent()) { + System.out.println(res.v2PipelinesCursorResponse().get()); } } } @@ -2020,6 +2042,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2ListPipelinesRequest](../../models/operations/V2ListPipelinesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2027,10 +2050,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listSchemas @@ -2043,7 +2066,7 @@ List all schemas for a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListSchemasRequest; import com.formance.formance_sdk.models.operations.V2ListSchemasResponse; import com.formance.formance_sdk.models.shared.Security; @@ -2051,7 +2074,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2080,6 +2103,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2ListSchemasRequest](../../models/operations/V2ListSchemasRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2087,10 +2111,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listTransactions @@ -2103,15 +2127,16 @@ List transactions from a ledger, sorted by id in descending order. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ListTransactionsRequest; import com.formance.formance_sdk.models.operations.V2ListTransactionsResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2121,6 +2146,8 @@ public class Application { .build(); V2ListTransactionsRequest req = V2ListTransactionsRequest.builder() + .requestBody(Map.ofEntries( + )) .ledger("ledger001") .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .pageSize(100L) @@ -2143,6 +2170,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [V2ListTransactionsRequest](../../models/operations/V2ListTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2150,10 +2178,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## readStats @@ -2167,7 +2195,7 @@ Get statistics from a ledger. (aggregate metrics on accounts and transactions) package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ReadStatsRequest; import com.formance.formance_sdk.models.operations.V2ReadStatsResponse; import com.formance.formance_sdk.models.shared.Security; @@ -2175,7 +2203,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2204,6 +2232,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [V2ReadStatsRequest](../../models/operations/V2ReadStatsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2211,10 +2240,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## resetPipeline @@ -2227,21 +2256,16 @@ Reset pipeline package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ResetPipelineRequest; import com.formance.formance_sdk.models.operations.V2ResetPipelineResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2ResetPipelineRequest req = V2ResetPipelineRequest.builder() @@ -2263,6 +2287,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2ResetPipelineRequest](../../models/operations/V2ResetPipelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2270,10 +2295,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## restoreBucket @@ -2286,7 +2311,7 @@ Restore a deleted bucket by unmarking all ledgers in the bucket as deleted. All package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2RestoreBucketRequest; import com.formance.formance_sdk.models.operations.V2RestoreBucketResponse; import com.formance.formance_sdk.models.shared.Security; @@ -2294,7 +2319,7 @@ import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2323,6 +2348,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2RestoreBucketRequest](../../models/operations/V2RestoreBucketRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2330,10 +2356,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## revertTransaction @@ -2346,7 +2372,7 @@ Revert a ledger transaction by its ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2RevertTransactionRequest; import com.formance.formance_sdk.models.operations.V2RevertTransactionResponse; import com.formance.formance_sdk.models.shared.Security; @@ -2355,7 +2381,7 @@ import java.math.BigInteger; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2375,8 +2401,8 @@ public class Application { .request(req) .call(); - if (res.v2RevertTransactionResponse().isPresent()) { - System.out.println(res.v2RevertTransactionResponse().get()); + if (res.v2CreateTransactionResponse().isPresent()) { + System.out.println(res.v2CreateTransactionResponse().get()); } } } @@ -2387,6 +2413,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [V2RevertTransactionRequest](../../models/operations/V2RevertTransactionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2394,10 +2421,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## runQuery @@ -2410,15 +2437,15 @@ Run a query template on a ledger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.*; import com.formance.formance_sdk.models.operations.*; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.lang.Object; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2429,7 +2456,7 @@ public class Application { V2RunQueryRequest req = V2RunQueryRequest.builder() .requestBody(V2RunQueryRequestBody.builder() - .params(V2QueryParams.of(QueryTemplateAccountParams.builder() + .v2QueryParams(V2QueryParams.of(QueryTemplateAccountParams.builder() .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") .pageSize(100L) .sort("id:desc") @@ -2475,6 +2502,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [V2RunQueryRequest](../../models/operations/V2RunQueryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2482,10 +2510,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## startPipeline @@ -2498,21 +2526,16 @@ Start pipeline package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2StartPipelineRequest; import com.formance.formance_sdk.models.operations.V2StartPipelineResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2StartPipelineRequest req = V2StartPipelineRequest.builder() @@ -2534,6 +2557,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2StartPipelineRequest](../../models/operations/V2StartPipelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2541,10 +2565,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## stopPipeline @@ -2557,21 +2581,16 @@ Stop pipeline package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2StopPipelineRequest; import com.formance.formance_sdk.models.operations.V2StopPipelineResponse; -import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V2StopPipelineRequest req = V2StopPipelineRequest.builder() @@ -2593,6 +2612,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V2StopPipelineRequest](../../models/operations/V2StopPipelineRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2600,10 +2620,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## updateExporter @@ -2616,17 +2636,17 @@ Update exporter package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ExporterConfiguration2; import com.formance.formance_sdk.models.operations.V2UpdateExporterRequest; import com.formance.formance_sdk.models.operations.V2UpdateExporterResponse; import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.V2CreateExporterRequest; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2636,7 +2656,7 @@ public class Application { .build(); V2UpdateExporterRequest req = V2UpdateExporterRequest.builder() - .v2CreateExporterRequest(V2CreateExporterRequest.builder() + .v2ExporterConfiguration(V2ExporterConfiguration2.builder() .config(Map.ofEntries( Map.entry("key", ""), Map.entry("key1", ""), @@ -2660,6 +2680,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V2UpdateExporterRequest](../../models/operations/V2UpdateExporterRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2667,10 +2688,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## updateLedgerMetadata @@ -2683,7 +2704,7 @@ Update ledger metadata package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataRequest; import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataResponse; import com.formance.formance_sdk.models.shared.Security; @@ -2692,7 +2713,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws V2ErrorResponse, Exception { + public static void main(String[] args) throws ErrorsV2ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -2723,6 +2744,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [V2UpdateLedgerMetadataRequest](../../models/operations/V2UpdateLedgerMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2730,7 +2752,7 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------- | ----------------------------- | ----------------------------- | -| models/errors/V2ErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/ErrorsV2ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/orchestrationv1/README.md b/docs/sdks/orchestrationv1/README.md index 5973c8901..3a27d2476 100644 --- a/docs/sdks/orchestrationv1/README.md +++ b/docs/sdks/orchestrationv1/README.md @@ -12,12 +12,12 @@ * [getInstance](#getinstance) - Get a workflow instance by id * [getInstanceHistory](#getinstancehistory) - Get a workflow instance history by id * [getInstanceStageHistory](#getinstancestagehistory) - Get a workflow instance stage history +* [getServerInfoOrchestration](#getserverinfoorchestration) - Get server info * [getWorkflow](#getworkflow) - Get a flow by id * [listInstances](#listinstances) - List instances of a workflow * [listTriggers](#listtriggers) - List triggers * [listTriggersOccurrences](#listtriggersoccurrences) - List triggers occurrences * [listWorkflows](#listworkflows) - List registered workflows -* [orchestrationgetServerInfo](#orchestrationgetserverinfo) - Get server info * [readTrigger](#readtrigger) - Read trigger * [runWorkflow](#runworkflow) - Run workflow * [sendEvent](#sendevent) - Send an event to a running workflow @@ -33,9 +33,9 @@ Cancel a running workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.CancelEventRequest; import com.formance.formance_sdk.models.operations.CancelEventResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -68,6 +68,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [CancelEventRequest](../../models/operations/CancelEventRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -91,8 +92,8 @@ Create trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.CreateTriggerResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -119,9 +120,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `request` | [TriggerData](../../models/shared/TriggerData.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `request` | [TriggerData2](../../models/shared/TriggerData2.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -145,8 +147,8 @@ Create a workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.CreateWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -173,9 +175,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [CreateWorkflowRequest](../../models/shared/CreateWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `request` | [WorkflowConfig](../../models/shared/WorkflowConfig.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -199,9 +202,9 @@ Read trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.DeleteTriggerRequest; import com.formance.formance_sdk.models.operations.DeleteTriggerResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -234,6 +237,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [DeleteTriggerRequest](../../models/operations/DeleteTriggerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -257,9 +261,9 @@ Delete a flow by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.DeleteWorkflowRequest; import com.formance.formance_sdk.models.operations.DeleteWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -292,6 +296,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [DeleteWorkflowRequest](../../models/operations/DeleteWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -315,9 +320,9 @@ Get a workflow instance by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.GetInstanceRequest; import com.formance.formance_sdk.models.operations.GetInstanceResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -352,6 +357,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [GetInstanceRequest](../../models/operations/GetInstanceRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -375,9 +381,9 @@ Get a workflow instance history by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.GetInstanceHistoryRequest; import com.formance.formance_sdk.models.operations.GetInstanceHistoryResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -412,6 +418,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [GetInstanceHistoryRequest](../../models/operations/GetInstanceHistoryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -435,9 +442,9 @@ Get a workflow instance stage history package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequest; import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -473,6 +480,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [GetInstanceStageHistoryRequest](../../models/operations/GetInstanceStageHistoryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -485,6 +493,60 @@ public class Application { | models/errors/Error | default | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | +## getServerInfoOrchestration + +Get server info + +### Example Usage + + +```java +package hello.world; + +import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.operations.GetServerInfoOrchestrationResponse; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Error, Exception { + + SDK sdk = SDK.builder() + .security(Security.builder() + .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) + .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) + .build()) + .build(); + + GetServerInfoOrchestrationResponse res = sdk.orchestration().v1().getServerInfoOrchestration() + .call(); + + if (res.serverInfo().isPresent()) { + System.out.println(res.serverInfo().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetServerInfoOrchestrationResponse](../../models/operations/GetServerInfoOrchestrationResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ---------------------- | ---------------------- | ---------------------- | +| models/errors/Error | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## getWorkflow Get a flow by id @@ -496,9 +558,9 @@ Get a flow by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.GetWorkflowRequest; import com.formance.formance_sdk.models.operations.GetWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -533,6 +595,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [GetWorkflowRequest](../../models/operations/GetWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -556,9 +619,9 @@ List instances of a workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.ListInstancesRequest; import com.formance.formance_sdk.models.operations.ListInstancesResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -594,6 +657,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [ListInstancesRequest](../../models/operations/ListInstancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -617,8 +681,8 @@ List triggers package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.ListTriggersResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -648,6 +712,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [ListTriggersRequest](../../models/operations/ListTriggersRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -671,9 +736,9 @@ List triggers occurrences package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.ListTriggersOccurrencesRequest; import com.formance.formance_sdk.models.operations.ListTriggersOccurrencesResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -708,6 +773,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [ListTriggersOccurrencesRequest](../../models/operations/ListTriggersOccurrencesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -731,8 +797,8 @@ List registered workflows package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.ListWorkflowsResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -757,57 +823,15 @@ public class Application { } ``` -### Response - -**[ListWorkflowsResponse](../../models/operations/ListWorkflowsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ---------------------- | ---------------------- | ---------------------- | -| models/errors/Error | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | - -## orchestrationgetServerInfo - -Get server info - -### Example Usage - - -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; -import com.formance.formance_sdk.models.operations.OrchestrationgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.Security; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Error, Exception { - - SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) - .build(); +### Parameters - OrchestrationgetServerInfoResponse res = sdk.orchestration().v1().orchestrationgetServerInfo() - .call(); - - if (res.serverInfo().isPresent()) { - System.out.println(res.serverInfo().get()); - } - } -} -``` +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[OrchestrationgetServerInfoResponse](../../models/operations/OrchestrationgetServerInfoResponse.md)** +**[ListWorkflowsResponse](../../models/operations/ListWorkflowsResponse.md)** ### Errors @@ -827,9 +851,9 @@ Read trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.ReadTriggerRequest; import com.formance.formance_sdk.models.operations.ReadTriggerResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -864,6 +888,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [ReadTriggerRequest](../../models/operations/ReadTriggerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -887,9 +912,9 @@ Run workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.RunWorkflowRequest; import com.formance.formance_sdk.models.operations.RunWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -924,6 +949,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [RunWorkflowRequest](../../models/operations/RunWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -947,9 +973,9 @@ Send an event to a running workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.operations.SendEventRequest; import com.formance.formance_sdk.models.operations.SendEventResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -982,6 +1008,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [SendEventRequest](../../models/operations/SendEventRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response diff --git a/docs/sdks/orchestrationv2/README.md b/docs/sdks/orchestrationv2/README.md index a752c5add..9364d333e 100644 --- a/docs/sdks/orchestrationv2/README.md +++ b/docs/sdks/orchestrationv2/README.md @@ -34,9 +34,9 @@ Cancel a running workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2CancelEventRequest; import com.formance.formance_sdk.models.operations.V2CancelEventResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -69,6 +69,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2CancelEventRequest](../../models/operations/V2CancelEventRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -92,8 +93,8 @@ Create trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2CreateTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -120,9 +121,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `request` | [V2TriggerData](../../models/shared/V2TriggerData.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | +| `request` | [V2TriggerData2](../../models/shared/V2TriggerData2.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -146,8 +148,8 @@ Create a workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2CreateWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -174,9 +176,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [V2CreateWorkflowRequest](../../models/shared/V2CreateWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `request` | [V2WorkflowConfig](../../models/shared/V2WorkflowConfig.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -200,9 +203,9 @@ Read trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2DeleteTriggerRequest; import com.formance.formance_sdk.models.operations.V2DeleteTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -235,6 +238,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2DeleteTriggerRequest](../../models/operations/V2DeleteTriggerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -258,9 +262,9 @@ Delete a flow by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2DeleteWorkflowRequest; import com.formance.formance_sdk.models.operations.V2DeleteWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -293,6 +297,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V2DeleteWorkflowRequest](../../models/operations/V2DeleteWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -316,9 +321,9 @@ Get a workflow instance by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetInstanceRequest; import com.formance.formance_sdk.models.operations.V2GetInstanceResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -353,6 +358,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2GetInstanceRequest](../../models/operations/V2GetInstanceRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -376,9 +382,9 @@ Get a workflow instance history by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetInstanceHistoryRequest; import com.formance.formance_sdk.models.operations.V2GetInstanceHistoryResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -413,6 +419,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [V2GetInstanceHistoryRequest](../../models/operations/V2GetInstanceHistoryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -436,9 +443,9 @@ Get a workflow instance stage history package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetInstanceStageHistoryRequest; import com.formance.formance_sdk.models.operations.V2GetInstanceStageHistoryResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -474,6 +481,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [V2GetInstanceStageHistoryRequest](../../models/operations/V2GetInstanceStageHistoryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -497,8 +505,8 @@ Get server info package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetServerInfoResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -523,6 +531,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[V2GetServerInfoResponse](../../models/operations/V2GetServerInfoResponse.md)** @@ -545,9 +559,9 @@ Get a flow by id package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetWorkflowRequest; import com.formance.formance_sdk.models.operations.V2GetWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -582,6 +596,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2GetWorkflowRequest](../../models/operations/V2GetWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -605,9 +620,9 @@ List instances of a workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListInstancesRequest; import com.formance.formance_sdk.models.operations.V2ListInstancesResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -645,6 +660,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2ListInstancesRequest](../../models/operations/V2ListInstancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -668,9 +684,9 @@ List triggers package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListTriggersRequest; import com.formance.formance_sdk.models.operations.V2ListTriggersResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -706,6 +722,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V2ListTriggersRequest](../../models/operations/V2ListTriggersRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -729,9 +746,9 @@ List triggers occurrences package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListTriggersOccurrencesRequest; import com.formance.formance_sdk.models.operations.V2ListTriggersOccurrencesResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -768,6 +785,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [V2ListTriggersOccurrencesRequest](../../models/operations/V2ListTriggersOccurrencesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -791,9 +809,9 @@ List registered workflows package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListWorkflowsRequest; import com.formance.formance_sdk.models.operations.V2ListWorkflowsResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -829,6 +847,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [V2ListWorkflowsRequest](../../models/operations/V2ListWorkflowsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -852,9 +871,9 @@ Read trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ReadTriggerRequest; import com.formance.formance_sdk.models.operations.V2ReadTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -889,6 +908,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2ReadTriggerRequest](../../models/operations/V2ReadTriggerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -912,9 +932,9 @@ Run workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2RunWorkflowRequest; import com.formance.formance_sdk.models.operations.V2RunWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -949,6 +969,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V2RunWorkflowRequest](../../models/operations/V2RunWorkflowRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -972,9 +993,9 @@ Send an event to a running workflow package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2SendEventRequest; import com.formance.formance_sdk.models.operations.V2SendEventResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1007,6 +1028,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [V2SendEventRequest](../../models/operations/V2SendEventRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1030,9 +1052,9 @@ Test trigger package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.TestTriggerRequest; import com.formance.formance_sdk.models.operations.TestTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1067,6 +1089,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [TestTriggerRequest](../../models/operations/TestTriggerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response diff --git a/docs/sdks/paymentsv1/README.md b/docs/sdks/paymentsv1/README.md index b17761558..08ef0c9fb 100644 --- a/docs/sdks/paymentsv1/README.md +++ b/docs/sdks/paymentsv1/README.md @@ -15,6 +15,7 @@ * [deleteTransferInitiation](#deletetransferinitiation) - Delete a transfer initiation * [forwardBankAccount](#forwardbankaccount) - Forward a bank account to a connector * [getAccountBalances](#getaccountbalances) - Get account balances +* [getAccountPayments](#getaccountpayments) - Get an account * [getBankAccount](#getbankaccount) - Get a bank account created by user on Formance * [~~getConnectorTask~~](#getconnectortask) - Read a specific task of the connector :warning: **Deprecated** * [getConnectorTaskV1](#getconnectortaskv1) - Read a specific task of the connector @@ -22,8 +23,10 @@ * [getPool](#getpool) - Get a Pool * [getPoolBalances](#getpoolbalances) - Get historical pool balances at a particular point in time * [getPoolBalancesLatest](#getpoolbalanceslatest) - Get latest pool balances +* [getServerInfoPayments](#getserverinfopayments) - Get server info * [getTransferInitiation](#gettransferinitiation) - Get a transfer initiation * [installConnector](#installconnector) - Install a connector +* [listAccountsPayments](#listaccountspayments) - List accounts * [listAllConnectors](#listallconnectors) - List all installed connectors * [listBankAccounts](#listbankaccounts) - List bank accounts created by user on Formance * [listConfigsAvailableConnectors](#listconfigsavailableconnectors) - List the configs of each available connector @@ -32,9 +35,6 @@ * [listPayments](#listpayments) - List payments * [listPools](#listpools) - List Pools * [listTransferInitiations](#listtransferinitiations) - List Transfer Initiations -* [paymentsgetAccount](#paymentsgetaccount) - Get an account -* [paymentsgetServerInfo](#paymentsgetserverinfo) - Get server info -* [paymentslistAccounts](#paymentslistaccounts) - List accounts * [~~readConnectorConfig~~](#readconnectorconfig) - Read the config of a connector :warning: **Deprecated** * [readConnectorConfigV1](#readconnectorconfigv1) - Read the config of a connector * [removeAccountFromPool](#removeaccountfrompool) - Remove an account from a pool @@ -61,9 +61,9 @@ Add an account to a pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.AddAccountToPoolResponse; -import com.formance.formance_sdk.models.shared.AddAccountToPoolRequest; +import com.formance.formance_sdk.models.payments.AddAccountToPoolRequest; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -99,6 +99,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [AddAccountToPoolRequest](../../models/operations/AddAccountToPoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -122,10 +123,10 @@ Execute a transfer between two accounts. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ConnectorsTransferRequest; import com.formance.formance_sdk.models.operations.ConnectorsTransferResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; @@ -166,6 +167,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [ConnectorsTransferRequest](../../models/operations/ConnectorsTransferRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -189,9 +191,9 @@ Create an account package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.CreateAccountResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.time.OffsetDateTime; @@ -207,18 +209,18 @@ public class Application { .build(); AccountRequest req = AccountRequest.builder() + .accountType(AccountType.UNKNOWN) .connectorID("") .createdAt(OffsetDateTime.parse("2025-07-27T08:57:17.388Z")) .reference("") - .type(AccountType.UNKNOWN) .build(); CreateAccountResponse res = sdk.payments().v1().createAccount() .request(req) .call(); - if (res.paymentsAccountResponse().isPresent()) { - System.out.println(res.paymentsAccountResponse().get()); + if (res.accountResponse().isPresent()) { + System.out.println(res.accountResponse().get()); } } } @@ -229,6 +231,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `request` | [AccountRequest](../../models/shared/AccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -252,9 +255,9 @@ Create a bank account in Payments and on the PSP. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.CreateBankAccountResponse; -import com.formance.formance_sdk.models.shared.BankAccountRequest; +import com.formance.formance_sdk.models.payments.BankAccountRequest; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -290,6 +293,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [BankAccountRequest](../../models/shared/BankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -313,9 +317,9 @@ Create a payment package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.CreatePaymentResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; import java.time.OffsetDateTime; @@ -332,14 +336,14 @@ public class Application { .build(); PaymentRequest req = PaymentRequest.builder() + .paymentScheme(PaymentScheme.RTP) + .paymentStatus(PaymentStatus.REFUNDED_FAILURE) + .paymentType(PaymentType.PAYOUT) .amount(new BigInteger("100")) .asset("USD") .connectorID("") .createdAt(OffsetDateTime.parse("2025-08-26T06:29:11.777Z")) .reference("") - .scheme(PaymentScheme.RTP) - .status(PaymentStatus.REFUNDED_FAILURE) - .type(PaymentType.PAYOUT) .build(); CreatePaymentResponse res = sdk.payments().v1().createPayment() @@ -358,6 +362,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | | `request` | [PaymentRequest](../../models/shared/PaymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -381,9 +386,9 @@ Create a Pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.CreatePoolResponse; -import com.formance.formance_sdk.models.shared.PoolRequest; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.PoolRequest; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -418,6 +423,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | | `request` | [PoolRequest](../../models/shared/PoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -441,9 +447,9 @@ Create a transfer initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.CreateTransferInitiationResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; import java.time.OffsetDateTime; @@ -487,6 +493,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [TransferInitiationRequest](../../models/shared/TransferInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -510,9 +517,9 @@ Delete a pool by its id. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.DeletePoolRequest; import com.formance.formance_sdk.models.operations.DeletePoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -545,6 +552,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [DeletePoolRequest](../../models/operations/DeletePoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -568,9 +576,9 @@ Delete a transfer initiation by its id. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.DeleteTransferInitiationRequest; import com.formance.formance_sdk.models.operations.DeleteTransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -603,6 +611,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [DeleteTransferInitiationRequest](../../models/operations/DeleteTransferInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -626,9 +635,9 @@ Forward a bank account to a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ForwardBankAccountResponse; -import com.formance.formance_sdk.models.shared.ForwardBankAccountRequest; +import com.formance.formance_sdk.models.payments.ForwardBankAccountRequest; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -666,6 +675,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [ForwardBankAccountRequest](../../models/operations/ForwardBankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -689,9 +699,9 @@ Get account balances package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetAccountBalancesRequest; import com.formance.formance_sdk.models.operations.GetAccountBalancesResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.List; @@ -732,6 +742,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [GetAccountBalancesRequest](../../models/operations/GetAccountBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -744,6 +755,67 @@ public class Application { | models/errors/PaymentsErrorResponse | default | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | +## getAccountPayments + +Get an account + +### Example Usage + + +```java +package hello.world; + +import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsRequest; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws PaymentsErrorResponse, Exception { + + SDK sdk = SDK.builder() + .security(Security.builder() + .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) + .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) + .build()) + .build(); + + GetAccountPaymentsRequest req = GetAccountPaymentsRequest.builder() + .accountId("XXX") + .build(); + + GetAccountPaymentsResponse res = sdk.payments().v1().getAccountPayments() + .request(req) + .call(); + + if (res.accountResponse().isPresent()) { + System.out.println(res.accountResponse().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [GetAccountPaymentsRequest](../../models/operations/GetAccountPaymentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetAccountPaymentsResponse](../../models/operations/GetAccountPaymentsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/PaymentsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## getBankAccount Get a bank account created by user on Formance @@ -755,9 +827,9 @@ Get a bank account created by user on Formance package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetBankAccountRequest; import com.formance.formance_sdk.models.operations.GetBankAccountResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -792,6 +864,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [GetBankAccountRequest](../../models/operations/GetBankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -817,10 +890,10 @@ Get a specific task associated to the connector. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetConnectorTaskRequest; import com.formance.formance_sdk.models.operations.GetConnectorTaskResponse; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -856,6 +929,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [GetConnectorTaskRequest](../../models/operations/GetConnectorTaskRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -879,10 +953,10 @@ Get a specific task associated to the connector. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetConnectorTaskV1Request; import com.formance.formance_sdk.models.operations.GetConnectorTaskV1Response; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -919,6 +993,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [GetConnectorTaskV1Request](../../models/operations/GetConnectorTaskV1Request.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -942,9 +1017,9 @@ Get a payment package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetPaymentRequest; import com.formance.formance_sdk.models.operations.GetPaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -979,6 +1054,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [GetPaymentRequest](../../models/operations/GetPaymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1002,9 +1078,9 @@ Get a Pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetPoolRequest; import com.formance.formance_sdk.models.operations.GetPoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1039,6 +1115,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | | `request` | [GetPoolRequest](../../models/operations/GetPoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1062,9 +1139,9 @@ Get historical pool balances at a particular point in time package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetPoolBalancesRequest; import com.formance.formance_sdk.models.operations.GetPoolBalancesResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.time.OffsetDateTime; @@ -1101,6 +1178,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [GetPoolBalancesRequest](../../models/operations/GetPoolBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1124,9 +1202,9 @@ Get latest pool balances package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetPoolBalancesLatestRequest; import com.formance.formance_sdk.models.operations.GetPoolBalancesLatestResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1161,6 +1239,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [GetPoolBalancesLatestRequest](../../models/operations/GetPoolBalancesLatestRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1173,6 +1252,60 @@ public class Application { | models/errors/PaymentsErrorResponse | default | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | +## getServerInfoPayments + +Get server info + +### Example Usage + + +```java +package hello.world; + +import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.operations.GetServerInfoPaymentsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws PaymentsErrorResponse, Exception { + + SDK sdk = SDK.builder() + .security(Security.builder() + .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) + .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) + .build()) + .build(); + + GetServerInfoPaymentsResponse res = sdk.payments().v1().getServerInfoPayments() + .call(); + + if (res.serverInfo().isPresent()) { + System.out.println(res.serverInfo().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetServerInfoPaymentsResponse](../../models/operations/GetServerInfoPaymentsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/PaymentsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## getTransferInitiation Get a transfer initiation @@ -1184,9 +1317,9 @@ Get a transfer initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.GetTransferInitiationRequest; import com.formance.formance_sdk.models.operations.GetTransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1221,6 +1354,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [GetTransferInitiationRequest](../../models/operations/GetTransferInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1244,10 +1378,10 @@ Install a connector by its name and config. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.InstallConnectorRequest; import com.formance.formance_sdk.models.operations.InstallConnectorResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { @@ -1262,12 +1396,12 @@ public class Application { .build(); InstallConnectorRequest req = InstallConnectorRequest.builder() - .connectorConfig(CurrencyCloudConfig.builder() + .connectorConfig(ConnectorConfig.of(CurrencyCloudConfig.builder() .apiKey("XXX") .loginID("XXX") .name("My CurrencyCloud Account") .pollingPeriod("60s") - .build()) + .build())) .connector(Connector.MANGOPAY) .build(); @@ -1287,6 +1421,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [InstallConnectorRequest](../../models/operations/InstallConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1299,6 +1434,72 @@ public class Application { | models/errors/PaymentsErrorResponse | default | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | +## listAccountsPayments + +List accounts + +### Example Usage + + +```java +package hello.world; + +import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsRequest; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.shared.Security; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws PaymentsErrorResponse, Exception { + + SDK sdk = SDK.builder() + .security(Security.builder() + .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) + .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) + .build()) + .build(); + + ListAccountsPaymentsRequest req = ListAccountsPaymentsRequest.builder() + .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") + .pageSize(100L) + .sort(List.of( + "date:asc", + "status:desc")) + .build(); + + ListAccountsPaymentsResponse res = sdk.payments().v1().listAccountsPayments() + .request(req) + .call(); + + if (res.accountsCursor().isPresent()) { + System.out.println(res.accountsCursor().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `request` | [ListAccountsPaymentsRequest](../../models/operations/ListAccountsPaymentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[ListAccountsPaymentsResponse](../../models/operations/ListAccountsPaymentsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| ----------------------------------- | ----------------------------------- | ----------------------------------- | +| models/errors/PaymentsErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + ## listAllConnectors List all installed connectors. @@ -1310,8 +1511,8 @@ List all installed connectors. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListAllConnectorsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1336,6 +1537,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[ListAllConnectorsResponse](../../models/operations/ListAllConnectorsResponse.md)** @@ -1358,9 +1565,9 @@ List all bank accounts created by user on Formance. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListBankAccountsRequest; import com.formance.formance_sdk.models.operations.ListBankAccountsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.List; @@ -1400,6 +1607,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [ListBankAccountsRequest](../../models/operations/ListBankAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1423,8 +1631,8 @@ List the configs of each available connector. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListConfigsAvailableConnectorsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1449,6 +1657,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[ListConfigsAvailableConnectorsResponse](../../models/operations/ListConfigsAvailableConnectorsResponse.md)** @@ -1473,10 +1687,10 @@ List all tasks associated with this connector. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListConnectorTasksRequest; import com.formance.formance_sdk.models.operations.ListConnectorTasksResponse; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1513,6 +1727,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [ListConnectorTasksRequest](../../models/operations/ListConnectorTasksRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1536,10 +1751,10 @@ List all tasks associated with this connector. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListConnectorTasksV1Request; import com.formance.formance_sdk.models.operations.ListConnectorTasksV1Response; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1577,6 +1792,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [ListConnectorTasksV1Request](../../models/operations/ListConnectorTasksV1Request.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1600,9 +1816,9 @@ List payments package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListPaymentsRequest; import com.formance.formance_sdk.models.operations.ListPaymentsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.List; @@ -1642,6 +1858,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [ListPaymentsRequest](../../models/operations/ListPaymentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1665,9 +1882,9 @@ List Pools package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListPoolsRequest; import com.formance.formance_sdk.models.operations.ListPoolsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.List; @@ -1707,6 +1924,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [ListPoolsRequest](../../models/operations/ListPoolsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1730,9 +1948,9 @@ List Transfer Initiations package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ListTransferInitiationsRequest; import com.formance.formance_sdk.models.operations.ListTransferInitiationsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.List; @@ -1772,6 +1990,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [ListTransferInitiationsRequest](../../models/operations/ListTransferInitiationsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1784,179 +2003,6 @@ public class Application { | models/errors/PaymentsErrorResponse | default | application/json | | models/errors/SDKError | 4XX, 5XX | \*/\* | -## paymentsgetAccount - -Get an account - -### Example Usage - - -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountRequest; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountResponse; -import com.formance.formance_sdk.models.shared.Security; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws PaymentsErrorResponse, Exception { - - SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) - .build(); - - PaymentsgetAccountRequest req = PaymentsgetAccountRequest.builder() - .accountId("XXX") - .build(); - - PaymentsgetAccountResponse res = sdk.payments().v1().paymentsgetAccount() - .request(req) - .call(); - - if (res.paymentsAccountResponse().isPresent()) { - System.out.println(res.paymentsAccountResponse().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [PaymentsgetAccountRequest](../../models/operations/PaymentsgetAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PaymentsgetAccountResponse](../../models/operations/PaymentsgetAccountResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/PaymentsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | - -## paymentsgetServerInfo - -Get server info - -### Example Usage - - -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; -import com.formance.formance_sdk.models.operations.PaymentsgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.Security; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws PaymentsErrorResponse, Exception { - - SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) - .build(); - - PaymentsgetServerInfoResponse res = sdk.payments().v1().paymentsgetServerInfo() - .call(); - - if (res.paymentsServerInfo().isPresent()) { - System.out.println(res.paymentsServerInfo().get()); - } - } -} -``` - -### Response - -**[PaymentsgetServerInfoResponse](../../models/operations/PaymentsgetServerInfoResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/PaymentsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | - -## paymentslistAccounts - -List accounts - -### Example Usage - - -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsRequest; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsResponse; -import com.formance.formance_sdk.models.shared.Security; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws PaymentsErrorResponse, Exception { - - SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) - .build(); - - PaymentslistAccountsRequest req = PaymentslistAccountsRequest.builder() - .cursor("aHR0cHM6Ly9nLnBhZ2UvTmVrby1SYW1lbj9zaGFyZQ==") - .pageSize(100L) - .sort(List.of( - "date:asc", - "status:desc")) - .build(); - - PaymentslistAccountsResponse res = sdk.payments().v1().paymentslistAccounts() - .request(req) - .call(); - - if (res.accountsCursor().isPresent()) { - System.out.println(res.accountsCursor().get()); - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `request` | [PaymentslistAccountsRequest](../../models/operations/PaymentslistAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[PaymentslistAccountsResponse](../../models/operations/PaymentslistAccountsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/PaymentsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | - ## ~~readConnectorConfig~~ Read connector config @@ -1970,10 +2016,10 @@ Read connector config package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ReadConnectorConfigRequest; import com.formance.formance_sdk.models.operations.ReadConnectorConfigResponse; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2008,6 +2054,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [ReadConnectorConfigRequest](../../models/operations/ReadConnectorConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2031,10 +2078,10 @@ Read connector config package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ReadConnectorConfigV1Request; import com.formance.formance_sdk.models.operations.ReadConnectorConfigV1Response; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2070,6 +2117,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [ReadConnectorConfigV1Request](../../models/operations/ReadConnectorConfigV1Request.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2093,9 +2141,9 @@ Remove an account from a pool by its id. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.RemoveAccountFromPoolRequest; import com.formance.formance_sdk.models.operations.RemoveAccountFromPoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2129,6 +2177,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [RemoveAccountFromPoolRequest](../../models/operations/RemoveAccountFromPoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2156,10 +2205,10 @@ It will remove the connector and ALL PAYMENTS generated with it. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ResetConnectorRequest; import com.formance.formance_sdk.models.operations.ResetConnectorResponse; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2192,6 +2241,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [ResetConnectorRequest](../../models/operations/ResetConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2217,10 +2267,10 @@ It will remove the connector and ALL PAYMENTS generated with it. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ResetConnectorV1Request; import com.formance.formance_sdk.models.operations.ResetConnectorV1Response; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2254,6 +2304,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [ResetConnectorV1Request](../../models/operations/ResetConnectorV1Request.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2277,9 +2328,9 @@ Retry a failed transfer initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.RetryTransferInitiationRequest; import com.formance.formance_sdk.models.operations.RetryTransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2312,6 +2363,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [RetryTransferInitiationRequest](../../models/operations/RetryTransferInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2335,9 +2387,9 @@ Reverse transfer initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse; -import com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.math.BigInteger; @@ -2380,6 +2432,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [ReverseTransferInitiationRequest](../../models/operations/ReverseTransferInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2405,10 +2458,10 @@ Uninstall a connector by its name. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UninstallConnectorRequest; import com.formance.formance_sdk.models.operations.UninstallConnectorResponse; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2441,6 +2494,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [UninstallConnectorRequest](../../models/operations/UninstallConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2464,10 +2518,10 @@ Uninstall a connector by its name. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UninstallConnectorV1Request; import com.formance.formance_sdk.models.operations.UninstallConnectorV1Response; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2501,6 +2555,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [UninstallConnectorV1Request](../../models/operations/UninstallConnectorV1Request.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2524,10 +2579,10 @@ Update metadata of a bank account package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateBankAccountMetadataResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest; import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest; import java.lang.Exception; import java.util.Map; @@ -2544,7 +2599,7 @@ public class Application { com.formance.formance_sdk.models.operations.UpdateBankAccountMetadataRequest req = com.formance.formance_sdk.models.operations.UpdateBankAccountMetadataRequest.builder() .updateBankAccountMetadataRequest(UpdateBankAccountMetadataRequest.builder() - .metadata(Map.ofEntries( + .bankAccountMetadata(Map.ofEntries( Map.entry("key", ""), Map.entry("key1", ""), Map.entry("key2", ""))) @@ -2566,6 +2621,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [UpdateBankAccountMetadataRequest](../../models/operations/UpdateBankAccountMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2589,10 +2645,10 @@ Update connector config package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateConnectorConfigV1Request; import com.formance.formance_sdk.models.operations.UpdateConnectorConfigV1Response; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { @@ -2607,12 +2663,12 @@ public class Application { .build(); UpdateConnectorConfigV1Request req = UpdateConnectorConfigV1Request.builder() - .connectorConfig(ModulrConfig.builder() + .connectorConfig(ConnectorConfig.of(ModulrConfig.builder() .apiKey("XXX") .apiSecret("XXX") .name("My Modulr Account") .pollingPeriod("60s") - .build()) + .build())) .connector(Connector.MANGOPAY) .connectorId("XXX") .build(); @@ -2631,6 +2687,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [UpdateConnectorConfigV1Request](../../models/operations/UpdateConnectorConfigV1Request.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2654,9 +2711,9 @@ Update metadata package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateMetadataRequest; import com.formance.formance_sdk.models.operations.UpdateMetadataResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.Map; @@ -2692,6 +2749,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [UpdateMetadataRequest](../../models/operations/UpdateMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2715,10 +2773,10 @@ Update the query of a pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UpdatePoolQueryResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest; import com.formance.formance_sdk.models.shared.Security; -import com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest; import java.lang.Exception; import java.util.Map; @@ -2755,6 +2813,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [UpdatePoolQueryRequest](../../models/operations/UpdatePoolQueryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2778,9 +2837,9 @@ Update a transfer initiation status package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateTransferInitiationStatusResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.payments.*; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { @@ -2815,6 +2874,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | | `request` | [UpdateTransferInitiationStatusRequest](../../models/operations/UpdateTransferInitiationStatusRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response diff --git a/docs/sdks/reconciliationv1/README.md b/docs/sdks/reconciliationv1/README.md index cd2389b15..885120c89 100644 --- a/docs/sdks/reconciliationv1/README.md +++ b/docs/sdks/reconciliationv1/README.md @@ -8,10 +8,10 @@ * [deletePolicy](#deletepolicy) - Delete a policy * [getPolicy](#getpolicy) - Get a policy * [getReconciliation](#getreconciliation) - Get a reconciliation +* [getServerInfoReconciliation](#getserverinforeconciliation) - Get server info * [listPolicies](#listpolicies) - List policies * [listReconciliations](#listreconciliations) - List reconciliations * [reconcile](#reconcile) - Reconcile using a policy -* [reconciliationgetServerInfo](#reconciliationgetserverinfo) - Get server info ## createPolicy @@ -24,16 +24,16 @@ Create a policy package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.CreatePolicyResponse; -import com.formance.formance_sdk.models.shared.PolicyRequest; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.PolicyRequest; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -66,6 +66,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | | `request` | [PolicyRequest](../../models/shared/PolicyRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -73,10 +74,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deletePolicy @@ -89,15 +90,15 @@ Delete a policy by its id. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.DeletePolicyRequest; import com.formance.formance_sdk.models.operations.DeletePolicyResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -124,6 +125,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [DeletePolicyRequest](../../models/operations/DeletePolicyRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -131,10 +133,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getPolicy @@ -147,15 +149,15 @@ Get a policy package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.GetPolicyRequest; import com.formance.formance_sdk.models.operations.GetPolicyResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -184,6 +186,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [GetPolicyRequest](../../models/operations/GetPolicyRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -191,10 +194,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getReconciliation @@ -207,15 +210,15 @@ Get a reconciliation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.GetReconciliationRequest; import com.formance.formance_sdk.models.operations.GetReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -244,6 +247,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [GetReconciliationRequest](../../models/operations/GetReconciliationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -251,10 +255,64 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## getServerInfoReconciliation + +Get server info + +### Example Usage + + +```java +package hello.world; + +import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.operations.GetServerInfoReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.shared.Security; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ErrorResponse, Exception { + + SDK sdk = SDK.builder() + .security(Security.builder() + .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) + .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) + .build()) + .build(); + + GetServerInfoReconciliationResponse res = sdk.reconciliation().v1().getServerInfoReconciliation() + .call(); + + if (res.serverInfo().isPresent()) { + System.out.println(res.serverInfo().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetServerInfoReconciliationResponse](../../models/operations/GetServerInfoReconciliationResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listPolicies @@ -267,15 +325,15 @@ List policies package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.ListPoliciesRequest; import com.formance.formance_sdk.models.operations.ListPoliciesResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -305,6 +363,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [ListPoliciesRequest](../../models/operations/ListPoliciesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -312,10 +371,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listReconciliations @@ -328,15 +387,15 @@ List reconciliations package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.ListReconciliationsRequest; import com.formance.formance_sdk.models.operations.ListReconciliationsResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -366,6 +425,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [ListReconciliationsRequest](../../models/operations/ListReconciliationsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -373,10 +433,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## reconcile @@ -389,17 +449,17 @@ Reconcile using a policy package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.operations.ReconcileRequest; import com.formance.formance_sdk.models.operations.ReconcileResponse; -import com.formance.formance_sdk.models.shared.ReconciliationRequest; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationRequest; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; import java.time.OffsetDateTime; public class Application { - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -432,6 +492,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [ReconcileRequest](../../models/operations/ReconcileRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -439,55 +500,7 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | - -## reconciliationgetServerInfo - -Get server info - -### Example Usage - - -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; -import com.formance.formance_sdk.models.operations.ReconciliationgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.Security; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws ReconciliationErrorResponse, Exception { - - SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) - .build(); - - ReconciliationgetServerInfoResponse res = sdk.reconciliation().v1().reconciliationgetServerInfo() - .call(); - - if (res.serverInfo().isPresent()) { - System.out.println(res.serverInfo().get()); - } - } -} -``` - -### Response - -**[ReconciliationgetServerInfoResponse](../../models/operations/ReconciliationgetServerInfoResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ----------------------------------------- | ----------------------------------------- | ----------------------------------------- | -| models/errors/ReconciliationErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/sdk/README.md b/docs/sdks/sdk/README.md index 3bc88a99a..2d0b522e8 100644 --- a/docs/sdks/sdk/README.md +++ b/docs/sdks/sdk/README.md @@ -14,7 +14,6 @@ OAuth2 - an open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications. - ### Available Operations * [getVersions](#getversions) - Show stack version information @@ -50,6 +49,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[GetVersionsResponse](../../models/operations/GetVersionsResponse.md)** diff --git a/docs/sdks/searchv1/README.md b/docs/sdks/searchv1/README.md index 75589c694..4dcf64ec9 100644 --- a/docs/sdks/searchv1/README.md +++ b/docs/sdks/searchv1/README.md @@ -7,26 +7,25 @@ ### Available Operations +* [~~getServerInfoSearch~~](#getserverinfosearch) - Get server info :warning: **Deprecated** * [~~search~~](#search) - search.v1 :warning: **Deprecated** -* [~~searchgetServerInfo~~](#searchgetserverinfo) - Get server info :warning: **Deprecated** -## ~~search~~ +## ~~getServerInfoSearch~~ -Elasticsearch.v1 query engine +Get server info > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. ### Example Usage - + ```java package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.operations.SearchResponse; -import com.formance.formance_sdk.models.shared.*; +import com.formance.formance_sdk.models.operations.GetServerInfoSearchResponse; +import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; -import java.util.List; public class Application { @@ -39,26 +38,11 @@ public class Application { .build()) .build(); - Query req = Query.builder() - .after(List.of( - "users:002")) - .cursor("YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=") - .ledgers(List.of( - "quickstart")) - .policy("OR") - .raw(QueryRaw.builder() - .build()) - .sort("id:asc") - .terms(List.of( - "destination=central_bank1")) - .build(); - - SearchResponse res = sdk.search().v1().search() - .request(req) + GetServerInfoSearchResponse res = sdk.search().v1().getServerInfoSearch() .call(); - if (res.response().isPresent()) { - System.out.println(res.response().get()); + if (res.serverInfo().isPresent()) { + System.out.println(res.serverInfo().get()); } } } @@ -66,13 +50,13 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [Query](../../models/shared/Query.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[SearchResponse](../../models/operations/SearchResponse.md)** +**[GetServerInfoSearchResponse](../../models/operations/GetServerInfoSearchResponse.md)** ### Errors @@ -80,22 +64,25 @@ public class Application { | ---------------------- | ---------------------- | ---------------------- | | models/errors/SDKError | 4XX, 5XX | \*/\* | -## ~~searchgetServerInfo~~ +## ~~search~~ -Get server info +Elasticsearch.v1 query engine > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. ### Example Usage - + ```java package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.operations.SearchgetServerInfoResponse; +import com.formance.formance_sdk.models.operations.SearchResponse; +import com.formance.formance_sdk.models.search.Query; +import com.formance.formance_sdk.models.search.Raw; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; +import java.util.List; public class Application { @@ -108,19 +95,41 @@ public class Application { .build()) .build(); - SearchgetServerInfoResponse res = sdk.search().v1().searchgetServerInfo() + Query req = Query.builder() + .after(List.of( + "users:002")) + .cursor("YXVsdCBhbmQgYSBtYXhpbXVtIG1heF9yZXN1bHRzLol=") + .ledgers(List.of( + "quickstart")) + .policy("OR") + .raw(Raw.builder() + .build()) + .sort("id:asc") + .terms(List.of( + "destination=central_bank1")) + .build(); + + SearchResponse res = sdk.search().v1().search() + .request(req) .call(); - if (res.serverInfo().isPresent()) { - System.out.println(res.serverInfo().get()); + if (res.response().isPresent()) { + System.out.println(res.response().get()); } } } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | +| `request` | [Query](../../models/shared/Query.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response -**[SearchgetServerInfoResponse](../../models/operations/SearchgetServerInfoResponse.md)** +**[SearchResponse](../../models/operations/SearchResponse.md)** ### Errors diff --git a/docs/sdks/v3/README.md b/docs/sdks/v3/README.md index 66c176bb0..e7a046abf 100644 --- a/docs/sdks/v3/README.md +++ b/docs/sdks/v3/README.md @@ -79,9 +79,9 @@ Add an account to a pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3AddAccountToPoolRequest; import com.formance.formance_sdk.models.operations.V3AddAccountToPoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -115,6 +115,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [V3AddAccountToPoolRequest](../../models/operations/V3AddAccountToPoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -138,9 +139,9 @@ Add a bank account to a payment service user package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3AddBankAccountToPaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3AddBankAccountToPaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -174,6 +175,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `request` | [V3AddBankAccountToPaymentServiceUserRequest](../../models/operations/V3AddBankAccountToPaymentServiceUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -197,9 +199,9 @@ Approve a payment initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ApprovePaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3ApprovePaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -234,6 +236,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `request` | [V3ApprovePaymentInitiationRequest](../../models/operations/V3ApprovePaymentInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -258,8 +261,8 @@ Create a formance account object. This object will not be forwarded to the conne package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreateAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -289,6 +292,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V3CreateAccountRequest](../../models/shared/V3CreateAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -313,8 +317,8 @@ Create a formance bank account object. This object will not be forwarded to the package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreateBankAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -344,6 +348,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [V3CreateBankAccountRequest](../../models/shared/V3CreateBankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -367,9 +372,9 @@ Create an authentication link for a payment service user on a connector, for oau package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreateLinkForPaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3CreateLinkForPaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -405,6 +410,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | | `request` | [V3CreateLinkForPaymentServiceUserRequest](../../models/operations/V3CreateLinkForPaymentServiceUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -429,8 +435,8 @@ Create a formance payment object. This object will not be forwarded to the conne package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreatePaymentResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -460,6 +466,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [V3CreatePaymentRequest](../../models/shared/V3CreatePaymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -483,8 +490,8 @@ Create a formance payment service user object package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreatePaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -514,6 +521,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [V3CreatePaymentServiceUserRequest](../../models/shared/V3CreatePaymentServiceUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -537,8 +545,8 @@ Create a formance pool object package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreatePoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -568,6 +576,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [V3CreatePoolRequest](../../models/shared/V3CreatePoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -591,9 +600,9 @@ Delete a payment initiation by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -626,6 +635,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [V3DeletePaymentInitiationRequest](../../models/operations/V3DeletePaymentInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -649,9 +659,9 @@ Delete a payment service user by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -686,6 +696,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `request` | [V3DeletePaymentServiceUserRequest](../../models/operations/V3DeletePaymentServiceUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -709,9 +720,9 @@ Delete a connection for a payment service user on a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectionFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectionFromConnectorIDResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -748,6 +759,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3DeletePaymentServiceUserConnectionFromConnectorIDRequest](../../models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -771,9 +783,9 @@ Remove a payment service user from a connector, the PSU will still exist in Form package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectorRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -809,6 +821,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `request` | [V3DeletePaymentServiceUserConnectorRequest](../../models/operations/V3DeletePaymentServiceUserConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -832,9 +845,9 @@ Delete a pool by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePoolRequest; import com.formance.formance_sdk.models.operations.V3DeletePoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -867,6 +880,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V3DeletePoolRequest](../../models/operations/V3DeletePoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -890,10 +904,9 @@ Forward a Bank Account to a PSP for creation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ForwardBankAccountRequest; import com.formance.formance_sdk.models.operations.V3ForwardBankAccountResponse; -import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import java.lang.Exception; public class Application { @@ -901,10 +914,6 @@ public class Application { public static void main(String[] args) throws V3ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V3ForwardBankAccountRequest req = V3ForwardBankAccountRequest.builder() @@ -927,6 +936,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [V3ForwardBankAccountRequest](../../models/operations/V3ForwardBankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -950,9 +960,9 @@ Forward a payment service user's bank account to a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserBankAccountRequest; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserBankAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -988,6 +998,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3ForwardPaymentServiceUserBankAccountRequest](../../models/operations/V3ForwardPaymentServiceUserBankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1011,9 +1022,9 @@ Register/forward a payment service user on/to a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserToProviderRequest; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserToProviderResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1047,6 +1058,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | | `request` | [V3ForwardPaymentServiceUserToProviderRequest](../../models/operations/V3ForwardPaymentServiceUserToProviderRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1070,9 +1082,9 @@ Get an account by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetAccountRequest; import com.formance.formance_sdk.models.operations.V3GetAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1107,6 +1119,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V3GetAccountRequest](../../models/operations/V3GetAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1130,9 +1143,9 @@ Get account balances package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetAccountBalancesRequest; import com.formance.formance_sdk.models.operations.V3GetAccountBalancesResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1169,6 +1182,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [V3GetAccountBalancesRequest](../../models/operations/V3GetAccountBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1192,10 +1206,9 @@ Get a Bank Account by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetBankAccountRequest; import com.formance.formance_sdk.models.operations.V3GetBankAccountResponse; -import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import java.lang.Exception; public class Application { @@ -1203,10 +1216,6 @@ public class Application { public static void main(String[] args) throws V3ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V3GetBankAccountRequest req = V3GetBankAccountRequest.builder() @@ -1229,6 +1238,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V3GetBankAccountRequest](../../models/operations/V3GetBankAccountRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1252,9 +1262,9 @@ Get a connector configuration by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetConnectorConfigRequest; import com.formance.formance_sdk.models.operations.V3GetConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1289,6 +1299,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [V3GetConnectorConfigRequest](../../models/operations/V3GetConnectorConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1312,9 +1323,9 @@ Get a connector schedule by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetConnectorScheduleRequest; import com.formance.formance_sdk.models.operations.V3GetConnectorScheduleResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1350,6 +1361,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [V3GetConnectorScheduleRequest](../../models/operations/V3GetConnectorScheduleRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1373,9 +1385,9 @@ Get a payment by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1410,6 +1422,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [V3GetPaymentRequest](../../models/operations/V3GetPaymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1433,9 +1446,9 @@ Get a payment initiation by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1470,6 +1483,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [V3GetPaymentInitiationRequest](../../models/operations/V3GetPaymentInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1493,9 +1507,9 @@ Get a payment service user by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1530,6 +1544,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V3GetPaymentServiceUserRequest](../../models/operations/V3GetPaymentServiceUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1553,9 +1568,9 @@ Get a link attempt for a payment service user on a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1592,6 +1607,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest](../../models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1615,9 +1631,9 @@ Get a pool by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPoolRequest; import com.formance.formance_sdk.models.operations.V3GetPoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1652,6 +1668,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [V3GetPoolRequest](../../models/operations/V3GetPoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1675,9 +1692,9 @@ Get historical pool balances from a particular point in time package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesRequest; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1712,6 +1729,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [V3GetPoolBalancesRequest](../../models/operations/V3GetPoolBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1735,9 +1753,9 @@ Get latest pool balances package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesLatestRequest; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesLatestResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1772,6 +1790,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V3GetPoolBalancesLatestRequest](../../models/operations/V3GetPoolBalancesLatestRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1795,9 +1814,9 @@ Get a task and its result by ID package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetTaskRequest; import com.formance.formance_sdk.models.operations.V3GetTaskResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1832,6 +1851,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [V3GetTaskRequest](../../models/operations/V3GetTaskRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1855,9 +1875,9 @@ Initiate a payment package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3InitiatePaymentRequest; import com.formance.formance_sdk.models.operations.V3InitiatePaymentResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1891,6 +1911,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [V3InitiatePaymentRequest](../../models/operations/V3InitiatePaymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1914,9 +1935,9 @@ Install a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3InstallConnectorRequest; import com.formance.formance_sdk.models.operations.V3InstallConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -1951,6 +1972,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [V3InstallConnectorRequest](../../models/operations/V3InstallConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -1974,9 +1996,9 @@ List all accounts package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListAccountsRequest; import com.formance.formance_sdk.models.operations.V3ListAccountsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2012,6 +2034,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V3ListAccountsRequest](../../models/operations/V3ListAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2035,9 +2058,9 @@ List all bank accounts package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListBankAccountsRequest; import com.formance.formance_sdk.models.operations.V3ListBankAccountsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2073,6 +2096,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [V3ListBankAccountsRequest](../../models/operations/V3ListBankAccountsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2096,8 +2120,8 @@ List all connector configurations package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorConfigsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2122,6 +2146,12 @@ public class Application { } ``` +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + ### Response **[V3ListConnectorConfigsResponse](../../models/operations/V3ListConnectorConfigsResponse.md)** @@ -2144,9 +2174,9 @@ List all connector schedule instances package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorScheduleInstancesRequest; import com.formance.formance_sdk.models.operations.V3ListConnectorScheduleInstancesResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2184,6 +2214,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- | | `request` | [V3ListConnectorScheduleInstancesRequest](../../models/operations/V3ListConnectorScheduleInstancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2207,9 +2238,9 @@ List all connector schedules package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorSchedulesRequest; import com.formance.formance_sdk.models.operations.V3ListConnectorSchedulesResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2246,6 +2277,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [V3ListConnectorSchedulesRequest](../../models/operations/V3ListConnectorSchedulesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2269,9 +2301,9 @@ List all connectors package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorsRequest; import com.formance.formance_sdk.models.operations.V3ListConnectorsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2307,6 +2339,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V3ListConnectorsRequest](../../models/operations/V3ListConnectorsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2330,9 +2363,9 @@ List all payment initiation adjustments package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationAdjustmentsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationAdjustmentsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2369,6 +2402,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentInitiationAdjustmentsRequest](../../models/operations/V3ListPaymentInitiationAdjustmentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2392,9 +2426,9 @@ List all payments related to a payment initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationRelatedPaymentsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationRelatedPaymentsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2431,6 +2465,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentInitiationRelatedPaymentsRequest](../../models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2454,9 +2489,9 @@ List all payment initiations package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2492,6 +2527,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentInitiationsRequest](../../models/operations/V3ListPaymentInitiationsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2515,9 +2551,9 @@ List all connections for a payment service user package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2554,6 +2590,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentServiceUserConnectionsRequest](../../models/operations/V3ListPaymentServiceUserConnectionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2577,9 +2614,9 @@ List enabled connections for a payment service user on a connector (i.e. the var package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsFromConnectorIDResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2617,6 +2654,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentServiceUserConnectionsFromConnectorIDRequest](../../models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2642,9 +2680,9 @@ Allows to check if users used the link and completed the oauth flow. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2682,6 +2720,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest](../../models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2705,9 +2744,9 @@ List all payment service users package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUsersRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUsersResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2743,6 +2782,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [V3ListPaymentServiceUsersRequest](../../models/operations/V3ListPaymentServiceUsersRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2766,9 +2806,9 @@ List all payments package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2804,6 +2844,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [V3ListPaymentsRequest](../../models/operations/V3ListPaymentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2827,9 +2868,9 @@ List all pools package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPoolsRequest; import com.formance.formance_sdk.models.operations.V3ListPoolsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2865,6 +2906,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [V3ListPoolsRequest](../../models/operations/V3ListPoolsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2888,9 +2930,9 @@ Reject a payment initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3RejectPaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3RejectPaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2923,6 +2965,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | | `request` | [V3RejectPaymentInitiationRequest](../../models/operations/V3RejectPaymentInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -2946,9 +2989,9 @@ Remove an account from a pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3RemoveAccountFromPoolRequest; import com.formance.formance_sdk.models.operations.V3RemoveAccountFromPoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -2982,6 +3025,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V3RemoveAccountFromPoolRequest](../../models/operations/V3RemoveAccountFromPoolRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3005,9 +3049,9 @@ Reset a connector. Be aware that this will delete all data and stop all existing package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ResetConnectorRequest; import com.formance.formance_sdk.models.operations.V3ResetConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3042,6 +3086,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [V3ResetConnectorRequest](../../models/operations/V3ResetConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3065,9 +3110,9 @@ Retry a payment initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3RetryPaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3RetryPaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3102,6 +3147,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [V3RetryPaymentInitiationRequest](../../models/operations/V3RetryPaymentInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3125,9 +3171,9 @@ Reverse a payment initiation package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ReversePaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3ReversePaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3162,6 +3208,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `request` | [V3ReversePaymentInitiationRequest](../../models/operations/V3ReversePaymentInitiationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3185,9 +3232,9 @@ Uninstall a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UninstallConnectorRequest; import com.formance.formance_sdk.models.operations.V3UninstallConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3222,6 +3269,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [V3UninstallConnectorRequest](../../models/operations/V3UninstallConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3245,10 +3293,9 @@ Update a bank account's metadata package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdateBankAccountMetadataRequest; import com.formance.formance_sdk.models.operations.V3UpdateBankAccountMetadataResponse; -import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import java.lang.Exception; public class Application { @@ -3256,10 +3303,6 @@ public class Application { public static void main(String[] args) throws V3ErrorResponse, Exception { SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) .build(); V3UpdateBankAccountMetadataRequest req = V3UpdateBankAccountMetadataRequest.builder() @@ -3280,6 +3323,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | `request` | [V3UpdateBankAccountMetadataRequest](../../models/operations/V3UpdateBankAccountMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3303,9 +3347,9 @@ Update/Regenerate a link for a payment service user on a connector package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdateLinkForPaymentServiceUserOnConnectorRequest; import com.formance.formance_sdk.models.operations.V3UpdateLinkForPaymentServiceUserOnConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3342,6 +3386,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | `request` | [V3UpdateLinkForPaymentServiceUserOnConnectorRequest](../../models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3365,9 +3410,9 @@ Update a payment's metadata package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdatePaymentMetadataRequest; import com.formance.formance_sdk.models.operations.V3UpdatePaymentMetadataResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3400,6 +3445,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V3UpdatePaymentMetadataRequest](../../models/operations/V3UpdatePaymentMetadataRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3423,9 +3469,9 @@ Update the query of a pool package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryRequest; import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3458,6 +3504,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [V3UpdatePoolQueryRequest](../../models/operations/V3UpdatePoolQueryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -3481,9 +3528,9 @@ Update connector config package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdateConnectorConfigRequest; import com.formance.formance_sdk.models.operations.V3UpdateConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.models.shared.Security; import java.lang.Exception; @@ -3516,6 +3563,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [V3UpdateConnectorConfigRequest](../../models/operations/V3UpdateConnectorConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response diff --git a/docs/sdks/walletsv1/README.md b/docs/sdks/walletsv1/README.md index c5de21941..166486011 100644 --- a/docs/sdks/walletsv1/README.md +++ b/docs/sdks/walletsv1/README.md @@ -12,6 +12,7 @@ * [getBalance](#getbalance) - Get detailed balance * [getHold](#gethold) - Get a hold * [getHolds](#getholds) - Get all holds for a wallet +* [getServerInfoWallets](#getserverinfowallets) - Get server info * [getTransactions](#gettransactions) * [getWallet](#getwallet) - Get a wallet * [getWalletSummary](#getwalletsummary) - Get wallet summary @@ -19,7 +20,6 @@ * [listWallets](#listwallets) - List all wallets * [updateWallet](#updatewallet) - Update a wallet * [voidHold](#voidhold) - Cancel a hold -* [walletsgetServerInfo](#walletsgetserverinfo) - Get server info ## confirmHold @@ -32,16 +32,16 @@ Confirm a hold package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.ConfirmHoldRequest; import com.formance.formance_sdk.models.operations.ConfirmHoldResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; import java.math.BigInteger; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -52,7 +52,7 @@ public class Application { ConfirmHoldRequest req = ConfirmHoldRequest.builder() .holdId("") - .confirmHoldRequest(com.formance.formance_sdk.models.shared.ConfirmHoldRequest.builder() + .confirmHoldRequest(com.formance.formance_sdk.models.wallets.ConfirmHoldRequest.builder() .amount(new BigInteger("100")) .final_(true) .build()) @@ -72,6 +72,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [ConfirmHoldRequest](../../models/operations/ConfirmHoldRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -79,10 +80,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createBalance @@ -95,15 +96,15 @@ Create a balance package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.CreateBalanceRequest; import com.formance.formance_sdk.models.operations.CreateBalanceResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -132,6 +133,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [CreateBalanceRequest](../../models/operations/CreateBalanceRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -139,10 +141,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## createWallet @@ -155,14 +157,14 @@ Create a new wallet package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.CreateWalletResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -186,6 +188,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [CreateWalletRequest](../../models/operations/CreateWalletRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -193,10 +196,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## creditWallet @@ -209,11 +212,11 @@ Credit a wallet package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.CreditWalletRequest; import com.formance.formance_sdk.models.operations.CreditWalletResponse; -import com.formance.formance_sdk.models.shared.Monetary; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; +import com.formance.formance_sdk.models.wallets.Monetary; import java.lang.Exception; import java.math.BigInteger; import java.util.List; @@ -221,7 +224,7 @@ import java.util.Map; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -232,8 +235,8 @@ public class Application { CreditWalletRequest req = CreditWalletRequest.builder() .id("") - .creditWalletRequest(com.formance.formance_sdk.models.shared.CreditWalletRequest.builder() - .amount(Monetary.builder() + .creditWalletRequest(com.formance.formance_sdk.models.wallets.CreditWalletRequest.builder() + .monetary(Monetary.builder() .amount(new BigInteger("100")) .asset("USD/2") .build()) @@ -257,6 +260,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [CreditWalletRequest](../../models/operations/CreditWalletRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -264,10 +268,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## debitWallet @@ -280,18 +284,18 @@ Debit a wallet package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.DebitWalletRequest; import com.formance.formance_sdk.models.operations.DebitWalletResponse; -import com.formance.formance_sdk.models.shared.Monetary; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; +import com.formance.formance_sdk.models.wallets.Monetary; import java.lang.Exception; import java.math.BigInteger; import java.util.Map; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -302,8 +306,8 @@ public class Application { DebitWalletRequest req = DebitWalletRequest.builder() .id("") - .debitWalletRequest(com.formance.formance_sdk.models.shared.DebitWalletRequest.builder() - .amount(Monetary.builder() + .debitWalletRequest(com.formance.formance_sdk.models.wallets.DebitWalletRequest.builder() + .monetary(Monetary.builder() .amount(new BigInteger("100")) .asset("USD/2") .build()) @@ -329,6 +333,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [DebitWalletRequest](../../models/operations/DebitWalletRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -336,10 +341,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getBalance @@ -352,15 +357,15 @@ Get detailed balance package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetBalanceRequest; import com.formance.formance_sdk.models.operations.GetBalanceResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -390,6 +395,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [GetBalanceRequest](../../models/operations/GetBalanceRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -397,10 +403,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getHold @@ -413,15 +419,15 @@ Get a hold package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetHoldRequest; import com.formance.formance_sdk.models.operations.GetHoldResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -450,6 +456,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | | `request` | [GetHoldRequest](../../models/operations/GetHoldRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -457,10 +464,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getHolds @@ -473,16 +480,16 @@ Get all holds for a wallet package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetHoldsRequest; import com.formance.formance_sdk.models.operations.GetHoldsResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -515,6 +522,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `request` | [GetHoldsRequest](../../models/operations/GetHoldsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -522,10 +530,64 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | + +## getServerInfoWallets + +Get server info + +### Example Usage + + +```java +package hello.world; + +import com.formance.formance_sdk.SDK; +import com.formance.formance_sdk.models.operations.GetServerInfoWalletsResponse; +import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws ErrorResponse, Exception { + + SDK sdk = SDK.builder() + .security(Security.builder() + .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) + .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) + .build()) + .build(); + + GetServerInfoWalletsResponse res = sdk.wallets().v1().getServerInfoWallets() + .call(); + + if (res.serverInfo().isPresent()) { + System.out.println(res.serverInfo().get()); + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[GetServerInfoWalletsResponse](../../models/operations/GetServerInfoWalletsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getTransactions @@ -536,15 +598,15 @@ public class Application { package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetTransactionsRequest; import com.formance.formance_sdk.models.operations.GetTransactionsResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -575,6 +637,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [GetTransactionsRequest](../../models/operations/GetTransactionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -582,10 +645,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getWallet @@ -598,15 +661,15 @@ Get a wallet package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetWalletRequest; import com.formance.formance_sdk.models.operations.GetWalletResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -635,6 +698,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [GetWalletRequest](../../models/operations/GetWalletRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -642,10 +706,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getWalletSummary @@ -658,15 +722,15 @@ Get wallet summary package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetWalletSummaryRequest; import com.formance.formance_sdk.models.operations.GetWalletSummaryResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -695,6 +759,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [GetWalletSummaryRequest](../../models/operations/GetWalletSummaryRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -702,10 +767,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## listBalances @@ -754,6 +819,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [ListBalancesRequest](../../models/operations/ListBalancesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -776,16 +842,16 @@ List all wallets package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.ListWalletsRequest; import com.formance.formance_sdk.models.operations.ListWalletsResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; import java.util.Map; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -819,6 +885,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [ListWalletsRequest](../../models/operations/ListWalletsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -826,10 +893,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## updateWallet @@ -842,15 +909,15 @@ Update a wallet package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateWalletRequest; import com.formance.formance_sdk.models.operations.UpdateWalletResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -877,6 +944,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [UpdateWalletRequest](../../models/operations/UpdateWalletRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -884,10 +952,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## voidHold @@ -900,15 +968,15 @@ Cancel a hold package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.VoidHoldRequest; import com.formance.formance_sdk.models.operations.VoidHoldResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WalletsErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -935,6 +1003,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `request` | [VoidHoldRequest](../../models/operations/VoidHoldRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -942,55 +1011,7 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | - -## walletsgetServerInfo - -Get server info - -### Example Usage - - -```java -package hello.world; - -import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; -import com.formance.formance_sdk.models.operations.WalletsgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.Security; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws WalletsErrorResponse, Exception { - - SDK sdk = SDK.builder() - .security(Security.builder() - .clientID(System.getenv().getOrDefault("CLIENT_ID", "")) - .clientSecret(System.getenv().getOrDefault("CLIENT_SECRET", "")) - .build()) - .build(); - - WalletsgetServerInfoResponse res = sdk.wallets().v1().walletsgetServerInfo() - .call(); - - if (res.serverInfo().isPresent()) { - System.out.println(res.serverInfo().get()); - } - } -} -``` - -### Response - -**[WalletsgetServerInfoResponse](../../models/operations/WalletsgetServerInfoResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| ---------------------------------- | ---------------------------------- | ---------------------------------- | -| models/errors/WalletsErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/docs/sdks/webhooksv1/README.md b/docs/sdks/webhooksv1/README.md index 316edecba..81ea87af1 100644 --- a/docs/sdks/webhooksv1/README.md +++ b/docs/sdks/webhooksv1/README.md @@ -24,15 +24,15 @@ Activate a webhooks config by ID, to start receiving webhooks to its endpoint. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.ActivateConfigRequest; import com.formance.formance_sdk.models.operations.ActivateConfigResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -61,6 +61,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [ActivateConfigRequest](../../models/operations/ActivateConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -68,10 +69,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## changeConfigSecret @@ -88,16 +89,16 @@ The format is a random string of bytes of size 24, base64 encoded. (larger size package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.ChangeConfigSecretRequest; import com.formance.formance_sdk.models.operations.ChangeConfigSecretResponse; -import com.formance.formance_sdk.models.shared.ConfigChangeSecret; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ConfigChangeSecret; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -129,6 +130,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [ChangeConfigSecretRequest](../../models/operations/ChangeConfigSecretRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -136,10 +138,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deactivateConfig @@ -152,15 +154,15 @@ Deactivate a webhooks config by ID, to stop receiving webhooks to its endpoint. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.DeactivateConfigRequest; import com.formance.formance_sdk.models.operations.DeactivateConfigResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -189,6 +191,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [DeactivateConfigRequest](../../models/operations/DeactivateConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -196,10 +199,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## deleteConfig @@ -212,15 +215,15 @@ Delete a webhooks config by ID. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.DeleteConfigRequest; import com.formance.formance_sdk.models.operations.DeleteConfigResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -247,6 +250,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [DeleteConfigRequest](../../models/operations/DeleteConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -254,10 +258,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## getManyConfigs @@ -270,15 +274,15 @@ Sorted by updated date descending package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.GetManyConfigsRequest; import com.formance.formance_sdk.models.operations.GetManyConfigsResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -308,6 +312,7 @@ public class Application { | Parameter | Type | Required | Description | | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [GetManyConfigsRequest](../../models/operations/GetManyConfigsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -315,10 +320,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## insertConfig @@ -340,16 +345,16 @@ All eventTypes are converted to lower-case when inserted. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.InsertConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigUser; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; import java.util.List; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -383,6 +388,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | | `request` | [ConfigUser](../../models/shared/ConfigUser.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -390,10 +396,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## testConfig @@ -406,15 +412,15 @@ Test a config by sending a webhook to its endpoint. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.TestConfigRequest; import com.formance.formance_sdk.models.operations.TestConfigResponse; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -443,6 +449,7 @@ public class Application { | Parameter | Type | Required | Description | | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [TestConfigRequest](../../models/operations/TestConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -450,10 +457,10 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | ## updateConfig @@ -466,17 +473,17 @@ Update a webhooks config by ID. package hello.world; import com.formance.formance_sdk.SDK; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.UpdateConfigRequest; import com.formance.formance_sdk.models.operations.UpdateConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigUser; import com.formance.formance_sdk.models.shared.Security; +import com.formance.formance_sdk.models.webhooks.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import java.lang.Exception; import java.util.List; public class Application { - public static void main(String[] args) throws WebhooksErrorResponse, Exception { + public static void main(String[] args) throws ErrorResponse, Exception { SDK sdk = SDK.builder() .security(Security.builder() @@ -511,6 +518,7 @@ public class Application { | Parameter | Type | Required | Description | | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [UpdateConfigRequest](../../models/operations/UpdateConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `serverURL` | *String* | :heavy_minus_sign: | An optional server URL to use. | ### Response @@ -518,7 +526,7 @@ public class Application { ### Errors -| Error Type | Status Code | Content Type | -| ----------------------------------- | ----------------------------------- | ----------------------------------- | -| models/errors/WebhooksErrorResponse | default | application/json | -| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file +| Error Type | Status Code | Content Type | +| --------------------------- | --------------------------- | --------------------------- | +| models/errors/ErrorResponse | default | application/json | +| models/errors/SDKError | 4XX, 5XX | \*/\* | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 795ca7f76..11c0b7115 100755 --- a/gen.yaml +++ b/gen.yaml @@ -29,7 +29,7 @@ generation: comments: {} telemetryEnabled: false java: - version: 8.0.0 + version: 8.1.0 additionalDependencies: - implementation:org.apache.httpcomponents.client5:httpclient5:5.4.2 additionalPlugins: [] diff --git a/gradle.properties b/gradle.properties index a89c12b83..2f582182e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.formance artifactId=formance-sdk -version=8.0.0 +version=8.1.0 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/spring/formance-sdk-spring-boot-autoconfigure/src/main/java/com/formance/formance_sdk/FormanceSDKAutoConfigProperties.java b/spring/formance-sdk-spring-boot-autoconfigure/src/main/java/com/formance/formance_sdk/FormanceSDKAutoConfigProperties.java index 068414c7b..333faed80 100644 --- a/spring/formance-sdk-spring-boot-autoconfigure/src/main/java/com/formance/formance_sdk/FormanceSDKAutoConfigProperties.java +++ b/spring/formance-sdk-spring-boot-autoconfigure/src/main/java/com/formance/formance_sdk/FormanceSDKAutoConfigProperties.java @@ -6,8 +6,6 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import java.time.Duration; -import static com.formance.formance_sdk.SDK.Builder.ServerEnvironment; - import java.lang.String; import java.util.Collection; import java.util.Set; @@ -43,10 +41,6 @@ public FormanceSDKAutoConfigProperties() { * The index of the server to use from the list of available servers (0-based). Defaults to the first server. */ private int serverIdx = 0; - /** - * Server variable configuration for parameterized server URLs defined in the OpenAPI specification. - */ - private ServerVariables serverVariables = new ServerVariables(); /** * Security configuration for API authentication. */ @@ -122,23 +116,6 @@ public int getServerIdx() { public void setServerIdx(int serverIdx) { this.serverIdx = serverIdx; } - /** - * Gets the server variable configuration for parameterized server URLs. - * - * @return the server variables configuration - */ - public ServerVariables getServerVariables() { - return serverVariables; - } - - /** - * Sets the server variable configuration for parameterized server URLs. - * - * @param serverVariables the server variables configuration to use - */ - public void setServerVariables(ServerVariables serverVariables) { - this.serverVariables = serverVariables; - } /** * Gets the security configuration for API authentication. * @@ -447,64 +424,6 @@ public void setRedactedHeaders(Collection redactedHeaders) { } } - /** - * Server variables configuration properties - */ - public static class ServerVariables { - - /** - * Constructor. - */ - public ServerVariables() { - } - - /** - * The environment name. Defaults to the production environment. - */ - private ServerEnvironment environment = ServerEnvironment.EU_SANDBOX; - - /** - * Gets the environment server variable for URL substitution. - * - * @return the environment value - */ - public ServerEnvironment getEnvironment() { - return environment; - } - - /** - * Sets the environment server variable for URL substitution. - * - * @param environment the environment value to use - */ - public void setEnvironment(ServerEnvironment environment) { - this.environment = environment; - } - - /** - * The organization name. Defaults to a generic organization. - */ - private String organization = "orgID-stackID"; - - /** - * Gets the organization server variable for URL substitution. - * - * @return the organization value - */ - public String getOrganization() { - return organization; - } - - /** - * Sets the organization server variable for URL substitution. - * - * @param organization the organization value to use - */ - public void setOrganization(String organization) { - this.organization = organization; - } - } - /** * Security configuration properties */ diff --git a/src/main/java/com/formance/formance_sdk/AuthV1.java b/src/main/java/com/formance/formance_sdk/AuthV1.java index d72eb51ba..8fc8c21c1 100644 --- a/src/main/java/com/formance/formance_sdk/AuthV1.java +++ b/src/main/java/com/formance/formance_sdk/AuthV1.java @@ -6,6 +6,7 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import com.formance.formance_sdk.models.auth.ClientOptions2; import com.formance.formance_sdk.models.operations.CreateClientRequestBuilder; import com.formance.formance_sdk.models.operations.CreateClientResponse; import com.formance.formance_sdk.models.operations.CreateSecretRequest; @@ -19,8 +20,8 @@ import com.formance.formance_sdk.models.operations.DeleteSecretResponse; import com.formance.formance_sdk.models.operations.GetOIDCWellKnownsRequestBuilder; import com.formance.formance_sdk.models.operations.GetOIDCWellKnownsResponse; -import com.formance.formance_sdk.models.operations.GetServerInfoRequestBuilder; -import com.formance.formance_sdk.models.operations.GetServerInfoResponse; +import com.formance.formance_sdk.models.operations.GetServerInfoAuthRequestBuilder; +import com.formance.formance_sdk.models.operations.GetServerInfoAuthResponse; import com.formance.formance_sdk.models.operations.ListClientsRequestBuilder; import com.formance.formance_sdk.models.operations.ListClientsResponse; import com.formance.formance_sdk.models.operations.ListUsersRequestBuilder; @@ -34,19 +35,19 @@ import com.formance.formance_sdk.models.operations.UpdateClientRequest; import com.formance.formance_sdk.models.operations.UpdateClientRequestBuilder; import com.formance.formance_sdk.models.operations.UpdateClientResponse; -import com.formance.formance_sdk.models.shared.CreateClientRequest; import com.formance.formance_sdk.operations.CreateClient; import com.formance.formance_sdk.operations.CreateSecret; import com.formance.formance_sdk.operations.DeleteClient; import com.formance.formance_sdk.operations.DeleteSecret; import com.formance.formance_sdk.operations.GetOIDCWellKnowns; -import com.formance.formance_sdk.operations.GetServerInfo; +import com.formance.formance_sdk.operations.GetServerInfoAuth; import com.formance.formance_sdk.operations.ListClients; import com.formance.formance_sdk.operations.ListUsers; import com.formance.formance_sdk.operations.ReadClient; import com.formance.formance_sdk.operations.ReadUser; import com.formance.formance_sdk.operations.UpdateClient; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; import java.util.Optional; @@ -74,19 +75,20 @@ public CreateClientRequestBuilder createClient() { * @throws RuntimeException subclass if the API call fails */ public CreateClientResponse createClientDirect() { - return createClient(Optional.empty()); + return createClient(Optional.empty(), Optional.empty()); } /** * Create client * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateClientResponse createClient(Optional request) { - RequestOperation, CreateClientResponse> operation - = new CreateClient.Sync(sdkConfiguration, _headers); + public CreateClientResponse createClient(Optional request, Optional serverURL) { + RequestOperation, CreateClientResponse> operation + = new CreateClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -107,8 +109,20 @@ public CreateSecretRequestBuilder createSecret() { * @throws RuntimeException subclass if the API call fails */ public CreateSecretResponse createSecret(CreateSecretRequest request) { + return createSecret(request, Optional.empty()); + } + + /** + * Add a secret to a client + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateSecretResponse createSecret(CreateSecretRequest request, Optional serverURL) { RequestOperation operation - = new CreateSecret.Sync(sdkConfiguration, _headers); + = new CreateSecret.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -129,8 +143,20 @@ public DeleteClientRequestBuilder deleteClient() { * @throws RuntimeException subclass if the API call fails */ public DeleteClientResponse deleteClient(DeleteClientRequest request) { + return deleteClient(request, Optional.empty()); + } + + /** + * Delete client + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteClientResponse deleteClient(DeleteClientRequest request, Optional serverURL) { RequestOperation operation - = new DeleteClient.Sync(sdkConfiguration, _headers); + = new DeleteClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -151,8 +177,20 @@ public DeleteSecretRequestBuilder deleteSecret() { * @throws RuntimeException subclass if the API call fails */ public DeleteSecretResponse deleteSecret(DeleteSecretRequest request) { + return deleteSecret(request, Optional.empty()); + } + + /** + * Delete a secret from a client + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteSecretResponse deleteSecret(DeleteSecretRequest request, Optional serverURL) { RequestOperation operation - = new DeleteSecret.Sync(sdkConfiguration, _headers); + = new DeleteSecret.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -172,8 +210,19 @@ public GetOIDCWellKnownsRequestBuilder getOIDCWellKnowns() { * @throws RuntimeException subclass if the API call fails */ public GetOIDCWellKnownsResponse getOIDCWellKnownsDirect() { + return getOIDCWellKnowns(Optional.empty()); + } + + /** + * Retrieve OpenID connect well-knowns. + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetOIDCWellKnownsResponse getOIDCWellKnowns(Optional serverURL) { RequestlessOperation operation - = new GetOIDCWellKnowns.Sync(sdkConfiguration, _headers); + = new GetOIDCWellKnowns.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -182,8 +231,8 @@ public GetOIDCWellKnownsResponse getOIDCWellKnownsDirect() { * * @return The call builder */ - public GetServerInfoRequestBuilder getServerInfo() { - return new GetServerInfoRequestBuilder(sdkConfiguration); + public GetServerInfoAuthRequestBuilder getServerInfoAuth() { + return new GetServerInfoAuthRequestBuilder(sdkConfiguration); } /** @@ -192,9 +241,20 @@ public GetServerInfoRequestBuilder getServerInfo() { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetServerInfoResponse getServerInfoDirect() { - RequestlessOperation operation - = new GetServerInfo.Sync(sdkConfiguration, _headers); + public GetServerInfoAuthResponse getServerInfoAuthDirect() { + return getServerInfoAuth(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoAuthResponse getServerInfoAuth(Optional serverURL) { + RequestlessOperation operation + = new GetServerInfoAuth.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -214,8 +274,19 @@ public ListClientsRequestBuilder listClients() { * @throws RuntimeException subclass if the API call fails */ public ListClientsResponse listClientsDirect() { + return listClients(Optional.empty()); + } + + /** + * List clients + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListClientsResponse listClients(Optional serverURL) { RequestlessOperation operation - = new ListClients.Sync(sdkConfiguration, _headers); + = new ListClients.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -239,8 +310,21 @@ public ListUsersRequestBuilder listUsers() { * @throws RuntimeException subclass if the API call fails */ public ListUsersResponse listUsersDirect() { + return listUsers(Optional.empty()); + } + + /** + * List users + * + *

List users + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListUsersResponse listUsers(Optional serverURL) { RequestlessOperation operation - = new ListUsers.Sync(sdkConfiguration, _headers); + = new ListUsers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -261,8 +345,20 @@ public ReadClientRequestBuilder readClient() { * @throws RuntimeException subclass if the API call fails */ public ReadClientResponse readClient(ReadClientRequest request) { + return readClient(request, Optional.empty()); + } + + /** + * Read client + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReadClientResponse readClient(ReadClientRequest request, Optional serverURL) { RequestOperation operation - = new ReadClient.Sync(sdkConfiguration, _headers); + = new ReadClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -287,8 +383,22 @@ public ReadUserRequestBuilder readUser() { * @throws RuntimeException subclass if the API call fails */ public ReadUserResponse readUser(ReadUserRequest request) { + return readUser(request, Optional.empty()); + } + + /** + * Read user + * + *

Read user + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReadUserResponse readUser(ReadUserRequest request, Optional serverURL) { RequestOperation operation - = new ReadUser.Sync(sdkConfiguration, _headers); + = new ReadUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -309,8 +419,20 @@ public UpdateClientRequestBuilder updateClient() { * @throws RuntimeException subclass if the API call fails */ public UpdateClientResponse updateClient(UpdateClientRequest request) { + return updateClient(request, Optional.empty()); + } + + /** + * Update client + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateClientResponse updateClient(UpdateClientRequest request, Optional serverURL) { RequestOperation operation - = new UpdateClient.Sync(sdkConfiguration, _headers); + = new UpdateClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/Ledger.java b/src/main/java/com/formance/formance_sdk/Ledger.java index 02e3eeda0..117d1e9f1 100644 --- a/src/main/java/com/formance/formance_sdk/Ledger.java +++ b/src/main/java/com/formance/formance_sdk/Ledger.java @@ -12,6 +12,8 @@ import com.formance.formance_sdk.operations.GetMetrics; import com.formance.formance_sdk.operations.V2GetInfo; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Ledger { @@ -50,8 +52,19 @@ public V2GetInfoRequestBuilder getInfo() { * @throws RuntimeException subclass if the API call fails */ public V2GetInfoResponse getInfoDirect() { + return getInfo(Optional.empty()); + } + + /** + * Show server information + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetInfoResponse getInfo(Optional serverURL) { RequestlessOperation operation - = new V2GetInfo.Sync(sdkConfiguration, _headers); + = new V2GetInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -71,8 +84,19 @@ public GetMetricsRequestBuilder getMetrics() { * @throws RuntimeException subclass if the API call fails */ public GetMetricsResponse getMetricsDirect() { + return getMetrics(Optional.empty()); + } + + /** + * Read in memory metrics + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetMetricsResponse getMetrics(Optional serverURL) { RequestlessOperation operation - = new GetMetrics.Sync(sdkConfiguration, _headers); + = new GetMetrics.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/LedgerV1.java b/src/main/java/com/formance/formance_sdk/LedgerV1.java index 54a9bcbfd..5a1a5826d 100644 --- a/src/main/java/com/formance/formance_sdk/LedgerV1.java +++ b/src/main/java/com/formance/formance_sdk/LedgerV1.java @@ -24,9 +24,9 @@ import com.formance.formance_sdk.models.operations.CreateTransactionsRequest; import com.formance.formance_sdk.models.operations.CreateTransactionsRequestBuilder; import com.formance.formance_sdk.models.operations.CreateTransactionsResponse; -import com.formance.formance_sdk.models.operations.GetAccountRequest; -import com.formance.formance_sdk.models.operations.GetAccountRequestBuilder; -import com.formance.formance_sdk.models.operations.GetAccountResponse; +import com.formance.formance_sdk.models.operations.GetAccountLedgerRequest; +import com.formance.formance_sdk.models.operations.GetAccountLedgerRequestBuilder; +import com.formance.formance_sdk.models.operations.GetAccountLedgerResponse; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedRequest; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedRequestBuilder; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedResponse; @@ -44,9 +44,9 @@ import com.formance.formance_sdk.models.operations.GetTransactionRequest; import com.formance.formance_sdk.models.operations.GetTransactionRequestBuilder; import com.formance.formance_sdk.models.operations.GetTransactionResponse; -import com.formance.formance_sdk.models.operations.ListAccountsRequest; -import com.formance.formance_sdk.models.operations.ListAccountsRequestBuilder; -import com.formance.formance_sdk.models.operations.ListAccountsResponse; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerRequest; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerRequestBuilder; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerResponse; import com.formance.formance_sdk.models.operations.ListLogsRequest; import com.formance.formance_sdk.models.operations.ListLogsRequestBuilder; import com.formance.formance_sdk.models.operations.ListLogsResponse; @@ -71,14 +71,14 @@ import com.formance.formance_sdk.operations.CountTransactions; import com.formance.formance_sdk.operations.CreateTransaction; import com.formance.formance_sdk.operations.CreateTransactions; -import com.formance.formance_sdk.operations.GetAccount; +import com.formance.formance_sdk.operations.GetAccountLedger; import com.formance.formance_sdk.operations.GetBalances; import com.formance.formance_sdk.operations.GetBalancesAggregated; import com.formance.formance_sdk.operations.GetInfo; import com.formance.formance_sdk.operations.GetLedgerInfo; import com.formance.formance_sdk.operations.GetMapping; import com.formance.formance_sdk.operations.GetTransaction; -import com.formance.formance_sdk.operations.ListAccounts; +import com.formance.formance_sdk.operations.ListAccountsLedger; import com.formance.formance_sdk.operations.ListLogs; import com.formance.formance_sdk.operations.ListTransactions; import com.formance.formance_sdk.operations.ReadStats; @@ -87,6 +87,8 @@ import com.formance.formance_sdk.operations.UpdateMapping; import com.formance.formance_sdk.utils.Headers; import java.lang.Deprecated; +import java.lang.String; +import java.util.Optional; public class LedgerV1 { @@ -114,8 +116,20 @@ public CreateTransactionsRequestBuilder createTransactions() { * @throws RuntimeException subclass if the API call fails */ public CreateTransactionsResponse createTransactions(CreateTransactionsRequest request) { + return createTransactions(request, Optional.empty()); + } + + /** + * Create a new batch of transactions to a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateTransactionsResponse createTransactions(CreateTransactionsRequest request, Optional serverURL) { RequestOperation operation - = new CreateTransactions.Sync(sdkConfiguration, _headers); + = new CreateTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -136,8 +150,20 @@ public AddMetadataOnTransactionRequestBuilder addMetadataOnTransaction() { * @throws RuntimeException subclass if the API call fails */ public AddMetadataOnTransactionResponse addMetadataOnTransaction(AddMetadataOnTransactionRequest request) { + return addMetadataOnTransaction(request, Optional.empty()); + } + + /** + * Set the metadata of a transaction by its ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AddMetadataOnTransactionResponse addMetadataOnTransaction(AddMetadataOnTransactionRequest request, Optional serverURL) { RequestOperation operation - = new AddMetadataOnTransaction.Sync(sdkConfiguration, _headers); + = new AddMetadataOnTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -158,8 +184,20 @@ public AddMetadataToAccountRequestBuilder addMetadataToAccount() { * @throws RuntimeException subclass if the API call fails */ public AddMetadataToAccountResponse addMetadataToAccount(AddMetadataToAccountRequest request) { + return addMetadataToAccount(request, Optional.empty()); + } + + /** + * Add metadata to an account + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AddMetadataToAccountResponse addMetadataToAccount(AddMetadataToAccountRequest request, Optional serverURL) { RequestOperation operation - = new AddMetadataToAccount.Sync(sdkConfiguration, _headers); + = new AddMetadataToAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -180,8 +218,20 @@ public CountAccountsRequestBuilder countAccounts() { * @throws RuntimeException subclass if the API call fails */ public CountAccountsResponse countAccounts(CountAccountsRequest request) { + return countAccounts(request, Optional.empty()); + } + + /** + * Count the accounts from a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CountAccountsResponse countAccounts(CountAccountsRequest request, Optional serverURL) { RequestOperation operation - = new CountAccounts.Sync(sdkConfiguration, _headers); + = new CountAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -202,8 +252,20 @@ public CountTransactionsRequestBuilder countTransactions() { * @throws RuntimeException subclass if the API call fails */ public CountTransactionsResponse countTransactions(CountTransactionsRequest request) { + return countTransactions(request, Optional.empty()); + } + + /** + * Count the transactions from a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CountTransactionsResponse countTransactions(CountTransactionsRequest request, Optional serverURL) { RequestOperation operation - = new CountTransactions.Sync(sdkConfiguration, _headers); + = new CountTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -224,8 +286,20 @@ public CreateTransactionRequestBuilder createTransaction() { * @throws RuntimeException subclass if the API call fails */ public CreateTransactionResponse createTransaction(CreateTransactionRequest request) { + return createTransaction(request, Optional.empty()); + } + + /** + * Create a new transaction to a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateTransactionResponse createTransaction(CreateTransactionRequest request, Optional serverURL) { RequestOperation operation - = new CreateTransaction.Sync(sdkConfiguration, _headers); + = new CreateTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -234,20 +308,32 @@ public CreateTransactionResponse createTransaction(CreateTransactionRequest requ * * @return The call builder */ - public GetAccountRequestBuilder getAccount() { - return new GetAccountRequestBuilder(sdkConfiguration); + public GetAccountLedgerRequestBuilder getAccountLedger() { + return new GetAccountLedgerRequestBuilder(sdkConfiguration); + } + + /** + * Get account by its address + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetAccountLedgerResponse getAccountLedger(GetAccountLedgerRequest request) { + return getAccountLedger(request, Optional.empty()); } /** * Get account by its address * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetAccountResponse getAccount(GetAccountRequest request) { - RequestOperation operation - = new GetAccount.Sync(sdkConfiguration, _headers); + public GetAccountLedgerResponse getAccountLedger(GetAccountLedgerRequest request, Optional serverURL) { + RequestOperation operation + = new GetAccountLedger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -268,8 +354,20 @@ public GetBalancesRequestBuilder getBalances() { * @throws RuntimeException subclass if the API call fails */ public GetBalancesResponse getBalances(GetBalancesRequest request) { + return getBalances(request, Optional.empty()); + } + + /** + * Get the balances from a ledger's account + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetBalancesResponse getBalances(GetBalancesRequest request, Optional serverURL) { RequestOperation operation - = new GetBalances.Sync(sdkConfiguration, _headers); + = new GetBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -290,8 +388,20 @@ public GetBalancesAggregatedRequestBuilder getBalancesAggregated() { * @throws RuntimeException subclass if the API call fails */ public GetBalancesAggregatedResponse getBalancesAggregated(GetBalancesAggregatedRequest request) { + return getBalancesAggregated(request, Optional.empty()); + } + + /** + * Get the aggregated balances from selected accounts + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetBalancesAggregatedResponse getBalancesAggregated(GetBalancesAggregatedRequest request, Optional serverURL) { RequestOperation operation - = new GetBalancesAggregated.Sync(sdkConfiguration, _headers); + = new GetBalancesAggregated.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -311,8 +421,19 @@ public GetInfoRequestBuilder getInfo() { * @throws RuntimeException subclass if the API call fails */ public GetInfoResponse getInfoDirect() { + return getInfo(Optional.empty()); + } + + /** + * Show server information + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetInfoResponse getInfo(Optional serverURL) { RequestlessOperation operation - = new GetInfo.Sync(sdkConfiguration, _headers); + = new GetInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -333,8 +454,20 @@ public GetLedgerInfoRequestBuilder getLedgerInfo() { * @throws RuntimeException subclass if the API call fails */ public GetLedgerInfoResponse getLedgerInfo(GetLedgerInfoRequest request) { + return getLedgerInfo(request, Optional.empty()); + } + + /** + * Get information about a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetLedgerInfoResponse getLedgerInfo(GetLedgerInfoRequest request, Optional serverURL) { RequestOperation operation - = new GetLedgerInfo.Sync(sdkConfiguration, _headers); + = new GetLedgerInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -355,8 +488,20 @@ public GetMappingRequestBuilder getMapping() { * @throws RuntimeException subclass if the API call fails */ public GetMappingResponse getMapping(GetMappingRequest request) { + return getMapping(request, Optional.empty()); + } + + /** + * Get the mapping of a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetMappingResponse getMapping(GetMappingRequest request, Optional serverURL) { RequestOperation operation - = new GetMapping.Sync(sdkConfiguration, _headers); + = new GetMapping.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -377,8 +522,20 @@ public GetTransactionRequestBuilder getTransaction() { * @throws RuntimeException subclass if the API call fails */ public GetTransactionResponse getTransaction(GetTransactionRequest request) { + return getTransaction(request, Optional.empty()); + } + + /** + * Get transaction from a ledger by its ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetTransactionResponse getTransaction(GetTransactionRequest request, Optional serverURL) { RequestOperation operation - = new GetTransaction.Sync(sdkConfiguration, _headers); + = new GetTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -389,8 +546,21 @@ public GetTransactionResponse getTransaction(GetTransactionRequest request) { * * @return The call builder */ - public ListAccountsRequestBuilder listAccounts() { - return new ListAccountsRequestBuilder(sdkConfiguration); + public ListAccountsLedgerRequestBuilder listAccountsLedger() { + return new ListAccountsLedgerRequestBuilder(sdkConfiguration); + } + + /** + * List accounts from a ledger + * + *

List accounts from a ledger, sorted by address in descending order. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListAccountsLedgerResponse listAccountsLedger(ListAccountsLedgerRequest request) { + return listAccountsLedger(request, Optional.empty()); } /** @@ -399,12 +569,13 @@ public ListAccountsRequestBuilder listAccounts() { *

List accounts from a ledger, sorted by address in descending order. * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListAccountsResponse listAccounts(ListAccountsRequest request) { - RequestOperation operation - = new ListAccounts.Sync(sdkConfiguration, _headers); + public ListAccountsLedgerResponse listAccountsLedger(ListAccountsLedgerRequest request, Optional serverURL) { + RequestOperation operation + = new ListAccountsLedger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -429,8 +600,22 @@ public ListLogsRequestBuilder listLogs() { * @throws RuntimeException subclass if the API call fails */ public ListLogsResponse listLogs(ListLogsRequest request) { + return listLogs(request, Optional.empty()); + } + + /** + * List the logs from a ledger + * + *

List the logs from a ledger, sorted by ID in descending order. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListLogsResponse listLogs(ListLogsRequest request, Optional serverURL) { RequestOperation operation - = new ListLogs.Sync(sdkConfiguration, _headers); + = new ListLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -455,8 +640,22 @@ public ListTransactionsRequestBuilder listTransactions() { * @throws RuntimeException subclass if the API call fails */ public ListTransactionsResponse listTransactions(ListTransactionsRequest request) { + return listTransactions(request, Optional.empty()); + } + + /** + * List transactions from a ledger + * + *

List transactions from a ledger, sorted by txid in descending order. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListTransactionsResponse listTransactions(ListTransactionsRequest request, Optional serverURL) { RequestOperation operation - = new ListTransactions.Sync(sdkConfiguration, _headers); + = new ListTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -481,8 +680,22 @@ public ReadStatsRequestBuilder readStats() { * @throws RuntimeException subclass if the API call fails */ public ReadStatsResponse readStats(ReadStatsRequest request) { + return readStats(request, Optional.empty()); + } + + /** + * Get statistics from a ledger + * + *

Get statistics from a ledger. (aggregate metrics on accounts and transactions) + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReadStatsResponse readStats(ReadStatsRequest request, Optional serverURL) { RequestOperation operation - = new ReadStats.Sync(sdkConfiguration, _headers); + = new ReadStats.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -503,8 +716,20 @@ public RevertTransactionRequestBuilder revertTransaction() { * @throws RuntimeException subclass if the API call fails */ public RevertTransactionResponse revertTransaction(RevertTransactionRequest request) { + return revertTransaction(request, Optional.empty()); + } + + /** + * Revert a ledger transaction by its ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RevertTransactionResponse revertTransaction(RevertTransactionRequest request, Optional serverURL) { RequestOperation operation - = new RevertTransaction.Sync(sdkConfiguration, _headers); + = new RevertTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -533,8 +758,24 @@ public RunScriptRequestBuilder runScript() { */ @Deprecated public RunScriptResponse runScript(RunScriptRequest request) { + return runScript(request, Optional.empty()); + } + + /** + * Execute a Numscript + * + *

This route is deprecated, and has been merged into `POST /{ledger}/transactions`. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public RunScriptResponse runScript(RunScriptRequest request, Optional serverURL) { RequestOperation operation - = new RunScript.Sync(sdkConfiguration, _headers); + = new RunScript.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -555,8 +796,20 @@ public UpdateMappingRequestBuilder updateMapping() { * @throws RuntimeException subclass if the API call fails */ public UpdateMappingResponse updateMapping(UpdateMappingRequest request) { + return updateMapping(request, Optional.empty()); + } + + /** + * Update the mapping of a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateMappingResponse updateMapping(UpdateMappingRequest request, Optional serverURL) { RequestOperation operation - = new UpdateMapping.Sync(sdkConfiguration, _headers); + = new UpdateMapping.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/LedgerV2.java b/src/main/java/com/formance/formance_sdk/LedgerV2.java index 70d4de398..5098323e9 100644 --- a/src/main/java/com/formance/formance_sdk/LedgerV2.java +++ b/src/main/java/com/formance/formance_sdk/LedgerV2.java @@ -6,6 +6,7 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import com.formance.formance_sdk.models.ledger.V2ExporterConfiguration2; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionRequest; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionRequestBuilder; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionResponse; @@ -133,7 +134,6 @@ import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataRequest; import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataRequestBuilder; import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataResponse; -import com.formance.formance_sdk.models.shared.V2CreateExporterRequest; import com.formance.formance_sdk.operations.V2AddMetadataOnTransaction; import com.formance.formance_sdk.operations.V2AddMetadataToAccount; import com.formance.formance_sdk.operations.V2CountAccounts; @@ -178,6 +178,8 @@ import com.formance.formance_sdk.operations.V2UpdateExporter; import com.formance.formance_sdk.operations.V2UpdateLedgerMetadata; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; +import java.util.Optional; public class LedgerV2 { @@ -205,8 +207,20 @@ public V2AddMetadataOnTransactionRequestBuilder addMetadataOnTransaction() { * @throws RuntimeException subclass if the API call fails */ public V2AddMetadataOnTransactionResponse addMetadataOnTransaction(V2AddMetadataOnTransactionRequest request) { + return addMetadataOnTransaction(request, Optional.empty()); + } + + /** + * Set the metadata of a transaction by its ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2AddMetadataOnTransactionResponse addMetadataOnTransaction(V2AddMetadataOnTransactionRequest request, Optional serverURL) { RequestOperation operation - = new V2AddMetadataOnTransaction.Sync(sdkConfiguration, _headers); + = new V2AddMetadataOnTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -227,8 +241,20 @@ public V2AddMetadataToAccountRequestBuilder addMetadataToAccount() { * @throws RuntimeException subclass if the API call fails */ public V2AddMetadataToAccountResponse addMetadataToAccount(V2AddMetadataToAccountRequest request) { + return addMetadataToAccount(request, Optional.empty()); + } + + /** + * Add metadata to an account + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2AddMetadataToAccountResponse addMetadataToAccount(V2AddMetadataToAccountRequest request, Optional serverURL) { RequestOperation operation - = new V2AddMetadataToAccount.Sync(sdkConfiguration, _headers); + = new V2AddMetadataToAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -249,8 +275,20 @@ public V2CountAccountsRequestBuilder countAccounts() { * @throws RuntimeException subclass if the API call fails */ public V2CountAccountsResponse countAccounts(V2CountAccountsRequest request) { + return countAccounts(request, Optional.empty()); + } + + /** + * Count the accounts from a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CountAccountsResponse countAccounts(V2CountAccountsRequest request, Optional serverURL) { RequestOperation operation - = new V2CountAccounts.Sync(sdkConfiguration, _headers); + = new V2CountAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -271,8 +309,20 @@ public V2CountTransactionsRequestBuilder countTransactions() { * @throws RuntimeException subclass if the API call fails */ public V2CountTransactionsResponse countTransactions(V2CountTransactionsRequest request) { + return countTransactions(request, Optional.empty()); + } + + /** + * Count the transactions from a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CountTransactionsResponse countTransactions(V2CountTransactionsRequest request, Optional serverURL) { RequestOperation operation - = new V2CountTransactions.Sync(sdkConfiguration, _headers); + = new V2CountTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -293,8 +343,20 @@ public V2CreateBulkRequestBuilder createBulk() { * @throws RuntimeException subclass if the API call fails */ public V2CreateBulkResponse createBulk(V2CreateBulkRequest request) { + return createBulk(request, Optional.empty()); + } + + /** + * Bulk request + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CreateBulkResponse createBulk(V2CreateBulkRequest request, Optional serverURL) { RequestOperation operation - = new V2CreateBulk.Sync(sdkConfiguration, _headers); + = new V2CreateBulk.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -314,9 +376,21 @@ public V2CreateExporterRequestBuilder createExporter() { * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V2CreateExporterResponse createExporter(V2CreateExporterRequest request) { - RequestOperation operation - = new V2CreateExporter.Sync(sdkConfiguration, _headers); + public V2CreateExporterResponse createExporter(V2ExporterConfiguration2 request) { + return createExporter(request, Optional.empty()); + } + + /** + * Create exporter + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CreateExporterResponse createExporter(V2ExporterConfiguration2 request, Optional serverURL) { + RequestOperation operation + = new V2CreateExporter.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -337,8 +411,20 @@ public V2CreateLedgerRequestBuilder createLedger() { * @throws RuntimeException subclass if the API call fails */ public V2CreateLedgerResponse createLedger(V2CreateLedgerRequest request) { + return createLedger(request, Optional.empty()); + } + + /** + * Create a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CreateLedgerResponse createLedger(V2CreateLedgerRequest request, Optional serverURL) { RequestOperation operation - = new V2CreateLedger.Sync(sdkConfiguration, _headers); + = new V2CreateLedger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -359,8 +445,20 @@ public V2CreatePipelineRequestBuilder createPipeline() { * @throws RuntimeException subclass if the API call fails */ public V2CreatePipelineResponse createPipeline(V2CreatePipelineRequest request) { + return createPipeline(request, Optional.empty()); + } + + /** + * Create pipeline + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CreatePipelineResponse createPipeline(V2CreatePipelineRequest request, Optional serverURL) { RequestOperation operation - = new V2CreatePipeline.Sync(sdkConfiguration, _headers); + = new V2CreatePipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -381,8 +479,20 @@ public V2CreateTransactionRequestBuilder createTransaction() { * @throws RuntimeException subclass if the API call fails */ public V2CreateTransactionResponse createTransaction(V2CreateTransactionRequest request) { + return createTransaction(request, Optional.empty()); + } + + /** + * Create a new transaction to a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CreateTransactionResponse createTransaction(V2CreateTransactionRequest request, Optional serverURL) { RequestOperation operation - = new V2CreateTransaction.Sync(sdkConfiguration, _headers); + = new V2CreateTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -407,8 +517,22 @@ public V2DeleteAccountMetadataRequestBuilder deleteAccountMetadata() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteAccountMetadataResponse deleteAccountMetadata(V2DeleteAccountMetadataRequest request) { + return deleteAccountMetadata(request, Optional.empty()); + } + + /** + * Delete metadata by key + * + *

Delete metadata by key + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteAccountMetadataResponse deleteAccountMetadata(V2DeleteAccountMetadataRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteAccountMetadata.Sync(sdkConfiguration, _headers); + = new V2DeleteAccountMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -435,8 +559,23 @@ public V2DeleteBucketRequestBuilder deleteBucket() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteBucketResponse deleteBucket(V2DeleteBucketRequest request) { + return deleteBucket(request, Optional.empty()); + } + + /** + * Delete bucket + * + *

Delete a bucket by marking all ledgers in the bucket as deleted (soft delete). All ledgers in the + * bucket will have their deleted_at field set to the current timestamp. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteBucketResponse deleteBucket(V2DeleteBucketRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteBucket.Sync(sdkConfiguration, _headers); + = new V2DeleteBucket.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -457,8 +596,20 @@ public V2DeleteExporterRequestBuilder deleteExporter() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteExporterResponse deleteExporter(V2DeleteExporterRequest request) { + return deleteExporter(request, Optional.empty()); + } + + /** + * Delete exporter + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteExporterResponse deleteExporter(V2DeleteExporterRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteExporter.Sync(sdkConfiguration, _headers); + = new V2DeleteExporter.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -479,8 +630,20 @@ public V2DeleteLedgerMetadataRequestBuilder deleteLedgerMetadata() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteLedgerMetadataResponse deleteLedgerMetadata(V2DeleteLedgerMetadataRequest request) { + return deleteLedgerMetadata(request, Optional.empty()); + } + + /** + * Delete ledger metadata by key + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteLedgerMetadataResponse deleteLedgerMetadata(V2DeleteLedgerMetadataRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteLedgerMetadata.Sync(sdkConfiguration, _headers); + = new V2DeleteLedgerMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -501,8 +664,20 @@ public V2DeletePipelineRequestBuilder deletePipeline() { * @throws RuntimeException subclass if the API call fails */ public V2DeletePipelineResponse deletePipeline(V2DeletePipelineRequest request) { + return deletePipeline(request, Optional.empty()); + } + + /** + * Delete pipeline + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeletePipelineResponse deletePipeline(V2DeletePipelineRequest request, Optional serverURL) { RequestOperation operation - = new V2DeletePipeline.Sync(sdkConfiguration, _headers); + = new V2DeletePipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -527,8 +702,22 @@ public V2DeleteTransactionMetadataRequestBuilder deleteTransactionMetadata() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteTransactionMetadataResponse deleteTransactionMetadata(V2DeleteTransactionMetadataRequest request) { + return deleteTransactionMetadata(request, Optional.empty()); + } + + /** + * Delete metadata by key + * + *

Delete metadata by key + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteTransactionMetadataResponse deleteTransactionMetadata(V2DeleteTransactionMetadataRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteTransactionMetadata.Sync(sdkConfiguration, _headers); + = new V2DeleteTransactionMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -549,8 +738,20 @@ public V2ExportLogsRequestBuilder exportLogs() { * @throws RuntimeException subclass if the API call fails */ public V2ExportLogsResponse exportLogs(V2ExportLogsRequest request) { + return exportLogs(request, Optional.empty()); + } + + /** + * Export logs + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ExportLogsResponse exportLogs(V2ExportLogsRequest request, Optional serverURL) { RequestOperation operation - = new V2ExportLogs.Sync(sdkConfiguration, _headers); + = new V2ExportLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -571,8 +772,20 @@ public V2GetAccountRequestBuilder getAccount() { * @throws RuntimeException subclass if the API call fails */ public V2GetAccountResponse getAccount(V2GetAccountRequest request) { + return getAccount(request, Optional.empty()); + } + + /** + * Get account by its address + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetAccountResponse getAccount(V2GetAccountRequest request, Optional serverURL) { RequestOperation operation - = new V2GetAccount.Sync(sdkConfiguration, _headers); + = new V2GetAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -593,8 +806,20 @@ public V2GetBalancesAggregatedRequestBuilder getBalancesAggregated() { * @throws RuntimeException subclass if the API call fails */ public V2GetBalancesAggregatedResponse getBalancesAggregated(V2GetBalancesAggregatedRequest request) { + return getBalancesAggregated(request, Optional.empty()); + } + + /** + * Get the aggregated balances from selected accounts + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetBalancesAggregatedResponse getBalancesAggregated(V2GetBalancesAggregatedRequest request, Optional serverURL) { RequestOperation operation - = new V2GetBalancesAggregated.Sync(sdkConfiguration, _headers); + = new V2GetBalancesAggregated.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -615,8 +840,20 @@ public V2GetExporterStateRequestBuilder getExporterState() { * @throws RuntimeException subclass if the API call fails */ public V2GetExporterStateResponse getExporterState(V2GetExporterStateRequest request) { + return getExporterState(request, Optional.empty()); + } + + /** + * Get exporter state + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetExporterStateResponse getExporterState(V2GetExporterStateRequest request, Optional serverURL) { RequestOperation operation - = new V2GetExporterState.Sync(sdkConfiguration, _headers); + = new V2GetExporterState.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -637,8 +874,20 @@ public V2GetLedgerRequestBuilder getLedger() { * @throws RuntimeException subclass if the API call fails */ public V2GetLedgerResponse getLedger(V2GetLedgerRequest request) { + return getLedger(request, Optional.empty()); + } + + /** + * Get a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetLedgerResponse getLedger(V2GetLedgerRequest request, Optional serverURL) { RequestOperation operation - = new V2GetLedger.Sync(sdkConfiguration, _headers); + = new V2GetLedger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -659,8 +908,20 @@ public V2GetLedgerInfoRequestBuilder getLedgerInfo() { * @throws RuntimeException subclass if the API call fails */ public V2GetLedgerInfoResponse getLedgerInfo(V2GetLedgerInfoRequest request) { + return getLedgerInfo(request, Optional.empty()); + } + + /** + * Get information about a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetLedgerInfoResponse getLedgerInfo(V2GetLedgerInfoRequest request, Optional serverURL) { RequestOperation operation - = new V2GetLedgerInfo.Sync(sdkConfiguration, _headers); + = new V2GetLedgerInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -681,8 +942,20 @@ public V2GetPipelineStateRequestBuilder getPipelineState() { * @throws RuntimeException subclass if the API call fails */ public V2GetPipelineStateResponse getPipelineState(V2GetPipelineStateRequest request) { + return getPipelineState(request, Optional.empty()); + } + + /** + * Get pipeline state + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetPipelineStateResponse getPipelineState(V2GetPipelineStateRequest request, Optional serverURL) { RequestOperation operation - = new V2GetPipelineState.Sync(sdkConfiguration, _headers); + = new V2GetPipelineState.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -703,8 +976,20 @@ public V2GetSchemaRequestBuilder getSchema() { * @throws RuntimeException subclass if the API call fails */ public V2GetSchemaResponse getSchema(V2GetSchemaRequest request) { + return getSchema(request, Optional.empty()); + } + + /** + * Get a schema for a ledger by version + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetSchemaResponse getSchema(V2GetSchemaRequest request, Optional serverURL) { RequestOperation operation - = new V2GetSchema.Sync(sdkConfiguration, _headers); + = new V2GetSchema.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -725,8 +1010,20 @@ public V2GetTransactionRequestBuilder getTransaction() { * @throws RuntimeException subclass if the API call fails */ public V2GetTransactionResponse getTransaction(V2GetTransactionRequest request) { + return getTransaction(request, Optional.empty()); + } + + /** + * Get transaction from a ledger by its ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetTransactionResponse getTransaction(V2GetTransactionRequest request, Optional serverURL) { RequestOperation operation - = new V2GetTransaction.Sync(sdkConfiguration, _headers); + = new V2GetTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -747,8 +1044,20 @@ public V2GetVolumesWithBalancesRequestBuilder getVolumesWithBalances() { * @throws RuntimeException subclass if the API call fails */ public V2GetVolumesWithBalancesResponse getVolumesWithBalances(V2GetVolumesWithBalancesRequest request) { + return getVolumesWithBalances(request, Optional.empty()); + } + + /** + * Get list of volumes with balances for (account/asset) + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetVolumesWithBalancesResponse getVolumesWithBalances(V2GetVolumesWithBalancesRequest request, Optional serverURL) { RequestOperation operation - = new V2GetVolumesWithBalances.Sync(sdkConfiguration, _headers); + = new V2GetVolumesWithBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -762,15 +1071,27 @@ public V2ImportLogsRequestBuilder importLogs() { } /** - * Makes a request. + * Makes a request (required parameters only). * * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ public V2ImportLogsResponse importLogs(V2ImportLogsRequest request) { + return importLogs(request, Optional.empty()); + } + + /** + * Makes a request. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ImportLogsResponse importLogs(V2ImportLogsRequest request, Optional serverURL) { RequestOperation operation - = new V2ImportLogs.Sync(sdkConfiguration, _headers); + = new V2ImportLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -791,8 +1112,20 @@ public V2InsertSchemaRequestBuilder insertSchema() { * @throws RuntimeException subclass if the API call fails */ public V2InsertSchemaResponse insertSchema(V2InsertSchemaRequest request) { + return insertSchema(request, Optional.empty()); + } + + /** + * Insert a schema for a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2InsertSchemaResponse insertSchema(V2InsertSchemaRequest request, Optional serverURL) { RequestOperation operation - = new V2InsertSchema.Sync(sdkConfiguration, _headers); + = new V2InsertSchema.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -817,8 +1150,22 @@ public V2ListAccountsRequestBuilder listAccounts() { * @throws RuntimeException subclass if the API call fails */ public V2ListAccountsResponse listAccounts(V2ListAccountsRequest request) { + return listAccounts(request, Optional.empty()); + } + + /** + * List accounts from a ledger + * + *

List accounts from a ledger, sorted by address in descending order. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListAccountsResponse listAccounts(V2ListAccountsRequest request, Optional serverURL) { RequestOperation operation - = new V2ListAccounts.Sync(sdkConfiguration, _headers); + = new V2ListAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -838,8 +1185,19 @@ public V2ListExportersRequestBuilder listExporters() { * @throws RuntimeException subclass if the API call fails */ public V2ListExportersResponse listExportersDirect() { + return listExporters(Optional.empty()); + } + + /** + * List exporters + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListExportersResponse listExporters(Optional serverURL) { RequestlessOperation operation - = new V2ListExporters.Sync(sdkConfiguration, _headers); + = new V2ListExporters.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -860,8 +1218,20 @@ public V2ListLedgersRequestBuilder listLedgers() { * @throws RuntimeException subclass if the API call fails */ public V2ListLedgersResponse listLedgers(V2ListLedgersRequest request) { + return listLedgers(request, Optional.empty()); + } + + /** + * List ledgers + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListLedgersResponse listLedgers(V2ListLedgersRequest request, Optional serverURL) { RequestOperation operation - = new V2ListLedgers.Sync(sdkConfiguration, _headers); + = new V2ListLedgers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -886,8 +1256,22 @@ public V2ListLogsRequestBuilder listLogs() { * @throws RuntimeException subclass if the API call fails */ public V2ListLogsResponse listLogs(V2ListLogsRequest request) { + return listLogs(request, Optional.empty()); + } + + /** + * List the logs from a ledger + * + *

List the logs from a ledger, sorted by ID in descending order. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListLogsResponse listLogs(V2ListLogsRequest request, Optional serverURL) { RequestOperation operation - = new V2ListLogs.Sync(sdkConfiguration, _headers); + = new V2ListLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -908,8 +1292,20 @@ public V2ListPipelinesRequestBuilder listPipelines() { * @throws RuntimeException subclass if the API call fails */ public V2ListPipelinesResponse listPipelines(V2ListPipelinesRequest request) { + return listPipelines(request, Optional.empty()); + } + + /** + * List pipelines + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListPipelinesResponse listPipelines(V2ListPipelinesRequest request, Optional serverURL) { RequestOperation operation - = new V2ListPipelines.Sync(sdkConfiguration, _headers); + = new V2ListPipelines.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -930,8 +1326,20 @@ public V2ListSchemasRequestBuilder listSchemas() { * @throws RuntimeException subclass if the API call fails */ public V2ListSchemasResponse listSchemas(V2ListSchemasRequest request) { + return listSchemas(request, Optional.empty()); + } + + /** + * List all schemas for a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListSchemasResponse listSchemas(V2ListSchemasRequest request, Optional serverURL) { RequestOperation operation - = new V2ListSchemas.Sync(sdkConfiguration, _headers); + = new V2ListSchemas.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -956,8 +1364,22 @@ public V2ListTransactionsRequestBuilder listTransactions() { * @throws RuntimeException subclass if the API call fails */ public V2ListTransactionsResponse listTransactions(V2ListTransactionsRequest request) { + return listTransactions(request, Optional.empty()); + } + + /** + * List transactions from a ledger + * + *

List transactions from a ledger, sorted by id in descending order. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListTransactionsResponse listTransactions(V2ListTransactionsRequest request, Optional serverURL) { RequestOperation operation - = new V2ListTransactions.Sync(sdkConfiguration, _headers); + = new V2ListTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -982,8 +1404,22 @@ public V2ReadStatsRequestBuilder readStats() { * @throws RuntimeException subclass if the API call fails */ public V2ReadStatsResponse readStats(V2ReadStatsRequest request) { + return readStats(request, Optional.empty()); + } + + /** + * Get statistics from a ledger + * + *

Get statistics from a ledger. (aggregate metrics on accounts and transactions) + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ReadStatsResponse readStats(V2ReadStatsRequest request, Optional serverURL) { RequestOperation operation - = new V2ReadStats.Sync(sdkConfiguration, _headers); + = new V2ReadStats.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1004,8 +1440,20 @@ public V2ResetPipelineRequestBuilder resetPipeline() { * @throws RuntimeException subclass if the API call fails */ public V2ResetPipelineResponse resetPipeline(V2ResetPipelineRequest request) { + return resetPipeline(request, Optional.empty()); + } + + /** + * Reset pipeline + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ResetPipelineResponse resetPipeline(V2ResetPipelineRequest request, Optional serverURL) { RequestOperation operation - = new V2ResetPipeline.Sync(sdkConfiguration, _headers); + = new V2ResetPipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1032,8 +1480,23 @@ public V2RestoreBucketRequestBuilder restoreBucket() { * @throws RuntimeException subclass if the API call fails */ public V2RestoreBucketResponse restoreBucket(V2RestoreBucketRequest request) { + return restoreBucket(request, Optional.empty()); + } + + /** + * Restore bucket + * + *

Restore a deleted bucket by unmarking all ledgers in the bucket as deleted. All ledgers in the + * bucket will have their deleted_at field set to NULL. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2RestoreBucketResponse restoreBucket(V2RestoreBucketRequest request, Optional serverURL) { RequestOperation operation - = new V2RestoreBucket.Sync(sdkConfiguration, _headers); + = new V2RestoreBucket.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1054,8 +1517,20 @@ public V2RevertTransactionRequestBuilder revertTransaction() { * @throws RuntimeException subclass if the API call fails */ public V2RevertTransactionResponse revertTransaction(V2RevertTransactionRequest request) { + return revertTransaction(request, Optional.empty()); + } + + /** + * Revert a ledger transaction by its ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2RevertTransactionResponse revertTransaction(V2RevertTransactionRequest request, Optional serverURL) { RequestOperation operation - = new V2RevertTransaction.Sync(sdkConfiguration, _headers); + = new V2RevertTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1080,8 +1555,22 @@ public V2RunQueryRequestBuilder runQuery() { * @throws RuntimeException subclass if the API call fails */ public V2RunQueryResponse runQuery(V2RunQueryRequest request) { + return runQuery(request, Optional.empty()); + } + + /** + * Run a query template + * + *

Run a query template on a ledger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2RunQueryResponse runQuery(V2RunQueryRequest request, Optional serverURL) { RequestOperation operation - = new V2RunQuery.Sync(sdkConfiguration, _headers); + = new V2RunQuery.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1102,8 +1591,20 @@ public V2StartPipelineRequestBuilder startPipeline() { * @throws RuntimeException subclass if the API call fails */ public V2StartPipelineResponse startPipeline(V2StartPipelineRequest request) { + return startPipeline(request, Optional.empty()); + } + + /** + * Start pipeline + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2StartPipelineResponse startPipeline(V2StartPipelineRequest request, Optional serverURL) { RequestOperation operation - = new V2StartPipeline.Sync(sdkConfiguration, _headers); + = new V2StartPipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1124,8 +1625,20 @@ public V2StopPipelineRequestBuilder stopPipeline() { * @throws RuntimeException subclass if the API call fails */ public V2StopPipelineResponse stopPipeline(V2StopPipelineRequest request) { + return stopPipeline(request, Optional.empty()); + } + + /** + * Stop pipeline + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2StopPipelineResponse stopPipeline(V2StopPipelineRequest request, Optional serverURL) { RequestOperation operation - = new V2StopPipeline.Sync(sdkConfiguration, _headers); + = new V2StopPipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1146,8 +1659,20 @@ public V2UpdateExporterRequestBuilder updateExporter() { * @throws RuntimeException subclass if the API call fails */ public V2UpdateExporterResponse updateExporter(V2UpdateExporterRequest request) { + return updateExporter(request, Optional.empty()); + } + + /** + * Update exporter + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2UpdateExporterResponse updateExporter(V2UpdateExporterRequest request, Optional serverURL) { RequestOperation operation - = new V2UpdateExporter.Sync(sdkConfiguration, _headers); + = new V2UpdateExporter.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1168,8 +1693,20 @@ public V2UpdateLedgerMetadataRequestBuilder updateLedgerMetadata() { * @throws RuntimeException subclass if the API call fails */ public V2UpdateLedgerMetadataResponse updateLedgerMetadata(V2UpdateLedgerMetadataRequest request) { + return updateLedgerMetadata(request, Optional.empty()); + } + + /** + * Update ledger metadata + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2UpdateLedgerMetadataResponse updateLedgerMetadata(V2UpdateLedgerMetadataRequest request, Optional serverURL) { RequestOperation operation - = new V2UpdateLedgerMetadata.Sync(sdkConfiguration, _headers); + = new V2UpdateLedgerMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/OrchestrationV1.java b/src/main/java/com/formance/formance_sdk/OrchestrationV1.java index d46e4ef1e..bc4f3df65 100644 --- a/src/main/java/com/formance/formance_sdk/OrchestrationV1.java +++ b/src/main/java/com/formance/formance_sdk/OrchestrationV1.java @@ -28,6 +28,8 @@ import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequest; import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequestBuilder; import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryResponse; +import com.formance.formance_sdk.models.operations.GetServerInfoOrchestrationRequestBuilder; +import com.formance.formance_sdk.models.operations.GetServerInfoOrchestrationResponse; import com.formance.formance_sdk.models.operations.GetWorkflowRequest; import com.formance.formance_sdk.models.operations.GetWorkflowRequestBuilder; import com.formance.formance_sdk.models.operations.GetWorkflowResponse; @@ -42,8 +44,6 @@ import com.formance.formance_sdk.models.operations.ListTriggersResponse; import com.formance.formance_sdk.models.operations.ListWorkflowsRequestBuilder; import com.formance.formance_sdk.models.operations.ListWorkflowsResponse; -import com.formance.formance_sdk.models.operations.OrchestrationgetServerInfoRequestBuilder; -import com.formance.formance_sdk.models.operations.OrchestrationgetServerInfoResponse; import com.formance.formance_sdk.models.operations.ReadTriggerRequest; import com.formance.formance_sdk.models.operations.ReadTriggerRequestBuilder; import com.formance.formance_sdk.models.operations.ReadTriggerResponse; @@ -53,8 +53,8 @@ import com.formance.formance_sdk.models.operations.SendEventRequest; import com.formance.formance_sdk.models.operations.SendEventRequestBuilder; import com.formance.formance_sdk.models.operations.SendEventResponse; -import com.formance.formance_sdk.models.shared.CreateWorkflowRequest; -import com.formance.formance_sdk.models.shared.TriggerData; +import com.formance.formance_sdk.models.orchestration.TriggerData2; +import com.formance.formance_sdk.models.orchestration.WorkflowConfig; import com.formance.formance_sdk.operations.CancelEvent; import com.formance.formance_sdk.operations.CreateTrigger; import com.formance.formance_sdk.operations.CreateWorkflow; @@ -63,16 +63,17 @@ import com.formance.formance_sdk.operations.GetInstance; import com.formance.formance_sdk.operations.GetInstanceHistory; import com.formance.formance_sdk.operations.GetInstanceStageHistory; +import com.formance.formance_sdk.operations.GetServerInfoOrchestration; import com.formance.formance_sdk.operations.GetWorkflow; import com.formance.formance_sdk.operations.ListInstances; import com.formance.formance_sdk.operations.ListTriggers; import com.formance.formance_sdk.operations.ListTriggersOccurrences; import com.formance.formance_sdk.operations.ListWorkflows; -import com.formance.formance_sdk.operations.OrchestrationgetServerInfo; import com.formance.formance_sdk.operations.ReadTrigger; import com.formance.formance_sdk.operations.RunWorkflow; import com.formance.formance_sdk.operations.SendEvent; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; import java.util.Optional; @@ -105,8 +106,22 @@ public CancelEventRequestBuilder cancelEvent() { * @throws RuntimeException subclass if the API call fails */ public CancelEventResponse cancelEvent(CancelEventRequest request) { + return cancelEvent(request, Optional.empty()); + } + + /** + * Cancel a running workflow + * + *

Cancel a running workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CancelEventResponse cancelEvent(CancelEventRequest request, Optional serverURL) { RequestOperation operation - = new CancelEvent.Sync(sdkConfiguration, _headers); + = new CancelEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -130,7 +145,7 @@ public CreateTriggerRequestBuilder createTrigger() { * @throws RuntimeException subclass if the API call fails */ public CreateTriggerResponse createTriggerDirect() { - return createTrigger(Optional.empty()); + return createTrigger(Optional.empty(), Optional.empty()); } /** @@ -139,12 +154,13 @@ public CreateTriggerResponse createTriggerDirect() { *

Create trigger * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateTriggerResponse createTrigger(Optional request) { - RequestOperation, CreateTriggerResponse> operation - = new CreateTrigger.Sync(sdkConfiguration, _headers); + public CreateTriggerResponse createTrigger(Optional request, Optional serverURL) { + RequestOperation, CreateTriggerResponse> operation + = new CreateTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -168,7 +184,7 @@ public CreateWorkflowRequestBuilder createWorkflow() { * @throws RuntimeException subclass if the API call fails */ public CreateWorkflowResponse createWorkflowDirect() { - return createWorkflow(Optional.empty()); + return createWorkflow(Optional.empty(), Optional.empty()); } /** @@ -177,12 +193,13 @@ public CreateWorkflowResponse createWorkflowDirect() { *

Create a workflow * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateWorkflowResponse createWorkflow(Optional request) { - RequestOperation, CreateWorkflowResponse> operation - = new CreateWorkflow.Sync(sdkConfiguration, _headers); + public CreateWorkflowResponse createWorkflow(Optional request, Optional serverURL) { + RequestOperation, CreateWorkflowResponse> operation + = new CreateWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -207,8 +224,22 @@ public DeleteTriggerRequestBuilder deleteTrigger() { * @throws RuntimeException subclass if the API call fails */ public DeleteTriggerResponse deleteTrigger(DeleteTriggerRequest request) { + return deleteTrigger(request, Optional.empty()); + } + + /** + * Delete trigger + * + *

Read trigger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteTriggerResponse deleteTrigger(DeleteTriggerRequest request, Optional serverURL) { RequestOperation operation - = new DeleteTrigger.Sync(sdkConfiguration, _headers); + = new DeleteTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -233,8 +264,22 @@ public DeleteWorkflowRequestBuilder deleteWorkflow() { * @throws RuntimeException subclass if the API call fails */ public DeleteWorkflowResponse deleteWorkflow(DeleteWorkflowRequest request) { + return deleteWorkflow(request, Optional.empty()); + } + + /** + * Delete a flow by id + * + *

Delete a flow by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteWorkflowResponse deleteWorkflow(DeleteWorkflowRequest request, Optional serverURL) { RequestOperation operation - = new DeleteWorkflow.Sync(sdkConfiguration, _headers); + = new DeleteWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -259,8 +304,22 @@ public GetInstanceRequestBuilder getInstance() { * @throws RuntimeException subclass if the API call fails */ public GetInstanceResponse getInstance(GetInstanceRequest request) { + return getInstance(request, Optional.empty()); + } + + /** + * Get a workflow instance by id + * + *

Get a workflow instance by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetInstanceResponse getInstance(GetInstanceRequest request, Optional serverURL) { RequestOperation operation - = new GetInstance.Sync(sdkConfiguration, _headers); + = new GetInstance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -285,8 +344,22 @@ public GetInstanceHistoryRequestBuilder getInstanceHistory() { * @throws RuntimeException subclass if the API call fails */ public GetInstanceHistoryResponse getInstanceHistory(GetInstanceHistoryRequest request) { + return getInstanceHistory(request, Optional.empty()); + } + + /** + * Get a workflow instance history by id + * + *

Get a workflow instance history by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetInstanceHistoryResponse getInstanceHistory(GetInstanceHistoryRequest request, Optional serverURL) { RequestOperation operation - = new GetInstanceHistory.Sync(sdkConfiguration, _headers); + = new GetInstanceHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -311,11 +384,57 @@ public GetInstanceStageHistoryRequestBuilder getInstanceStageHistory() { * @throws RuntimeException subclass if the API call fails */ public GetInstanceStageHistoryResponse getInstanceStageHistory(GetInstanceStageHistoryRequest request) { + return getInstanceStageHistory(request, Optional.empty()); + } + + /** + * Get a workflow instance stage history + * + *

Get a workflow instance stage history + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetInstanceStageHistoryResponse getInstanceStageHistory(GetInstanceStageHistoryRequest request, Optional serverURL) { RequestOperation operation - = new GetInstanceStageHistory.Sync(sdkConfiguration, _headers); + = new GetInstanceStageHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } + /** + * Get server info + * + * @return The call builder + */ + public GetServerInfoOrchestrationRequestBuilder getServerInfoOrchestration() { + return new GetServerInfoOrchestrationRequestBuilder(sdkConfiguration); + } + + /** + * Get server info + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoOrchestrationResponse getServerInfoOrchestrationDirect() { + return getServerInfoOrchestration(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoOrchestrationResponse getServerInfoOrchestration(Optional serverURL) { + RequestlessOperation operation + = new GetServerInfoOrchestration.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest()); + } + /** * Get a flow by id * @@ -337,8 +456,22 @@ public GetWorkflowRequestBuilder getWorkflow() { * @throws RuntimeException subclass if the API call fails */ public GetWorkflowResponse getWorkflow(GetWorkflowRequest request) { + return getWorkflow(request, Optional.empty()); + } + + /** + * Get a flow by id + * + *

Get a flow by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetWorkflowResponse getWorkflow(GetWorkflowRequest request, Optional serverURL) { RequestOperation operation - = new GetWorkflow.Sync(sdkConfiguration, _headers); + = new GetWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -363,8 +496,22 @@ public ListInstancesRequestBuilder listInstances() { * @throws RuntimeException subclass if the API call fails */ public ListInstancesResponse listInstances(ListInstancesRequest request) { + return listInstances(request, Optional.empty()); + } + + /** + * List instances of a workflow + * + *

List instances of a workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListInstancesResponse listInstances(ListInstancesRequest request, Optional serverURL) { RequestOperation operation - = new ListInstances.Sync(sdkConfiguration, _headers); + = new ListInstances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -389,8 +536,22 @@ public ListTriggersRequestBuilder listTriggers() { * @throws RuntimeException subclass if the API call fails */ public ListTriggersResponse listTriggers(ListTriggersRequest request) { + return listTriggers(request, Optional.empty()); + } + + /** + * List triggers + * + *

List triggers + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListTriggersResponse listTriggers(ListTriggersRequest request, Optional serverURL) { RequestOperation operation - = new ListTriggers.Sync(sdkConfiguration, _headers); + = new ListTriggers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -415,8 +576,22 @@ public ListTriggersOccurrencesRequestBuilder listTriggersOccurrences() { * @throws RuntimeException subclass if the API call fails */ public ListTriggersOccurrencesResponse listTriggersOccurrences(ListTriggersOccurrencesRequest request) { + return listTriggersOccurrences(request, Optional.empty()); + } + + /** + * List triggers occurrences + * + *

List triggers occurrences + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListTriggersOccurrencesResponse listTriggersOccurrences(ListTriggersOccurrencesRequest request, Optional serverURL) { RequestOperation operation - = new ListTriggersOccurrences.Sync(sdkConfiguration, _headers); + = new ListTriggersOccurrences.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -440,29 +615,21 @@ public ListWorkflowsRequestBuilder listWorkflows() { * @throws RuntimeException subclass if the API call fails */ public ListWorkflowsResponse listWorkflowsDirect() { - RequestlessOperation operation - = new ListWorkflows.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); + return listWorkflows(Optional.empty()); } /** - * Get server info + * List registered workflows * - * @return The call builder - */ - public OrchestrationgetServerInfoRequestBuilder orchestrationgetServerInfo() { - return new OrchestrationgetServerInfoRequestBuilder(sdkConfiguration); - } - - /** - * Get server info + *

List registered workflows * + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public OrchestrationgetServerInfoResponse orchestrationgetServerInfoDirect() { - RequestlessOperation operation - = new OrchestrationgetServerInfo.Sync(sdkConfiguration, _headers); + public ListWorkflowsResponse listWorkflows(Optional serverURL) { + RequestlessOperation operation + = new ListWorkflows.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -487,8 +654,22 @@ public ReadTriggerRequestBuilder readTrigger() { * @throws RuntimeException subclass if the API call fails */ public ReadTriggerResponse readTrigger(ReadTriggerRequest request) { + return readTrigger(request, Optional.empty()); + } + + /** + * Read trigger + * + *

Read trigger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReadTriggerResponse readTrigger(ReadTriggerRequest request, Optional serverURL) { RequestOperation operation - = new ReadTrigger.Sync(sdkConfiguration, _headers); + = new ReadTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -513,8 +694,22 @@ public RunWorkflowRequestBuilder runWorkflow() { * @throws RuntimeException subclass if the API call fails */ public RunWorkflowResponse runWorkflow(RunWorkflowRequest request) { + return runWorkflow(request, Optional.empty()); + } + + /** + * Run workflow + * + *

Run workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RunWorkflowResponse runWorkflow(RunWorkflowRequest request, Optional serverURL) { RequestOperation operation - = new RunWorkflow.Sync(sdkConfiguration, _headers); + = new RunWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -539,8 +734,22 @@ public SendEventRequestBuilder sendEvent() { * @throws RuntimeException subclass if the API call fails */ public SendEventResponse sendEvent(SendEventRequest request) { + return sendEvent(request, Optional.empty()); + } + + /** + * Send an event to a running workflow + * + *

Send an event to a running workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public SendEventResponse sendEvent(SendEventRequest request, Optional serverURL) { RequestOperation operation - = new SendEvent.Sync(sdkConfiguration, _headers); + = new SendEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/OrchestrationV2.java b/src/main/java/com/formance/formance_sdk/OrchestrationV2.java index ee47a933e..3ace5f79e 100644 --- a/src/main/java/com/formance/formance_sdk/OrchestrationV2.java +++ b/src/main/java/com/formance/formance_sdk/OrchestrationV2.java @@ -57,8 +57,8 @@ import com.formance.formance_sdk.models.operations.V2SendEventRequest; import com.formance.formance_sdk.models.operations.V2SendEventRequestBuilder; import com.formance.formance_sdk.models.operations.V2SendEventResponse; -import com.formance.formance_sdk.models.shared.V2CreateWorkflowRequest; -import com.formance.formance_sdk.models.shared.V2TriggerData; +import com.formance.formance_sdk.models.orchestration.V2TriggerData2; +import com.formance.formance_sdk.models.orchestration.V2WorkflowConfig; import com.formance.formance_sdk.operations.TestTrigger; import com.formance.formance_sdk.operations.V2CancelEvent; import com.formance.formance_sdk.operations.V2CreateTrigger; @@ -78,6 +78,7 @@ import com.formance.formance_sdk.operations.V2RunWorkflow; import com.formance.formance_sdk.operations.V2SendEvent; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; import java.util.Optional; @@ -110,8 +111,22 @@ public V2CancelEventRequestBuilder cancelEvent() { * @throws RuntimeException subclass if the API call fails */ public V2CancelEventResponse cancelEvent(V2CancelEventRequest request) { + return cancelEvent(request, Optional.empty()); + } + + /** + * Cancel a running workflow + * + *

Cancel a running workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2CancelEventResponse cancelEvent(V2CancelEventRequest request, Optional serverURL) { RequestOperation operation - = new V2CancelEvent.Sync(sdkConfiguration, _headers); + = new V2CancelEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -135,7 +150,7 @@ public V2CreateTriggerRequestBuilder createTrigger() { * @throws RuntimeException subclass if the API call fails */ public V2CreateTriggerResponse createTriggerDirect() { - return createTrigger(Optional.empty()); + return createTrigger(Optional.empty(), Optional.empty()); } /** @@ -144,12 +159,13 @@ public V2CreateTriggerResponse createTriggerDirect() { *

Create trigger * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V2CreateTriggerResponse createTrigger(Optional request) { - RequestOperation, V2CreateTriggerResponse> operation - = new V2CreateTrigger.Sync(sdkConfiguration, _headers); + public V2CreateTriggerResponse createTrigger(Optional request, Optional serverURL) { + RequestOperation, V2CreateTriggerResponse> operation + = new V2CreateTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -173,7 +189,7 @@ public V2CreateWorkflowRequestBuilder createWorkflow() { * @throws RuntimeException subclass if the API call fails */ public V2CreateWorkflowResponse createWorkflowDirect() { - return createWorkflow(Optional.empty()); + return createWorkflow(Optional.empty(), Optional.empty()); } /** @@ -182,12 +198,13 @@ public V2CreateWorkflowResponse createWorkflowDirect() { *

Create a workflow * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V2CreateWorkflowResponse createWorkflow(Optional request) { - RequestOperation, V2CreateWorkflowResponse> operation - = new V2CreateWorkflow.Sync(sdkConfiguration, _headers); + public V2CreateWorkflowResponse createWorkflow(Optional request, Optional serverURL) { + RequestOperation, V2CreateWorkflowResponse> operation + = new V2CreateWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -212,8 +229,22 @@ public V2DeleteTriggerRequestBuilder deleteTrigger() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteTriggerResponse deleteTrigger(V2DeleteTriggerRequest request) { + return deleteTrigger(request, Optional.empty()); + } + + /** + * Delete trigger + * + *

Read trigger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteTriggerResponse deleteTrigger(V2DeleteTriggerRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteTrigger.Sync(sdkConfiguration, _headers); + = new V2DeleteTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -238,8 +269,22 @@ public V2DeleteWorkflowRequestBuilder deleteWorkflow() { * @throws RuntimeException subclass if the API call fails */ public V2DeleteWorkflowResponse deleteWorkflow(V2DeleteWorkflowRequest request) { + return deleteWorkflow(request, Optional.empty()); + } + + /** + * Delete a flow by id + * + *

Delete a flow by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2DeleteWorkflowResponse deleteWorkflow(V2DeleteWorkflowRequest request, Optional serverURL) { RequestOperation operation - = new V2DeleteWorkflow.Sync(sdkConfiguration, _headers); + = new V2DeleteWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -264,8 +309,22 @@ public V2GetInstanceRequestBuilder getInstance() { * @throws RuntimeException subclass if the API call fails */ public V2GetInstanceResponse getInstance(V2GetInstanceRequest request) { + return getInstance(request, Optional.empty()); + } + + /** + * Get a workflow instance by id + * + *

Get a workflow instance by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetInstanceResponse getInstance(V2GetInstanceRequest request, Optional serverURL) { RequestOperation operation - = new V2GetInstance.Sync(sdkConfiguration, _headers); + = new V2GetInstance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -290,8 +349,22 @@ public V2GetInstanceHistoryRequestBuilder getInstanceHistory() { * @throws RuntimeException subclass if the API call fails */ public V2GetInstanceHistoryResponse getInstanceHistory(V2GetInstanceHistoryRequest request) { + return getInstanceHistory(request, Optional.empty()); + } + + /** + * Get a workflow instance history by id + * + *

Get a workflow instance history by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetInstanceHistoryResponse getInstanceHistory(V2GetInstanceHistoryRequest request, Optional serverURL) { RequestOperation operation - = new V2GetInstanceHistory.Sync(sdkConfiguration, _headers); + = new V2GetInstanceHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -316,8 +389,22 @@ public V2GetInstanceStageHistoryRequestBuilder getInstanceStageHistory() { * @throws RuntimeException subclass if the API call fails */ public V2GetInstanceStageHistoryResponse getInstanceStageHistory(V2GetInstanceStageHistoryRequest request) { + return getInstanceStageHistory(request, Optional.empty()); + } + + /** + * Get a workflow instance stage history + * + *

Get a workflow instance stage history + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetInstanceStageHistoryResponse getInstanceStageHistory(V2GetInstanceStageHistoryRequest request, Optional serverURL) { RequestOperation operation - = new V2GetInstanceStageHistory.Sync(sdkConfiguration, _headers); + = new V2GetInstanceStageHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -337,8 +424,19 @@ public V2GetServerInfoRequestBuilder getServerInfo() { * @throws RuntimeException subclass if the API call fails */ public V2GetServerInfoResponse getServerInfoDirect() { + return getServerInfo(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetServerInfoResponse getServerInfo(Optional serverURL) { RequestlessOperation operation - = new V2GetServerInfo.Sync(sdkConfiguration, _headers); + = new V2GetServerInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -363,8 +461,22 @@ public V2GetWorkflowRequestBuilder getWorkflow() { * @throws RuntimeException subclass if the API call fails */ public V2GetWorkflowResponse getWorkflow(V2GetWorkflowRequest request) { + return getWorkflow(request, Optional.empty()); + } + + /** + * Get a flow by id + * + *

Get a flow by id + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2GetWorkflowResponse getWorkflow(V2GetWorkflowRequest request, Optional serverURL) { RequestOperation operation - = new V2GetWorkflow.Sync(sdkConfiguration, _headers); + = new V2GetWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -389,8 +501,22 @@ public V2ListInstancesRequestBuilder listInstances() { * @throws RuntimeException subclass if the API call fails */ public V2ListInstancesResponse listInstances(V2ListInstancesRequest request) { + return listInstances(request, Optional.empty()); + } + + /** + * List instances of a workflow + * + *

List instances of a workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListInstancesResponse listInstances(V2ListInstancesRequest request, Optional serverURL) { RequestOperation operation - = new V2ListInstances.Sync(sdkConfiguration, _headers); + = new V2ListInstances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -415,8 +541,22 @@ public V2ListTriggersRequestBuilder listTriggers() { * @throws RuntimeException subclass if the API call fails */ public V2ListTriggersResponse listTriggers(V2ListTriggersRequest request) { + return listTriggers(request, Optional.empty()); + } + + /** + * List triggers + * + *

List triggers + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListTriggersResponse listTriggers(V2ListTriggersRequest request, Optional serverURL) { RequestOperation operation - = new V2ListTriggers.Sync(sdkConfiguration, _headers); + = new V2ListTriggers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -441,8 +581,22 @@ public V2ListTriggersOccurrencesRequestBuilder listTriggersOccurrences() { * @throws RuntimeException subclass if the API call fails */ public V2ListTriggersOccurrencesResponse listTriggersOccurrences(V2ListTriggersOccurrencesRequest request) { + return listTriggersOccurrences(request, Optional.empty()); + } + + /** + * List triggers occurrences + * + *

List triggers occurrences + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListTriggersOccurrencesResponse listTriggersOccurrences(V2ListTriggersOccurrencesRequest request, Optional serverURL) { RequestOperation operation - = new V2ListTriggersOccurrences.Sync(sdkConfiguration, _headers); + = new V2ListTriggersOccurrences.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -467,8 +621,22 @@ public V2ListWorkflowsRequestBuilder listWorkflows() { * @throws RuntimeException subclass if the API call fails */ public V2ListWorkflowsResponse listWorkflows(V2ListWorkflowsRequest request) { + return listWorkflows(request, Optional.empty()); + } + + /** + * List registered workflows + * + *

List registered workflows + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ListWorkflowsResponse listWorkflows(V2ListWorkflowsRequest request, Optional serverURL) { RequestOperation operation - = new V2ListWorkflows.Sync(sdkConfiguration, _headers); + = new V2ListWorkflows.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -493,8 +661,22 @@ public V2ReadTriggerRequestBuilder readTrigger() { * @throws RuntimeException subclass if the API call fails */ public V2ReadTriggerResponse readTrigger(V2ReadTriggerRequest request) { + return readTrigger(request, Optional.empty()); + } + + /** + * Read trigger + * + *

Read trigger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2ReadTriggerResponse readTrigger(V2ReadTriggerRequest request, Optional serverURL) { RequestOperation operation - = new V2ReadTrigger.Sync(sdkConfiguration, _headers); + = new V2ReadTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -519,8 +701,22 @@ public V2RunWorkflowRequestBuilder runWorkflow() { * @throws RuntimeException subclass if the API call fails */ public V2RunWorkflowResponse runWorkflow(V2RunWorkflowRequest request) { + return runWorkflow(request, Optional.empty()); + } + + /** + * Run workflow + * + *

Run workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2RunWorkflowResponse runWorkflow(V2RunWorkflowRequest request, Optional serverURL) { RequestOperation operation - = new V2RunWorkflow.Sync(sdkConfiguration, _headers); + = new V2RunWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -545,8 +741,22 @@ public V2SendEventRequestBuilder sendEvent() { * @throws RuntimeException subclass if the API call fails */ public V2SendEventResponse sendEvent(V2SendEventRequest request) { + return sendEvent(request, Optional.empty()); + } + + /** + * Send an event to a running workflow + * + *

Send an event to a running workflow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V2SendEventResponse sendEvent(V2SendEventRequest request, Optional serverURL) { RequestOperation operation - = new V2SendEvent.Sync(sdkConfiguration, _headers); + = new V2SendEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -571,8 +781,22 @@ public TestTriggerRequestBuilder testTrigger() { * @throws RuntimeException subclass if the API call fails */ public TestTriggerResponse testTrigger(TestTriggerRequest request) { + return testTrigger(request, Optional.empty()); + } + + /** + * Test trigger + * + *

Test trigger + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public TestTriggerResponse testTrigger(TestTriggerRequest request, Optional serverURL) { RequestOperation operation - = new TestTrigger.Sync(sdkConfiguration, _headers); + = new TestTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/PaymentsV1.java b/src/main/java/com/formance/formance_sdk/PaymentsV1.java index 7f8e34aba..a85737b84 100644 --- a/src/main/java/com/formance/formance_sdk/PaymentsV1.java +++ b/src/main/java/com/formance/formance_sdk/PaymentsV1.java @@ -34,6 +34,9 @@ import com.formance.formance_sdk.models.operations.GetAccountBalancesRequest; import com.formance.formance_sdk.models.operations.GetAccountBalancesRequestBuilder; import com.formance.formance_sdk.models.operations.GetAccountBalancesResponse; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsRequest; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsRequestBuilder; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsResponse; import com.formance.formance_sdk.models.operations.GetBankAccountRequest; import com.formance.formance_sdk.models.operations.GetBankAccountRequestBuilder; import com.formance.formance_sdk.models.operations.GetBankAccountResponse; @@ -55,12 +58,17 @@ import com.formance.formance_sdk.models.operations.GetPoolRequest; import com.formance.formance_sdk.models.operations.GetPoolRequestBuilder; import com.formance.formance_sdk.models.operations.GetPoolResponse; +import com.formance.formance_sdk.models.operations.GetServerInfoPaymentsRequestBuilder; +import com.formance.formance_sdk.models.operations.GetServerInfoPaymentsResponse; import com.formance.formance_sdk.models.operations.GetTransferInitiationRequest; import com.formance.formance_sdk.models.operations.GetTransferInitiationRequestBuilder; import com.formance.formance_sdk.models.operations.GetTransferInitiationResponse; import com.formance.formance_sdk.models.operations.InstallConnectorRequest; import com.formance.formance_sdk.models.operations.InstallConnectorRequestBuilder; import com.formance.formance_sdk.models.operations.InstallConnectorResponse; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsRequest; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsRequestBuilder; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsResponse; import com.formance.formance_sdk.models.operations.ListAllConnectorsRequestBuilder; import com.formance.formance_sdk.models.operations.ListAllConnectorsResponse; import com.formance.formance_sdk.models.operations.ListBankAccountsRequest; @@ -83,14 +91,6 @@ import com.formance.formance_sdk.models.operations.ListTransferInitiationsRequest; import com.formance.formance_sdk.models.operations.ListTransferInitiationsRequestBuilder; import com.formance.formance_sdk.models.operations.ListTransferInitiationsResponse; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountRequest; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountRequestBuilder; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountResponse; -import com.formance.formance_sdk.models.operations.PaymentsgetServerInfoRequestBuilder; -import com.formance.formance_sdk.models.operations.PaymentsgetServerInfoResponse; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsRequest; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsRequestBuilder; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsResponse; import com.formance.formance_sdk.models.operations.ReadConnectorConfigRequest; import com.formance.formance_sdk.models.operations.ReadConnectorConfigRequestBuilder; import com.formance.formance_sdk.models.operations.ReadConnectorConfigResponse; @@ -133,11 +133,11 @@ import com.formance.formance_sdk.models.operations.UpdateTransferInitiationStatusRequest; import com.formance.formance_sdk.models.operations.UpdateTransferInitiationStatusRequestBuilder; import com.formance.formance_sdk.models.operations.UpdateTransferInitiationStatusResponse; -import com.formance.formance_sdk.models.shared.AccountRequest; -import com.formance.formance_sdk.models.shared.BankAccountRequest; -import com.formance.formance_sdk.models.shared.PaymentRequest; -import com.formance.formance_sdk.models.shared.PoolRequest; -import com.formance.formance_sdk.models.shared.TransferInitiationRequest; +import com.formance.formance_sdk.models.payments.AccountRequest; +import com.formance.formance_sdk.models.payments.BankAccountRequest; +import com.formance.formance_sdk.models.payments.PaymentRequest; +import com.formance.formance_sdk.models.payments.PoolRequest; +import com.formance.formance_sdk.models.payments.TransferInitiationRequest; import com.formance.formance_sdk.operations.AddAccountToPool; import com.formance.formance_sdk.operations.ConnectorsTransfer; import com.formance.formance_sdk.operations.CreateAccount; @@ -149,6 +149,7 @@ import com.formance.formance_sdk.operations.DeleteTransferInitiation; import com.formance.formance_sdk.operations.ForwardBankAccount; import com.formance.formance_sdk.operations.GetAccountBalances; +import com.formance.formance_sdk.operations.GetAccountPayments; import com.formance.formance_sdk.operations.GetBankAccount; import com.formance.formance_sdk.operations.GetConnectorTask; import com.formance.formance_sdk.operations.GetConnectorTaskV1; @@ -156,8 +157,10 @@ import com.formance.formance_sdk.operations.GetPool; import com.formance.formance_sdk.operations.GetPoolBalances; import com.formance.formance_sdk.operations.GetPoolBalancesLatest; +import com.formance.formance_sdk.operations.GetServerInfoPayments; import com.formance.formance_sdk.operations.GetTransferInitiation; import com.formance.formance_sdk.operations.InstallConnector; +import com.formance.formance_sdk.operations.ListAccountsPayments; import com.formance.formance_sdk.operations.ListAllConnectors; import com.formance.formance_sdk.operations.ListBankAccounts; import com.formance.formance_sdk.operations.ListConfigsAvailableConnectors; @@ -166,9 +169,6 @@ import com.formance.formance_sdk.operations.ListPayments; import com.formance.formance_sdk.operations.ListPools; import com.formance.formance_sdk.operations.ListTransferInitiations; -import com.formance.formance_sdk.operations.PaymentsgetAccount; -import com.formance.formance_sdk.operations.PaymentsgetServerInfo; -import com.formance.formance_sdk.operations.PaymentslistAccounts; import com.formance.formance_sdk.operations.ReadConnectorConfig; import com.formance.formance_sdk.operations.ReadConnectorConfigV1; import com.formance.formance_sdk.operations.RemoveAccountFromPool; @@ -185,6 +185,8 @@ import com.formance.formance_sdk.operations.UpdateTransferInitiationStatus; import com.formance.formance_sdk.utils.Headers; import java.lang.Deprecated; +import java.lang.String; +import java.util.Optional; public class PaymentsV1 { @@ -216,8 +218,22 @@ public AddAccountToPoolRequestBuilder addAccountToPool() { * @throws RuntimeException subclass if the API call fails */ public AddAccountToPoolResponse addAccountToPool(AddAccountToPoolRequest request) { + return addAccountToPool(request, Optional.empty()); + } + + /** + * Add an account to a pool + * + *

Add an account to a pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AddAccountToPoolResponse addAccountToPool(AddAccountToPoolRequest request, Optional serverURL) { RequestOperation operation - = new AddAccountToPool.Sync(sdkConfiguration, _headers); + = new AddAccountToPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -242,8 +258,22 @@ public ConnectorsTransferRequestBuilder connectorsTransfer() { * @throws RuntimeException subclass if the API call fails */ public ConnectorsTransferResponse connectorsTransfer(ConnectorsTransferRequest request) { + return connectorsTransfer(request, Optional.empty()); + } + + /** + * Transfer funds between Connector accounts + * + *

Execute a transfer between two accounts. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ConnectorsTransferResponse connectorsTransfer(ConnectorsTransferRequest request, Optional serverURL) { RequestOperation operation - = new ConnectorsTransfer.Sync(sdkConfiguration, _headers); + = new ConnectorsTransfer.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -268,8 +298,22 @@ public CreateAccountRequestBuilder createAccount() { * @throws RuntimeException subclass if the API call fails */ public CreateAccountResponse createAccount(AccountRequest request) { + return createAccount(request, Optional.empty()); + } + + /** + * Create an account + * + *

Create an account + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateAccountResponse createAccount(AccountRequest request, Optional serverURL) { RequestOperation operation - = new CreateAccount.Sync(sdkConfiguration, _headers); + = new CreateAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -294,8 +338,22 @@ public CreateBankAccountRequestBuilder createBankAccount() { * @throws RuntimeException subclass if the API call fails */ public CreateBankAccountResponse createBankAccount(BankAccountRequest request) { + return createBankAccount(request, Optional.empty()); + } + + /** + * Create a BankAccount in Payments and on the PSP + * + *

Create a bank account in Payments and on the PSP. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateBankAccountResponse createBankAccount(BankAccountRequest request, Optional serverURL) { RequestOperation operation - = new CreateBankAccount.Sync(sdkConfiguration, _headers); + = new CreateBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -320,8 +378,22 @@ public CreatePaymentRequestBuilder createPayment() { * @throws RuntimeException subclass if the API call fails */ public CreatePaymentResponse createPayment(PaymentRequest request) { + return createPayment(request, Optional.empty()); + } + + /** + * Create a payment + * + *

Create a payment + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreatePaymentResponse createPayment(PaymentRequest request, Optional serverURL) { RequestOperation operation - = new CreatePayment.Sync(sdkConfiguration, _headers); + = new CreatePayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -346,8 +418,22 @@ public CreatePoolRequestBuilder createPool() { * @throws RuntimeException subclass if the API call fails */ public CreatePoolResponse createPool(PoolRequest request) { + return createPool(request, Optional.empty()); + } + + /** + * Create a Pool + * + *

Create a Pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreatePoolResponse createPool(PoolRequest request, Optional serverURL) { RequestOperation operation - = new CreatePool.Sync(sdkConfiguration, _headers); + = new CreatePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -372,8 +458,22 @@ public CreateTransferInitiationRequestBuilder createTransferInitiation() { * @throws RuntimeException subclass if the API call fails */ public CreateTransferInitiationResponse createTransferInitiation(TransferInitiationRequest request) { + return createTransferInitiation(request, Optional.empty()); + } + + /** + * Create a TransferInitiation + * + *

Create a transfer initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateTransferInitiationResponse createTransferInitiation(TransferInitiationRequest request, Optional serverURL) { RequestOperation operation - = new CreateTransferInitiation.Sync(sdkConfiguration, _headers); + = new CreateTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -398,8 +498,22 @@ public DeletePoolRequestBuilder deletePool() { * @throws RuntimeException subclass if the API call fails */ public DeletePoolResponse deletePool(DeletePoolRequest request) { + return deletePool(request, Optional.empty()); + } + + /** + * Delete a Pool + * + *

Delete a pool by its id. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletePoolResponse deletePool(DeletePoolRequest request, Optional serverURL) { RequestOperation operation - = new DeletePool.Sync(sdkConfiguration, _headers); + = new DeletePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -424,8 +538,22 @@ public DeleteTransferInitiationRequestBuilder deleteTransferInitiation() { * @throws RuntimeException subclass if the API call fails */ public DeleteTransferInitiationResponse deleteTransferInitiation(DeleteTransferInitiationRequest request) { + return deleteTransferInitiation(request, Optional.empty()); + } + + /** + * Delete a transfer initiation + * + *

Delete a transfer initiation by its id. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteTransferInitiationResponse deleteTransferInitiation(DeleteTransferInitiationRequest request, Optional serverURL) { RequestOperation operation - = new DeleteTransferInitiation.Sync(sdkConfiguration, _headers); + = new DeleteTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -446,8 +574,20 @@ public ForwardBankAccountRequestBuilder forwardBankAccount() { * @throws RuntimeException subclass if the API call fails */ public ForwardBankAccountResponse forwardBankAccount(ForwardBankAccountRequest request) { + return forwardBankAccount(request, Optional.empty()); + } + + /** + * Forward a bank account to a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ForwardBankAccountResponse forwardBankAccount(ForwardBankAccountRequest request, Optional serverURL) { RequestOperation operation - = new ForwardBankAccount.Sync(sdkConfiguration, _headers); + = new ForwardBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -468,8 +608,54 @@ public GetAccountBalancesRequestBuilder getAccountBalances() { * @throws RuntimeException subclass if the API call fails */ public GetAccountBalancesResponse getAccountBalances(GetAccountBalancesRequest request) { + return getAccountBalances(request, Optional.empty()); + } + + /** + * Get account balances + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetAccountBalancesResponse getAccountBalances(GetAccountBalancesRequest request, Optional serverURL) { RequestOperation operation - = new GetAccountBalances.Sync(sdkConfiguration, _headers); + = new GetAccountBalances.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * Get an account + * + * @return The call builder + */ + public GetAccountPaymentsRequestBuilder getAccountPayments() { + return new GetAccountPaymentsRequestBuilder(sdkConfiguration); + } + + /** + * Get an account + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetAccountPaymentsResponse getAccountPayments(GetAccountPaymentsRequest request) { + return getAccountPayments(request, Optional.empty()); + } + + /** + * Get an account + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetAccountPaymentsResponse getAccountPayments(GetAccountPaymentsRequest request, Optional serverURL) { + RequestOperation operation + = new GetAccountPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -490,8 +676,20 @@ public GetBankAccountRequestBuilder getBankAccount() { * @throws RuntimeException subclass if the API call fails */ public GetBankAccountResponse getBankAccount(GetBankAccountRequest request) { + return getBankAccount(request, Optional.empty()); + } + + /** + * Get a bank account created by user on Formance + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetBankAccountResponse getBankAccount(GetBankAccountRequest request, Optional serverURL) { RequestOperation operation - = new GetBankAccount.Sync(sdkConfiguration, _headers); + = new GetBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -520,8 +718,24 @@ public GetConnectorTaskRequestBuilder getConnectorTask() { */ @Deprecated public GetConnectorTaskResponse getConnectorTask(GetConnectorTaskRequest request) { + return getConnectorTask(request, Optional.empty()); + } + + /** + * Read a specific task of the connector + * + *

Get a specific task associated to the connector. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public GetConnectorTaskResponse getConnectorTask(GetConnectorTaskRequest request, Optional serverURL) { RequestOperation operation - = new GetConnectorTask.Sync(sdkConfiguration, _headers); + = new GetConnectorTask.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -546,8 +760,22 @@ public GetConnectorTaskV1RequestBuilder getConnectorTaskV1() { * @throws RuntimeException subclass if the API call fails */ public GetConnectorTaskV1Response getConnectorTaskV1(GetConnectorTaskV1Request request) { + return getConnectorTaskV1(request, Optional.empty()); + } + + /** + * Read a specific task of the connector + * + *

Get a specific task associated to the connector. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetConnectorTaskV1Response getConnectorTaskV1(GetConnectorTaskV1Request request, Optional serverURL) { RequestOperation operation - = new GetConnectorTaskV1.Sync(sdkConfiguration, _headers); + = new GetConnectorTaskV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -568,8 +796,20 @@ public GetPaymentRequestBuilder getPayment() { * @throws RuntimeException subclass if the API call fails */ public GetPaymentResponse getPayment(GetPaymentRequest request) { + return getPayment(request, Optional.empty()); + } + + /** + * Get a payment + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetPaymentResponse getPayment(GetPaymentRequest request, Optional serverURL) { RequestOperation operation - = new GetPayment.Sync(sdkConfiguration, _headers); + = new GetPayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -590,8 +830,20 @@ public GetPoolRequestBuilder getPool() { * @throws RuntimeException subclass if the API call fails */ public GetPoolResponse getPool(GetPoolRequest request) { + return getPool(request, Optional.empty()); + } + + /** + * Get a Pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetPoolResponse getPool(GetPoolRequest request, Optional serverURL) { RequestOperation operation - = new GetPool.Sync(sdkConfiguration, _headers); + = new GetPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -612,8 +864,20 @@ public GetPoolBalancesRequestBuilder getPoolBalances() { * @throws RuntimeException subclass if the API call fails */ public GetPoolBalancesResponse getPoolBalances(GetPoolBalancesRequest request) { + return getPoolBalances(request, Optional.empty()); + } + + /** + * Get historical pool balances at a particular point in time + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetPoolBalancesResponse getPoolBalances(GetPoolBalancesRequest request, Optional serverURL) { RequestOperation operation - = new GetPoolBalances.Sync(sdkConfiguration, _headers); + = new GetPoolBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -634,11 +898,55 @@ public GetPoolBalancesLatestRequestBuilder getPoolBalancesLatest() { * @throws RuntimeException subclass if the API call fails */ public GetPoolBalancesLatestResponse getPoolBalancesLatest(GetPoolBalancesLatestRequest request) { + return getPoolBalancesLatest(request, Optional.empty()); + } + + /** + * Get latest pool balances + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetPoolBalancesLatestResponse getPoolBalancesLatest(GetPoolBalancesLatestRequest request, Optional serverURL) { RequestOperation operation - = new GetPoolBalancesLatest.Sync(sdkConfiguration, _headers); + = new GetPoolBalancesLatest.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } + /** + * Get server info + * + * @return The call builder + */ + public GetServerInfoPaymentsRequestBuilder getServerInfoPayments() { + return new GetServerInfoPaymentsRequestBuilder(sdkConfiguration); + } + + /** + * Get server info + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoPaymentsResponse getServerInfoPaymentsDirect() { + return getServerInfoPayments(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoPaymentsResponse getServerInfoPayments(Optional serverURL) { + RequestlessOperation operation + = new GetServerInfoPayments.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest()); + } + /** * Get a transfer initiation * @@ -656,8 +964,20 @@ public GetTransferInitiationRequestBuilder getTransferInitiation() { * @throws RuntimeException subclass if the API call fails */ public GetTransferInitiationResponse getTransferInitiation(GetTransferInitiationRequest request) { + return getTransferInitiation(request, Optional.empty()); + } + + /** + * Get a transfer initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetTransferInitiationResponse getTransferInitiation(GetTransferInitiationRequest request, Optional serverURL) { RequestOperation operation - = new GetTransferInitiation.Sync(sdkConfiguration, _headers); + = new GetTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -682,8 +1002,56 @@ public InstallConnectorRequestBuilder installConnector() { * @throws RuntimeException subclass if the API call fails */ public InstallConnectorResponse installConnector(InstallConnectorRequest request) { + return installConnector(request, Optional.empty()); + } + + /** + * Install a connector + * + *

Install a connector by its name and config. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public InstallConnectorResponse installConnector(InstallConnectorRequest request, Optional serverURL) { RequestOperation operation - = new InstallConnector.Sync(sdkConfiguration, _headers); + = new InstallConnector.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + + /** + * List accounts + * + * @return The call builder + */ + public ListAccountsPaymentsRequestBuilder listAccountsPayments() { + return new ListAccountsPaymentsRequestBuilder(sdkConfiguration); + } + + /** + * List accounts + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListAccountsPaymentsResponse listAccountsPayments(ListAccountsPaymentsRequest request) { + return listAccountsPayments(request, Optional.empty()); + } + + /** + * List accounts + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListAccountsPaymentsResponse listAccountsPayments(ListAccountsPaymentsRequest request, Optional serverURL) { + RequestOperation operation + = new ListAccountsPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -707,8 +1075,21 @@ public ListAllConnectorsRequestBuilder listAllConnectors() { * @throws RuntimeException subclass if the API call fails */ public ListAllConnectorsResponse listAllConnectorsDirect() { + return listAllConnectors(Optional.empty()); + } + + /** + * List all installed connectors + * + *

List all installed connectors. + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListAllConnectorsResponse listAllConnectors(Optional serverURL) { RequestlessOperation operation - = new ListAllConnectors.Sync(sdkConfiguration, _headers); + = new ListAllConnectors.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -717,10 +1098,23 @@ public ListAllConnectorsResponse listAllConnectorsDirect() { * *

List all bank accounts created by user on Formance. * - * @return The call builder + * @return The call builder + */ + public ListBankAccountsRequestBuilder listBankAccounts() { + return new ListBankAccountsRequestBuilder(sdkConfiguration); + } + + /** + * List bank accounts created by user on Formance + * + *

List all bank accounts created by user on Formance. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails */ - public ListBankAccountsRequestBuilder listBankAccounts() { - return new ListBankAccountsRequestBuilder(sdkConfiguration); + public ListBankAccountsResponse listBankAccounts(ListBankAccountsRequest request) { + return listBankAccounts(request, Optional.empty()); } /** @@ -729,12 +1123,13 @@ public ListBankAccountsRequestBuilder listBankAccounts() { *

List all bank accounts created by user on Formance. * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListBankAccountsResponse listBankAccounts(ListBankAccountsRequest request) { + public ListBankAccountsResponse listBankAccounts(ListBankAccountsRequest request, Optional serverURL) { RequestOperation operation - = new ListBankAccounts.Sync(sdkConfiguration, _headers); + = new ListBankAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -758,8 +1153,21 @@ public ListConfigsAvailableConnectorsRequestBuilder listConfigsAvailableConnecto * @throws RuntimeException subclass if the API call fails */ public ListConfigsAvailableConnectorsResponse listConfigsAvailableConnectorsDirect() { + return listConfigsAvailableConnectors(Optional.empty()); + } + + /** + * List the configs of each available connector + * + *

List the configs of each available connector. + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListConfigsAvailableConnectorsResponse listConfigsAvailableConnectors(Optional serverURL) { RequestlessOperation operation - = new ListConfigsAvailableConnectors.Sync(sdkConfiguration, _headers); + = new ListConfigsAvailableConnectors.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -788,8 +1196,24 @@ public ListConnectorTasksRequestBuilder listConnectorTasks() { */ @Deprecated public ListConnectorTasksResponse listConnectorTasks(ListConnectorTasksRequest request) { + return listConnectorTasks(request, Optional.empty()); + } + + /** + * List tasks from a connector + * + *

List all tasks associated with this connector. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public ListConnectorTasksResponse listConnectorTasks(ListConnectorTasksRequest request, Optional serverURL) { RequestOperation operation - = new ListConnectorTasks.Sync(sdkConfiguration, _headers); + = new ListConnectorTasks.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -814,8 +1238,22 @@ public ListConnectorTasksV1RequestBuilder listConnectorTasksV1() { * @throws RuntimeException subclass if the API call fails */ public ListConnectorTasksV1Response listConnectorTasksV1(ListConnectorTasksV1Request request) { + return listConnectorTasksV1(request, Optional.empty()); + } + + /** + * List tasks from a connector + * + *

List all tasks associated with this connector. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListConnectorTasksV1Response listConnectorTasksV1(ListConnectorTasksV1Request request, Optional serverURL) { RequestOperation operation - = new ListConnectorTasksV1.Sync(sdkConfiguration, _headers); + = new ListConnectorTasksV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -836,117 +1274,88 @@ public ListPaymentsRequestBuilder listPayments() { * @throws RuntimeException subclass if the API call fails */ public ListPaymentsResponse listPayments(ListPaymentsRequest request) { - RequestOperation operation - = new ListPayments.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * List Pools - * - * @return The call builder - */ - public ListPoolsRequestBuilder listPools() { - return new ListPoolsRequestBuilder(sdkConfiguration); + return listPayments(request, Optional.empty()); } /** - * List Pools + * List payments * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListPoolsResponse listPools(ListPoolsRequest request) { - RequestOperation operation - = new ListPools.Sync(sdkConfiguration, _headers); + public ListPaymentsResponse listPayments(ListPaymentsRequest request, Optional serverURL) { + RequestOperation operation + = new ListPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } /** - * List Transfer Initiations + * List Pools * * @return The call builder */ - public ListTransferInitiationsRequestBuilder listTransferInitiations() { - return new ListTransferInitiationsRequestBuilder(sdkConfiguration); + public ListPoolsRequestBuilder listPools() { + return new ListPoolsRequestBuilder(sdkConfiguration); } /** - * List Transfer Initiations + * List Pools * * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListTransferInitiationsResponse listTransferInitiations(ListTransferInitiationsRequest request) { - RequestOperation operation - = new ListTransferInitiations.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Get an account - * - * @return The call builder - */ - public PaymentsgetAccountRequestBuilder paymentsgetAccount() { - return new PaymentsgetAccountRequestBuilder(sdkConfiguration); + public ListPoolsResponse listPools(ListPoolsRequest request) { + return listPools(request, Optional.empty()); } /** - * Get an account + * List Pools * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public PaymentsgetAccountResponse paymentsgetAccount(PaymentsgetAccountRequest request) { - RequestOperation operation - = new PaymentsgetAccount.Sync(sdkConfiguration, _headers); + public ListPoolsResponse listPools(ListPoolsRequest request, Optional serverURL) { + RequestOperation operation + = new ListPools.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } /** - * Get server info + * List Transfer Initiations * * @return The call builder */ - public PaymentsgetServerInfoRequestBuilder paymentsgetServerInfo() { - return new PaymentsgetServerInfoRequestBuilder(sdkConfiguration); + public ListTransferInitiationsRequestBuilder listTransferInitiations() { + return new ListTransferInitiationsRequestBuilder(sdkConfiguration); } /** - * Get server info + * List Transfer Initiations * + * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public PaymentsgetServerInfoResponse paymentsgetServerInfoDirect() { - RequestlessOperation operation - = new PaymentsgetServerInfo.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); - } - - /** - * List accounts - * - * @return The call builder - */ - public PaymentslistAccountsRequestBuilder paymentslistAccounts() { - return new PaymentslistAccountsRequestBuilder(sdkConfiguration); + public ListTransferInitiationsResponse listTransferInitiations(ListTransferInitiationsRequest request) { + return listTransferInitiations(request, Optional.empty()); } /** - * List accounts + * List Transfer Initiations * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public PaymentslistAccountsResponse paymentslistAccounts(PaymentslistAccountsRequest request) { - RequestOperation operation - = new PaymentslistAccounts.Sync(sdkConfiguration, _headers); + public ListTransferInitiationsResponse listTransferInitiations(ListTransferInitiationsRequest request, Optional serverURL) { + RequestOperation operation + = new ListTransferInitiations.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -975,8 +1384,24 @@ public ReadConnectorConfigRequestBuilder readConnectorConfig() { */ @Deprecated public ReadConnectorConfigResponse readConnectorConfig(ReadConnectorConfigRequest request) { + return readConnectorConfig(request, Optional.empty()); + } + + /** + * Read the config of a connector + * + *

Read connector config + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public ReadConnectorConfigResponse readConnectorConfig(ReadConnectorConfigRequest request, Optional serverURL) { RequestOperation operation - = new ReadConnectorConfig.Sync(sdkConfiguration, _headers); + = new ReadConnectorConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1001,8 +1426,22 @@ public ReadConnectorConfigV1RequestBuilder readConnectorConfigV1() { * @throws RuntimeException subclass if the API call fails */ public ReadConnectorConfigV1Response readConnectorConfigV1(ReadConnectorConfigV1Request request) { + return readConnectorConfigV1(request, Optional.empty()); + } + + /** + * Read the config of a connector + * + *

Read connector config + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReadConnectorConfigV1Response readConnectorConfigV1(ReadConnectorConfigV1Request request, Optional serverURL) { RequestOperation operation - = new ReadConnectorConfigV1.Sync(sdkConfiguration, _headers); + = new ReadConnectorConfigV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1027,8 +1466,22 @@ public RemoveAccountFromPoolRequestBuilder removeAccountFromPool() { * @throws RuntimeException subclass if the API call fails */ public RemoveAccountFromPoolResponse removeAccountFromPool(RemoveAccountFromPoolRequest request) { + return removeAccountFromPool(request, Optional.empty()); + } + + /** + * Remove an account from a pool + * + *

Remove an account from a pool by its id. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RemoveAccountFromPoolResponse removeAccountFromPool(RemoveAccountFromPoolRequest request, Optional serverURL) { RequestOperation operation - = new RemoveAccountFromPool.Sync(sdkConfiguration, _headers); + = new RemoveAccountFromPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1059,8 +1512,25 @@ public ResetConnectorRequestBuilder resetConnector() { */ @Deprecated public ResetConnectorResponse resetConnector(ResetConnectorRequest request) { + return resetConnector(request, Optional.empty()); + } + + /** + * Reset a connector + * + *

Reset a connector by its name. + * It will remove the connector and ALL PAYMENTS generated with it. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public ResetConnectorResponse resetConnector(ResetConnectorRequest request, Optional serverURL) { RequestOperation operation - = new ResetConnector.Sync(sdkConfiguration, _headers); + = new ResetConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1087,8 +1557,23 @@ public ResetConnectorV1RequestBuilder resetConnectorV1() { * @throws RuntimeException subclass if the API call fails */ public ResetConnectorV1Response resetConnectorV1(ResetConnectorV1Request request) { + return resetConnectorV1(request, Optional.empty()); + } + + /** + * Reset a connector + * + *

Reset a connector by its name. + * It will remove the connector and ALL PAYMENTS generated with it. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ResetConnectorV1Response resetConnectorV1(ResetConnectorV1Request request, Optional serverURL) { RequestOperation operation - = new ResetConnectorV1.Sync(sdkConfiguration, _headers); + = new ResetConnectorV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1113,8 +1598,22 @@ public RetryTransferInitiationRequestBuilder retryTransferInitiation() { * @throws RuntimeException subclass if the API call fails */ public RetryTransferInitiationResponse retryTransferInitiation(RetryTransferInitiationRequest request) { + return retryTransferInitiation(request, Optional.empty()); + } + + /** + * Retry a failed transfer initiation + * + *

Retry a failed transfer initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RetryTransferInitiationResponse retryTransferInitiation(RetryTransferInitiationRequest request, Optional serverURL) { RequestOperation operation - = new RetryTransferInitiation.Sync(sdkConfiguration, _headers); + = new RetryTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1139,8 +1638,22 @@ public ReverseTransferInitiationRequestBuilder reverseTransferInitiation() { * @throws RuntimeException subclass if the API call fails */ public ReverseTransferInitiationResponse reverseTransferInitiation(ReverseTransferInitiationRequest request) { + return reverseTransferInitiation(request, Optional.empty()); + } + + /** + * Reverse a transfer initiation + * + *

Reverse transfer initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ReverseTransferInitiationResponse reverseTransferInitiation(ReverseTransferInitiationRequest request, Optional serverURL) { RequestOperation operation - = new ReverseTransferInitiation.Sync(sdkConfiguration, _headers); + = new ReverseTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1169,8 +1682,24 @@ public UninstallConnectorRequestBuilder uninstallConnector() { */ @Deprecated public UninstallConnectorResponse uninstallConnector(UninstallConnectorRequest request) { + return uninstallConnector(request, Optional.empty()); + } + + /** + * Uninstall a connector + * + *

Uninstall a connector by its name. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public UninstallConnectorResponse uninstallConnector(UninstallConnectorRequest request, Optional serverURL) { RequestOperation operation - = new UninstallConnector.Sync(sdkConfiguration, _headers); + = new UninstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1195,8 +1724,22 @@ public UninstallConnectorV1RequestBuilder uninstallConnectorV1() { * @throws RuntimeException subclass if the API call fails */ public UninstallConnectorV1Response uninstallConnectorV1(UninstallConnectorV1Request request) { + return uninstallConnectorV1(request, Optional.empty()); + } + + /** + * Uninstall a connector + * + *

Uninstall a connector by its name. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UninstallConnectorV1Response uninstallConnectorV1(UninstallConnectorV1Request request, Optional serverURL) { RequestOperation operation - = new UninstallConnectorV1.Sync(sdkConfiguration, _headers); + = new UninstallConnectorV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1217,8 +1760,20 @@ public UpdateBankAccountMetadataRequestBuilder updateBankAccountMetadata() { * @throws RuntimeException subclass if the API call fails */ public UpdateBankAccountMetadataResponse updateBankAccountMetadata(UpdateBankAccountMetadataRequest request) { + return updateBankAccountMetadata(request, Optional.empty()); + } + + /** + * Update metadata of a bank account + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateBankAccountMetadataResponse updateBankAccountMetadata(UpdateBankAccountMetadataRequest request, Optional serverURL) { RequestOperation operation - = new UpdateBankAccountMetadata.Sync(sdkConfiguration, _headers); + = new UpdateBankAccountMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1243,8 +1798,22 @@ public UpdateConnectorConfigV1RequestBuilder updateConnectorConfigV1() { * @throws RuntimeException subclass if the API call fails */ public UpdateConnectorConfigV1Response updateConnectorConfigV1(UpdateConnectorConfigV1Request request) { + return updateConnectorConfigV1(request, Optional.empty()); + } + + /** + * Update the config of a connector + * + *

Update connector config + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateConnectorConfigV1Response updateConnectorConfigV1(UpdateConnectorConfigV1Request request, Optional serverURL) { RequestOperation operation - = new UpdateConnectorConfigV1.Sync(sdkConfiguration, _headers); + = new UpdateConnectorConfigV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1265,8 +1834,20 @@ public UpdateMetadataRequestBuilder updateMetadata() { * @throws RuntimeException subclass if the API call fails */ public UpdateMetadataResponse updateMetadata(UpdateMetadataRequest request) { + return updateMetadata(request, Optional.empty()); + } + + /** + * Update metadata + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateMetadataResponse updateMetadata(UpdateMetadataRequest request, Optional serverURL) { RequestOperation operation - = new UpdateMetadata.Sync(sdkConfiguration, _headers); + = new UpdateMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1287,8 +1868,20 @@ public UpdatePoolQueryRequestBuilder updatePoolQuery() { * @throws RuntimeException subclass if the API call fails */ public UpdatePoolQueryResponse updatePoolQuery(UpdatePoolQueryRequest request) { + return updatePoolQuery(request, Optional.empty()); + } + + /** + * Update the query of a pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdatePoolQueryResponse updatePoolQuery(UpdatePoolQueryRequest request, Optional serverURL) { RequestOperation operation - = new UpdatePoolQuery.Sync(sdkConfiguration, _headers); + = new UpdatePoolQuery.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1313,8 +1906,22 @@ public UpdateTransferInitiationStatusRequestBuilder updateTransferInitiationStat * @throws RuntimeException subclass if the API call fails */ public UpdateTransferInitiationStatusResponse updateTransferInitiationStatus(UpdateTransferInitiationStatusRequest request) { + return updateTransferInitiationStatus(request, Optional.empty()); + } + + /** + * Update the status of a transfer initiation + * + *

Update a transfer initiation status + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateTransferInitiationStatusResponse updateTransferInitiationStatus(UpdateTransferInitiationStatusRequest request, Optional serverURL) { RequestOperation operation - = new UpdateTransferInitiationStatus.Sync(sdkConfiguration, _headers); + = new UpdateTransferInitiationStatus.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/ReconciliationV1.java b/src/main/java/com/formance/formance_sdk/ReconciliationV1.java index 72da6ebdd..415e31ac0 100644 --- a/src/main/java/com/formance/formance_sdk/ReconciliationV1.java +++ b/src/main/java/com/formance/formance_sdk/ReconciliationV1.java @@ -17,6 +17,8 @@ import com.formance.formance_sdk.models.operations.GetReconciliationRequest; import com.formance.formance_sdk.models.operations.GetReconciliationRequestBuilder; import com.formance.formance_sdk.models.operations.GetReconciliationResponse; +import com.formance.formance_sdk.models.operations.GetServerInfoReconciliationRequestBuilder; +import com.formance.formance_sdk.models.operations.GetServerInfoReconciliationResponse; import com.formance.formance_sdk.models.operations.ListPoliciesRequest; import com.formance.formance_sdk.models.operations.ListPoliciesRequestBuilder; import com.formance.formance_sdk.models.operations.ListPoliciesResponse; @@ -26,18 +28,18 @@ import com.formance.formance_sdk.models.operations.ReconcileRequest; import com.formance.formance_sdk.models.operations.ReconcileRequestBuilder; import com.formance.formance_sdk.models.operations.ReconcileResponse; -import com.formance.formance_sdk.models.operations.ReconciliationgetServerInfoRequestBuilder; -import com.formance.formance_sdk.models.operations.ReconciliationgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.PolicyRequest; +import com.formance.formance_sdk.models.reconciliation.PolicyRequest; import com.formance.formance_sdk.operations.CreatePolicy; import com.formance.formance_sdk.operations.DeletePolicy; import com.formance.formance_sdk.operations.GetPolicy; import com.formance.formance_sdk.operations.GetReconciliation; +import com.formance.formance_sdk.operations.GetServerInfoReconciliation; import com.formance.formance_sdk.operations.ListPolicies; import com.formance.formance_sdk.operations.ListReconciliations; import com.formance.formance_sdk.operations.Reconcile; -import com.formance.formance_sdk.operations.ReconciliationgetServerInfo; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; +import java.util.Optional; public class ReconciliationV1 { @@ -69,8 +71,22 @@ public CreatePolicyRequestBuilder createPolicy() { * @throws RuntimeException subclass if the API call fails */ public CreatePolicyResponse createPolicy(PolicyRequest request) { + return createPolicy(request, Optional.empty()); + } + + /** + * Create a policy + * + *

Create a policy + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreatePolicyResponse createPolicy(PolicyRequest request, Optional serverURL) { RequestOperation operation - = new CreatePolicy.Sync(sdkConfiguration, _headers); + = new CreatePolicy.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -95,8 +111,22 @@ public DeletePolicyRequestBuilder deletePolicy() { * @throws RuntimeException subclass if the API call fails */ public DeletePolicyResponse deletePolicy(DeletePolicyRequest request) { + return deletePolicy(request, Optional.empty()); + } + + /** + * Delete a policy + * + *

Delete a policy by its id. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletePolicyResponse deletePolicy(DeletePolicyRequest request, Optional serverURL) { RequestOperation operation - = new DeletePolicy.Sync(sdkConfiguration, _headers); + = new DeletePolicy.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -117,8 +147,20 @@ public GetPolicyRequestBuilder getPolicy() { * @throws RuntimeException subclass if the API call fails */ public GetPolicyResponse getPolicy(GetPolicyRequest request) { + return getPolicy(request, Optional.empty()); + } + + /** + * Get a policy + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetPolicyResponse getPolicy(GetPolicyRequest request, Optional serverURL) { RequestOperation operation - = new GetPolicy.Sync(sdkConfiguration, _headers); + = new GetPolicy.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -139,11 +181,55 @@ public GetReconciliationRequestBuilder getReconciliation() { * @throws RuntimeException subclass if the API call fails */ public GetReconciliationResponse getReconciliation(GetReconciliationRequest request) { + return getReconciliation(request, Optional.empty()); + } + + /** + * Get a reconciliation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetReconciliationResponse getReconciliation(GetReconciliationRequest request, Optional serverURL) { RequestOperation operation - = new GetReconciliation.Sync(sdkConfiguration, _headers); + = new GetReconciliation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } + /** + * Get server info + * + * @return The call builder + */ + public GetServerInfoReconciliationRequestBuilder getServerInfoReconciliation() { + return new GetServerInfoReconciliationRequestBuilder(sdkConfiguration); + } + + /** + * Get server info + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoReconciliationResponse getServerInfoReconciliationDirect() { + return getServerInfoReconciliation(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoReconciliationResponse getServerInfoReconciliation(Optional serverURL) { + RequestlessOperation operation + = new GetServerInfoReconciliation.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest()); + } + /** * List policies * @@ -161,8 +247,20 @@ public ListPoliciesRequestBuilder listPolicies() { * @throws RuntimeException subclass if the API call fails */ public ListPoliciesResponse listPolicies(ListPoliciesRequest request) { + return listPolicies(request, Optional.empty()); + } + + /** + * List policies + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListPoliciesResponse listPolicies(ListPoliciesRequest request, Optional serverURL) { RequestOperation operation - = new ListPolicies.Sync(sdkConfiguration, _headers); + = new ListPolicies.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -183,8 +281,20 @@ public ListReconciliationsRequestBuilder listReconciliations() { * @throws RuntimeException subclass if the API call fails */ public ListReconciliationsResponse listReconciliations(ListReconciliationsRequest request) { + return listReconciliations(request, Optional.empty()); + } + + /** + * List reconciliations + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListReconciliationsResponse listReconciliations(ListReconciliationsRequest request, Optional serverURL) { RequestOperation operation - = new ListReconciliations.Sync(sdkConfiguration, _headers); + = new ListReconciliations.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -209,30 +319,23 @@ public ReconcileRequestBuilder reconcile() { * @throws RuntimeException subclass if the API call fails */ public ReconcileResponse reconcile(ReconcileRequest request) { - RequestOperation operation - = new Reconcile.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); + return reconcile(request, Optional.empty()); } /** - * Get server info + * Reconcile using a policy * - * @return The call builder - */ - public ReconciliationgetServerInfoRequestBuilder reconciliationgetServerInfo() { - return new ReconciliationgetServerInfoRequestBuilder(sdkConfiguration); - } - - /** - * Get server info + *

Reconcile using a policy * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ReconciliationgetServerInfoResponse reconciliationgetServerInfoDirect() { - RequestlessOperation operation - = new ReconciliationgetServerInfo.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); + public ReconcileResponse reconcile(ReconcileRequest request, Optional serverURL) { + RequestOperation operation + = new Reconcile.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/formance/formance_sdk/SDK.java b/src/main/java/com/formance/formance_sdk/SDK.java index 40b385ffd..59793682b 100644 --- a/src/main/java/com/formance/formance_sdk/SDK.java +++ b/src/main/java/com/formance/formance_sdk/SDK.java @@ -6,7 +6,6 @@ import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import com.fasterxml.jackson.annotation.JsonValue; import com.formance.formance_sdk.models.operations.GetVersionsRequestBuilder; import com.formance.formance_sdk.models.operations.GetVersionsResponse; import com.formance.formance_sdk.operations.GetVersions; @@ -18,7 +17,6 @@ import com.formance.formance_sdk.utils.Utils; import java.lang.String; import java.util.Map; -import java.util.Objects; import java.util.Optional; import java.util.function.Consumer; @@ -43,14 +41,8 @@ public class SDK { * SERVERS contains the list of server urls available to the SDK. */ public static final String[] SERVERS = { - /* - * local server - */ - "http://localhost", - /* - * A per-organization and per-environment API - */ - "https://{organization}.{environment}.formance.cloud", + + "/", }; @@ -226,68 +218,6 @@ public Builder enableHTTPDebugLogging(boolean enabled) { return this; } - /** - * ServerEnvironment - * - *

The environment name. Defaults to the production environment. - */ - public enum ServerEnvironment { - EU_SANDBOX("eu.sandbox"), - EU_WEST1("eu-west-1"), - US_EAST1("us-east-1"); - - @JsonValue - private final String value; - - ServerEnvironment(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (ServerEnvironment o: ServerEnvironment.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } - } - /** - * Sets the environment variable for url substitution. - * - * @param environment The value to set. - * @return The builder instance. - */ - public Builder environment(ServerEnvironment environment) { - for (Map server : this.sdkConfiguration.serverVariables()) { - if (!server.containsKey("environment")) { - continue; - } - server.put("environment", environment.toString()); - } - - return this; - } - /** - * Sets the organization variable for url substitution. - * - * @param organization The value to set. - * @return The builder instance. - */ - public Builder organization(String organization) { - for (Map server : this.sdkConfiguration.serverVariables()) { - if (!server.containsKey("organization")) { - continue; - } - server.put("organization", organization); - } - - return this; - } // Visible for testing, may be accessed via reflection in tests Builder _hooks(com.formance.formance_sdk.utils.Hooks hooks) { sdkConfiguration.setHooks(hooks); @@ -358,8 +288,19 @@ public GetVersionsRequestBuilder getVersions() { * @throws RuntimeException subclass if the API call fails */ public GetVersionsResponse getVersionsDirect() { + return getVersions(Optional.empty()); + } + + /** + * Show stack version information + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetVersionsResponse getVersions(Optional serverURL) { RequestlessOperation operation - = new GetVersions.Sync(sdkConfiguration, _headers); + = new GetVersions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/SDKConfiguration.java b/src/main/java/com/formance/formance_sdk/SDKConfiguration.java index 1d9afe521..66e826ce4 100644 --- a/src/main/java/com/formance/formance_sdk/SDKConfiguration.java +++ b/src/main/java/com/formance/formance_sdk/SDKConfiguration.java @@ -11,19 +11,14 @@ import com.formance.formance_sdk.utils.SpeakeasyHTTPClient; import com.formance.formance_sdk.utils.Utils; import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; import java.util.Optional; public class SDKConfiguration { private static final String LANGUAGE = "java"; - public static final String OPENAPI_DOC_VERSION = "v0.0.0"; - public static final String SDK_VERSION = "8.0.0"; - public static final String GEN_VERSION = "2.865.2"; + public static final String OPENAPI_DOC_VERSION = "SDK_VERSION"; + public static final String SDK_VERSION = "8.1.0"; + public static final String GEN_VERSION = "2.869.25"; private static final String BASE_PACKAGE = "com.formance.formance_sdk"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", @@ -73,7 +68,7 @@ private static String trimFinalSlash(String url) { } public String resolvedServerUrl() { - return Utils.templateUrl(serverUrl, getServerVariableDefaults()); + return serverUrl; } private int serverIdx = 0; @@ -86,18 +81,6 @@ public int serverIdx() { return serverIdx; } - @SuppressWarnings("serial") - private List> serverVariables = new ArrayList<>(){ { - add(new HashMap<>()); - add(new HashMap<>(){ { - put("environment", "eu.sandbox"); - put("organization", "orgID-stackID"); - } }); - } }; - - public List> serverVariables() { - return serverVariables; - } private Hooks _hooks = createHooks(); @@ -129,9 +112,6 @@ public void initialize() { - public Map getServerVariableDefaults() { - return serverVariables.get(this.serverIdx); - } private Optional retryConfig = Optional.empty(); public Optional retryConfig() { diff --git a/src/main/java/com/formance/formance_sdk/SearchV1.java b/src/main/java/com/formance/formance_sdk/SearchV1.java index 3b515ca08..222685668 100644 --- a/src/main/java/com/formance/formance_sdk/SearchV1.java +++ b/src/main/java/com/formance/formance_sdk/SearchV1.java @@ -3,18 +3,20 @@ */ package com.formance.formance_sdk; -import static com.formance.formance_sdk.operations.Operations.RequestOperation; import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.operations.Operations.RequestOperation; +import com.formance.formance_sdk.models.operations.GetServerInfoSearchRequestBuilder; +import com.formance.formance_sdk.models.operations.GetServerInfoSearchResponse; import com.formance.formance_sdk.models.operations.SearchRequestBuilder; import com.formance.formance_sdk.models.operations.SearchResponse; -import com.formance.formance_sdk.models.operations.SearchgetServerInfoRequestBuilder; -import com.formance.formance_sdk.models.operations.SearchgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.Query; +import com.formance.formance_sdk.models.search.Query; +import com.formance.formance_sdk.operations.GetServerInfoSearch; import com.formance.formance_sdk.operations.Search; -import com.formance.formance_sdk.operations.SearchgetServerInfo; import com.formance.formance_sdk.utils.Headers; import java.lang.Deprecated; +import java.lang.String; +import java.util.Optional; public class SearchV1 { @@ -25,6 +27,44 @@ public class SearchV1 { this.sdkConfiguration = sdkConfiguration; } + /** + * Get server info + * + * @return The call builder + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public GetServerInfoSearchRequestBuilder getServerInfoSearch() { + return new GetServerInfoSearchRequestBuilder(sdkConfiguration); + } + + /** + * Get server info + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public GetServerInfoSearchResponse getServerInfoSearchDirect() { + return getServerInfoSearch(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public GetServerInfoSearchResponse getServerInfoSearch(Optional serverURL) { + RequestlessOperation operation + = new GetServerInfoSearch.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest()); + } + /** * search.v1 * @@ -50,34 +90,25 @@ public SearchRequestBuilder search() { */ @Deprecated public SearchResponse search(Query request) { - RequestOperation operation - = new Search.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); + return search(request, Optional.empty()); } /** - * Get server info + * search.v1 * - * @return The call builder - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public SearchgetServerInfoRequestBuilder searchgetServerInfo() { - return new SearchgetServerInfoRequestBuilder(sdkConfiguration); - } - - /** - * Get server info + *

Elasticsearch.v1 query engine * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ @Deprecated - public SearchgetServerInfoResponse searchgetServerInfoDirect() { - RequestlessOperation operation - = new SearchgetServerInfo.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); + public SearchResponse search(Query request, Optional serverURL) { + RequestOperation operation + = new Search.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/formance/formance_sdk/V3.java b/src/main/java/com/formance/formance_sdk/V3.java index 4d5eb1886..522ab2fc8 100644 --- a/src/main/java/com/formance/formance_sdk/V3.java +++ b/src/main/java/com/formance/formance_sdk/V3.java @@ -174,11 +174,11 @@ import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryRequest; import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryRequestBuilder; import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryResponse; -import com.formance.formance_sdk.models.shared.V3CreateAccountRequest; -import com.formance.formance_sdk.models.shared.V3CreateBankAccountRequest; -import com.formance.formance_sdk.models.shared.V3CreatePaymentRequest; -import com.formance.formance_sdk.models.shared.V3CreatePaymentServiceUserRequest; -import com.formance.formance_sdk.models.shared.V3CreatePoolRequest; +import com.formance.formance_sdk.models.payments.V3CreateAccountRequest; +import com.formance.formance_sdk.models.payments.V3CreateBankAccountRequest; +import com.formance.formance_sdk.models.payments.V3CreatePaymentRequest; +import com.formance.formance_sdk.models.payments.V3CreatePaymentServiceUserRequest; +import com.formance.formance_sdk.models.payments.V3CreatePoolRequest; import com.formance.formance_sdk.operations.V3AddAccountToPool; import com.formance.formance_sdk.operations.V3AddBankAccountToPaymentServiceUser; import com.formance.formance_sdk.operations.V3ApprovePaymentInitiation; @@ -238,6 +238,7 @@ import com.formance.formance_sdk.operations.V3UpdatePaymentMetadata; import com.formance.formance_sdk.operations.V3UpdatePoolQuery; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; import java.util.Optional; @@ -266,8 +267,20 @@ public V3AddAccountToPoolRequestBuilder addAccountToPool() { * @throws RuntimeException subclass if the API call fails */ public V3AddAccountToPoolResponse addAccountToPool(V3AddAccountToPoolRequest request) { + return addAccountToPool(request, Optional.empty()); + } + + /** + * Add an account to a pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3AddAccountToPoolResponse addAccountToPool(V3AddAccountToPoolRequest request, Optional serverURL) { RequestOperation operation - = new V3AddAccountToPool.Sync(sdkConfiguration, _headers); + = new V3AddAccountToPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -288,8 +301,20 @@ public V3AddBankAccountToPaymentServiceUserRequestBuilder addBankAccountToPaymen * @throws RuntimeException subclass if the API call fails */ public V3AddBankAccountToPaymentServiceUserResponse addBankAccountToPaymentServiceUser(V3AddBankAccountToPaymentServiceUserRequest request) { + return addBankAccountToPaymentServiceUser(request, Optional.empty()); + } + + /** + * Add a bank account to a payment service user + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3AddBankAccountToPaymentServiceUserResponse addBankAccountToPaymentServiceUser(V3AddBankAccountToPaymentServiceUserRequest request, Optional serverURL) { RequestOperation operation - = new V3AddBankAccountToPaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3AddBankAccountToPaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -310,8 +335,20 @@ public V3ApprovePaymentInitiationRequestBuilder approvePaymentInitiation() { * @throws RuntimeException subclass if the API call fails */ public V3ApprovePaymentInitiationResponse approvePaymentInitiation(V3ApprovePaymentInitiationRequest request) { + return approvePaymentInitiation(request, Optional.empty()); + } + + /** + * Approve a payment initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ApprovePaymentInitiationResponse approvePaymentInitiation(V3ApprovePaymentInitiationRequest request, Optional serverURL) { RequestOperation operation - = new V3ApprovePaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3ApprovePaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -333,7 +370,7 @@ public V3CreateAccountRequestBuilder createAccount() { * @throws RuntimeException subclass if the API call fails */ public V3CreateAccountResponse createAccountDirect() { - return createAccount(Optional.empty()); + return createAccount(Optional.empty(), Optional.empty()); } /** @@ -341,12 +378,13 @@ public V3CreateAccountResponse createAccountDirect() { * used for internal purposes. * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V3CreateAccountResponse createAccount(Optional request) { + public V3CreateAccountResponse createAccount(Optional request, Optional serverURL) { RequestOperation, V3CreateAccountResponse> operation - = new V3CreateAccount.Sync(sdkConfiguration, _headers); + = new V3CreateAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -368,7 +406,7 @@ public V3CreateBankAccountRequestBuilder createBankAccount() { * @throws RuntimeException subclass if the API call fails */ public V3CreateBankAccountResponse createBankAccountDirect() { - return createBankAccount(Optional.empty()); + return createBankAccount(Optional.empty(), Optional.empty()); } /** @@ -376,12 +414,13 @@ public V3CreateBankAccountResponse createBankAccountDirect() { * called the forwardBankAccount method. * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V3CreateBankAccountResponse createBankAccount(Optional request) { + public V3CreateBankAccountResponse createBankAccount(Optional request, Optional serverURL) { RequestOperation, V3CreateBankAccountResponse> operation - = new V3CreateBankAccount.Sync(sdkConfiguration, _headers); + = new V3CreateBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -402,8 +441,20 @@ public V3CreateLinkForPaymentServiceUserRequestBuilder createLinkForPaymentServi * @throws RuntimeException subclass if the API call fails */ public V3CreateLinkForPaymentServiceUserResponse createLinkForPaymentServiceUser(V3CreateLinkForPaymentServiceUserRequest request) { + return createLinkForPaymentServiceUser(request, Optional.empty()); + } + + /** + * Create an authentication link for a payment service user on a connector, for oauth flow + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3CreateLinkForPaymentServiceUserResponse createLinkForPaymentServiceUser(V3CreateLinkForPaymentServiceUserRequest request, Optional serverURL) { RequestOperation operation - = new V3CreateLinkForPaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3CreateLinkForPaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -425,7 +476,7 @@ public V3CreatePaymentRequestBuilder createPayment() { * @throws RuntimeException subclass if the API call fails */ public V3CreatePaymentResponse createPaymentDirect() { - return createPayment(Optional.empty()); + return createPayment(Optional.empty(), Optional.empty()); } /** @@ -433,12 +484,13 @@ public V3CreatePaymentResponse createPaymentDirect() { * used for internal purposes. * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V3CreatePaymentResponse createPayment(Optional request) { + public V3CreatePaymentResponse createPayment(Optional request, Optional serverURL) { RequestOperation, V3CreatePaymentResponse> operation - = new V3CreatePayment.Sync(sdkConfiguration, _headers); + = new V3CreatePayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -458,19 +510,20 @@ public V3CreatePaymentServiceUserRequestBuilder createPaymentServiceUser() { * @throws RuntimeException subclass if the API call fails */ public V3CreatePaymentServiceUserResponse createPaymentServiceUserDirect() { - return createPaymentServiceUser(Optional.empty()); + return createPaymentServiceUser(Optional.empty(), Optional.empty()); } /** * Create a formance payment service user object * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V3CreatePaymentServiceUserResponse createPaymentServiceUser(Optional request) { + public V3CreatePaymentServiceUserResponse createPaymentServiceUser(Optional request, Optional serverURL) { RequestOperation, V3CreatePaymentServiceUserResponse> operation - = new V3CreatePaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3CreatePaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -490,19 +543,20 @@ public V3CreatePoolRequestBuilder createPool() { * @throws RuntimeException subclass if the API call fails */ public V3CreatePoolResponse createPoolDirect() { - return createPool(Optional.empty()); + return createPool(Optional.empty(), Optional.empty()); } /** * Create a formance pool object * * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public V3CreatePoolResponse createPool(Optional request) { + public V3CreatePoolResponse createPool(Optional request, Optional serverURL) { RequestOperation, V3CreatePoolResponse> operation - = new V3CreatePool.Sync(sdkConfiguration, _headers); + = new V3CreatePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -523,8 +577,20 @@ public V3DeletePaymentInitiationRequestBuilder deletePaymentInitiation() { * @throws RuntimeException subclass if the API call fails */ public V3DeletePaymentInitiationResponse deletePaymentInitiation(V3DeletePaymentInitiationRequest request) { + return deletePaymentInitiation(request, Optional.empty()); + } + + /** + * Delete a payment initiation by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3DeletePaymentInitiationResponse deletePaymentInitiation(V3DeletePaymentInitiationRequest request, Optional serverURL) { RequestOperation operation - = new V3DeletePaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -545,8 +611,20 @@ public V3DeletePaymentServiceUserRequestBuilder deletePaymentServiceUser() { * @throws RuntimeException subclass if the API call fails */ public V3DeletePaymentServiceUserResponse deletePaymentServiceUser(V3DeletePaymentServiceUserRequest request) { + return deletePaymentServiceUser(request, Optional.empty()); + } + + /** + * Delete a payment service user by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3DeletePaymentServiceUserResponse deletePaymentServiceUser(V3DeletePaymentServiceUserRequest request, Optional serverURL) { RequestOperation operation - = new V3DeletePaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -567,8 +645,20 @@ public V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder deleteP * @throws RuntimeException subclass if the API call fails */ public V3DeletePaymentServiceUserConnectionFromConnectorIDResponse deletePaymentServiceUserConnectionFromConnectorID(V3DeletePaymentServiceUserConnectionFromConnectorIDRequest request) { + return deletePaymentServiceUserConnectionFromConnectorID(request, Optional.empty()); + } + + /** + * Delete a connection for a payment service user on a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3DeletePaymentServiceUserConnectionFromConnectorIDResponse deletePaymentServiceUserConnectionFromConnectorID(V3DeletePaymentServiceUserConnectionFromConnectorIDRequest request, Optional serverURL) { RequestOperation operation - = new V3DeletePaymentServiceUserConnectionFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentServiceUserConnectionFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -589,8 +679,20 @@ public V3DeletePaymentServiceUserConnectorRequestBuilder deletePaymentServiceUse * @throws RuntimeException subclass if the API call fails */ public V3DeletePaymentServiceUserConnectorResponse deletePaymentServiceUserConnector(V3DeletePaymentServiceUserConnectorRequest request) { + return deletePaymentServiceUserConnector(request, Optional.empty()); + } + + /** + * Remove a payment service user from a connector, the PSU will still exist in Formance + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3DeletePaymentServiceUserConnectorResponse deletePaymentServiceUserConnector(V3DeletePaymentServiceUserConnectorRequest request, Optional serverURL) { RequestOperation operation - = new V3DeletePaymentServiceUserConnector.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentServiceUserConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -611,8 +713,20 @@ public V3DeletePoolRequestBuilder deletePool() { * @throws RuntimeException subclass if the API call fails */ public V3DeletePoolResponse deletePool(V3DeletePoolRequest request) { + return deletePool(request, Optional.empty()); + } + + /** + * Delete a pool by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3DeletePoolResponse deletePool(V3DeletePoolRequest request, Optional serverURL) { RequestOperation operation - = new V3DeletePool.Sync(sdkConfiguration, _headers); + = new V3DeletePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -633,8 +747,20 @@ public V3ForwardBankAccountRequestBuilder forwardBankAccount() { * @throws RuntimeException subclass if the API call fails */ public V3ForwardBankAccountResponse forwardBankAccount(V3ForwardBankAccountRequest request) { + return forwardBankAccount(request, Optional.empty()); + } + + /** + * Forward a Bank Account to a PSP for creation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ForwardBankAccountResponse forwardBankAccount(V3ForwardBankAccountRequest request, Optional serverURL) { RequestOperation operation - = new V3ForwardBankAccount.Sync(sdkConfiguration, _headers); + = new V3ForwardBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -655,8 +781,20 @@ public V3ForwardPaymentServiceUserBankAccountRequestBuilder forwardPaymentServic * @throws RuntimeException subclass if the API call fails */ public V3ForwardPaymentServiceUserBankAccountResponse forwardPaymentServiceUserBankAccount(V3ForwardPaymentServiceUserBankAccountRequest request) { + return forwardPaymentServiceUserBankAccount(request, Optional.empty()); + } + + /** + * Forward a payment service user's bank account to a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ForwardPaymentServiceUserBankAccountResponse forwardPaymentServiceUserBankAccount(V3ForwardPaymentServiceUserBankAccountRequest request, Optional serverURL) { RequestOperation operation - = new V3ForwardPaymentServiceUserBankAccount.Sync(sdkConfiguration, _headers); + = new V3ForwardPaymentServiceUserBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -677,8 +815,20 @@ public V3ForwardPaymentServiceUserToProviderRequestBuilder forwardPaymentService * @throws RuntimeException subclass if the API call fails */ public V3ForwardPaymentServiceUserToProviderResponse forwardPaymentServiceUserToProvider(V3ForwardPaymentServiceUserToProviderRequest request) { + return forwardPaymentServiceUserToProvider(request, Optional.empty()); + } + + /** + * Register/forward a payment service user on/to a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ForwardPaymentServiceUserToProviderResponse forwardPaymentServiceUserToProvider(V3ForwardPaymentServiceUserToProviderRequest request, Optional serverURL) { RequestOperation operation - = new V3ForwardPaymentServiceUserToProvider.Sync(sdkConfiguration, _headers); + = new V3ForwardPaymentServiceUserToProvider.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -699,8 +849,20 @@ public V3GetAccountRequestBuilder getAccount() { * @throws RuntimeException subclass if the API call fails */ public V3GetAccountResponse getAccount(V3GetAccountRequest request) { + return getAccount(request, Optional.empty()); + } + + /** + * Get an account by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetAccountResponse getAccount(V3GetAccountRequest request, Optional serverURL) { RequestOperation operation - = new V3GetAccount.Sync(sdkConfiguration, _headers); + = new V3GetAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -721,8 +883,20 @@ public V3GetAccountBalancesRequestBuilder getAccountBalances() { * @throws RuntimeException subclass if the API call fails */ public V3GetAccountBalancesResponse getAccountBalances(V3GetAccountBalancesRequest request) { + return getAccountBalances(request, Optional.empty()); + } + + /** + * Get account balances + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetAccountBalancesResponse getAccountBalances(V3GetAccountBalancesRequest request, Optional serverURL) { RequestOperation operation - = new V3GetAccountBalances.Sync(sdkConfiguration, _headers); + = new V3GetAccountBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -743,8 +917,20 @@ public V3GetBankAccountRequestBuilder getBankAccount() { * @throws RuntimeException subclass if the API call fails */ public V3GetBankAccountResponse getBankAccount(V3GetBankAccountRequest request) { + return getBankAccount(request, Optional.empty()); + } + + /** + * Get a Bank Account by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetBankAccountResponse getBankAccount(V3GetBankAccountRequest request, Optional serverURL) { RequestOperation operation - = new V3GetBankAccount.Sync(sdkConfiguration, _headers); + = new V3GetBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -765,8 +951,20 @@ public V3GetConnectorConfigRequestBuilder getConnectorConfig() { * @throws RuntimeException subclass if the API call fails */ public V3GetConnectorConfigResponse getConnectorConfig(V3GetConnectorConfigRequest request) { + return getConnectorConfig(request, Optional.empty()); + } + + /** + * Get a connector configuration by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetConnectorConfigResponse getConnectorConfig(V3GetConnectorConfigRequest request, Optional serverURL) { RequestOperation operation - = new V3GetConnectorConfig.Sync(sdkConfiguration, _headers); + = new V3GetConnectorConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -787,8 +985,20 @@ public V3GetConnectorScheduleRequestBuilder getConnectorSchedule() { * @throws RuntimeException subclass if the API call fails */ public V3GetConnectorScheduleResponse getConnectorSchedule(V3GetConnectorScheduleRequest request) { + return getConnectorSchedule(request, Optional.empty()); + } + + /** + * Get a connector schedule by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetConnectorScheduleResponse getConnectorSchedule(V3GetConnectorScheduleRequest request, Optional serverURL) { RequestOperation operation - = new V3GetConnectorSchedule.Sync(sdkConfiguration, _headers); + = new V3GetConnectorSchedule.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -809,8 +1019,20 @@ public V3GetPaymentRequestBuilder getPayment() { * @throws RuntimeException subclass if the API call fails */ public V3GetPaymentResponse getPayment(V3GetPaymentRequest request) { + return getPayment(request, Optional.empty()); + } + + /** + * Get a payment by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPaymentResponse getPayment(V3GetPaymentRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPayment.Sync(sdkConfiguration, _headers); + = new V3GetPayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -831,8 +1053,20 @@ public V3GetPaymentInitiationRequestBuilder getPaymentInitiation() { * @throws RuntimeException subclass if the API call fails */ public V3GetPaymentInitiationResponse getPaymentInitiation(V3GetPaymentInitiationRequest request) { + return getPaymentInitiation(request, Optional.empty()); + } + + /** + * Get a payment initiation by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPaymentInitiationResponse getPaymentInitiation(V3GetPaymentInitiationRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3GetPaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -853,8 +1087,20 @@ public V3GetPaymentServiceUserRequestBuilder getPaymentServiceUser() { * @throws RuntimeException subclass if the API call fails */ public V3GetPaymentServiceUserResponse getPaymentServiceUser(V3GetPaymentServiceUserRequest request) { + return getPaymentServiceUser(request, Optional.empty()); + } + + /** + * Get a payment service user by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPaymentServiceUserResponse getPaymentServiceUser(V3GetPaymentServiceUserRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3GetPaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -875,8 +1121,20 @@ public V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder getPaymen * @throws RuntimeException subclass if the API call fails */ public V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse getPaymentServiceUserLinkAttemptFromConnectorID(V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest request) { + return getPaymentServiceUserLinkAttemptFromConnectorID(request, Optional.empty()); + } + + /** + * Get a link attempt for a payment service user on a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse getPaymentServiceUserLinkAttemptFromConnectorID(V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPaymentServiceUserLinkAttemptFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3GetPaymentServiceUserLinkAttemptFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -897,8 +1155,20 @@ public V3GetPoolRequestBuilder getPool() { * @throws RuntimeException subclass if the API call fails */ public V3GetPoolResponse getPool(V3GetPoolRequest request) { + return getPool(request, Optional.empty()); + } + + /** + * Get a pool by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPoolResponse getPool(V3GetPoolRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPool.Sync(sdkConfiguration, _headers); + = new V3GetPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -919,8 +1189,20 @@ public V3GetPoolBalancesRequestBuilder getPoolBalances() { * @throws RuntimeException subclass if the API call fails */ public V3GetPoolBalancesResponse getPoolBalances(V3GetPoolBalancesRequest request) { + return getPoolBalances(request, Optional.empty()); + } + + /** + * Get historical pool balances from a particular point in time + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPoolBalancesResponse getPoolBalances(V3GetPoolBalancesRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPoolBalances.Sync(sdkConfiguration, _headers); + = new V3GetPoolBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -941,8 +1223,20 @@ public V3GetPoolBalancesLatestRequestBuilder getPoolBalancesLatest() { * @throws RuntimeException subclass if the API call fails */ public V3GetPoolBalancesLatestResponse getPoolBalancesLatest(V3GetPoolBalancesLatestRequest request) { + return getPoolBalancesLatest(request, Optional.empty()); + } + + /** + * Get latest pool balances + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetPoolBalancesLatestResponse getPoolBalancesLatest(V3GetPoolBalancesLatestRequest request, Optional serverURL) { RequestOperation operation - = new V3GetPoolBalancesLatest.Sync(sdkConfiguration, _headers); + = new V3GetPoolBalancesLatest.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -963,8 +1257,20 @@ public V3GetTaskRequestBuilder getTask() { * @throws RuntimeException subclass if the API call fails */ public V3GetTaskResponse getTask(V3GetTaskRequest request) { + return getTask(request, Optional.empty()); + } + + /** + * Get a task and its result by ID + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3GetTaskResponse getTask(V3GetTaskRequest request, Optional serverURL) { RequestOperation operation - = new V3GetTask.Sync(sdkConfiguration, _headers); + = new V3GetTask.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -985,8 +1291,20 @@ public V3InitiatePaymentRequestBuilder initiatePayment() { * @throws RuntimeException subclass if the API call fails */ public V3InitiatePaymentResponse initiatePayment(V3InitiatePaymentRequest request) { + return initiatePayment(request, Optional.empty()); + } + + /** + * Initiate a payment + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3InitiatePaymentResponse initiatePayment(V3InitiatePaymentRequest request, Optional serverURL) { RequestOperation operation - = new V3InitiatePayment.Sync(sdkConfiguration, _headers); + = new V3InitiatePayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1007,8 +1325,20 @@ public V3InstallConnectorRequestBuilder installConnector() { * @throws RuntimeException subclass if the API call fails */ public V3InstallConnectorResponse installConnector(V3InstallConnectorRequest request) { + return installConnector(request, Optional.empty()); + } + + /** + * Install a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3InstallConnectorResponse installConnector(V3InstallConnectorRequest request, Optional serverURL) { RequestOperation operation - = new V3InstallConnector.Sync(sdkConfiguration, _headers); + = new V3InstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1029,8 +1359,20 @@ public V3ListAccountsRequestBuilder listAccounts() { * @throws RuntimeException subclass if the API call fails */ public V3ListAccountsResponse listAccounts(V3ListAccountsRequest request) { + return listAccounts(request, Optional.empty()); + } + + /** + * List all accounts + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListAccountsResponse listAccounts(V3ListAccountsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListAccounts.Sync(sdkConfiguration, _headers); + = new V3ListAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1051,8 +1393,20 @@ public V3ListBankAccountsRequestBuilder listBankAccounts() { * @throws RuntimeException subclass if the API call fails */ public V3ListBankAccountsResponse listBankAccounts(V3ListBankAccountsRequest request) { + return listBankAccounts(request, Optional.empty()); + } + + /** + * List all bank accounts + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListBankAccountsResponse listBankAccounts(V3ListBankAccountsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListBankAccounts.Sync(sdkConfiguration, _headers); + = new V3ListBankAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1072,8 +1426,19 @@ public V3ListConnectorConfigsRequestBuilder listConnectorConfigs() { * @throws RuntimeException subclass if the API call fails */ public V3ListConnectorConfigsResponse listConnectorConfigsDirect() { + return listConnectorConfigs(Optional.empty()); + } + + /** + * List all connector configurations + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListConnectorConfigsResponse listConnectorConfigs(Optional serverURL) { RequestlessOperation operation - = new V3ListConnectorConfigs.Sync(sdkConfiguration, _headers); + = new V3ListConnectorConfigs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } @@ -1094,8 +1459,20 @@ public V3ListConnectorScheduleInstancesRequestBuilder listConnectorScheduleInsta * @throws RuntimeException subclass if the API call fails */ public V3ListConnectorScheduleInstancesResponse listConnectorScheduleInstances(V3ListConnectorScheduleInstancesRequest request) { + return listConnectorScheduleInstances(request, Optional.empty()); + } + + /** + * List all connector schedule instances + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListConnectorScheduleInstancesResponse listConnectorScheduleInstances(V3ListConnectorScheduleInstancesRequest request, Optional serverURL) { RequestOperation operation - = new V3ListConnectorScheduleInstances.Sync(sdkConfiguration, _headers); + = new V3ListConnectorScheduleInstances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1116,8 +1493,20 @@ public V3ListConnectorSchedulesRequestBuilder listConnectorSchedules() { * @throws RuntimeException subclass if the API call fails */ public V3ListConnectorSchedulesResponse listConnectorSchedules(V3ListConnectorSchedulesRequest request) { + return listConnectorSchedules(request, Optional.empty()); + } + + /** + * List all connector schedules + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListConnectorSchedulesResponse listConnectorSchedules(V3ListConnectorSchedulesRequest request, Optional serverURL) { RequestOperation operation - = new V3ListConnectorSchedules.Sync(sdkConfiguration, _headers); + = new V3ListConnectorSchedules.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1138,8 +1527,20 @@ public V3ListConnectorsRequestBuilder listConnectors() { * @throws RuntimeException subclass if the API call fails */ public V3ListConnectorsResponse listConnectors(V3ListConnectorsRequest request) { + return listConnectors(request, Optional.empty()); + } + + /** + * List all connectors + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListConnectorsResponse listConnectors(V3ListConnectorsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListConnectors.Sync(sdkConfiguration, _headers); + = new V3ListConnectors.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1160,8 +1561,20 @@ public V3ListPaymentInitiationAdjustmentsRequestBuilder listPaymentInitiationAdj * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentInitiationAdjustmentsResponse listPaymentInitiationAdjustments(V3ListPaymentInitiationAdjustmentsRequest request) { + return listPaymentInitiationAdjustments(request, Optional.empty()); + } + + /** + * List all payment initiation adjustments + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentInitiationAdjustmentsResponse listPaymentInitiationAdjustments(V3ListPaymentInitiationAdjustmentsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentInitiationAdjustments.Sync(sdkConfiguration, _headers); + = new V3ListPaymentInitiationAdjustments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1182,8 +1595,20 @@ public V3ListPaymentInitiationRelatedPaymentsRequestBuilder listPaymentInitiatio * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentInitiationRelatedPaymentsResponse listPaymentInitiationRelatedPayments(V3ListPaymentInitiationRelatedPaymentsRequest request) { + return listPaymentInitiationRelatedPayments(request, Optional.empty()); + } + + /** + * List all payments related to a payment initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentInitiationRelatedPaymentsResponse listPaymentInitiationRelatedPayments(V3ListPaymentInitiationRelatedPaymentsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentInitiationRelatedPayments.Sync(sdkConfiguration, _headers); + = new V3ListPaymentInitiationRelatedPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1204,8 +1629,20 @@ public V3ListPaymentInitiationsRequestBuilder listPaymentInitiations() { * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentInitiationsResponse listPaymentInitiations(V3ListPaymentInitiationsRequest request) { + return listPaymentInitiations(request, Optional.empty()); + } + + /** + * List all payment initiations + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentInitiationsResponse listPaymentInitiations(V3ListPaymentInitiationsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentInitiations.Sync(sdkConfiguration, _headers); + = new V3ListPaymentInitiations.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1226,8 +1663,20 @@ public V3ListPaymentServiceUserConnectionsRequestBuilder listPaymentServiceUserC * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentServiceUserConnectionsResponse listPaymentServiceUserConnections(V3ListPaymentServiceUserConnectionsRequest request) { + return listPaymentServiceUserConnections(request, Optional.empty()); + } + + /** + * List all connections for a payment service user + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentServiceUserConnectionsResponse listPaymentServiceUserConnections(V3ListPaymentServiceUserConnectionsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentServiceUserConnections.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUserConnections.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1250,8 +1699,21 @@ public V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder listPaym * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentServiceUserConnectionsFromConnectorIDResponse listPaymentServiceUserConnectionsFromConnectorID(V3ListPaymentServiceUserConnectionsFromConnectorIDRequest request) { + return listPaymentServiceUserConnectionsFromConnectorID(request, Optional.empty()); + } + + /** + * List enabled connections for a payment service user on a connector (i.e. the various banks PSUser + * has enabled on the connector) + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentServiceUserConnectionsFromConnectorIDResponse listPaymentServiceUserConnectionsFromConnectorID(V3ListPaymentServiceUserConnectionsFromConnectorIDRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentServiceUserConnectionsFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUserConnectionsFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1274,8 +1736,21 @@ public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder listPay * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse listPaymentServiceUserLinkAttemptsFromConnectorID(V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest request) { + return listPaymentServiceUserLinkAttemptsFromConnectorID(request, Optional.empty()); + } + + /** + * List all link attempts for a payment service user on a connector. + * Allows to check if users used the link and completed the oauth flow. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse listPaymentServiceUserLinkAttemptsFromConnectorID(V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentServiceUserLinkAttemptsFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUserLinkAttemptsFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1296,8 +1771,20 @@ public V3ListPaymentServiceUsersRequestBuilder listPaymentServiceUsers() { * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentServiceUsersResponse listPaymentServiceUsers(V3ListPaymentServiceUsersRequest request) { + return listPaymentServiceUsers(request, Optional.empty()); + } + + /** + * List all payment service users + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentServiceUsersResponse listPaymentServiceUsers(V3ListPaymentServiceUsersRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPaymentServiceUsers.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUsers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1318,8 +1805,20 @@ public V3ListPaymentsRequestBuilder listPayments() { * @throws RuntimeException subclass if the API call fails */ public V3ListPaymentsResponse listPayments(V3ListPaymentsRequest request) { + return listPayments(request, Optional.empty()); + } + + /** + * List all payments + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPaymentsResponse listPayments(V3ListPaymentsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPayments.Sync(sdkConfiguration, _headers); + = new V3ListPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1340,8 +1839,20 @@ public V3ListPoolsRequestBuilder listPools() { * @throws RuntimeException subclass if the API call fails */ public V3ListPoolsResponse listPools(V3ListPoolsRequest request) { + return listPools(request, Optional.empty()); + } + + /** + * List all pools + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ListPoolsResponse listPools(V3ListPoolsRequest request, Optional serverURL) { RequestOperation operation - = new V3ListPools.Sync(sdkConfiguration, _headers); + = new V3ListPools.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1362,8 +1873,20 @@ public V3RejectPaymentInitiationRequestBuilder rejectPaymentInitiation() { * @throws RuntimeException subclass if the API call fails */ public V3RejectPaymentInitiationResponse rejectPaymentInitiation(V3RejectPaymentInitiationRequest request) { + return rejectPaymentInitiation(request, Optional.empty()); + } + + /** + * Reject a payment initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3RejectPaymentInitiationResponse rejectPaymentInitiation(V3RejectPaymentInitiationRequest request, Optional serverURL) { RequestOperation operation - = new V3RejectPaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3RejectPaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1384,8 +1907,20 @@ public V3RemoveAccountFromPoolRequestBuilder removeAccountFromPool() { * @throws RuntimeException subclass if the API call fails */ public V3RemoveAccountFromPoolResponse removeAccountFromPool(V3RemoveAccountFromPoolRequest request) { + return removeAccountFromPool(request, Optional.empty()); + } + + /** + * Remove an account from a pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3RemoveAccountFromPoolResponse removeAccountFromPool(V3RemoveAccountFromPoolRequest request, Optional serverURL) { RequestOperation operation - = new V3RemoveAccountFromPool.Sync(sdkConfiguration, _headers); + = new V3RemoveAccountFromPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1408,8 +1943,21 @@ public V3ResetConnectorRequestBuilder resetConnector() { * @throws RuntimeException subclass if the API call fails */ public V3ResetConnectorResponse resetConnector(V3ResetConnectorRequest request) { + return resetConnector(request, Optional.empty()); + } + + /** + * Reset a connector. Be aware that this will delete all data and stop all existing tasks like payment + * initiations and bank account creations. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ResetConnectorResponse resetConnector(V3ResetConnectorRequest request, Optional serverURL) { RequestOperation operation - = new V3ResetConnector.Sync(sdkConfiguration, _headers); + = new V3ResetConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1430,8 +1978,20 @@ public V3RetryPaymentInitiationRequestBuilder retryPaymentInitiation() { * @throws RuntimeException subclass if the API call fails */ public V3RetryPaymentInitiationResponse retryPaymentInitiation(V3RetryPaymentInitiationRequest request) { + return retryPaymentInitiation(request, Optional.empty()); + } + + /** + * Retry a payment initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3RetryPaymentInitiationResponse retryPaymentInitiation(V3RetryPaymentInitiationRequest request, Optional serverURL) { RequestOperation operation - = new V3RetryPaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3RetryPaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1452,8 +2012,20 @@ public V3ReversePaymentInitiationRequestBuilder reversePaymentInitiation() { * @throws RuntimeException subclass if the API call fails */ public V3ReversePaymentInitiationResponse reversePaymentInitiation(V3ReversePaymentInitiationRequest request) { + return reversePaymentInitiation(request, Optional.empty()); + } + + /** + * Reverse a payment initiation + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3ReversePaymentInitiationResponse reversePaymentInitiation(V3ReversePaymentInitiationRequest request, Optional serverURL) { RequestOperation operation - = new V3ReversePaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3ReversePaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1474,8 +2046,20 @@ public V3UninstallConnectorRequestBuilder uninstallConnector() { * @throws RuntimeException subclass if the API call fails */ public V3UninstallConnectorResponse uninstallConnector(V3UninstallConnectorRequest request) { + return uninstallConnector(request, Optional.empty()); + } + + /** + * Uninstall a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3UninstallConnectorResponse uninstallConnector(V3UninstallConnectorRequest request, Optional serverURL) { RequestOperation operation - = new V3UninstallConnector.Sync(sdkConfiguration, _headers); + = new V3UninstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1496,8 +2080,20 @@ public V3UpdateBankAccountMetadataRequestBuilder updateBankAccountMetadata() { * @throws RuntimeException subclass if the API call fails */ public V3UpdateBankAccountMetadataResponse updateBankAccountMetadata(V3UpdateBankAccountMetadataRequest request) { + return updateBankAccountMetadata(request, Optional.empty()); + } + + /** + * Update a bank account's metadata + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3UpdateBankAccountMetadataResponse updateBankAccountMetadata(V3UpdateBankAccountMetadataRequest request, Optional serverURL) { RequestOperation operation - = new V3UpdateBankAccountMetadata.Sync(sdkConfiguration, _headers); + = new V3UpdateBankAccountMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1518,8 +2114,20 @@ public V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder updateLinkForP * @throws RuntimeException subclass if the API call fails */ public V3UpdateLinkForPaymentServiceUserOnConnectorResponse updateLinkForPaymentServiceUserOnConnector(V3UpdateLinkForPaymentServiceUserOnConnectorRequest request) { + return updateLinkForPaymentServiceUserOnConnector(request, Optional.empty()); + } + + /** + * Update/Regenerate a link for a payment service user on a connector + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3UpdateLinkForPaymentServiceUserOnConnectorResponse updateLinkForPaymentServiceUserOnConnector(V3UpdateLinkForPaymentServiceUserOnConnectorRequest request, Optional serverURL) { RequestOperation operation - = new V3UpdateLinkForPaymentServiceUserOnConnector.Sync(sdkConfiguration, _headers); + = new V3UpdateLinkForPaymentServiceUserOnConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1540,8 +2148,20 @@ public V3UpdatePaymentMetadataRequestBuilder updatePaymentMetadata() { * @throws RuntimeException subclass if the API call fails */ public V3UpdatePaymentMetadataResponse updatePaymentMetadata(V3UpdatePaymentMetadataRequest request) { + return updatePaymentMetadata(request, Optional.empty()); + } + + /** + * Update a payment's metadata + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3UpdatePaymentMetadataResponse updatePaymentMetadata(V3UpdatePaymentMetadataRequest request, Optional serverURL) { RequestOperation operation - = new V3UpdatePaymentMetadata.Sync(sdkConfiguration, _headers); + = new V3UpdatePaymentMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1562,8 +2182,20 @@ public V3UpdatePoolQueryRequestBuilder updatePoolQuery() { * @throws RuntimeException subclass if the API call fails */ public V3UpdatePoolQueryResponse updatePoolQuery(V3UpdatePoolQueryRequest request) { + return updatePoolQuery(request, Optional.empty()); + } + + /** + * Update the query of a pool + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3UpdatePoolQueryResponse updatePoolQuery(V3UpdatePoolQueryRequest request, Optional serverURL) { RequestOperation operation - = new V3UpdatePoolQuery.Sync(sdkConfiguration, _headers); + = new V3UpdatePoolQuery.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -1588,8 +2220,22 @@ public V3UpdateConnectorConfigRequestBuilder v3UpdateConnectorConfig() { * @throws RuntimeException subclass if the API call fails */ public V3UpdateConnectorConfigResponse v3UpdateConnectorConfig(V3UpdateConnectorConfigRequest request) { + return v3UpdateConnectorConfig(request, Optional.empty()); + } + + /** + * Update the config of a connector + * + *

Update connector config + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public V3UpdateConnectorConfigResponse v3UpdateConnectorConfig(V3UpdateConnectorConfigRequest request, Optional serverURL) { RequestOperation operation - = new V3UpdateConnectorConfig.Sync(sdkConfiguration, _headers); + = new V3UpdateConnectorConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/WalletsV1.java b/src/main/java/com/formance/formance_sdk/WalletsV1.java index c0d567467..e173980b8 100644 --- a/src/main/java/com/formance/formance_sdk/WalletsV1.java +++ b/src/main/java/com/formance/formance_sdk/WalletsV1.java @@ -30,6 +30,8 @@ import com.formance.formance_sdk.models.operations.GetHoldsRequest; import com.formance.formance_sdk.models.operations.GetHoldsRequestBuilder; import com.formance.formance_sdk.models.operations.GetHoldsResponse; +import com.formance.formance_sdk.models.operations.GetServerInfoWalletsRequestBuilder; +import com.formance.formance_sdk.models.operations.GetServerInfoWalletsResponse; import com.formance.formance_sdk.models.operations.GetTransactionsRequest; import com.formance.formance_sdk.models.operations.GetTransactionsRequestBuilder; import com.formance.formance_sdk.models.operations.GetTransactionsResponse; @@ -51,8 +53,6 @@ import com.formance.formance_sdk.models.operations.VoidHoldRequest; import com.formance.formance_sdk.models.operations.VoidHoldRequestBuilder; import com.formance.formance_sdk.models.operations.VoidHoldResponse; -import com.formance.formance_sdk.models.operations.WalletsgetServerInfoRequestBuilder; -import com.formance.formance_sdk.models.operations.WalletsgetServerInfoResponse; import com.formance.formance_sdk.operations.ConfirmHold; import com.formance.formance_sdk.operations.CreateBalance; import com.formance.formance_sdk.operations.CreateWallet; @@ -61,6 +61,7 @@ import com.formance.formance_sdk.operations.GetBalance; import com.formance.formance_sdk.operations.GetHold; import com.formance.formance_sdk.operations.GetHolds; +import com.formance.formance_sdk.operations.GetServerInfoWallets; import com.formance.formance_sdk.operations.GetTransactions; import com.formance.formance_sdk.operations.GetWallet; import com.formance.formance_sdk.operations.GetWalletSummary; @@ -68,8 +69,9 @@ import com.formance.formance_sdk.operations.ListWallets; import com.formance.formance_sdk.operations.UpdateWallet; import com.formance.formance_sdk.operations.VoidHold; -import com.formance.formance_sdk.operations.WalletsgetServerInfo; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; +import java.util.Optional; public class WalletsV1 { @@ -97,8 +99,20 @@ public ConfirmHoldRequestBuilder confirmHold() { * @throws RuntimeException subclass if the API call fails */ public ConfirmHoldResponse confirmHold(ConfirmHoldRequest request) { + return confirmHold(request, Optional.empty()); + } + + /** + * Confirm a hold + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ConfirmHoldResponse confirmHold(ConfirmHoldRequest request, Optional serverURL) { RequestOperation operation - = new ConfirmHold.Sync(sdkConfiguration, _headers); + = new ConfirmHold.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -119,8 +133,20 @@ public CreateBalanceRequestBuilder createBalance() { * @throws RuntimeException subclass if the API call fails */ public CreateBalanceResponse createBalance(CreateBalanceRequest request) { + return createBalance(request, Optional.empty()); + } + + /** + * Create a balance + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateBalanceResponse createBalance(CreateBalanceRequest request, Optional serverURL) { RequestOperation operation - = new CreateBalance.Sync(sdkConfiguration, _headers); + = new CreateBalance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -141,8 +167,20 @@ public CreateWalletRequestBuilder createWallet() { * @throws RuntimeException subclass if the API call fails */ public CreateWalletResponse createWallet(CreateWalletRequest request) { + return createWallet(request, Optional.empty()); + } + + /** + * Create a new wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateWalletResponse createWallet(CreateWalletRequest request, Optional serverURL) { RequestOperation operation - = new CreateWallet.Sync(sdkConfiguration, _headers); + = new CreateWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -163,8 +201,20 @@ public CreditWalletRequestBuilder creditWallet() { * @throws RuntimeException subclass if the API call fails */ public CreditWalletResponse creditWallet(CreditWalletRequest request) { + return creditWallet(request, Optional.empty()); + } + + /** + * Credit a wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreditWalletResponse creditWallet(CreditWalletRequest request, Optional serverURL) { RequestOperation operation - = new CreditWallet.Sync(sdkConfiguration, _headers); + = new CreditWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -185,8 +235,20 @@ public DebitWalletRequestBuilder debitWallet() { * @throws RuntimeException subclass if the API call fails */ public DebitWalletResponse debitWallet(DebitWalletRequest request) { + return debitWallet(request, Optional.empty()); + } + + /** + * Debit a wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DebitWalletResponse debitWallet(DebitWalletRequest request, Optional serverURL) { RequestOperation operation - = new DebitWallet.Sync(sdkConfiguration, _headers); + = new DebitWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -207,8 +269,20 @@ public GetBalanceRequestBuilder getBalance() { * @throws RuntimeException subclass if the API call fails */ public GetBalanceResponse getBalance(GetBalanceRequest request) { + return getBalance(request, Optional.empty()); + } + + /** + * Get detailed balance + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetBalanceResponse getBalance(GetBalanceRequest request, Optional serverURL) { RequestOperation operation - = new GetBalance.Sync(sdkConfiguration, _headers); + = new GetBalance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -229,8 +303,20 @@ public GetHoldRequestBuilder getHold() { * @throws RuntimeException subclass if the API call fails */ public GetHoldResponse getHold(GetHoldRequest request) { + return getHold(request, Optional.empty()); + } + + /** + * Get a hold + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetHoldResponse getHold(GetHoldRequest request, Optional serverURL) { RequestOperation operation - = new GetHold.Sync(sdkConfiguration, _headers); + = new GetHold.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -251,11 +337,55 @@ public GetHoldsRequestBuilder getHolds() { * @throws RuntimeException subclass if the API call fails */ public GetHoldsResponse getHolds(GetHoldsRequest request) { + return getHolds(request, Optional.empty()); + } + + /** + * Get all holds for a wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetHoldsResponse getHolds(GetHoldsRequest request, Optional serverURL) { RequestOperation operation - = new GetHolds.Sync(sdkConfiguration, _headers); + = new GetHolds.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } + /** + * Get server info + * + * @return The call builder + */ + public GetServerInfoWalletsRequestBuilder getServerInfoWallets() { + return new GetServerInfoWalletsRequestBuilder(sdkConfiguration); + } + + /** + * Get server info + * + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoWalletsResponse getServerInfoWalletsDirect() { + return getServerInfoWallets(Optional.empty()); + } + + /** + * Get server info + * + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetServerInfoWalletsResponse getServerInfoWallets(Optional serverURL) { + RequestlessOperation operation + = new GetServerInfoWallets.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest()); + } + /** * Returns a builder to make a request. * @@ -266,15 +396,27 @@ public GetTransactionsRequestBuilder getTransactions() { } /** - * Makes a request. + * Makes a request (required parameters only). * * @param request The request object containing all the parameters for the API call. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ public GetTransactionsResponse getTransactions(GetTransactionsRequest request) { + return getTransactions(request, Optional.empty()); + } + + /** + * Makes a request. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetTransactionsResponse getTransactions(GetTransactionsRequest request, Optional serverURL) { RequestOperation operation - = new GetTransactions.Sync(sdkConfiguration, _headers); + = new GetTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -295,8 +437,20 @@ public GetWalletRequestBuilder getWallet() { * @throws RuntimeException subclass if the API call fails */ public GetWalletResponse getWallet(GetWalletRequest request) { + return getWallet(request, Optional.empty()); + } + + /** + * Get a wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetWalletResponse getWallet(GetWalletRequest request, Optional serverURL) { RequestOperation operation - = new GetWallet.Sync(sdkConfiguration, _headers); + = new GetWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -317,8 +471,20 @@ public GetWalletSummaryRequestBuilder getWalletSummary() { * @throws RuntimeException subclass if the API call fails */ public GetWalletSummaryResponse getWalletSummary(GetWalletSummaryRequest request) { + return getWalletSummary(request, Optional.empty()); + } + + /** + * Get wallet summary + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetWalletSummaryResponse getWalletSummary(GetWalletSummaryRequest request, Optional serverURL) { RequestOperation operation - = new GetWalletSummary.Sync(sdkConfiguration, _headers); + = new GetWalletSummary.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -339,8 +505,20 @@ public ListBalancesRequestBuilder listBalances() { * @throws RuntimeException subclass if the API call fails */ public ListBalancesResponse listBalances(ListBalancesRequest request) { + return listBalances(request, Optional.empty()); + } + + /** + * List balances of a wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListBalancesResponse listBalances(ListBalancesRequest request, Optional serverURL) { RequestOperation operation - = new ListBalances.Sync(sdkConfiguration, _headers); + = new ListBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -361,8 +539,20 @@ public ListWalletsRequestBuilder listWallets() { * @throws RuntimeException subclass if the API call fails */ public ListWalletsResponse listWallets(ListWalletsRequest request) { + return listWallets(request, Optional.empty()); + } + + /** + * List all wallets + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListWalletsResponse listWallets(ListWalletsRequest request, Optional serverURL) { RequestOperation operation - = new ListWallets.Sync(sdkConfiguration, _headers); + = new ListWallets.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -383,8 +573,20 @@ public UpdateWalletRequestBuilder updateWallet() { * @throws RuntimeException subclass if the API call fails */ public UpdateWalletResponse updateWallet(UpdateWalletRequest request) { + return updateWallet(request, Optional.empty()); + } + + /** + * Update a wallet + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateWalletResponse updateWallet(UpdateWalletRequest request, Optional serverURL) { RequestOperation operation - = new UpdateWallet.Sync(sdkConfiguration, _headers); + = new UpdateWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -405,30 +607,21 @@ public VoidHoldRequestBuilder voidHold() { * @throws RuntimeException subclass if the API call fails */ public VoidHoldResponse voidHold(VoidHoldRequest request) { - RequestOperation operation - = new VoidHold.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - - /** - * Get server info - * - * @return The call builder - */ - public WalletsgetServerInfoRequestBuilder walletsgetServerInfo() { - return new WalletsgetServerInfoRequestBuilder(sdkConfiguration); + return voidHold(request, Optional.empty()); } /** - * Get server info + * Cancel a hold * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public WalletsgetServerInfoResponse walletsgetServerInfoDirect() { - RequestlessOperation operation - = new WalletsgetServerInfo.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest()); + public VoidHoldResponse voidHold(VoidHoldRequest request, Optional serverURL) { + RequestOperation operation + = new VoidHold.Sync(sdkConfiguration, serverURL, _headers); + return operation.handleResponse(operation.doRequest(request)); } } diff --git a/src/main/java/com/formance/formance_sdk/WebhooksV1.java b/src/main/java/com/formance/formance_sdk/WebhooksV1.java index 78410ac68..e705d18b4 100644 --- a/src/main/java/com/formance/formance_sdk/WebhooksV1.java +++ b/src/main/java/com/formance/formance_sdk/WebhooksV1.java @@ -28,7 +28,7 @@ import com.formance.formance_sdk.models.operations.UpdateConfigRequest; import com.formance.formance_sdk.models.operations.UpdateConfigRequestBuilder; import com.formance.formance_sdk.models.operations.UpdateConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ConfigUser; import com.formance.formance_sdk.operations.ActivateConfig; import com.formance.formance_sdk.operations.ChangeConfigSecret; import com.formance.formance_sdk.operations.DeactivateConfig; @@ -38,6 +38,8 @@ import com.formance.formance_sdk.operations.TestConfig; import com.formance.formance_sdk.operations.UpdateConfig; import com.formance.formance_sdk.utils.Headers; +import java.lang.String; +import java.util.Optional; public class WebhooksV1 { @@ -69,8 +71,22 @@ public ActivateConfigRequestBuilder activateConfig() { * @throws RuntimeException subclass if the API call fails */ public ActivateConfigResponse activateConfig(ActivateConfigRequest request) { + return activateConfig(request, Optional.empty()); + } + + /** + * Activate one config + * + *

Activate a webhooks config by ID, to start receiving webhooks to its endpoint. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ActivateConfigResponse activateConfig(ActivateConfigRequest request, Optional serverURL) { RequestOperation operation - = new ActivateConfig.Sync(sdkConfiguration, _headers); + = new ActivateConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -101,8 +117,25 @@ public ChangeConfigSecretRequestBuilder changeConfigSecret() { * @throws RuntimeException subclass if the API call fails */ public ChangeConfigSecretResponse changeConfigSecret(ChangeConfigSecretRequest request) { + return changeConfigSecret(request, Optional.empty()); + } + + /** + * Change the signing secret of a config + * + *

Change the signing secret of the endpoint of a webhooks config. + * + *

If not passed or empty, a secret is automatically generated. + * The format is a random string of bytes of size 24, base64 encoded. (larger size after encoding) + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ChangeConfigSecretResponse changeConfigSecret(ChangeConfigSecretRequest request, Optional serverURL) { RequestOperation operation - = new ChangeConfigSecret.Sync(sdkConfiguration, _headers); + = new ChangeConfigSecret.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -127,8 +160,22 @@ public DeactivateConfigRequestBuilder deactivateConfig() { * @throws RuntimeException subclass if the API call fails */ public DeactivateConfigResponse deactivateConfig(DeactivateConfigRequest request) { + return deactivateConfig(request, Optional.empty()); + } + + /** + * Deactivate one config + * + *

Deactivate a webhooks config by ID, to stop receiving webhooks to its endpoint. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeactivateConfigResponse deactivateConfig(DeactivateConfigRequest request, Optional serverURL) { RequestOperation operation - = new DeactivateConfig.Sync(sdkConfiguration, _headers); + = new DeactivateConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -153,8 +200,22 @@ public DeleteConfigRequestBuilder deleteConfig() { * @throws RuntimeException subclass if the API call fails */ public DeleteConfigResponse deleteConfig(DeleteConfigRequest request) { + return deleteConfig(request, Optional.empty()); + } + + /** + * Delete one config + * + *

Delete a webhooks config by ID. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteConfigResponse deleteConfig(DeleteConfigRequest request, Optional serverURL) { RequestOperation operation - = new DeleteConfig.Sync(sdkConfiguration, _headers); + = new DeleteConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -179,8 +240,22 @@ public GetManyConfigsRequestBuilder getManyConfigs() { * @throws RuntimeException subclass if the API call fails */ public GetManyConfigsResponse getManyConfigs(GetManyConfigsRequest request) { + return getManyConfigs(request, Optional.empty()); + } + + /** + * Get many configs + * + *

Sorted by updated date descending + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetManyConfigsResponse getManyConfigs(GetManyConfigsRequest request, Optional serverURL) { RequestOperation operation - = new GetManyConfigs.Sync(sdkConfiguration, _headers); + = new GetManyConfigs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -221,8 +296,30 @@ public InsertConfigRequestBuilder insertConfig() { * @throws RuntimeException subclass if the API call fails */ public InsertConfigResponse insertConfig(ConfigUser request) { + return insertConfig(request, Optional.empty()); + } + + /** + * Insert a new config + * + *

Insert a new webhooks config. + * + *

The endpoint should be a valid https URL and be unique. + * + *

The secret is the endpoint's verification secret. + * If not passed or empty, a secret is automatically generated. + * The format is a random string of bytes of size 24, base64 encoded. (larger size after encoding) + * + *

All eventTypes are converted to lower-case when inserted. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public InsertConfigResponse insertConfig(ConfigUser request, Optional serverURL) { RequestOperation operation - = new InsertConfig.Sync(sdkConfiguration, _headers); + = new InsertConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -247,8 +344,22 @@ public TestConfigRequestBuilder testConfig() { * @throws RuntimeException subclass if the API call fails */ public TestConfigResponse testConfig(TestConfigRequest request) { + return testConfig(request, Optional.empty()); + } + + /** + * Test one config + * + *

Test a config by sending a webhook to its endpoint. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public TestConfigResponse testConfig(TestConfigRequest request, Optional serverURL) { RequestOperation operation - = new TestConfig.Sync(sdkConfiguration, _headers); + = new TestConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -273,8 +384,22 @@ public UpdateConfigRequestBuilder updateConfig() { * @throws RuntimeException subclass if the API call fails */ public UpdateConfigResponse updateConfig(UpdateConfigRequest request) { + return updateConfig(request, Optional.empty()); + } + + /** + * Update one config + * + *

Update a webhooks config by ID. + * + * @param request The request object containing all the parameters for the API call. + * @param serverURL Overrides the server URL. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateConfigResponse updateConfig(UpdateConfigRequest request, Optional serverURL) { RequestOperation operation - = new UpdateConfig.Sync(sdkConfiguration, _headers); + = new UpdateConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/auth/ClientOptions1.java b/src/main/java/com/formance/formance_sdk/models/auth/ClientOptions1.java new file mode 100644 index 000000000..336f53fe7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/ClientOptions1.java @@ -0,0 +1,490 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class ClientOptions1 { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("name") + private String name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postLogoutRedirectUris") + private Optional> postLogoutRedirectUris; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("public") + private Optional public_; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("redirectUris") + private Optional> redirectUris; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scopes") + private Optional> scopes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("secrets") + private Optional> secrets; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("trusted") + private Optional trusted; + + @JsonCreator + public ClientOptions1( + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("description") Optional description, + @JsonProperty("id") String id, + @JsonProperty("name") String name, + @JsonProperty("postLogoutRedirectUris") Optional> postLogoutRedirectUris, + @JsonProperty("public") Optional public_, + @JsonProperty("redirectUris") Optional> redirectUris, + @JsonProperty("scopes") Optional> scopes, + @JsonProperty("secrets") Optional> secrets, + @JsonProperty("trusted") Optional trusted) { + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + Utils.checkNotNull(public_, "public_"); + Utils.checkNotNull(redirectUris, "redirectUris"); + Utils.checkNotNull(scopes, "scopes"); + Utils.checkNotNull(secrets, "secrets"); + Utils.checkNotNull(trusted, "trusted"); + this.metadata = metadata; + this.description = description; + this.id = id; + this.name = name; + this.postLogoutRedirectUris = postLogoutRedirectUris; + this.public_ = public_; + this.redirectUris = redirectUris; + this.scopes = scopes; + this.secrets = secrets; + this.trusted = trusted; + } + + public ClientOptions1( + String id, + String name) { + this(JsonNullable.undefined(), Optional.empty(), id, + name, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @JsonIgnore + public Optional description() { + return description; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> postLogoutRedirectUris() { + return (Optional>) postLogoutRedirectUris; + } + + @JsonIgnore + public Optional public_() { + return public_; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> redirectUris() { + return (Optional>) redirectUris; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> scopes() { + return (Optional>) scopes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> secrets() { + return (Optional>) secrets; + } + + @JsonIgnore + public Optional trusted() { + return trusted; + } + + public static Builder builder() { + return new Builder(); + } + + + public ClientOptions1 withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public ClientOptions1 withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public ClientOptions1 withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + public ClientOptions1 withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + public ClientOptions1 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public ClientOptions1 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public ClientOptions1 withPostLogoutRedirectUris(List postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); + return this; + } + + + public ClientOptions1 withPostLogoutRedirectUris(Optional> postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = postLogoutRedirectUris; + return this; + } + + public ClientOptions1 withPublic(boolean public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = Optional.ofNullable(public_); + return this; + } + + + public ClientOptions1 withPublic(Optional public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = public_; + return this; + } + + public ClientOptions1 withRedirectUris(List redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = Optional.ofNullable(redirectUris); + return this; + } + + + public ClientOptions1 withRedirectUris(Optional> redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = redirectUris; + return this; + } + + public ClientOptions1 withScopes(List scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = Optional.ofNullable(scopes); + return this; + } + + + public ClientOptions1 withScopes(Optional> scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = scopes; + return this; + } + + public ClientOptions1 withSecrets(List secrets) { + Utils.checkNotNull(secrets, "secrets"); + this.secrets = Optional.ofNullable(secrets); + return this; + } + + + public ClientOptions1 withSecrets(Optional> secrets) { + Utils.checkNotNull(secrets, "secrets"); + this.secrets = secrets; + return this; + } + + public ClientOptions1 withTrusted(boolean trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = Optional.ofNullable(trusted); + return this; + } + + + public ClientOptions1 withTrusted(Optional trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = trusted; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientOptions1 other = (ClientOptions1) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.postLogoutRedirectUris, other.postLogoutRedirectUris) && + Utils.enhancedDeepEquals(this.public_, other.public_) && + Utils.enhancedDeepEquals(this.redirectUris, other.redirectUris) && + Utils.enhancedDeepEquals(this.scopes, other.scopes) && + Utils.enhancedDeepEquals(this.secrets, other.secrets) && + Utils.enhancedDeepEquals(this.trusted, other.trusted); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, description, id, + name, postLogoutRedirectUris, public_, + redirectUris, scopes, secrets, + trusted); + } + + @Override + public String toString() { + return Utils.toString(ClientOptions1.class, + "metadata", metadata, + "description", description, + "id", id, + "name", name, + "postLogoutRedirectUris", postLogoutRedirectUris, + "public_", public_, + "redirectUris", redirectUris, + "scopes", scopes, + "secrets", secrets, + "trusted", trusted); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> metadata = JsonNullable.undefined(); + + private Optional description = Optional.empty(); + + private String id; + + private String name; + + private Optional> postLogoutRedirectUris = Optional.empty(); + + private Optional public_ = Optional.empty(); + + private Optional> redirectUris = Optional.empty(); + + private Optional> scopes = Optional.empty(); + + private Optional> secrets = Optional.empty(); + + private Optional trusted = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder postLogoutRedirectUris(List postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); + return this; + } + + public Builder postLogoutRedirectUris(Optional> postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = postLogoutRedirectUris; + return this; + } + + + public Builder public_(boolean public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = Optional.ofNullable(public_); + return this; + } + + public Builder public_(Optional public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = public_; + return this; + } + + + public Builder redirectUris(List redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = Optional.ofNullable(redirectUris); + return this; + } + + public Builder redirectUris(Optional> redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = redirectUris; + return this; + } + + + public Builder scopes(List scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = Optional.ofNullable(scopes); + return this; + } + + public Builder scopes(Optional> scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = scopes; + return this; + } + + + public Builder secrets(List secrets) { + Utils.checkNotNull(secrets, "secrets"); + this.secrets = Optional.ofNullable(secrets); + return this; + } + + public Builder secrets(Optional> secrets) { + Utils.checkNotNull(secrets, "secrets"); + this.secrets = secrets; + return this; + } + + + public Builder trusted(boolean trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = Optional.ofNullable(trusted); + return this; + } + + public Builder trusted(Optional trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = trusted; + return this; + } + + public ClientOptions1 build() { + + return new ClientOptions1( + metadata, description, id, + name, postLogoutRedirectUris, public_, + redirectUris, scopes, secrets, + trusted); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/auth/ClientOptions2.java b/src/main/java/com/formance/formance_sdk/models/auth/ClientOptions2.java new file mode 100644 index 000000000..6e8d5260b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/ClientOptions2.java @@ -0,0 +1,413 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class ClientOptions2 { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + + @JsonProperty("name") + private String name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postLogoutRedirectUris") + private Optional> postLogoutRedirectUris; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("public") + private Optional public_; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("redirectUris") + private Optional> redirectUris; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("scopes") + private Optional> scopes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("trusted") + private Optional trusted; + + @JsonCreator + public ClientOptions2( + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("description") Optional description, + @JsonProperty("name") String name, + @JsonProperty("postLogoutRedirectUris") Optional> postLogoutRedirectUris, + @JsonProperty("public") Optional public_, + @JsonProperty("redirectUris") Optional> redirectUris, + @JsonProperty("scopes") Optional> scopes, + @JsonProperty("trusted") Optional trusted) { + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + Utils.checkNotNull(public_, "public_"); + Utils.checkNotNull(redirectUris, "redirectUris"); + Utils.checkNotNull(scopes, "scopes"); + Utils.checkNotNull(trusted, "trusted"); + this.metadata = metadata; + this.description = description; + this.name = name; + this.postLogoutRedirectUris = postLogoutRedirectUris; + this.public_ = public_; + this.redirectUris = redirectUris; + this.scopes = scopes; + this.trusted = trusted; + } + + public ClientOptions2( + String name) { + this(JsonNullable.undefined(), Optional.empty(), name, + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @JsonIgnore + public Optional description() { + return description; + } + + @JsonIgnore + public String name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> postLogoutRedirectUris() { + return (Optional>) postLogoutRedirectUris; + } + + @JsonIgnore + public Optional public_() { + return public_; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> redirectUris() { + return (Optional>) redirectUris; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> scopes() { + return (Optional>) scopes; + } + + @JsonIgnore + public Optional trusted() { + return trusted; + } + + public static Builder builder() { + return new Builder(); + } + + + public ClientOptions2 withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public ClientOptions2 withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public ClientOptions2 withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + public ClientOptions2 withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + public ClientOptions2 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public ClientOptions2 withPostLogoutRedirectUris(List postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); + return this; + } + + + public ClientOptions2 withPostLogoutRedirectUris(Optional> postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = postLogoutRedirectUris; + return this; + } + + public ClientOptions2 withPublic(boolean public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = Optional.ofNullable(public_); + return this; + } + + + public ClientOptions2 withPublic(Optional public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = public_; + return this; + } + + public ClientOptions2 withRedirectUris(List redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = Optional.ofNullable(redirectUris); + return this; + } + + + public ClientOptions2 withRedirectUris(Optional> redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = redirectUris; + return this; + } + + public ClientOptions2 withScopes(List scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = Optional.ofNullable(scopes); + return this; + } + + + public ClientOptions2 withScopes(Optional> scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = scopes; + return this; + } + + public ClientOptions2 withTrusted(boolean trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = Optional.ofNullable(trusted); + return this; + } + + + public ClientOptions2 withTrusted(Optional trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = trusted; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientOptions2 other = (ClientOptions2) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.postLogoutRedirectUris, other.postLogoutRedirectUris) && + Utils.enhancedDeepEquals(this.public_, other.public_) && + Utils.enhancedDeepEquals(this.redirectUris, other.redirectUris) && + Utils.enhancedDeepEquals(this.scopes, other.scopes) && + Utils.enhancedDeepEquals(this.trusted, other.trusted); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, description, name, + postLogoutRedirectUris, public_, redirectUris, + scopes, trusted); + } + + @Override + public String toString() { + return Utils.toString(ClientOptions2.class, + "metadata", metadata, + "description", description, + "name", name, + "postLogoutRedirectUris", postLogoutRedirectUris, + "public_", public_, + "redirectUris", redirectUris, + "scopes", scopes, + "trusted", trusted); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> metadata = JsonNullable.undefined(); + + private Optional description = Optional.empty(); + + private String name; + + private Optional> postLogoutRedirectUris = Optional.empty(); + + private Optional public_ = Optional.empty(); + + private Optional> redirectUris = Optional.empty(); + + private Optional> scopes = Optional.empty(); + + private Optional trusted = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder postLogoutRedirectUris(List postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); + return this; + } + + public Builder postLogoutRedirectUris(Optional> postLogoutRedirectUris) { + Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); + this.postLogoutRedirectUris = postLogoutRedirectUris; + return this; + } + + + public Builder public_(boolean public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = Optional.ofNullable(public_); + return this; + } + + public Builder public_(Optional public_) { + Utils.checkNotNull(public_, "public_"); + this.public_ = public_; + return this; + } + + + public Builder redirectUris(List redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = Optional.ofNullable(redirectUris); + return this; + } + + public Builder redirectUris(Optional> redirectUris) { + Utils.checkNotNull(redirectUris, "redirectUris"); + this.redirectUris = redirectUris; + return this; + } + + + public Builder scopes(List scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = Optional.ofNullable(scopes); + return this; + } + + public Builder scopes(Optional> scopes) { + Utils.checkNotNull(scopes, "scopes"); + this.scopes = scopes; + return this; + } + + + public Builder trusted(boolean trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = Optional.ofNullable(trusted); + return this; + } + + public Builder trusted(Optional trusted) { + Utils.checkNotNull(trusted, "trusted"); + this.trusted = trusted; + return this; + } + + public ClientOptions2 build() { + + return new ClientOptions2( + metadata, description, name, + postLogoutRedirectUris, public_, redirectUris, + scopes, trusted); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ClientSecret.java b/src/main/java/com/formance/formance_sdk/models/auth/ClientSecret.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/ClientSecret.java rename to src/main/java/com/formance/formance_sdk/models/auth/ClientSecret.java index 834b64531..061aa9b23 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ClientSecret.java +++ b/src/main/java/com/formance/formance_sdk/models/auth/ClientSecret.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.auth; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,6 +18,11 @@ public class ClientSecret { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + @JsonProperty("id") private String id; @@ -26,27 +31,22 @@ public class ClientSecret { private String lastDigits; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("name") private String name; @JsonCreator public ClientSecret( + @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("id") String id, @JsonProperty("lastDigits") String lastDigits, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("name") String name) { + Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(lastDigits, "lastDigits"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(name, "name"); + this.metadata = metadata; this.id = id; this.lastDigits = lastDigits; - this.metadata = metadata; this.name = name; } @@ -54,10 +54,16 @@ public ClientSecret( String id, String lastDigits, String name) { - this(id, lastDigits, JsonNullable.undefined(), + this(JsonNullable.undefined(), id, lastDigits, name); } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + @JsonIgnore public String id() { return id; @@ -68,12 +74,6 @@ public String lastDigits() { return lastDigits; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String name() { return name; @@ -84,18 +84,6 @@ public static Builder builder() { } - public ClientSecret withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ClientSecret withLastDigits(String lastDigits) { - Utils.checkNotNull(lastDigits, "lastDigits"); - this.lastDigits = lastDigits; - return this; - } - public ClientSecret withMetadata(Map metadata) { Utils.checkNotNull(metadata, "metadata"); this.metadata = JsonNullable.of(metadata); @@ -108,6 +96,18 @@ public ClientSecret withMetadata(JsonNullable> met return this; } + public ClientSecret withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public ClientSecret withLastDigits(String lastDigits) { + Utils.checkNotNull(lastDigits, "lastDigits"); + this.lastDigits = lastDigits; + return this; + } + public ClientSecret withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -124,37 +124,37 @@ public boolean equals(java.lang.Object o) { } ClientSecret other = (ClientSecret) o; return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.lastDigits, other.lastDigits) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { return Utils.enhancedHash( - id, lastDigits, metadata, + metadata, id, lastDigits, name); } @Override public String toString() { return Utils.toString(ClientSecret.class, + "metadata", metadata, "id", id, "lastDigits", lastDigits, - "metadata", metadata, "name", name); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> metadata = JsonNullable.undefined(); + private String id; private String lastDigits; - private JsonNullable> metadata = JsonNullable.undefined(); - private String name; private Builder() { @@ -162,29 +162,29 @@ private Builder() { } - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); return this; } - - public Builder lastDigits(String lastDigits) { - Utils.checkNotNull(lastDigits, "lastDigits"); - this.lastDigits = lastDigits; + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; return this; } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; return this; } - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; + + public Builder lastDigits(String lastDigits) { + Utils.checkNotNull(lastDigits, "lastDigits"); + this.lastDigits = lastDigits; return this; } @@ -198,7 +198,7 @@ public Builder name(String name) { public ClientSecret build() { return new ClientSecret( - id, lastDigits, metadata, + metadata, id, lastDigits, name); } diff --git a/src/main/java/com/formance/formance_sdk/models/auth/CreateClientResponse.java b/src/main/java/com/formance/formance_sdk/models/auth/CreateClientResponse.java new file mode 100644 index 000000000..923ec7aeb --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/CreateClientResponse.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class CreateClientResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional clientOptions; + + @JsonCreator + public CreateClientResponse( + @JsonProperty("data") Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; + } + + public CreateClientResponse() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional clientOptions() { + return (Optional) clientOptions; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateClientResponse withClientOptions(ClientOptions1 clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = Optional.ofNullable(clientOptions); + return this; + } + + + public CreateClientResponse withClientOptions(Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateClientResponse other = (CreateClientResponse) o; + return + Utils.enhancedDeepEquals(this.clientOptions, other.clientOptions); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + clientOptions); + } + + @Override + public String toString() { + return Utils.toString(CreateClientResponse.class, + "clientOptions", clientOptions); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional clientOptions = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder clientOptions(ClientOptions1 clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = Optional.ofNullable(clientOptions); + return this; + } + + public Builder clientOptions(Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; + return this; + } + + public CreateClientResponse build() { + + return new CreateClientResponse( + clientOptions); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/auth/CreateSecretResponse.java b/src/main/java/com/formance/formance_sdk/models/auth/CreateSecretResponse.java new file mode 100644 index 000000000..2845f4307 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/CreateSecretResponse.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class CreateSecretResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional secretOptions; + + @JsonCreator + public CreateSecretResponse( + @JsonProperty("data") Optional secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = secretOptions; + } + + public CreateSecretResponse() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional secretOptions() { + return (Optional) secretOptions; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateSecretResponse withSecretOptions(SecretOptions2 secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = Optional.ofNullable(secretOptions); + return this; + } + + + public CreateSecretResponse withSecretOptions(Optional secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = secretOptions; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSecretResponse other = (CreateSecretResponse) o; + return + Utils.enhancedDeepEquals(this.secretOptions, other.secretOptions); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + secretOptions); + } + + @Override + public String toString() { + return Utils.toString(CreateSecretResponse.class, + "secretOptions", secretOptions); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional secretOptions = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder secretOptions(SecretOptions2 secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = Optional.ofNullable(secretOptions); + return this; + } + + public Builder secretOptions(Optional secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = secretOptions; + return this; + } + + public CreateSecretResponse build() { + + return new CreateSecretResponse( + secretOptions); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListClientsResponse.java b/src/main/java/com/formance/formance_sdk/models/auth/ListClientsResponse.java similarity index 82% rename from src/main/java/com/formance/formance_sdk/models/shared/ListClientsResponse.java rename to src/main/java/com/formance/formance_sdk/models/auth/ListClientsResponse.java index 58040cd00..5bf55ed90 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListClientsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/auth/ListClientsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.auth; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,11 +20,11 @@ public class ListClientsResponse { @JsonInclude(Include.NON_ABSENT) @JsonProperty("data") - private Optional> data; + private Optional> data; @JsonCreator public ListClientsResponse( - @JsonProperty("data") Optional> data) { + @JsonProperty("data") Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; } @@ -35,8 +35,8 @@ public ListClientsResponse() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional> data() { + return (Optional>) data; } public static Builder builder() { @@ -44,14 +44,14 @@ public static Builder builder() { } - public ListClientsResponse withData(List data) { + public ListClientsResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; } - public ListClientsResponse withData(Optional> data) { + public ListClientsResponse withData(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -85,20 +85,20 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional> data = Optional.empty(); + private Optional> data = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder data(List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = Optional.ofNullable(data); return this; } - public Builder data(Optional> data) { + public Builder data(Optional> data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListUsersResponse.java b/src/main/java/com/formance/formance_sdk/models/auth/ListUsersResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/ListUsersResponse.java rename to src/main/java/com/formance/formance_sdk/models/auth/ListUsersResponse.java index 1a3e66c01..5c427db93 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListUsersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/auth/ListUsersResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.auth; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/auth/ReadClientResponse.java b/src/main/java/com/formance/formance_sdk/models/auth/ReadClientResponse.java new file mode 100644 index 000000000..f5ccef28b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/ReadClientResponse.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class ReadClientResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional clientOptions; + + @JsonCreator + public ReadClientResponse( + @JsonProperty("data") Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; + } + + public ReadClientResponse() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional clientOptions() { + return (Optional) clientOptions; + } + + public static Builder builder() { + return new Builder(); + } + + + public ReadClientResponse withClientOptions(ClientOptions1 clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = Optional.ofNullable(clientOptions); + return this; + } + + + public ReadClientResponse withClientOptions(Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReadClientResponse other = (ReadClientResponse) o; + return + Utils.enhancedDeepEquals(this.clientOptions, other.clientOptions); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + clientOptions); + } + + @Override + public String toString() { + return Utils.toString(ReadClientResponse.class, + "clientOptions", clientOptions); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional clientOptions = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder clientOptions(ClientOptions1 clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = Optional.ofNullable(clientOptions); + return this; + } + + public Builder clientOptions(Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; + return this; + } + + public ReadClientResponse build() { + + return new ReadClientResponse( + clientOptions); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/auth/ReadUserResponse.java b/src/main/java/com/formance/formance_sdk/models/auth/ReadUserResponse.java new file mode 100644 index 000000000..6295fc6b7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/ReadUserResponse.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class ReadUserResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional user; + + @JsonCreator + public ReadUserResponse( + @JsonProperty("data") Optional user) { + Utils.checkNotNull(user, "user"); + this.user = user; + } + + public ReadUserResponse() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional user() { + return (Optional) user; + } + + public static Builder builder() { + return new Builder(); + } + + + public ReadUserResponse withUser(User user) { + Utils.checkNotNull(user, "user"); + this.user = Optional.ofNullable(user); + return this; + } + + + public ReadUserResponse withUser(Optional user) { + Utils.checkNotNull(user, "user"); + this.user = user; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReadUserResponse other = (ReadUserResponse) o; + return + Utils.enhancedDeepEquals(this.user, other.user); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + user); + } + + @Override + public String toString() { + return Utils.toString(ReadUserResponse.class, + "user", user); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional user = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder user(User user) { + Utils.checkNotNull(user, "user"); + this.user = Optional.ofNullable(user); + return this; + } + + public Builder user(Optional user) { + Utils.checkNotNull(user, "user"); + this.user = user; + return this; + } + + public ReadUserResponse build() { + + return new ReadUserResponse( + user); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/auth/SecretOptions1.java b/src/main/java/com/formance/formance_sdk/models/auth/SecretOptions1.java new file mode 100644 index 000000000..2a4079e52 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/SecretOptions1.java @@ -0,0 +1,143 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class SecretOptions1 { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public SecretOptions1( + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("name") String name) { + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(name, "name"); + this.metadata = metadata; + this.name = name; + } + + public SecretOptions1( + String name) { + this(JsonNullable.undefined(), name); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public SecretOptions1 withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public SecretOptions1 withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public SecretOptions1 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecretOptions1 other = (SecretOptions1) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, name); + } + + @Override + public String toString() { + return Utils.toString(SecretOptions1.class, + "metadata", metadata, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> metadata = JsonNullable.undefined(); + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public SecretOptions1 build() { + + return new SecretOptions1( + metadata, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/auth/SecretOptions2.java b/src/main/java/com/formance/formance_sdk/models/auth/SecretOptions2.java new file mode 100644 index 000000000..2b1204182 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/SecretOptions2.java @@ -0,0 +1,236 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class SecretOptions2 { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonProperty("clear") + private String clear; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("lastDigits") + private String lastDigits; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public SecretOptions2( + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("clear") String clear, + @JsonProperty("id") String id, + @JsonProperty("lastDigits") String lastDigits, + @JsonProperty("name") String name) { + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(clear, "clear"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(lastDigits, "lastDigits"); + Utils.checkNotNull(name, "name"); + this.metadata = metadata; + this.clear = clear; + this.id = id; + this.lastDigits = lastDigits; + this.name = name; + } + + public SecretOptions2( + String clear, + String id, + String lastDigits, + String name) { + this(JsonNullable.undefined(), clear, id, + lastDigits, name); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @JsonIgnore + public String clear() { + return clear; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String lastDigits() { + return lastDigits; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public SecretOptions2 withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public SecretOptions2 withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public SecretOptions2 withClear(String clear) { + Utils.checkNotNull(clear, "clear"); + this.clear = clear; + return this; + } + + public SecretOptions2 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public SecretOptions2 withLastDigits(String lastDigits) { + Utils.checkNotNull(lastDigits, "lastDigits"); + this.lastDigits = lastDigits; + return this; + } + + public SecretOptions2 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecretOptions2 other = (SecretOptions2) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.clear, other.clear) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.lastDigits, other.lastDigits) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, clear, id, + lastDigits, name); + } + + @Override + public String toString() { + return Utils.toString(SecretOptions2.class, + "metadata", metadata, + "clear", clear, + "id", id, + "lastDigits", lastDigits, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> metadata = JsonNullable.undefined(); + + private String clear; + + private String id; + + private String lastDigits; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder clear(String clear) { + Utils.checkNotNull(clear, "clear"); + this.clear = clear; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder lastDigits(String lastDigits) { + Utils.checkNotNull(lastDigits, "lastDigits"); + this.lastDigits = lastDigits; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public SecretOptions2 build() { + + return new SecretOptions2( + metadata, clear, id, + lastDigits, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/auth/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/auth/ServerInfo.java new file mode 100644 index 000000000..ddf481d03 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/auth/ServerInfo.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.auth; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ServerInfo { + + @JsonProperty("version") + private String version; + + @JsonCreator + public ServerInfo( + @JsonProperty("version") String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + } + + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public ServerInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerInfo other = (ServerInfo) o; + return + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + version); + } + + @Override + public String toString() { + return Utils.toString(ServerInfo.class, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String version; + + private Builder() { + // force use of static builder() method + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public ServerInfo build() { + + return new ServerInfo( + version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/User.java b/src/main/java/com/formance/formance_sdk/models/auth/User.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/User.java rename to src/main/java/com/formance/formance_sdk/models/auth/User.java index 2dae0ec0f..9db749d89 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/User.java +++ b/src/main/java/com/formance/formance_sdk/models/auth/User.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.auth; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/errors/ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/errors/ErrorResponse.java deleted file mode 100644 index 2de7f5dfb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/errors/ErrorResponse.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.errors; - -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.formance.formance_sdk.models.shared.ErrorsEnum; -import com.formance.formance_sdk.utils.Utils; -import jakarta.annotation.Nonnull; -import jakarta.annotation.Nullable; -import java.io.InputStream; -import java.lang.Deprecated; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.lang.Throwable; -import java.net.http.HttpResponse; -import java.util.Optional; - -@SuppressWarnings("serial") -public class ErrorResponse extends SDKBaseError { - - @Nullable - private final Data data; - - @Nullable - private final Throwable deserializationException; - - public ErrorResponse( - int code, - byte[] body, - HttpResponse rawResponse, - @Nullable Data data, - @Nullable Throwable deserializationException) { - super("API error occurred", code, body, rawResponse, null); - this.data = data; - this.deserializationException = deserializationException; - } - - /** - * Parse a response into an instance of ErrorResponse. If deserialization of the response body fails, - * the resulting ErrorResponse instance will have a null data() value and a non-null deserializationException(). - */ - public static ErrorResponse from(HttpResponse response) { - try { - byte[] bytes = Utils.extractByteArrayFromBody(response); - Data data = Utils.mapper().readValue(bytes, Data.class); - return new ErrorResponse(response.statusCode(), bytes, response, data, null); - } catch (Exception e) { - return new ErrorResponse(response.statusCode(), null, response, null, e); - } - } - - @Deprecated - public Optional details() { - return data().flatMap(Data::details); - } - - @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); - } - - @Deprecated - public Optional errorMessage() { - return data().map(Data::errorMessage); - } - - public Optional data() { - return Optional.ofNullable(data); - } - - /** - * Returns the exception if an error occurs while deserializing the response body. - */ - public Optional deserializationException() { - return Optional.ofNullable(deserializationException); - } - - public static class Data { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; - - - @JsonProperty("errorCode") - private ErrorsEnum errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public Data( - @JsonProperty("details") Optional details, - @JsonProperty("errorCode") ErrorsEnum errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.details = details; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - public Data( - ErrorsEnum errorCode, - String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); - } - - @JsonIgnore - public Optional details() { - return details; - } - - @JsonIgnore - public ErrorsEnum errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public Data withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - - public Data withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - public Data withErrorCode(ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public Data withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Data other = (Data) o; - return - Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - details, errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(Data.class, - "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional details = Optional.empty(); - - private ErrorsEnum errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - - public Builder errorCode(ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public Data build() { - - return new Data( - details, errorCode, errorMessage); - } - - } - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/errors/ReconciliationErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/errors/ReconciliationErrorResponse.java deleted file mode 100644 index ed294fa59..000000000 --- a/src/main/java/com/formance/formance_sdk/models/errors/ReconciliationErrorResponse.java +++ /dev/null @@ -1,244 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.errors; - -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.formance.formance_sdk.utils.Utils; -import jakarta.annotation.Nonnull; -import jakarta.annotation.Nullable; -import java.io.InputStream; -import java.lang.Deprecated; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.lang.Throwable; -import java.net.http.HttpResponse; -import java.util.Optional; - -@SuppressWarnings("serial") -public class ReconciliationErrorResponse extends SDKBaseError { - - @Nullable - private final Data data; - - @Nullable - private final Throwable deserializationException; - - public ReconciliationErrorResponse( - int code, - byte[] body, - HttpResponse rawResponse, - @Nullable Data data, - @Nullable Throwable deserializationException) { - super("API error occurred", code, body, rawResponse, null); - this.data = data; - this.deserializationException = deserializationException; - } - - /** - * Parse a response into an instance of ReconciliationErrorResponse. If deserialization of the response body fails, - * the resulting ReconciliationErrorResponse instance will have a null data() value and a non-null deserializationException(). - */ - public static ReconciliationErrorResponse from(HttpResponse response) { - try { - byte[] bytes = Utils.extractByteArrayFromBody(response); - Data data = Utils.mapper().readValue(bytes, Data.class); - return new ReconciliationErrorResponse(response.statusCode(), bytes, response, data, null); - } catch (Exception e) { - return new ReconciliationErrorResponse(response.statusCode(), null, response, null, e); - } - } - - @Deprecated - public Optional details() { - return data().flatMap(Data::details); - } - - @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); - } - - @Deprecated - public Optional errorMessage() { - return data().map(Data::errorMessage); - } - - public Optional data() { - return Optional.ofNullable(data); - } - - /** - * Returns the exception if an error occurs while deserializing the response body. - */ - public Optional deserializationException() { - return Optional.ofNullable(deserializationException); - } - /** - * Data - * - *

Error response - */ - public static class Data { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; - - - @JsonProperty("errorCode") - private String errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public Data( - @JsonProperty("details") Optional details, - @JsonProperty("errorCode") String errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.details = details; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - public Data( - String errorCode, - String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); - } - - @JsonIgnore - public Optional details() { - return details; - } - - @JsonIgnore - public String errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public Data withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - - public Data withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - public Data withErrorCode(String errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public Data withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Data other = (Data) o; - return - Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - details, errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(Data.class, - "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional details = Optional.empty(); - - private String errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - - public Builder errorCode(String errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public Data build() { - - return new Data( - details, errorCode, errorMessage); - } - - } - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/errors/V2ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/errors/V2ErrorResponse.java deleted file mode 100644 index c9ea8fe2f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/errors/V2ErrorResponse.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.errors; - -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.formance.formance_sdk.models.shared.V2ErrorsEnum; -import com.formance.formance_sdk.utils.Utils; -import jakarta.annotation.Nonnull; -import jakarta.annotation.Nullable; -import java.io.InputStream; -import java.lang.Deprecated; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.lang.Throwable; -import java.net.http.HttpResponse; -import java.util.Optional; - -@SuppressWarnings("serial") -public class V2ErrorResponse extends SDKBaseError { - - @Nullable - private final Data data; - - @Nullable - private final Throwable deserializationException; - - public V2ErrorResponse( - int code, - byte[] body, - HttpResponse rawResponse, - @Nullable Data data, - @Nullable Throwable deserializationException) { - super("API error occurred", code, body, rawResponse, null); - this.data = data; - this.deserializationException = deserializationException; - } - - /** - * Parse a response into an instance of V2ErrorResponse. If deserialization of the response body fails, - * the resulting V2ErrorResponse instance will have a null data() value and a non-null deserializationException(). - */ - public static V2ErrorResponse from(HttpResponse response) { - try { - byte[] bytes = Utils.extractByteArrayFromBody(response); - Data data = Utils.mapper().readValue(bytes, Data.class); - return new V2ErrorResponse(response.statusCode(), bytes, response, data, null); - } catch (Exception e) { - return new V2ErrorResponse(response.statusCode(), null, response, null, e); - } - } - - @Deprecated - public Optional details() { - return data().flatMap(Data::details); - } - - @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); - } - - @Deprecated - public Optional errorMessage() { - return data().map(Data::errorMessage); - } - - public Optional data() { - return Optional.ofNullable(data); - } - - /** - * Returns the exception if an error occurs while deserializing the response body. - */ - public Optional deserializationException() { - return Optional.ofNullable(deserializationException); - } - - public static class Data { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; - - - @JsonProperty("errorCode") - private V2ErrorsEnum errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public Data( - @JsonProperty("details") Optional details, - @JsonProperty("errorCode") V2ErrorsEnum errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.details = details; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - public Data( - V2ErrorsEnum errorCode, - String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); - } - - @JsonIgnore - public Optional details() { - return details; - } - - @JsonIgnore - public V2ErrorsEnum errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public Data withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - - public Data withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - public Data withErrorCode(V2ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public Data withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Data other = (Data) o; - return - Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - details, errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(Data.class, - "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional details = Optional.empty(); - - private V2ErrorsEnum errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - - public Builder errorCode(V2ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public Data build() { - - return new Data( - details, errorCode, errorMessage); - } - - } - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponse.java deleted file mode 100644 index 70603936e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponse.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.errors; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import jakarta.annotation.Nonnull; -import jakarta.annotation.Nullable; -import java.io.InputStream; -import java.lang.Deprecated; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.lang.Throwable; -import java.net.http.HttpResponse; -import java.util.Optional; - -@SuppressWarnings("serial") -public class WalletsErrorResponse extends SDKBaseError { - - @Nullable - private final Data data; - - @Nullable - private final Throwable deserializationException; - - public WalletsErrorResponse( - int code, - byte[] body, - HttpResponse rawResponse, - @Nullable Data data, - @Nullable Throwable deserializationException) { - super("API error occurred", code, body, rawResponse, null); - this.data = data; - this.deserializationException = deserializationException; - } - - /** - * Parse a response into an instance of WalletsErrorResponse. If deserialization of the response body fails, - * the resulting WalletsErrorResponse instance will have a null data() value and a non-null deserializationException(). - */ - public static WalletsErrorResponse from(HttpResponse response) { - try { - byte[] bytes = Utils.extractByteArrayFromBody(response); - Data data = Utils.mapper().readValue(bytes, Data.class); - return new WalletsErrorResponse(response.statusCode(), bytes, response, data, null); - } catch (Exception e) { - return new WalletsErrorResponse(response.statusCode(), null, response, null, e); - } - } - - @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); - } - - @Deprecated - public Optional errorMessage() { - return data().map(Data::errorMessage); - } - - public Optional data() { - return Optional.ofNullable(data); - } - - /** - * Returns the exception if an error occurs while deserializing the response body. - */ - public Optional deserializationException() { - return Optional.ofNullable(deserializationException); - } - - public static class Data { - - @JsonProperty("errorCode") - private WalletsErrorResponseErrorCode errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public Data( - @JsonProperty("errorCode") WalletsErrorResponseErrorCode errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - @JsonIgnore - public WalletsErrorResponseErrorCode errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public Data withErrorCode(WalletsErrorResponseErrorCode errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public Data withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Data other = (Data) o; - return - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(Data.class, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WalletsErrorResponseErrorCode errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder errorCode(WalletsErrorResponseErrorCode errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public Data build() { - - return new Data( - errorCode, errorMessage); - } - - } - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponseErrorCode.java b/src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponseErrorCode.java deleted file mode 100644 index cf3e166d0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/errors/WalletsErrorResponseErrorCode.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.errors; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum WalletsErrorResponseErrorCode { - VALIDATION("VALIDATION"), - INTERNAL_ERROR("INTERNAL_ERROR"), - INSUFFICIENT_FUND("INSUFFICIENT_FUND"), - HOLD_CLOSED("HOLD_CLOSED"); - - @JsonValue - private final String value; - - WalletsErrorResponseErrorCode(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (WalletsErrorResponseErrorCode o: WalletsErrorResponseErrorCode.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/errors/WebhooksErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/errors/WebhooksErrorResponse.java deleted file mode 100644 index 6f2ec9865..000000000 --- a/src/main/java/com/formance/formance_sdk/models/errors/WebhooksErrorResponse.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.errors; - -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.formance.formance_sdk.models.shared.WebhooksErrorsEnum; -import com.formance.formance_sdk.utils.Utils; -import jakarta.annotation.Nonnull; -import jakarta.annotation.Nullable; -import java.io.InputStream; -import java.lang.Deprecated; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.lang.Throwable; -import java.net.http.HttpResponse; -import java.util.Optional; - -@SuppressWarnings("serial") -public class WebhooksErrorResponse extends SDKBaseError { - - @Nullable - private final Data data; - - @Nullable - private final Throwable deserializationException; - - public WebhooksErrorResponse( - int code, - byte[] body, - HttpResponse rawResponse, - @Nullable Data data, - @Nullable Throwable deserializationException) { - super("API error occurred", code, body, rawResponse, null); - this.data = data; - this.deserializationException = deserializationException; - } - - /** - * Parse a response into an instance of WebhooksErrorResponse. If deserialization of the response body fails, - * the resulting WebhooksErrorResponse instance will have a null data() value and a non-null deserializationException(). - */ - public static WebhooksErrorResponse from(HttpResponse response) { - try { - byte[] bytes = Utils.extractByteArrayFromBody(response); - Data data = Utils.mapper().readValue(bytes, Data.class); - return new WebhooksErrorResponse(response.statusCode(), bytes, response, data, null); - } catch (Exception e) { - return new WebhooksErrorResponse(response.statusCode(), null, response, null, e); - } - } - - @Deprecated - public Optional details() { - return data().flatMap(Data::details); - } - - @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); - } - - @Deprecated - public Optional errorMessage() { - return data().map(Data::errorMessage); - } - - public Optional data() { - return Optional.ofNullable(data); - } - - /** - * Returns the exception if an error occurs while deserializing the response body. - */ - public Optional deserializationException() { - return Optional.ofNullable(deserializationException); - } - - public static class Data { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; - - - @JsonProperty("errorCode") - private WebhooksErrorsEnum errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public Data( - @JsonProperty("details") Optional details, - @JsonProperty("errorCode") WebhooksErrorsEnum errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.details = details; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - public Data( - WebhooksErrorsEnum errorCode, - String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); - } - - @JsonIgnore - public Optional details() { - return details; - } - - @JsonIgnore - public WebhooksErrorsEnum errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public Data withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - - public Data withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - public Data withErrorCode(WebhooksErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public Data withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Data other = (Data) o; - return - Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - details, errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(Data.class, - "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional details = Optional.empty(); - - private WebhooksErrorsEnum errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - - public Builder errorCode(WebhooksErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public Data build() { - - return new Data( - details, errorCode, errorMessage); - } - - } - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetVersionsResponse.java b/src/main/java/com/formance/formance_sdk/models/gateway/GetVersionsResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/GetVersionsResponse.java rename to src/main/java/com/formance/formance_sdk/models/gateway/GetVersionsResponse.java index 771cda422..743e28688 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetVersionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/gateway/GetVersionsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.gateway; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Version.java b/src/main/java/com/formance/formance_sdk/models/gateway/Version.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Version.java rename to src/main/java/com/formance/formance_sdk/models/gateway/Version.java index bc2371a3e..4e31f5273 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Version.java +++ b/src/main/java/com/formance/formance_sdk/models/gateway/Version.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.gateway; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/Account.java b/src/main/java/com/formance/formance_sdk/models/ledger/Account.java new file mode 100644 index 000000000..b07ef3e21 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Account.java @@ -0,0 +1,188 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class Account { + + @JsonProperty("address") + private String address; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private Optional type; + + @JsonCreator + public Account( + @JsonProperty("address") String address, + @JsonProperty("metadata") Optional> metadata, + @JsonProperty("type") Optional type) { + Utils.checkNotNull(address, "address"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(type, "type"); + this.address = address; + this.metadata = metadata; + this.type = type; + } + + public Account( + String address) { + this(address, Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public String address() { + return address; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + @JsonIgnore + public Optional type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + public Account withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + public Account withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + public Account withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Account withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + + public Account withType(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Account other = (Account) o; + return + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + address, metadata, type); + } + + @Override + public String toString() { + return Utils.toString(Account.class, + "address", address, + "metadata", metadata, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String address; + + private Optional> metadata = Optional.empty(); + + private Optional type = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = Optional.ofNullable(type); + return this; + } + + public Builder type(Optional type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Account build() { + + return new Account( + address, metadata, type); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/AccountResponse.java new file mode 100644 index 000000000..54b141fb7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/AccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class AccountResponse { + + @JsonProperty("data") + private AccountWithVolumesAndBalances accountWithVolumesAndBalances; + + @JsonCreator + public AccountResponse( + @JsonProperty("data") AccountWithVolumesAndBalances accountWithVolumesAndBalances) { + Utils.checkNotNull(accountWithVolumesAndBalances, "accountWithVolumesAndBalances"); + this.accountWithVolumesAndBalances = accountWithVolumesAndBalances; + } + + @JsonIgnore + public AccountWithVolumesAndBalances accountWithVolumesAndBalances() { + return accountWithVolumesAndBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public AccountResponse withAccountWithVolumesAndBalances(AccountWithVolumesAndBalances accountWithVolumesAndBalances) { + Utils.checkNotNull(accountWithVolumesAndBalances, "accountWithVolumesAndBalances"); + this.accountWithVolumesAndBalances = accountWithVolumesAndBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountResponse other = (AccountResponse) o; + return + Utils.enhancedDeepEquals(this.accountWithVolumesAndBalances, other.accountWithVolumesAndBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountWithVolumesAndBalances); + } + + @Override + public String toString() { + return Utils.toString(AccountResponse.class, + "accountWithVolumesAndBalances", accountWithVolumesAndBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private AccountWithVolumesAndBalances accountWithVolumesAndBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder accountWithVolumesAndBalances(AccountWithVolumesAndBalances accountWithVolumesAndBalances) { + Utils.checkNotNull(accountWithVolumesAndBalances, "accountWithVolumesAndBalances"); + this.accountWithVolumesAndBalances = accountWithVolumesAndBalances; + return this; + } + + public AccountResponse build() { + + return new AccountResponse( + accountWithVolumesAndBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountWithVolumesAndBalances.java b/src/main/java/com/formance/formance_sdk/models/ledger/AccountWithVolumesAndBalances.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/AccountWithVolumesAndBalances.java rename to src/main/java/com/formance/formance_sdk/models/ledger/AccountWithVolumesAndBalances.java index 2fe8e21b7..f0e9244c2 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountWithVolumesAndBalances.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/AccountWithVolumesAndBalances.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,11 @@ public class AccountWithVolumesAndBalances { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("volumes") + private Optional> volumes; + + @JsonProperty("address") private String address; @@ -38,36 +43,37 @@ public class AccountWithVolumesAndBalances { @JsonProperty("type") private Optional type; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("volumes") - private Optional> volumes; - @JsonCreator public AccountWithVolumesAndBalances( + @JsonProperty("volumes") Optional> volumes, @JsonProperty("address") String address, @JsonProperty("balances") Optional> balances, @JsonProperty("metadata") Optional> metadata, - @JsonProperty("type") Optional type, - @JsonProperty("volumes") Optional> volumes) { + @JsonProperty("type") Optional type) { + Utils.checkNotNull(volumes, "volumes"); Utils.checkNotNull(address, "address"); Utils.checkNotNull(balances, "balances"); Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(type, "type"); - Utils.checkNotNull(volumes, "volumes"); + this.volumes = volumes; this.address = address; this.balances = balances; this.metadata = metadata; this.type = type; - this.volumes = volumes; } public AccountWithVolumesAndBalances( String address) { - this(address, Optional.empty(), Optional.empty(), + this(Optional.empty(), address, Optional.empty(), Optional.empty(), Optional.empty()); } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> volumes() { + return (Optional>) volumes; + } + @JsonIgnore public String address() { return address; @@ -90,17 +96,24 @@ public Optional type() { return type; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> volumes() { - return (Optional>) volumes; - } - public static Builder builder() { return new Builder(); } + public AccountWithVolumesAndBalances withVolumes(Map volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = Optional.ofNullable(volumes); + return this; + } + + + public AccountWithVolumesAndBalances withVolumes(Optional> volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = volumes; + return this; + } + public AccountWithVolumesAndBalances withAddress(String address) { Utils.checkNotNull(address, "address"); this.address = address; @@ -146,19 +159,6 @@ public AccountWithVolumesAndBalances withType(Optional type) { return this; } - public AccountWithVolumesAndBalances withVolumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - - public AccountWithVolumesAndBalances withVolumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -169,33 +169,35 @@ public boolean equals(java.lang.Object o) { } AccountWithVolumesAndBalances other = (AccountWithVolumesAndBalances) o; return + Utils.enhancedDeepEquals(this.volumes, other.volumes) && Utils.enhancedDeepEquals(this.address, other.address) && Utils.enhancedDeepEquals(this.balances, other.balances) && Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.type, other.type) && - Utils.enhancedDeepEquals(this.volumes, other.volumes); + Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { return Utils.enhancedHash( - address, balances, metadata, - type, volumes); + volumes, address, balances, + metadata, type); } @Override public String toString() { return Utils.toString(AccountWithVolumesAndBalances.class, + "volumes", volumes, "address", address, "balances", balances, "metadata", metadata, - "type", type, - "volumes", volumes); + "type", type); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> volumes = Optional.empty(); + private String address; private Optional> balances = Optional.empty(); @@ -204,13 +206,24 @@ public final static class Builder { private Optional type = Optional.empty(); - private Optional> volumes = Optional.empty(); - private Builder() { // force use of static builder() method } + public Builder volumes(Map volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = Optional.ofNullable(volumes); + return this; + } + + public Builder volumes(Optional> volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = volumes; + return this; + } + + public Builder address(String address) { Utils.checkNotNull(address, "address"); this.address = address; @@ -256,24 +269,11 @@ public Builder type(Optional type) { return this; } - - public Builder volumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - public Builder volumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - public AccountWithVolumesAndBalances build() { return new AccountWithVolumesAndBalances( - address, balances, metadata, - type, volumes); + volumes, address, balances, + metadata, type); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponse.java index 8fb152197..89ddb12b6 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponseCursor.java index 10cc19aaa..55aff25a8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/AccountsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/AggregateBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/AggregateBalancesResponse.java new file mode 100644 index 000000000..09077948b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/AggregateBalancesResponse.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Map; + + +public class AggregateBalancesResponse { + + @JsonProperty("data") + private Map assetsBalances; + + @JsonCreator + public AggregateBalancesResponse( + @JsonProperty("data") Map assetsBalances) { + assetsBalances = Utils.emptyMapIfNull(assetsBalances); + Utils.checkNotNull(assetsBalances, "assetsBalances"); + this.assetsBalances = assetsBalances; + } + + @JsonIgnore + public Map assetsBalances() { + return assetsBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public AggregateBalancesResponse withAssetsBalances(Map assetsBalances) { + Utils.checkNotNull(assetsBalances, "assetsBalances"); + this.assetsBalances = assetsBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AggregateBalancesResponse other = (AggregateBalancesResponse) o; + return + Utils.enhancedDeepEquals(this.assetsBalances, other.assetsBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assetsBalances); + } + + @Override + public String toString() { + return Utils.toString(AggregateBalancesResponse.class, + "assetsBalances", assetsBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map assetsBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder assetsBalances(Map assetsBalances) { + Utils.checkNotNull(assetsBalances, "assetsBalances"); + this.assetsBalances = assetsBalances; + return this; + } + + public AggregateBalancesResponse build() { + + return new AggregateBalancesResponse( + assetsBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponse.java index cae2390fc..e51e00b7c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponseCursor.java index 8d3694464..701f8b338 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/BalancesCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/Config.java b/src/main/java/com/formance/formance_sdk/models/ledger/Config.java new file mode 100644 index 000000000..0d47ba4fc --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Config.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class Config { + + @JsonProperty("storage") + private LedgerStorage ledgerStorage; + + @JsonCreator + public Config( + @JsonProperty("storage") LedgerStorage ledgerStorage) { + Utils.checkNotNull(ledgerStorage, "ledgerStorage"); + this.ledgerStorage = ledgerStorage; + } + + @JsonIgnore + public LedgerStorage ledgerStorage() { + return ledgerStorage; + } + + public static Builder builder() { + return new Builder(); + } + + + public Config withLedgerStorage(LedgerStorage ledgerStorage) { + Utils.checkNotNull(ledgerStorage, "ledgerStorage"); + this.ledgerStorage = ledgerStorage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Config other = (Config) o; + return + Utils.enhancedDeepEquals(this.ledgerStorage, other.ledgerStorage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ledgerStorage); + } + + @Override + public String toString() { + return Utils.toString(Config.class, + "ledgerStorage", ledgerStorage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private LedgerStorage ledgerStorage; + + private Builder() { + // force use of static builder() method + } + + + public Builder ledgerStorage(LedgerStorage ledgerStorage) { + Utils.checkNotNull(ledgerStorage, "ledgerStorage"); + this.ledgerStorage = ledgerStorage; + return this; + } + + public Config build() { + + return new Config( + ledgerStorage); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigInfo.java b/src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfo.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/ConfigInfo.java rename to src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfo.java index 91f9ecbff..e0ec72041 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigInfo.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfo.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfoResponse.java new file mode 100644 index 000000000..04d3e9318 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ConfigInfoResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ConfigInfoResponse { + + @JsonProperty("data") + private ConfigInfo configInfo; + + @JsonCreator + public ConfigInfoResponse( + @JsonProperty("data") ConfigInfo configInfo) { + Utils.checkNotNull(configInfo, "configInfo"); + this.configInfo = configInfo; + } + + @JsonIgnore + public ConfigInfo configInfo() { + return configInfo; + } + + public static Builder builder() { + return new Builder(); + } + + + public ConfigInfoResponse withConfigInfo(ConfigInfo configInfo) { + Utils.checkNotNull(configInfo, "configInfo"); + this.configInfo = configInfo; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigInfoResponse other = (ConfigInfoResponse) o; + return + Utils.enhancedDeepEquals(this.configInfo, other.configInfo); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + configInfo); + } + + @Override + public String toString() { + return Utils.toString(ConfigInfoResponse.class, + "configInfo", configInfo); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ConfigInfo configInfo; + + private Builder() { + // force use of static builder() method + } + + + public Builder configInfo(ConfigInfo configInfo) { + Utils.checkNotNull(configInfo, "configInfo"); + this.configInfo = configInfo; + return this; + } + + public ConfigInfoResponse build() { + + return new ConfigInfoResponse( + configInfo); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Contract.java b/src/main/java/com/formance/formance_sdk/models/ledger/Contract.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Contract.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Contract.java index 2c0fb22ac..3d78dc94d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Contract.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Contract.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/Data.java b/src/main/java/com/formance/formance_sdk/models/ledger/Data.java new file mode 100644 index 000000000..0224f0239 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Data.java @@ -0,0 +1,125 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +/** + * Data + * + *

The payload of the log entry. Structure depends on the log type: + * - NEW_TRANSACTION: V2LogDataNewTransaction + * - SET_METADATA: V2LogDataSetMetadata + * - REVERTED_TRANSACTION: V2LogDataRevertedTransaction + * - DELETE_METADATA: V2LogDataDeleteMetadata + * - INSERTED_SCHEMA: V2LogDataInsertedSchema + */ +@JsonDeserialize(using = Data._Deserializer.class) +public class Data { + + @JsonValue + private final TypedObject value; + + private Data(TypedObject value) { + this.value = value; + } + + public static Data of(V2LogDataNewTransaction value) { + Utils.checkNotNull(value, "value"); + return new Data(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static Data of(V2LogDataSetMetadata value) { + Utils.checkNotNull(value, "value"); + return new Data(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static Data of(V2LogDataRevertedTransaction value) { + Utils.checkNotNull(value, "value"); + return new Data(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static Data of(V2LogDataDeleteMetadata value) { + Utils.checkNotNull(value, "value"); + return new Data(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static Data of(V2LogDataInsertedSchema value) { + Utils.checkNotNull(value, "value"); + return new Data(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *

    + *
  • {@code com.formance.formance_sdk.models.ledger.V2LogDataNewTransaction}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2LogDataSetMetadata}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2LogDataRevertedTransaction}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2LogDataDeleteMetadata}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2LogDataInsertedSchema}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(Data.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/shared/DotSelf.java b/src/main/java/com/formance/formance_sdk/models/ledger/DotSelf.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/DotSelf.java rename to src/main/java/com/formance/formance_sdk/models/ledger/DotSelf.java index a95b630b9..b5c4e7ec6 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/DotSelf.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/DotSelf.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorResponse.java new file mode 100644 index 000000000..aa284b9f5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorResponse.java @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ErrorResponse { + + @JsonProperty("errorCode") + private ErrorsEnum errorsEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("details") + private Optional details; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public ErrorResponse( + @JsonProperty("errorCode") ErrorsEnum errorsEnum, + @JsonProperty("details") Optional details, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + Utils.checkNotNull(details, "details"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorsEnum = errorsEnum; + this.details = details; + this.errorMessage = errorMessage; + } + + public ErrorResponse( + ErrorsEnum errorsEnum, + String errorMessage) { + this(errorsEnum, Optional.empty(), errorMessage); + } + + @JsonIgnore + public ErrorsEnum errorsEnum() { + return errorsEnum; + } + + @JsonIgnore + public Optional details() { + return details; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public ErrorResponse withErrorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; + return this; + } + + public ErrorResponse withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + + public ErrorResponse withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + public ErrorResponse withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ErrorResponse other = (ErrorResponse) o; + return + Utils.enhancedDeepEquals(this.errorsEnum, other.errorsEnum) && + Utils.enhancedDeepEquals(this.details, other.details) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + errorsEnum, details, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(ErrorResponse.class, + "errorsEnum", errorsEnum, + "details", details, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ErrorsEnum errorsEnum; + + private Optional details = Optional.empty(); + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder errorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; + return this; + } + + + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public ErrorResponse build() { + + return new ErrorResponse( + errorsEnum, details, errorMessage); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsEnum.java new file mode 100644 index 000000000..e3314c5fc --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsEnum.java @@ -0,0 +1,42 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum ErrorsEnum { + INTERNAL("INTERNAL"), + INSUFFICIENT_FUND("INSUFFICIENT_FUND"), + VALIDATION("VALIDATION"), + CONFLICT("CONFLICT"), + NO_SCRIPT("NO_SCRIPT"), + COMPILATION_FAILED("COMPILATION_FAILED"), + METADATA_OVERRIDE("METADATA_OVERRIDE"), + NOT_FOUND("NOT_FOUND"), + TIMEOUT("TIMEOUT"); + + @JsonValue + private final String value; + + ErrorsEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (ErrorsEnum o: ErrorsEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsErrorResponse.java new file mode 100644 index 000000000..16c9639de --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsErrorResponse.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.models.errors.SDKBaseError; +import com.formance.formance_sdk.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Deprecated; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.lang.Throwable; +import java.net.http.HttpResponse; +import java.util.Optional; + +@SuppressWarnings("serial") +public class ErrorsErrorResponse extends SDKBaseError { + + @Nullable + private final Data data; + + @Nullable + private final Throwable deserializationException; + + public ErrorsErrorResponse( + int code, + byte[] body, + HttpResponse rawResponse, + @Nullable Data data, + @Nullable Throwable deserializationException) { + super("API error occurred", code, body, rawResponse, null); + this.data = data; + this.deserializationException = deserializationException; + } + + /** + * Parse a response into an instance of ErrorsErrorResponse. If deserialization of the response body fails, + * the resulting ErrorsErrorResponse instance will have a null data() value and a non-null deserializationException(). + */ + public static ErrorsErrorResponse from(HttpResponse response) { + try { + byte[] bytes = Utils.extractByteArrayFromBody(response); + Data data = Utils.mapper().readValue(bytes, Data.class); + return new ErrorsErrorResponse(response.statusCode(), bytes, response, data, null); + } catch (Exception e) { + return new ErrorsErrorResponse(response.statusCode(), null, response, null, e); + } + } + + @Deprecated + public Optional errorsEnum() { + return data().map(Data::errorsEnum); + } + + @Deprecated + public Optional details() { + return data().flatMap(Data::details); + } + + @Deprecated + public Optional errorMessage() { + return data().map(Data::errorMessage); + } + + public Optional data() { + return Optional.ofNullable(data); + } + + /** + * Returns the exception if an error occurs while deserializing the response body. + */ + public Optional deserializationException() { + return Optional.ofNullable(deserializationException); + } + + public static class Data { + + @JsonProperty("errorCode") + private ErrorsEnum errorsEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("details") + private Optional details; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public Data( + @JsonProperty("errorCode") ErrorsEnum errorsEnum, + @JsonProperty("details") Optional details, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + Utils.checkNotNull(details, "details"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorsEnum = errorsEnum; + this.details = details; + this.errorMessage = errorMessage; + } + + public Data( + ErrorsEnum errorsEnum, + String errorMessage) { + this(errorsEnum, Optional.empty(), errorMessage); + } + + @JsonIgnore + public ErrorsEnum errorsEnum() { + return errorsEnum; + } + + @JsonIgnore + public Optional details() { + return details; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public Data withErrorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; + return this; + } + + public Data withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + + public Data withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + public Data withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return + Utils.enhancedDeepEquals(this.errorsEnum, other.errorsEnum) && + Utils.enhancedDeepEquals(this.details, other.details) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + errorsEnum, details, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "errorsEnum", errorsEnum, + "details", details, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ErrorsEnum errorsEnum; + + private Optional details = Optional.empty(); + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder errorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; + return this; + } + + + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public Data build() { + + return new Data( + errorsEnum, details, errorMessage); + } + + } + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsV2ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsV2ErrorResponse.java new file mode 100644 index 000000000..abdfb8c3e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ErrorsV2ErrorResponse.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.models.errors.SDKBaseError; +import com.formance.formance_sdk.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Deprecated; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.lang.Throwable; +import java.net.http.HttpResponse; +import java.util.Optional; + +@SuppressWarnings("serial") +public class ErrorsV2ErrorResponse extends SDKBaseError { + + @Nullable + private final Data data; + + @Nullable + private final Throwable deserializationException; + + public ErrorsV2ErrorResponse( + int code, + byte[] body, + HttpResponse rawResponse, + @Nullable Data data, + @Nullable Throwable deserializationException) { + super("API error occurred", code, body, rawResponse, null); + this.data = data; + this.deserializationException = deserializationException; + } + + /** + * Parse a response into an instance of ErrorsV2ErrorResponse. If deserialization of the response body fails, + * the resulting ErrorsV2ErrorResponse instance will have a null data() value and a non-null deserializationException(). + */ + public static ErrorsV2ErrorResponse from(HttpResponse response) { + try { + byte[] bytes = Utils.extractByteArrayFromBody(response); + Data data = Utils.mapper().readValue(bytes, Data.class); + return new ErrorsV2ErrorResponse(response.statusCode(), bytes, response, data, null); + } catch (Exception e) { + return new ErrorsV2ErrorResponse(response.statusCode(), null, response, null, e); + } + } + + @Deprecated + public Optional v2ErrorsEnum() { + return data().map(Data::v2ErrorsEnum); + } + + @Deprecated + public Optional details() { + return data().flatMap(Data::details); + } + + @Deprecated + public Optional errorMessage() { + return data().map(Data::errorMessage); + } + + public Optional data() { + return Optional.ofNullable(data); + } + + /** + * Returns the exception if an error occurs while deserializing the response body. + */ + public Optional deserializationException() { + return Optional.ofNullable(deserializationException); + } + + public static class Data { + + @JsonProperty("errorCode") + private V2ErrorsEnum v2ErrorsEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("details") + private Optional details; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public Data( + @JsonProperty("errorCode") V2ErrorsEnum v2ErrorsEnum, + @JsonProperty("details") Optional details, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + Utils.checkNotNull(details, "details"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.v2ErrorsEnum = v2ErrorsEnum; + this.details = details; + this.errorMessage = errorMessage; + } + + public Data( + V2ErrorsEnum v2ErrorsEnum, + String errorMessage) { + this(v2ErrorsEnum, Optional.empty(), errorMessage); + } + + @JsonIgnore + public V2ErrorsEnum v2ErrorsEnum() { + return v2ErrorsEnum; + } + + @JsonIgnore + public Optional details() { + return details; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public Data withV2ErrorsEnum(V2ErrorsEnum v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = v2ErrorsEnum; + return this; + } + + public Data withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + + public Data withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + public Data withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return + Utils.enhancedDeepEquals(this.v2ErrorsEnum, other.v2ErrorsEnum) && + Utils.enhancedDeepEquals(this.details, other.details) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ErrorsEnum, details, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "v2ErrorsEnum", v2ErrorsEnum, + "details", details, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2ErrorsEnum v2ErrorsEnum; + + private Optional details = Optional.empty(); + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2ErrorsEnum(V2ErrorsEnum v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = v2ErrorsEnum; + return this; + } + + + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public Data build() { + + return new Data( + v2ErrorsEnum, details, errorMessage); + } + + } + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Expr.java b/src/main/java/com/formance/formance_sdk/models/ledger/Expr.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/Expr.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Expr.java index d5a0128a8..0aefd13b7 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Expr.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Expr.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfo.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfo.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/LedgerInfo.java rename to src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfo.java index 666cb4f41..36fa3d0fe 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfo.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfo.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoResponse.java new file mode 100644 index 000000000..61507ef40 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoResponse.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class LedgerInfoResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional ledgerInfo; + + @JsonCreator + public LedgerInfoResponse( + @JsonProperty("data") Optional ledgerInfo) { + Utils.checkNotNull(ledgerInfo, "ledgerInfo"); + this.ledgerInfo = ledgerInfo; + } + + public LedgerInfoResponse() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional ledgerInfo() { + return (Optional) ledgerInfo; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerInfoResponse withLedgerInfo(LedgerInfo ledgerInfo) { + Utils.checkNotNull(ledgerInfo, "ledgerInfo"); + this.ledgerInfo = Optional.ofNullable(ledgerInfo); + return this; + } + + + public LedgerInfoResponse withLedgerInfo(Optional ledgerInfo) { + Utils.checkNotNull(ledgerInfo, "ledgerInfo"); + this.ledgerInfo = ledgerInfo; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerInfoResponse other = (LedgerInfoResponse) o; + return + Utils.enhancedDeepEquals(this.ledgerInfo, other.ledgerInfo); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ledgerInfo); + } + + @Override + public String toString() { + return Utils.toString(LedgerInfoResponse.class, + "ledgerInfo", ledgerInfo); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional ledgerInfo = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder ledgerInfo(LedgerInfo ledgerInfo) { + Utils.checkNotNull(ledgerInfo, "ledgerInfo"); + this.ledgerInfo = Optional.ofNullable(ledgerInfo); + return this; + } + + public Builder ledgerInfo(Optional ledgerInfo) { + Utils.checkNotNull(ledgerInfo, "ledgerInfo"); + this.ledgerInfo = ledgerInfo; + return this; + } + + public LedgerInfoResponse build() { + + return new LedgerInfoResponse( + ledgerInfo); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoStorage.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoStorage.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoStorage.java rename to src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoStorage.java index 02156afe1..74befe367 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoStorage.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerInfoStorage.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LedgerStorage.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerStorage.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/LedgerStorage.java rename to src/main/java/com/formance/formance_sdk/models/ledger/LedgerStorage.java index f443b9f3b..0e0b04efd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LedgerStorage.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerStorage.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.java new file mode 100644 index 000000000..4d38d29f2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.java @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + + +public class LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult { + + @JsonProperty("logID") + private long logID; + + + @JsonProperty("responseType") + private String responseType; + + @JsonCreator + public LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult( + @JsonProperty("logID") long logID, + @JsonProperty("responseType") String responseType) { + Utils.checkNotNull(logID, "logID"); + Utils.checkNotNull(responseType, "responseType"); + this.logID = logID; + this.responseType = responseType; + } + + @JsonIgnore + public long logID() { + return logID; + } + + @JsonIgnore + public String responseType() { + return responseType; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult withLogID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + public LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult withResponseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult other = (LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult) o; + return + Utils.enhancedDeepEquals(this.logID, other.logID) && + Utils.enhancedDeepEquals(this.responseType, other.responseType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + logID, responseType); + } + + @Override + public String toString() { + return Utils.toString(LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult.class, + "logID", logID, + "responseType", responseType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Long logID; + + private String responseType; + + private Builder() { + // force use of static builder() method + } + + + public Builder logID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + + public Builder responseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + public LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult build() { + + return new LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult( + logID, responseType); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.java new file mode 100644 index 000000000..7e7651f70 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.java @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + + +public class LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult { + + @JsonProperty("data") + private V2Transaction v2Transaction; + + + @JsonProperty("logID") + private long logID; + + + @JsonProperty("responseType") + private String responseType; + + @JsonCreator + public LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult( + @JsonProperty("data") V2Transaction v2Transaction, + @JsonProperty("logID") long logID, + @JsonProperty("responseType") String responseType) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + Utils.checkNotNull(logID, "logID"); + Utils.checkNotNull(responseType, "responseType"); + this.v2Transaction = v2Transaction; + this.logID = logID; + this.responseType = responseType; + } + + @JsonIgnore + public V2Transaction v2Transaction() { + return v2Transaction; + } + + @JsonIgnore + public long logID() { + return logID; + } + + @JsonIgnore + public String responseType() { + return responseType; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult withV2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + public LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult withLogID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + public LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult withResponseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult other = (LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult) o; + return + Utils.enhancedDeepEquals(this.v2Transaction, other.v2Transaction) && + Utils.enhancedDeepEquals(this.logID, other.logID) && + Utils.enhancedDeepEquals(this.responseType, other.responseType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Transaction, logID, responseType); + } + + @Override + public String toString() { + return Utils.toString(LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult.class, + "v2Transaction", v2Transaction, + "logID", logID, + "responseType", responseType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Transaction v2Transaction; + + private Long logID; + + private String responseType; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + + public Builder logID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + + public Builder responseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + public LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult build() { + + return new LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult( + v2Transaction, logID, responseType); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.java new file mode 100644 index 000000000..9dab03fd9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.java @@ -0,0 +1,120 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + + +public class LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult { + + @JsonProperty("logID") + private long logID; + + + @JsonProperty("responseType") + private String responseType; + + @JsonCreator + public LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult( + @JsonProperty("logID") long logID, + @JsonProperty("responseType") String responseType) { + Utils.checkNotNull(logID, "logID"); + Utils.checkNotNull(responseType, "responseType"); + this.logID = logID; + this.responseType = responseType; + } + + @JsonIgnore + public long logID() { + return logID; + } + + @JsonIgnore + public String responseType() { + return responseType; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult withLogID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + public LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult withResponseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult other = (LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult) o; + return + Utils.enhancedDeepEquals(this.logID, other.logID) && + Utils.enhancedDeepEquals(this.responseType, other.responseType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + logID, responseType); + } + + @Override + public String toString() { + return Utils.toString(LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult.class, + "logID", logID, + "responseType", responseType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Long logID; + + private String responseType; + + private Builder() { + // force use of static builder() method + } + + + public Builder logID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + + public Builder responseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + public LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult build() { + + return new LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult( + logID, responseType); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.java new file mode 100644 index 000000000..4f089794f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultErrorV2BaseBulkElementResult.java @@ -0,0 +1,235 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class LedgerV2BulkElementResultErrorV2BaseBulkElementResult { + + @JsonProperty("errorCode") + private String errorCode; + + + @JsonProperty("errorDescription") + private String errorDescription; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("errorDetails") + private Optional errorDetails; + + + @JsonProperty("logID") + private long logID; + + + @JsonProperty("responseType") + private String responseType; + + @JsonCreator + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult( + @JsonProperty("errorCode") String errorCode, + @JsonProperty("errorDescription") String errorDescription, + @JsonProperty("errorDetails") Optional errorDetails, + @JsonProperty("logID") long logID, + @JsonProperty("responseType") String responseType) { + Utils.checkNotNull(errorCode, "errorCode"); + Utils.checkNotNull(errorDescription, "errorDescription"); + Utils.checkNotNull(errorDetails, "errorDetails"); + Utils.checkNotNull(logID, "logID"); + Utils.checkNotNull(responseType, "responseType"); + this.errorCode = errorCode; + this.errorDescription = errorDescription; + this.errorDetails = errorDetails; + this.logID = logID; + this.responseType = responseType; + } + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult( + String errorCode, + String errorDescription, + long logID, + String responseType) { + this(errorCode, errorDescription, Optional.empty(), + logID, responseType); + } + + @JsonIgnore + public String errorCode() { + return errorCode; + } + + @JsonIgnore + public String errorDescription() { + return errorDescription; + } + + @JsonIgnore + public Optional errorDetails() { + return errorDetails; + } + + @JsonIgnore + public long logID() { + return logID; + } + + @JsonIgnore + public String responseType() { + return responseType; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult withErrorCode(String errorCode) { + Utils.checkNotNull(errorCode, "errorCode"); + this.errorCode = errorCode; + return this; + } + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult withErrorDescription(String errorDescription) { + Utils.checkNotNull(errorDescription, "errorDescription"); + this.errorDescription = errorDescription; + return this; + } + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult withErrorDetails(String errorDetails) { + Utils.checkNotNull(errorDetails, "errorDetails"); + this.errorDetails = Optional.ofNullable(errorDetails); + return this; + } + + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult withErrorDetails(Optional errorDetails) { + Utils.checkNotNull(errorDetails, "errorDetails"); + this.errorDetails = errorDetails; + return this; + } + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult withLogID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult withResponseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerV2BulkElementResultErrorV2BaseBulkElementResult other = (LedgerV2BulkElementResultErrorV2BaseBulkElementResult) o; + return + Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && + Utils.enhancedDeepEquals(this.errorDescription, other.errorDescription) && + Utils.enhancedDeepEquals(this.errorDetails, other.errorDetails) && + Utils.enhancedDeepEquals(this.logID, other.logID) && + Utils.enhancedDeepEquals(this.responseType, other.responseType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + errorCode, errorDescription, errorDetails, + logID, responseType); + } + + @Override + public String toString() { + return Utils.toString(LedgerV2BulkElementResultErrorV2BaseBulkElementResult.class, + "errorCode", errorCode, + "errorDescription", errorDescription, + "errorDetails", errorDetails, + "logID", logID, + "responseType", responseType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String errorCode; + + private String errorDescription; + + private Optional errorDetails = Optional.empty(); + + private Long logID; + + private String responseType; + + private Builder() { + // force use of static builder() method + } + + + public Builder errorCode(String errorCode) { + Utils.checkNotNull(errorCode, "errorCode"); + this.errorCode = errorCode; + return this; + } + + + public Builder errorDescription(String errorDescription) { + Utils.checkNotNull(errorDescription, "errorDescription"); + this.errorDescription = errorDescription; + return this; + } + + + public Builder errorDetails(String errorDetails) { + Utils.checkNotNull(errorDetails, "errorDetails"); + this.errorDetails = Optional.ofNullable(errorDetails); + return this; + } + + public Builder errorDetails(Optional errorDetails) { + Utils.checkNotNull(errorDetails, "errorDetails"); + this.errorDetails = errorDetails; + return this; + } + + + public Builder logID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + + public Builder responseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + public LedgerV2BulkElementResultErrorV2BaseBulkElementResult build() { + + return new LedgerV2BulkElementResultErrorV2BaseBulkElementResult( + errorCode, errorDescription, errorDetails, + logID, responseType); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.java new file mode 100644 index 000000000..4970a692b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.java @@ -0,0 +1,149 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; + + +public class LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult { + + @JsonProperty("data") + private V2Transaction v2Transaction; + + + @JsonProperty("logID") + private long logID; + + + @JsonProperty("responseType") + private String responseType; + + @JsonCreator + public LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult( + @JsonProperty("data") V2Transaction v2Transaction, + @JsonProperty("logID") long logID, + @JsonProperty("responseType") String responseType) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + Utils.checkNotNull(logID, "logID"); + Utils.checkNotNull(responseType, "responseType"); + this.v2Transaction = v2Transaction; + this.logID = logID; + this.responseType = responseType; + } + + @JsonIgnore + public V2Transaction v2Transaction() { + return v2Transaction; + } + + @JsonIgnore + public long logID() { + return logID; + } + + @JsonIgnore + public String responseType() { + return responseType; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult withV2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + public LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult withLogID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + public LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult withResponseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult other = (LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult) o; + return + Utils.enhancedDeepEquals(this.v2Transaction, other.v2Transaction) && + Utils.enhancedDeepEquals(this.logID, other.logID) && + Utils.enhancedDeepEquals(this.responseType, other.responseType); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Transaction, logID, responseType); + } + + @Override + public String toString() { + return Utils.toString(LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult.class, + "v2Transaction", v2Transaction, + "logID", logID, + "responseType", responseType); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Transaction v2Transaction; + + private Long logID; + + private String responseType; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + + public Builder logID(long logID) { + Utils.checkNotNull(logID, "logID"); + this.logID = logID; + return this; + } + + + public Builder responseType(String responseType) { + Utils.checkNotNull(responseType, "responseType"); + this.responseType = responseType; + return this; + } + + public LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult build() { + + return new LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult( + v2Transaction, logID, responseType); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Log.java b/src/main/java/com/formance/formance_sdk/models/ledger/Log.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Log.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Log.java index b8ca9fcac..650a52676 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Log.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Log.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LogType.java b/src/main/java/com/formance/formance_sdk/models/ledger/LogType.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/LogType.java rename to src/main/java/com/formance/formance_sdk/models/ledger/LogType.java index b21723845..c8550adc3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LogType.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LogType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponse.java index 2ead83e45..9bfef7d14 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponseCursor.java index 578781852..9326c764f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LogsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/LogsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Mapping.java b/src/main/java/com/formance/formance_sdk/models/ledger/Mapping.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/Mapping.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Mapping.java index 6ce36e62e..c0b18f0d8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Mapping.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Mapping.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/MappingResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/MappingResponse.java new file mode 100644 index 000000000..16266d3ce --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/MappingResponse.java @@ -0,0 +1,112 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class MappingResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private JsonNullable mapping; + + @JsonCreator + public MappingResponse( + @JsonProperty("data") JsonNullable mapping) { + Utils.checkNotNull(mapping, "mapping"); + this.mapping = mapping; + } + + public MappingResponse() { + this(JsonNullable.undefined()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable mapping() { + return (JsonNullable) mapping; + } + + public static Builder builder() { + return new Builder(); + } + + + public MappingResponse withMapping(Mapping mapping) { + Utils.checkNotNull(mapping, "mapping"); + this.mapping = JsonNullable.of(mapping); + return this; + } + + public MappingResponse withMapping(JsonNullable mapping) { + Utils.checkNotNull(mapping, "mapping"); + this.mapping = mapping; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MappingResponse other = (MappingResponse) o; + return + Utils.enhancedDeepEquals(this.mapping, other.mapping); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + mapping); + } + + @Override + public String toString() { + return Utils.toString(MappingResponse.class, + "mapping", mapping); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable mapping = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + + public Builder mapping(Mapping mapping) { + Utils.checkNotNull(mapping, "mapping"); + this.mapping = JsonNullable.of(mapping); + return this; + } + + public Builder mapping(JsonNullable mapping) { + Utils.checkNotNull(mapping, "mapping"); + this.mapping = mapping; + return this; + } + + public MappingResponse build() { + + return new MappingResponse( + mapping); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/MigrationInfo.java b/src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfo.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/MigrationInfo.java rename to src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfo.java index c038b888d..b2c06a67f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/MigrationInfo.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfo.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/MigrationInfoState.java b/src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfoState.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/MigrationInfoState.java rename to src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfoState.java index 3f4d3963e..d640db67d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/MigrationInfoState.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/MigrationInfoState.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/PostTransaction.java new file mode 100644 index 000000000..4addc4c24 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/PostTransaction.java @@ -0,0 +1,294 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class PostTransaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postings") + private Optional> postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("script") + private Optional script; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public PostTransaction( + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("postings") Optional> postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("script") Optional script, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(script, "script"); + Utils.checkNotNull(timestamp, "timestamp"); + this.metadata = metadata; + this.postings = postings; + this.reference = reference; + this.script = script; + this.timestamp = timestamp; + } + + public PostTransaction() { + this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> postings() { + return (Optional>) postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional script() { + return (Optional) script; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public PostTransaction withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public PostTransaction withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public PostTransaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + + public PostTransaction withPostings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public PostTransaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public PostTransaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public PostTransaction withScript(PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + + public PostTransaction withScript(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + public PostTransaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public PostTransaction withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostTransaction other = (PostTransaction) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.script, other.script) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, postings, reference, + script, timestamp); + } + + @Override + public String toString() { + return Utils.toString(PostTransaction.class, + "metadata", metadata, + "postings", postings, + "reference", reference, + "script", script, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> metadata = JsonNullable.undefined(); + + private Optional> postings = Optional.empty(); + + private Optional reference = Optional.empty(); + + private Optional script = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + public Builder postings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder script(PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + public Builder script(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public PostTransaction build() { + + return new PostTransaction( + metadata, postings, reference, + script, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/ledger/PostTransactionScript.java new file mode 100644 index 000000000..49c1d7dcb --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/PostTransactionScript.java @@ -0,0 +1,145 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class PostTransactionScript { + + @JsonProperty("plain") + private String plain; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + @JsonCreator + public PostTransactionScript( + @JsonProperty("plain") String plain, + @JsonProperty("vars") Optional> vars) { + Utils.checkNotNull(plain, "plain"); + Utils.checkNotNull(vars, "vars"); + this.plain = plain; + this.vars = vars; + } + + public PostTransactionScript( + String plain) { + this(plain, Optional.empty()); + } + + @JsonIgnore + public String plain() { + return plain; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + public static Builder builder() { + return new Builder(); + } + + + public PostTransactionScript withPlain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + public PostTransactionScript withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public PostTransactionScript withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostTransactionScript other = (PostTransactionScript) o; + return + Utils.enhancedDeepEquals(this.plain, other.plain) && + Utils.enhancedDeepEquals(this.vars, other.vars); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + plain, vars); + } + + @Override + public String toString() { + return Utils.toString(PostTransactionScript.class, + "plain", plain, + "vars", vars); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String plain; + + private Optional> vars = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder plain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public PostTransactionScript build() { + + return new PostTransactionScript( + plain, vars); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/Posting.java b/src/main/java/com/formance/formance_sdk/models/ledger/Posting.java new file mode 100644 index 000000000..d1faf0cc9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Posting.java @@ -0,0 +1,190 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class Posting { + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("destination") + private String destination; + + + @JsonProperty("source") + private String source; + + @JsonCreator + public Posting( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset, + @JsonProperty("destination") String destination, + @JsonProperty("source") String source) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(source, "source"); + this.amount = amount; + this.asset = asset; + this.destination = destination; + this.source = source; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String destination() { + return destination; + } + + @JsonIgnore + public String source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + public Posting withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Posting withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public Posting withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Posting withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + public Posting withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Posting other = (Posting) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, destination, + source); + } + + @Override + public String toString() { + return Utils.toString(Posting.class, + "amount", amount, + "asset", asset, + "destination", destination, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private String destination; + + private String source; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public Posting build() { + + return new Posting( + amount, asset, destination, + source); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateAccountParams.java b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateAccountParams.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateAccountParams.java rename to src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateAccountParams.java index 67749d1e7..ba8902b52 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateAccountParams.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateAccountParams.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateLogParams.java b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateLogParams.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateLogParams.java rename to src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateLogParams.java index 10369307f..0ecb832da 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateLogParams.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateLogParams.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateTransactionParams.java b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateTransactionParams.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateTransactionParams.java rename to src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateTransactionParams.java index 622496964..87e07d8fd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateTransactionParams.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateTransactionParams.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateVolumeParams.java b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateVolumeParams.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateVolumeParams.java rename to src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateVolumeParams.java index bfb929566..1dc07cdc1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/QueryTemplateVolumeParams.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/QueryTemplateVolumeParams.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Runtime.java b/src/main/java/com/formance/formance_sdk/models/ledger/Runtime.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/Runtime.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Runtime.java index 0282b239a..3be79cc95 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Runtime.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Runtime.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Script.java b/src/main/java/com/formance/formance_sdk/models/ledger/Script.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/Script.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Script.java index 2982a3240..a073bbd47 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Script.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Script.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ScriptResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/ScriptResponse.java similarity index 79% rename from src/main/java/com/formance/formance_sdk/models/shared/ScriptResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/ScriptResponse.java index cbd672ec2..292a95c05 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ScriptResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/ScriptResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,38 +18,38 @@ public class ScriptResponse { @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; + @JsonProperty("errorCode") + private Optional errorsEnum; @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errorCode") - private Optional errorCode; + @JsonProperty("transaction") + private Optional transaction; @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errorMessage") - private Optional errorMessage; + @JsonProperty("details") + private Optional details; @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transaction") - private Optional transaction; + @JsonProperty("errorMessage") + private Optional errorMessage; @JsonCreator public ScriptResponse( + @JsonProperty("errorCode") Optional errorsEnum, + @JsonProperty("transaction") Optional transaction, @JsonProperty("details") Optional details, - @JsonProperty("errorCode") Optional errorCode, - @JsonProperty("errorMessage") Optional errorMessage, - @JsonProperty("transaction") Optional transaction) { + @JsonProperty("errorMessage") Optional errorMessage) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + Utils.checkNotNull(transaction, "transaction"); Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); Utils.checkNotNull(errorMessage, "errorMessage"); - Utils.checkNotNull(transaction, "transaction"); + this.errorsEnum = errorsEnum; + this.transaction = transaction; this.details = details; - this.errorCode = errorCode; this.errorMessage = errorMessage; - this.transaction = transaction; } public ScriptResponse() { @@ -57,26 +57,26 @@ public ScriptResponse() { Optional.empty()); } + @SuppressWarnings("unchecked") @JsonIgnore - public Optional details() { - return details; + public Optional errorsEnum() { + return (Optional) errorsEnum; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional errorCode() { - return (Optional) errorCode; + public Optional transaction() { + return (Optional) transaction; } @JsonIgnore - public Optional errorMessage() { - return errorMessage; + public Optional details() { + return details; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional transaction() { - return (Optional) transaction; + public Optional errorMessage() { + return errorMessage; } public static Builder builder() { @@ -84,55 +84,55 @@ public static Builder builder() { } - public ScriptResponse withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); + public ScriptResponse withErrorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = Optional.ofNullable(errorsEnum); return this; } - public ScriptResponse withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; + public ScriptResponse withErrorsEnum(Optional errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; return this; } - public ScriptResponse withErrorCode(ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = Optional.ofNullable(errorCode); + public ScriptResponse withTransaction(Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = Optional.ofNullable(transaction); return this; } - public ScriptResponse withErrorCode(Optional errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; + public ScriptResponse withTransaction(Optional transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; return this; } - public ScriptResponse withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = Optional.ofNullable(errorMessage); + public ScriptResponse withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); return this; } - public ScriptResponse withErrorMessage(Optional errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; + public ScriptResponse withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; return this; } - public ScriptResponse withTransaction(Transaction transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = Optional.ofNullable(transaction); + public ScriptResponse withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = Optional.ofNullable(errorMessage); return this; } - public ScriptResponse withTransaction(Optional transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = transaction; + public ScriptResponse withErrorMessage(Optional errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; return this; } @@ -146,100 +146,100 @@ public boolean equals(java.lang.Object o) { } ScriptResponse other = (ScriptResponse) o; return + Utils.enhancedDeepEquals(this.errorsEnum, other.errorsEnum) && + Utils.enhancedDeepEquals(this.transaction, other.transaction) && Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage) && - Utils.enhancedDeepEquals(this.transaction, other.transaction); + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); } @Override public int hashCode() { return Utils.enhancedHash( - details, errorCode, errorMessage, - transaction); + errorsEnum, transaction, details, + errorMessage); } @Override public String toString() { return Utils.toString(ScriptResponse.class, + "errorsEnum", errorsEnum, + "transaction", transaction, "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage, - "transaction", transaction); + "errorMessage", errorMessage); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional details = Optional.empty(); + private Optional errorsEnum = Optional.empty(); - private Optional errorCode = Optional.empty(); + private Optional transaction = Optional.empty(); - private Optional errorMessage = Optional.empty(); + private Optional details = Optional.empty(); - private Optional transaction = Optional.empty(); + private Optional errorMessage = Optional.empty(); private Builder() { // force use of static builder() method } - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); + public Builder errorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = Optional.ofNullable(errorsEnum); return this; } - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; + public Builder errorsEnum(Optional errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; return this; } - public Builder errorCode(ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = Optional.ofNullable(errorCode); + public Builder transaction(Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = Optional.ofNullable(transaction); return this; } - public Builder errorCode(Optional errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; + public Builder transaction(Optional transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; return this; } - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = Optional.ofNullable(errorMessage); + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); return this; } - public Builder errorMessage(Optional errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; return this; } - public Builder transaction(Transaction transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = Optional.ofNullable(transaction); + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = Optional.ofNullable(errorMessage); return this; } - public Builder transaction(Optional transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = transaction; + public Builder errorMessage(Optional errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; return this; } public ScriptResponse build() { return new ScriptResponse( - details, errorCode, errorMessage, - transaction); + errorsEnum, transaction, details, + errorMessage); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Stats.java b/src/main/java/com/formance/formance_sdk/models/ledger/Stats.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Stats.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Stats.java index 64f91128b..3fac665dd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Stats.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Stats.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/StatsResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/StatsResponse.java new file mode 100644 index 000000000..556df4d04 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/StatsResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class StatsResponse { + + @JsonProperty("data") + private Stats stats; + + @JsonCreator + public StatsResponse( + @JsonProperty("data") Stats stats) { + Utils.checkNotNull(stats, "stats"); + this.stats = stats; + } + + @JsonIgnore + public Stats stats() { + return stats; + } + + public static Builder builder() { + return new Builder(); + } + + + public StatsResponse withStats(Stats stats) { + Utils.checkNotNull(stats, "stats"); + this.stats = stats; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StatsResponse other = (StatsResponse) o; + return + Utils.enhancedDeepEquals(this.stats, other.stats); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + stats); + } + + @Override + public String toString() { + return Utils.toString(StatsResponse.class, + "stats", stats); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Stats stats; + + private Builder() { + // force use of static builder() method + } + + + public Builder stats(Stats stats) { + Utils.checkNotNull(stats, "stats"); + this.stats = stats; + return this; + } + + public StatsResponse build() { + + return new StatsResponse( + stats); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/Transaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/Transaction.java new file mode 100644 index 000000000..517fcc78e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Transaction.java @@ -0,0 +1,355 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class Transaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preCommitVolumes") + private Optional>> aggregatedVolumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postCommitVolumes") + private Optional>> aggregatedVolumes1; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonProperty("postings") + private List postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + + @JsonProperty("txid") + private BigInteger txid; + + @JsonCreator + public Transaction( + @JsonProperty("preCommitVolumes") Optional>> aggregatedVolumes, + @JsonProperty("postCommitVolumes") Optional>> aggregatedVolumes1, + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("postings") List postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("timestamp") OffsetDateTime timestamp, + @JsonProperty("txid") BigInteger txid) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(timestamp, "timestamp"); + Utils.checkNotNull(txid, "txid"); + this.aggregatedVolumes = aggregatedVolumes; + this.aggregatedVolumes1 = aggregatedVolumes1; + this.metadata = metadata; + this.postings = postings; + this.reference = reference; + this.timestamp = timestamp; + this.txid = txid; + } + + public Transaction( + List postings, + OffsetDateTime timestamp, + BigInteger txid) { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), + postings, Optional.empty(), timestamp, + txid); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> aggregatedVolumes() { + return (Optional>>) aggregatedVolumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> aggregatedVolumes1() { + return (Optional>>) aggregatedVolumes1; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @JsonIgnore + public List postings() { + return postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @JsonIgnore + public OffsetDateTime timestamp() { + return timestamp; + } + + @JsonIgnore + public BigInteger txid() { + return txid; + } + + public static Builder builder() { + return new Builder(); + } + + + public Transaction withAggregatedVolumes(Map> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = Optional.ofNullable(aggregatedVolumes); + return this; + } + + + public Transaction withAggregatedVolumes(Optional>> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = aggregatedVolumes; + return this; + } + + public Transaction withAggregatedVolumes1(Map> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = Optional.ofNullable(aggregatedVolumes1); + return this; + } + + + public Transaction withAggregatedVolumes1(Optional>> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = aggregatedVolumes1; + return this; + } + + public Transaction withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Transaction withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Transaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public Transaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public Transaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Transaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public Transaction withTxid(long txid) { + this.txid = BigInteger.valueOf(txid); + return this; + } + + public Transaction withTxid(BigInteger txid) { + Utils.checkNotNull(txid, "txid"); + this.txid = txid; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Transaction other = (Transaction) o; + return + Utils.enhancedDeepEquals(this.aggregatedVolumes, other.aggregatedVolumes) && + Utils.enhancedDeepEquals(this.aggregatedVolumes1, other.aggregatedVolumes1) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && + Utils.enhancedDeepEquals(this.txid, other.txid); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + aggregatedVolumes, aggregatedVolumes1, metadata, + postings, reference, timestamp, + txid); + } + + @Override + public String toString() { + return Utils.toString(Transaction.class, + "aggregatedVolumes", aggregatedVolumes, + "aggregatedVolumes1", aggregatedVolumes1, + "metadata", metadata, + "postings", postings, + "reference", reference, + "timestamp", timestamp, + "txid", txid); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional>> aggregatedVolumes = Optional.empty(); + + private Optional>> aggregatedVolumes1 = Optional.empty(); + + private JsonNullable> metadata = JsonNullable.undefined(); + + private List postings; + + private Optional reference = Optional.empty(); + + private OffsetDateTime timestamp; + + private BigInteger txid; + + private Builder() { + // force use of static builder() method + } + + + public Builder aggregatedVolumes(Map> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = Optional.ofNullable(aggregatedVolumes); + return this; + } + + public Builder aggregatedVolumes(Optional>> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = aggregatedVolumes; + return this; + } + + + public Builder aggregatedVolumes1(Map> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = Optional.ofNullable(aggregatedVolumes1); + return this; + } + + public Builder aggregatedVolumes1(Optional>> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = aggregatedVolumes1; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + + public Builder txid(long txid) { + this.txid = BigInteger.valueOf(txid); + return this; + } + + public Builder txid(BigInteger txid) { + Utils.checkNotNull(txid, "txid"); + this.txid = txid; + return this; + } + + public Transaction build() { + + return new Transaction( + aggregatedVolumes, aggregatedVolumes1, metadata, + postings, reference, timestamp, + txid); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransactionData.java b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionData.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/TransactionData.java rename to src/main/java/com/formance/formance_sdk/models/ledger/TransactionData.java index 28d15bcb3..82e55e4da 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransactionData.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/TransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionResponse.java new file mode 100644 index 000000000..38f7fbf59 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class TransactionResponse { + + @JsonProperty("data") + private Transaction transaction; + + @JsonCreator + public TransactionResponse( + @JsonProperty("data") Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; + } + + @JsonIgnore + public Transaction transaction() { + return transaction; + } + + public static Builder builder() { + return new Builder(); + } + + + public TransactionResponse withTransaction(Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransactionResponse other = (TransactionResponse) o; + return + Utils.enhancedDeepEquals(this.transaction, other.transaction); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + transaction); + } + + @Override + public String toString() { + return Utils.toString(TransactionResponse.class, + "transaction", transaction); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Transaction transaction; + + private Builder() { + // force use of static builder() method + } + + + public Builder transaction(Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; + return this; + } + + public TransactionResponse build() { + + return new TransactionResponse( + transaction); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Transactions.java b/src/main/java/com/formance/formance_sdk/models/ledger/Transactions.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/Transactions.java rename to src/main/java/com/formance/formance_sdk/models/ledger/Transactions.java index 0307d63d3..d72fa6f44 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Transactions.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Transactions.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponse.java index 9f5f80c97..d18411fe8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponseCursor.java index ec15a9706..7b5f74722 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransactionsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransactionsResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/TransactionsResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/TransactionsResponse.java index 4c8d3cdc4..276f8d0b4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransactionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/TransactionsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2Account.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Account.java new file mode 100644 index 000000000..d0422eb62 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Account.java @@ -0,0 +1,355 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + + +public class V2Account { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("volumes") + private Optional> v2Volumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("effectiveVolumes") + private Optional> v2Volumes1; + + + @JsonProperty("address") + private String address; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("firstUsage") + private Optional firstUsage; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("insertionDate") + private Optional insertionDate; + + + @JsonProperty("metadata") + private Map metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + private Optional updatedAt; + + @JsonCreator + public V2Account( + @JsonProperty("volumes") Optional> v2Volumes, + @JsonProperty("effectiveVolumes") Optional> v2Volumes1, + @JsonProperty("address") String address, + @JsonProperty("firstUsage") Optional firstUsage, + @JsonProperty("insertionDate") Optional insertionDate, + @JsonProperty("metadata") Map metadata, + @JsonProperty("updatedAt") Optional updatedAt) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + Utils.checkNotNull(address, "address"); + Utils.checkNotNull(firstUsage, "firstUsage"); + Utils.checkNotNull(insertionDate, "insertionDate"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.v2Volumes = v2Volumes; + this.v2Volumes1 = v2Volumes1; + this.address = address; + this.firstUsage = firstUsage; + this.insertionDate = insertionDate; + this.metadata = metadata; + this.updatedAt = updatedAt; + } + + public V2Account( + String address, + Map metadata) { + this(Optional.empty(), Optional.empty(), address, + Optional.empty(), Optional.empty(), metadata, + Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2Volumes() { + return (Optional>) v2Volumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2Volumes1() { + return (Optional>) v2Volumes1; + } + + @JsonIgnore + public String address() { + return address; + } + + @JsonIgnore + public Optional firstUsage() { + return firstUsage; + } + + @JsonIgnore + public Optional insertionDate() { + return insertionDate; + } + + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public Optional updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Account withV2Volumes(Map v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = Optional.ofNullable(v2Volumes); + return this; + } + + + public V2Account withV2Volumes(Optional> v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = v2Volumes; + return this; + } + + public V2Account withV2Volumes1(Map v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = Optional.ofNullable(v2Volumes1); + return this; + } + + + public V2Account withV2Volumes1(Optional> v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = v2Volumes1; + return this; + } + + public V2Account withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + public V2Account withFirstUsage(OffsetDateTime firstUsage) { + Utils.checkNotNull(firstUsage, "firstUsage"); + this.firstUsage = Optional.ofNullable(firstUsage); + return this; + } + + + public V2Account withFirstUsage(Optional firstUsage) { + Utils.checkNotNull(firstUsage, "firstUsage"); + this.firstUsage = firstUsage; + return this; + } + + public V2Account withInsertionDate(OffsetDateTime insertionDate) { + Utils.checkNotNull(insertionDate, "insertionDate"); + this.insertionDate = Optional.ofNullable(insertionDate); + return this; + } + + + public V2Account withInsertionDate(Optional insertionDate) { + Utils.checkNotNull(insertionDate, "insertionDate"); + this.insertionDate = insertionDate; + return this; + } + + public V2Account withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public V2Account withUpdatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + + public V2Account withUpdatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Account other = (V2Account) o; + return + Utils.enhancedDeepEquals(this.v2Volumes, other.v2Volumes) && + Utils.enhancedDeepEquals(this.v2Volumes1, other.v2Volumes1) && + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.firstUsage, other.firstUsage) && + Utils.enhancedDeepEquals(this.insertionDate, other.insertionDate) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Volumes, v2Volumes1, address, + firstUsage, insertionDate, metadata, + updatedAt); + } + + @Override + public String toString() { + return Utils.toString(V2Account.class, + "v2Volumes", v2Volumes, + "v2Volumes1", v2Volumes1, + "address", address, + "firstUsage", firstUsage, + "insertionDate", insertionDate, + "metadata", metadata, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> v2Volumes = Optional.empty(); + + private Optional> v2Volumes1 = Optional.empty(); + + private String address; + + private Optional firstUsage = Optional.empty(); + + private Optional insertionDate = Optional.empty(); + + private Map metadata; + + private Optional updatedAt = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Volumes(Map v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = Optional.ofNullable(v2Volumes); + return this; + } + + public Builder v2Volumes(Optional> v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = v2Volumes; + return this; + } + + + public Builder v2Volumes1(Map v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = Optional.ofNullable(v2Volumes1); + return this; + } + + public Builder v2Volumes1(Optional> v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = v2Volumes1; + return this; + } + + + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + + public Builder firstUsage(OffsetDateTime firstUsage) { + Utils.checkNotNull(firstUsage, "firstUsage"); + this.firstUsage = Optional.ofNullable(firstUsage); + return this; + } + + public Builder firstUsage(Optional firstUsage) { + Utils.checkNotNull(firstUsage, "firstUsage"); + this.firstUsage = firstUsage; + return this; + } + + + public Builder insertionDate(OffsetDateTime insertionDate) { + Utils.checkNotNull(insertionDate, "insertionDate"); + this.insertionDate = Optional.ofNullable(insertionDate); + return this; + } + + public Builder insertionDate(Optional insertionDate) { + Utils.checkNotNull(insertionDate, "insertionDate"); + this.insertionDate = insertionDate; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder updatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + public Builder updatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public V2Account build() { + + return new V2Account( + v2Volumes, v2Volumes1, address, + firstUsage, insertionDate, metadata, + updatedAt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountResponse.java new file mode 100644 index 000000000..2cd0d4eea --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2AccountResponse { + + @JsonProperty("data") + private V2Account v2Account; + + @JsonCreator + public V2AccountResponse( + @JsonProperty("data") V2Account v2Account) { + Utils.checkNotNull(v2Account, "v2Account"); + this.v2Account = v2Account; + } + + @JsonIgnore + public V2Account v2Account() { + return v2Account; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2AccountResponse withV2Account(V2Account v2Account) { + Utils.checkNotNull(v2Account, "v2Account"); + this.v2Account = v2Account; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2AccountResponse other = (V2AccountResponse) o; + return + Utils.enhancedDeepEquals(this.v2Account, other.v2Account); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Account); + } + + @Override + public String toString() { + return Utils.toString(V2AccountResponse.class, + "v2Account", v2Account); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Account v2Account; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Account(V2Account v2Account) { + Utils.checkNotNull(v2Account, "v2Account"); + this.v2Account = v2Account; + return this; + } + + public V2AccountResponse build() { + + return new V2AccountResponse( + v2Account); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponse.java index c3dd18deb..295dcf80b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseCursor.java index d0cf14292..e898a013e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseResource.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseResource.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseResource.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseResource.java index 7d3c6ba8b..a164117fa 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountsCursorResponseResource.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2AccountsCursorResponseResource.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2AggregateBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2AggregateBalancesResponse.java new file mode 100644 index 000000000..2ab1d7e5f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2AggregateBalancesResponse.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; +import java.util.Map; + + +public class V2AggregateBalancesResponse { + + @JsonProperty("data") + private Map v2AssetsBalances; + + @JsonCreator + public V2AggregateBalancesResponse( + @JsonProperty("data") Map v2AssetsBalances) { + v2AssetsBalances = Utils.emptyMapIfNull(v2AssetsBalances); + Utils.checkNotNull(v2AssetsBalances, "v2AssetsBalances"); + this.v2AssetsBalances = v2AssetsBalances; + } + + @JsonIgnore + public Map v2AssetsBalances() { + return v2AssetsBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2AggregateBalancesResponse withV2AssetsBalances(Map v2AssetsBalances) { + Utils.checkNotNull(v2AssetsBalances, "v2AssetsBalances"); + this.v2AssetsBalances = v2AssetsBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2AggregateBalancesResponse other = (V2AggregateBalancesResponse) o; + return + Utils.enhancedDeepEquals(this.v2AssetsBalances, other.v2AssetsBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2AssetsBalances); + } + + @Override + public String toString() { + return Utils.toString(V2AggregateBalancesResponse.class, + "v2AssetsBalances", v2AssetsBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map v2AssetsBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2AssetsBalances(Map v2AssetsBalances) { + Utils.checkNotNull(v2AssetsBalances, "v2AssetsBalances"); + this.v2AssetsBalances = v2AssetsBalances; + return this; + } + + public V2AggregateBalancesResponse build() { + + return new V2AggregateBalancesResponse( + v2AssetsBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2BaseBulkElement.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2BaseBulkElement.java new file mode 100644 index 000000000..84b3e88a9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2BaseBulkElement.java @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2BaseBulkElement { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional v2PostTransaction; + + + @JsonProperty("action") + private String action; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ik") + private Optional ik; + + @JsonCreator + public V2BaseBulkElement( + @JsonProperty("data") Optional v2PostTransaction, + @JsonProperty("action") String action, + @JsonProperty("ik") Optional ik) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + Utils.checkNotNull(action, "action"); + Utils.checkNotNull(ik, "ik"); + this.v2PostTransaction = v2PostTransaction; + this.action = action; + this.ik = ik; + } + + public V2BaseBulkElement( + String action) { + this(Optional.empty(), action, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2PostTransaction() { + return (Optional) v2PostTransaction; + } + + @JsonIgnore + public String action() { + return action; + } + + @JsonIgnore + public Optional ik() { + return ik; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2BaseBulkElement withV2PostTransaction(V2PostTransaction v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = Optional.ofNullable(v2PostTransaction); + return this; + } + + + public V2BaseBulkElement withV2PostTransaction(Optional v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = v2PostTransaction; + return this; + } + + public V2BaseBulkElement withAction(String action) { + Utils.checkNotNull(action, "action"); + this.action = action; + return this; + } + + public V2BaseBulkElement withIk(String ik) { + Utils.checkNotNull(ik, "ik"); + this.ik = Optional.ofNullable(ik); + return this; + } + + + public V2BaseBulkElement withIk(Optional ik) { + Utils.checkNotNull(ik, "ik"); + this.ik = ik; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2BaseBulkElement other = (V2BaseBulkElement) o; + return + Utils.enhancedDeepEquals(this.v2PostTransaction, other.v2PostTransaction) && + Utils.enhancedDeepEquals(this.action, other.action) && + Utils.enhancedDeepEquals(this.ik, other.ik); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2PostTransaction, action, ik); + } + + @Override + public String toString() { + return Utils.toString(V2BaseBulkElement.class, + "v2PostTransaction", v2PostTransaction, + "action", action, + "ik", ik); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2PostTransaction = Optional.empty(); + + private String action; + + private Optional ik = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2PostTransaction(V2PostTransaction v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = Optional.ofNullable(v2PostTransaction); + return this; + } + + public Builder v2PostTransaction(Optional v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = v2PostTransaction; + return this; + } + + + public Builder action(String action) { + Utils.checkNotNull(action, "action"); + this.action = action; + return this; + } + + + public Builder ik(String ik) { + Utils.checkNotNull(ik, "ik"); + this.ik = Optional.ofNullable(ik); + return this; + } + + public Builder ik(Optional ik) { + Utils.checkNotNull(ik, "ik"); + this.ik = ik; + return this; + } + + public V2BaseBulkElement build() { + + return new V2BaseBulkElement( + v2PostTransaction, action, ik); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2BulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2BulkElementResult.java new file mode 100644 index 000000000..f42403a4a --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2BulkElementResult.java @@ -0,0 +1,115 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = V2BulkElementResult._Deserializer.class) +public class V2BulkElementResult { + + @JsonValue + private final TypedObject value; + + private V2BulkElementResult(TypedObject value) { + this.value = value; + } + + public static V2BulkElementResult of(LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult value) { + Utils.checkNotNull(value, "value"); + return new V2BulkElementResult(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V2BulkElementResult of(LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult value) { + Utils.checkNotNull(value, "value"); + return new V2BulkElementResult(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V2BulkElementResult of(LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult value) { + Utils.checkNotNull(value, "value"); + return new V2BulkElementResult(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V2BulkElementResult of(LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult value) { + Utils.checkNotNull(value, "value"); + return new V2BulkElementResult(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V2BulkElementResult of(LedgerV2BulkElementResultErrorV2BaseBulkElementResult value) { + Utils.checkNotNull(value, "value"); + return new V2BulkElementResult(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *
    + *
  • {@code com.formance.formance_sdk.models.ledger.LedgerV2BulkElementResultCreateTransactionV2BaseBulkElementResult}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.LedgerV2BulkElementResultAddMetadataV2BaseBulkElementResult}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.LedgerV2BulkElementResultRevertTransactionV2BaseBulkElementResult}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.LedgerV2BulkElementResultDeleteMetadataV2BaseBulkElementResult}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.LedgerV2BulkElementResultErrorV2BaseBulkElementResult}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2BulkElementResult other = (V2BulkElementResult) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(V2BulkElementResult.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(V2BulkElementResult.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2BulkResponse.java similarity index 76% rename from src/main/java/com/formance/formance_sdk/models/shared/V2BulkResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2BulkResponse.java index 5d89b7dd6..3487e7966 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2BulkResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,13 +19,13 @@ public class V2BulkResponse { @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional> data; + @JsonProperty("errorCode") + private Optional v2ErrorsEnum; @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errorCode") - private Optional errorCode; + @JsonProperty("data") + private Optional> data; @JsonInclude(Include.NON_ABSENT) @@ -34,14 +34,14 @@ public class V2BulkResponse { @JsonCreator public V2BulkResponse( + @JsonProperty("errorCode") Optional v2ErrorsEnum, @JsonProperty("data") Optional> data, - @JsonProperty("errorCode") Optional errorCode, @JsonProperty("errorMessage") Optional errorMessage) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); Utils.checkNotNull(data, "data"); - Utils.checkNotNull(errorCode, "errorCode"); Utils.checkNotNull(errorMessage, "errorMessage"); + this.v2ErrorsEnum = v2ErrorsEnum; this.data = data; - this.errorCode = errorCode; this.errorMessage = errorMessage; } @@ -51,14 +51,14 @@ public V2BulkResponse() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional> data() { - return (Optional>) data; + public Optional v2ErrorsEnum() { + return (Optional) v2ErrorsEnum; } @SuppressWarnings("unchecked") @JsonIgnore - public Optional errorCode() { - return (Optional) errorCode; + public Optional> data() { + return (Optional>) data; } @JsonIgnore @@ -71,29 +71,29 @@ public static Builder builder() { } - public V2BulkResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); + public V2BulkResponse withV2ErrorsEnum(V2ErrorsEnum v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = Optional.ofNullable(v2ErrorsEnum); return this; } - public V2BulkResponse withData(Optional> data) { - Utils.checkNotNull(data, "data"); - this.data = data; + public V2BulkResponse withV2ErrorsEnum(Optional v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = v2ErrorsEnum; return this; } - public V2BulkResponse withErrorCode(V2ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = Optional.ofNullable(errorCode); + public V2BulkResponse withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = Optional.ofNullable(data); return this; } - public V2BulkResponse withErrorCode(Optional errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; + public V2BulkResponse withData(Optional> data) { + Utils.checkNotNull(data, "data"); + this.data = data; return this; } @@ -120,31 +120,31 @@ public boolean equals(java.lang.Object o) { } V2BulkResponse other = (V2BulkResponse) o; return + Utils.enhancedDeepEquals(this.v2ErrorsEnum, other.v2ErrorsEnum) && Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); } @Override public int hashCode() { return Utils.enhancedHash( - data, errorCode, errorMessage); + v2ErrorsEnum, data, errorMessage); } @Override public String toString() { return Utils.toString(V2BulkResponse.class, + "v2ErrorsEnum", v2ErrorsEnum, "data", data, - "errorCode", errorCode, "errorMessage", errorMessage); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional> data = Optional.empty(); + private Optional v2ErrorsEnum = Optional.empty(); - private Optional errorCode = Optional.empty(); + private Optional> data = Optional.empty(); private Optional errorMessage = Optional.empty(); @@ -153,28 +153,28 @@ private Builder() { } - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); + public Builder v2ErrorsEnum(V2ErrorsEnum v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = Optional.ofNullable(v2ErrorsEnum); return this; } - public Builder data(Optional> data) { - Utils.checkNotNull(data, "data"); - this.data = data; + public Builder v2ErrorsEnum(Optional v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = v2ErrorsEnum; return this; } - public Builder errorCode(V2ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = Optional.ofNullable(errorCode); + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = Optional.ofNullable(data); return this; } - public Builder errorCode(Optional errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; + public Builder data(Optional> data) { + Utils.checkNotNull(data, "data"); + this.data = data; return this; } @@ -194,7 +194,7 @@ public Builder errorMessage(Optional errorMessage) { public V2BulkResponse build() { return new V2BulkResponse( - data, errorCode, errorMessage); + v2ErrorsEnum, data, errorMessage); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountMetadata.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountMetadata.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountMetadata.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountMetadata.java index 11b08346e..ccf567553 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountMetadata.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountMetadata.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountRules.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountRules.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountRules.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountRules.java index c23672c54..3463c70b0 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ChartAccountRules.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ChartAccountRules.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ChartSegment.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ChartSegment.java similarity index 81% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ChartSegment.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2ChartSegment.java index 5f651b286..ce819ea34 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ChartSegment.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ChartSegment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonAnyGetter; import com.fasterxml.jackson.annotation.JsonAnySetter; @@ -35,11 +35,6 @@ public class V2ChartSegment { private Optional dotPattern; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty(".rules") - private Optional dotRules; - - @JsonInclude(Include.NON_ABSENT) @JsonProperty(".self") private Optional dotSelf; @@ -48,21 +43,26 @@ public class V2ChartSegment { @JsonIgnore private Map additionalProperties; + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty(".rules") + private Optional v2ChartAccountRules; + @JsonCreator public V2ChartSegment( @JsonProperty(".metadata") Optional> dotMetadata, @JsonProperty(".pattern") Optional dotPattern, - @JsonProperty(".rules") Optional dotRules, - @JsonProperty(".self") Optional dotSelf) { + @JsonProperty(".self") Optional dotSelf, + @JsonProperty(".rules") Optional v2ChartAccountRules) { Utils.checkNotNull(dotMetadata, "dotMetadata"); Utils.checkNotNull(dotPattern, "dotPattern"); - Utils.checkNotNull(dotRules, "dotRules"); Utils.checkNotNull(dotSelf, "dotSelf"); + Utils.checkNotNull(v2ChartAccountRules, "v2ChartAccountRules"); this.dotMetadata = dotMetadata; this.dotPattern = dotPattern; - this.dotRules = dotRules; this.dotSelf = dotSelf; this.additionalProperties = new HashMap<>(); + this.v2ChartAccountRules = v2ChartAccountRules; } public V2ChartSegment() { @@ -81,12 +81,6 @@ public Optional dotPattern() { return dotPattern; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional dotRules() { - return (Optional) dotRules; - } - @SuppressWarnings("unchecked") @JsonIgnore public Optional dotSelf() { @@ -98,6 +92,12 @@ public Map additionalProperties() { return additionalProperties; } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ChartAccountRules() { + return (Optional) v2ChartAccountRules; + } + public static Builder builder() { return new Builder(); } @@ -129,19 +129,6 @@ public V2ChartSegment withDotPattern(Optional dotPattern) { return this; } - public V2ChartSegment withDotRules(V2ChartAccountRules dotRules) { - Utils.checkNotNull(dotRules, "dotRules"); - this.dotRules = Optional.ofNullable(dotRules); - return this; - } - - - public V2ChartSegment withDotRules(Optional dotRules) { - Utils.checkNotNull(dotRules, "dotRules"); - this.dotRules = dotRules; - return this; - } - public V2ChartSegment withDotSelf(DotSelf dotSelf) { Utils.checkNotNull(dotSelf, "dotSelf"); this.dotSelf = Optional.ofNullable(dotSelf); @@ -168,6 +155,19 @@ public V2ChartSegment withAdditionalProperties(Map addit return this; } + public V2ChartSegment withV2ChartAccountRules(V2ChartAccountRules v2ChartAccountRules) { + Utils.checkNotNull(v2ChartAccountRules, "v2ChartAccountRules"); + this.v2ChartAccountRules = Optional.ofNullable(v2ChartAccountRules); + return this; + } + + + public V2ChartSegment withV2ChartAccountRules(Optional v2ChartAccountRules) { + Utils.checkNotNull(v2ChartAccountRules, "v2ChartAccountRules"); + this.v2ChartAccountRules = v2ChartAccountRules; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -180,16 +180,16 @@ public boolean equals(java.lang.Object o) { return Utils.enhancedDeepEquals(this.dotMetadata, other.dotMetadata) && Utils.enhancedDeepEquals(this.dotPattern, other.dotPattern) && - Utils.enhancedDeepEquals(this.dotRules, other.dotRules) && Utils.enhancedDeepEquals(this.dotSelf, other.dotSelf) && - Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties); + Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties) && + Utils.enhancedDeepEquals(this.v2ChartAccountRules, other.v2ChartAccountRules); } @Override public int hashCode() { return Utils.enhancedHash( - dotMetadata, dotPattern, dotRules, - dotSelf, additionalProperties); + dotMetadata, dotPattern, dotSelf, + additionalProperties, v2ChartAccountRules); } @Override @@ -197,9 +197,9 @@ public String toString() { return Utils.toString(V2ChartSegment.class, "dotMetadata", dotMetadata, "dotPattern", dotPattern, - "dotRules", dotRules, "dotSelf", dotSelf, - "additionalProperties", additionalProperties); + "additionalProperties", additionalProperties, + "v2ChartAccountRules", v2ChartAccountRules); } @SuppressWarnings("UnusedReturnValue") @@ -209,12 +209,12 @@ public final static class Builder { private Optional dotPattern = Optional.empty(); - private Optional dotRules = Optional.empty(); - private Optional dotSelf = Optional.empty(); private Map additionalProperties = new HashMap<>(); + private Optional v2ChartAccountRules = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -246,19 +246,6 @@ public Builder dotPattern(Optional dotPattern) { } - public Builder dotRules(V2ChartAccountRules dotRules) { - Utils.checkNotNull(dotRules, "dotRules"); - this.dotRules = Optional.ofNullable(dotRules); - return this; - } - - public Builder dotRules(Optional dotRules) { - Utils.checkNotNull(dotRules, "dotRules"); - this.dotRules = dotRules; - return this; - } - - public Builder dotSelf(DotSelf dotSelf) { Utils.checkNotNull(dotSelf, "dotSelf"); this.dotSelf = Optional.ofNullable(dotSelf); @@ -287,11 +274,24 @@ public Builder additionalProperties(Map additionalProper return this; } + + public Builder v2ChartAccountRules(V2ChartAccountRules v2ChartAccountRules) { + Utils.checkNotNull(v2ChartAccountRules, "v2ChartAccountRules"); + this.v2ChartAccountRules = Optional.ofNullable(v2ChartAccountRules); + return this; + } + + public Builder v2ChartAccountRules(Optional v2ChartAccountRules) { + Utils.checkNotNull(v2ChartAccountRules, "v2ChartAccountRules"); + this.v2ChartAccountRules = v2ChartAccountRules; + return this; + } + public V2ChartSegment build() { return new V2ChartSegment( - dotMetadata, dotPattern, dotRules, - dotSelf) + dotMetadata, dotPattern, dotSelf, + v2ChartAccountRules) .withAdditionalProperties(additionalProperties); } diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2ConfigInfo.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ConfigInfo.java new file mode 100644 index 000000000..111377ed1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ConfigInfo.java @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2ConfigInfo { + + @JsonProperty("server") + private String server; + + + @JsonProperty("version") + private String version; + + @JsonCreator + public V2ConfigInfo( + @JsonProperty("server") String server, + @JsonProperty("version") String version) { + Utils.checkNotNull(server, "server"); + Utils.checkNotNull(version, "version"); + this.server = server; + this.version = version; + } + + @JsonIgnore + public String server() { + return server; + } + + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ConfigInfo withServer(String server) { + Utils.checkNotNull(server, "server"); + this.server = server; + return this; + } + + public V2ConfigInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ConfigInfo other = (V2ConfigInfo) o; + return + Utils.enhancedDeepEquals(this.server, other.server) && + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + server, version); + } + + @Override + public String toString() { + return Utils.toString(V2ConfigInfo.class, + "server", server, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String server; + + private String version; + + private Builder() { + // force use of static builder() method + } + + + public Builder server(String server) { + Utils.checkNotNull(server, "server"); + this.server = server; + return this; + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public V2ConfigInfo build() { + + return new V2ConfigInfo( + server, version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateExporterResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateExporterResponse.java new file mode 100644 index 000000000..260387322 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateExporterResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2CreateExporterResponse + * + *

Created exporter + */ +public class V2CreateExporterResponse { + + @JsonProperty("data") + private V2ExporterConfiguration1 v2ExporterConfiguration; + + @JsonCreator + public V2CreateExporterResponse( + @JsonProperty("data") V2ExporterConfiguration1 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; + } + + @JsonIgnore + public V2ExporterConfiguration1 v2ExporterConfiguration() { + return v2ExporterConfiguration; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2CreateExporterResponse withV2ExporterConfiguration(V2ExporterConfiguration1 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2CreateExporterResponse other = (V2CreateExporterResponse) o; + return + Utils.enhancedDeepEquals(this.v2ExporterConfiguration, other.v2ExporterConfiguration); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ExporterConfiguration); + } + + @Override + public String toString() { + return Utils.toString(V2CreateExporterResponse.class, + "v2ExporterConfiguration", v2ExporterConfiguration); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2ExporterConfiguration1 v2ExporterConfiguration; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2ExporterConfiguration(V2ExporterConfiguration1 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; + return this; + } + + public V2CreateExporterResponse build() { + + return new V2CreateExporterResponse( + v2ExporterConfiguration); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateLedgerRequest.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateLedgerRequest.java similarity index 75% rename from src/main/java/com/formance/formance_sdk/models/shared/V2CreateLedgerRequest.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2CreateLedgerRequest.java index 31c2af55d..2b4a5c478 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateLedgerRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateLedgerRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,6 +18,11 @@ public class V2CreateLedgerRequest { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> v2Metadata; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("bucket") private Optional bucket; @@ -27,28 +32,29 @@ public class V2CreateLedgerRequest { @JsonProperty("features") private Optional> features; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional> metadata; - @JsonCreator public V2CreateLedgerRequest( + @JsonProperty("metadata") Optional> v2Metadata, @JsonProperty("bucket") Optional bucket, - @JsonProperty("features") Optional> features, - @JsonProperty("metadata") Optional> metadata) { + @JsonProperty("features") Optional> features) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); Utils.checkNotNull(bucket, "bucket"); Utils.checkNotNull(features, "features"); - Utils.checkNotNull(metadata, "metadata"); + this.v2Metadata = v2Metadata; this.bucket = bucket; this.features = features; - this.metadata = metadata; } public V2CreateLedgerRequest() { this(Optional.empty(), Optional.empty(), Optional.empty()); } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2Metadata() { + return (Optional>) v2Metadata; + } + @JsonIgnore public Optional bucket() { return bucket; @@ -60,17 +66,24 @@ public Optional> features() { return (Optional>) features; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - public static Builder builder() { return new Builder(); } + public V2CreateLedgerRequest withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = Optional.ofNullable(v2Metadata); + return this; + } + + + public V2CreateLedgerRequest withV2Metadata(Optional> v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + public V2CreateLedgerRequest withBucket(String bucket) { Utils.checkNotNull(bucket, "bucket"); this.bucket = Optional.ofNullable(bucket); @@ -97,19 +110,6 @@ public V2CreateLedgerRequest withFeatures(Optional return this; } - public V2CreateLedgerRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V2CreateLedgerRequest withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -120,39 +120,52 @@ public boolean equals(java.lang.Object o) { } V2CreateLedgerRequest other = (V2CreateLedgerRequest) o; return + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && Utils.enhancedDeepEquals(this.bucket, other.bucket) && - Utils.enhancedDeepEquals(this.features, other.features) && - Utils.enhancedDeepEquals(this.metadata, other.metadata); + Utils.enhancedDeepEquals(this.features, other.features); } @Override public int hashCode() { return Utils.enhancedHash( - bucket, features, metadata); + v2Metadata, bucket, features); } @Override public String toString() { return Utils.toString(V2CreateLedgerRequest.class, + "v2Metadata", v2Metadata, "bucket", bucket, - "features", features, - "metadata", metadata); + "features", features); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> v2Metadata = Optional.empty(); + private Optional bucket = Optional.empty(); private Optional> features = Optional.empty(); - private Optional> metadata = Optional.empty(); - private Builder() { // force use of static builder() method } + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = Optional.ofNullable(v2Metadata); + return this; + } + + public Builder v2Metadata(Optional> v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public Builder bucket(String bucket) { Utils.checkNotNull(bucket, "bucket"); this.bucket = Optional.ofNullable(bucket); @@ -178,23 +191,10 @@ public Builder features(Optional> features) { return this; } - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V2CreateLedgerRequest build() { return new V2CreateLedgerRequest( - bucket, features, metadata); + v2Metadata, bucket, features); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreatePipelineRequest.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2CreatePipelineRequest.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineRequest.java index c522b4f4e..68fac4ca5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreatePipelineRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineResponse.java new file mode 100644 index 000000000..ffe13ab5c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreatePipelineResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2CreatePipelineResponse + * + *

Created ipeline + */ +public class V2CreatePipelineResponse { + + @JsonProperty("data") + private V2PipelineConfiguration v2PipelineConfiguration; + + @JsonCreator + public V2CreatePipelineResponse( + @JsonProperty("data") V2PipelineConfiguration v2PipelineConfiguration) { + Utils.checkNotNull(v2PipelineConfiguration, "v2PipelineConfiguration"); + this.v2PipelineConfiguration = v2PipelineConfiguration; + } + + @JsonIgnore + public V2PipelineConfiguration v2PipelineConfiguration() { + return v2PipelineConfiguration; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2CreatePipelineResponse withV2PipelineConfiguration(V2PipelineConfiguration v2PipelineConfiguration) { + Utils.checkNotNull(v2PipelineConfiguration, "v2PipelineConfiguration"); + this.v2PipelineConfiguration = v2PipelineConfiguration; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2CreatePipelineResponse other = (V2CreatePipelineResponse) o; + return + Utils.enhancedDeepEquals(this.v2PipelineConfiguration, other.v2PipelineConfiguration); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2PipelineConfiguration); + } + + @Override + public String toString() { + return Utils.toString(V2CreatePipelineResponse.class, + "v2PipelineConfiguration", v2PipelineConfiguration); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2PipelineConfiguration v2PipelineConfiguration; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2PipelineConfiguration(V2PipelineConfiguration v2PipelineConfiguration) { + Utils.checkNotNull(v2PipelineConfiguration, "v2PipelineConfiguration"); + this.v2PipelineConfiguration = v2PipelineConfiguration; + return this; + } + + public V2CreatePipelineResponse build() { + + return new V2CreatePipelineResponse( + v2PipelineConfiguration); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateTransactionResponse.java new file mode 100644 index 000000000..43d9ef21c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2CreateTransactionResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2CreateTransactionResponse { + + @JsonProperty("data") + private V2Transaction v2Transaction; + + @JsonCreator + public V2CreateTransactionResponse( + @JsonProperty("data") V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + } + + @JsonIgnore + public V2Transaction v2Transaction() { + return v2Transaction; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2CreateTransactionResponse withV2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2CreateTransactionResponse other = (V2CreateTransactionResponse) o; + return + Utils.enhancedDeepEquals(this.v2Transaction, other.v2Transaction); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Transaction); + } + + @Override + public String toString() { + return Utils.toString(V2CreateTransactionResponse.class, + "v2Transaction", v2Transaction); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Transaction v2Transaction; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + public V2CreateTransactionResponse build() { + + return new V2CreateTransactionResponse( + v2Transaction); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorResponse.java new file mode 100644 index 000000000..e37cbc97a --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorResponse.java @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class V2ErrorResponse { + + @JsonProperty("errorCode") + private V2ErrorsEnum v2ErrorsEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("details") + private Optional details; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public V2ErrorResponse( + @JsonProperty("errorCode") V2ErrorsEnum v2ErrorsEnum, + @JsonProperty("details") Optional details, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + Utils.checkNotNull(details, "details"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.v2ErrorsEnum = v2ErrorsEnum; + this.details = details; + this.errorMessage = errorMessage; + } + + public V2ErrorResponse( + V2ErrorsEnum v2ErrorsEnum, + String errorMessage) { + this(v2ErrorsEnum, Optional.empty(), errorMessage); + } + + @JsonIgnore + public V2ErrorsEnum v2ErrorsEnum() { + return v2ErrorsEnum; + } + + @JsonIgnore + public Optional details() { + return details; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ErrorResponse withV2ErrorsEnum(V2ErrorsEnum v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = v2ErrorsEnum; + return this; + } + + public V2ErrorResponse withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + + public V2ErrorResponse withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + public V2ErrorResponse withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ErrorResponse other = (V2ErrorResponse) o; + return + Utils.enhancedDeepEquals(this.v2ErrorsEnum, other.v2ErrorsEnum) && + Utils.enhancedDeepEquals(this.details, other.details) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ErrorsEnum, details, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(V2ErrorResponse.class, + "v2ErrorsEnum", v2ErrorsEnum, + "details", details, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2ErrorsEnum v2ErrorsEnum; + + private Optional details = Optional.empty(); + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2ErrorsEnum(V2ErrorsEnum v2ErrorsEnum) { + Utils.checkNotNull(v2ErrorsEnum, "v2ErrorsEnum"); + this.v2ErrorsEnum = v2ErrorsEnum; + return this; + } + + + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public V2ErrorResponse build() { + + return new V2ErrorResponse( + v2ErrorsEnum, details, errorMessage); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorsEnum.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ErrorsEnum.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorsEnum.java index bfd1ff535..dadfa1489 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ErrorsEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ErrorsEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration1.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration1.java new file mode 100644 index 000000000..e312a1dd8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration1.java @@ -0,0 +1,183 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Map; + + +public class V2ExporterConfiguration1 { + + @JsonProperty("config") + private Map config; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("driver") + private String driver; + + + @JsonProperty("id") + private String id; + + @JsonCreator + public V2ExporterConfiguration1( + @JsonProperty("config") Map config, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("driver") String driver, + @JsonProperty("id") String id) { + config = Utils.emptyMapIfNull(config); + Utils.checkNotNull(config, "config"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(driver, "driver"); + Utils.checkNotNull(id, "id"); + this.config = config; + this.createdAt = createdAt; + this.driver = driver; + this.id = id; + } + + @JsonIgnore + public Map config() { + return config; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String driver() { + return driver; + } + + @JsonIgnore + public String id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ExporterConfiguration1 withConfig(Map config) { + Utils.checkNotNull(config, "config"); + this.config = config; + return this; + } + + public V2ExporterConfiguration1 withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V2ExporterConfiguration1 withDriver(String driver) { + Utils.checkNotNull(driver, "driver"); + this.driver = driver; + return this; + } + + public V2ExporterConfiguration1 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ExporterConfiguration1 other = (V2ExporterConfiguration1) o; + return + Utils.enhancedDeepEquals(this.config, other.config) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.driver, other.driver) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + config, createdAt, driver, + id); + } + + @Override + public String toString() { + return Utils.toString(V2ExporterConfiguration1.class, + "config", config, + "createdAt", createdAt, + "driver", driver, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map config; + + private OffsetDateTime createdAt; + + private String driver; + + private String id; + + private Builder() { + // force use of static builder() method + } + + + public Builder config(Map config) { + Utils.checkNotNull(config, "config"); + this.config = config; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder driver(String driver) { + Utils.checkNotNull(driver, "driver"); + this.driver = driver; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2ExporterConfiguration1 build() { + + return new V2ExporterConfiguration1( + config, createdAt, driver, + id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration2.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration2.java new file mode 100644 index 000000000..af8bac299 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExporterConfiguration2.java @@ -0,0 +1,122 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.Map; + + +public class V2ExporterConfiguration2 { + + @JsonProperty("config") + private Map config; + + + @JsonProperty("driver") + private String driver; + + @JsonCreator + public V2ExporterConfiguration2( + @JsonProperty("config") Map config, + @JsonProperty("driver") String driver) { + config = Utils.emptyMapIfNull(config); + Utils.checkNotNull(config, "config"); + Utils.checkNotNull(driver, "driver"); + this.config = config; + this.driver = driver; + } + + @JsonIgnore + public Map config() { + return config; + } + + @JsonIgnore + public String driver() { + return driver; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ExporterConfiguration2 withConfig(Map config) { + Utils.checkNotNull(config, "config"); + this.config = config; + return this; + } + + public V2ExporterConfiguration2 withDriver(String driver) { + Utils.checkNotNull(driver, "driver"); + this.driver = driver; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ExporterConfiguration2 other = (V2ExporterConfiguration2) o; + return + Utils.enhancedDeepEquals(this.config, other.config) && + Utils.enhancedDeepEquals(this.driver, other.driver); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + config, driver); + } + + @Override + public String toString() { + return Utils.toString(V2ExporterConfiguration2.class, + "config", config, + "driver", driver); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map config; + + private String driver; + + private Builder() { + // force use of static builder() method + } + + + public Builder config(Map config) { + Utils.checkNotNull(config, "config"); + this.config = config; + return this; + } + + + public Builder driver(String driver) { + Utils.checkNotNull(driver, "driver"); + this.driver = driver; + return this; + } + + public V2ExporterConfiguration2 build() { + + return new V2ExporterConfiguration2( + config, driver); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponse.java new file mode 100644 index 000000000..fe17321dd --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2ExportersCursorResponse + * + *

Exporters list + */ +public class V2ExportersCursorResponse { + + @JsonProperty("cursor") + private V2ExportersCursorResponseCursor cursor; + + @JsonCreator + public V2ExportersCursorResponse( + @JsonProperty("cursor") V2ExportersCursorResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + } + + @JsonIgnore + public V2ExportersCursorResponseCursor cursor() { + return cursor; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ExportersCursorResponse withCursor(V2ExportersCursorResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ExportersCursorResponse other = (V2ExportersCursorResponse) o; + return + Utils.enhancedDeepEquals(this.cursor, other.cursor); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursor); + } + + @Override + public String toString() { + return Utils.toString(V2ExportersCursorResponse.class, + "cursor", cursor); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2ExportersCursorResponseCursor cursor; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursor(V2ExportersCursorResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + public V2ExportersCursorResponse build() { + + return new V2ExportersCursorResponse( + cursor); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponseCursor.java new file mode 100644 index 000000000..b706ade55 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2ExportersCursorResponseCursor.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class V2ExportersCursorResponseCursor { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public V2ExportersCursorResponseCursor( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public V2ExportersCursorResponseCursor( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ExportersCursorResponseCursor withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public V2ExportersCursorResponseCursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public V2ExportersCursorResponseCursor withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public V2ExportersCursorResponseCursor withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public V2ExportersCursorResponseCursor withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public V2ExportersCursorResponseCursor withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public V2ExportersCursorResponseCursor withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ExportersCursorResponseCursor other = (V2ExportersCursorResponseCursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(V2ExportersCursorResponseCursor.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public V2ExportersCursorResponseCursor build() { + + return new V2ExportersCursorResponseCursor( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2GetExporterStateResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetExporterStateResponse.java new file mode 100644 index 000000000..522b526ae --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetExporterStateResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2GetExporterStateResponse + * + *

Exporter information + */ +public class V2GetExporterStateResponse { + + @JsonProperty("data") + private V2ExporterConfiguration1 v2ExporterConfiguration; + + @JsonCreator + public V2GetExporterStateResponse( + @JsonProperty("data") V2ExporterConfiguration1 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; + } + + @JsonIgnore + public V2ExporterConfiguration1 v2ExporterConfiguration() { + return v2ExporterConfiguration; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetExporterStateResponse withV2ExporterConfiguration(V2ExporterConfiguration1 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetExporterStateResponse other = (V2GetExporterStateResponse) o; + return + Utils.enhancedDeepEquals(this.v2ExporterConfiguration, other.v2ExporterConfiguration); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ExporterConfiguration); + } + + @Override + public String toString() { + return Utils.toString(V2GetExporterStateResponse.class, + "v2ExporterConfiguration", v2ExporterConfiguration); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2ExporterConfiguration1 v2ExporterConfiguration; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2ExporterConfiguration(V2ExporterConfiguration1 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; + return this; + } + + public V2GetExporterStateResponse build() { + + return new V2GetExporterStateResponse( + v2ExporterConfiguration); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2GetLedgerResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetLedgerResponse.java new file mode 100644 index 000000000..5e0e5c12d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetLedgerResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2GetLedgerResponse { + + @JsonProperty("data") + private V2Ledger v2Ledger; + + @JsonCreator + public V2GetLedgerResponse( + @JsonProperty("data") V2Ledger v2Ledger) { + Utils.checkNotNull(v2Ledger, "v2Ledger"); + this.v2Ledger = v2Ledger; + } + + @JsonIgnore + public V2Ledger v2Ledger() { + return v2Ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetLedgerResponse withV2Ledger(V2Ledger v2Ledger) { + Utils.checkNotNull(v2Ledger, "v2Ledger"); + this.v2Ledger = v2Ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetLedgerResponse other = (V2GetLedgerResponse) o; + return + Utils.enhancedDeepEquals(this.v2Ledger, other.v2Ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Ledger); + } + + @Override + public String toString() { + return Utils.toString(V2GetLedgerResponse.class, + "v2Ledger", v2Ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Ledger v2Ledger; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Ledger(V2Ledger v2Ledger) { + Utils.checkNotNull(v2Ledger, "v2Ledger"); + this.v2Ledger = v2Ledger; + return this; + } + + public V2GetLedgerResponse build() { + + return new V2GetLedgerResponse( + v2Ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2GetPipelineStateResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetPipelineStateResponse.java new file mode 100644 index 000000000..4d0e7d2a2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetPipelineStateResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2GetPipelineStateResponse + * + *

Pipeline information + */ +public class V2GetPipelineStateResponse { + + @JsonProperty("data") + private V2PipelineConfiguration v2PipelineConfiguration; + + @JsonCreator + public V2GetPipelineStateResponse( + @JsonProperty("data") V2PipelineConfiguration v2PipelineConfiguration) { + Utils.checkNotNull(v2PipelineConfiguration, "v2PipelineConfiguration"); + this.v2PipelineConfiguration = v2PipelineConfiguration; + } + + @JsonIgnore + public V2PipelineConfiguration v2PipelineConfiguration() { + return v2PipelineConfiguration; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetPipelineStateResponse withV2PipelineConfiguration(V2PipelineConfiguration v2PipelineConfiguration) { + Utils.checkNotNull(v2PipelineConfiguration, "v2PipelineConfiguration"); + this.v2PipelineConfiguration = v2PipelineConfiguration; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetPipelineStateResponse other = (V2GetPipelineStateResponse) o; + return + Utils.enhancedDeepEquals(this.v2PipelineConfiguration, other.v2PipelineConfiguration); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2PipelineConfiguration); + } + + @Override + public String toString() { + return Utils.toString(V2GetPipelineStateResponse.class, + "v2PipelineConfiguration", v2PipelineConfiguration); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2PipelineConfiguration v2PipelineConfiguration; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2PipelineConfiguration(V2PipelineConfiguration v2PipelineConfiguration) { + Utils.checkNotNull(v2PipelineConfiguration, "v2PipelineConfiguration"); + this.v2PipelineConfiguration = v2PipelineConfiguration; + return this; + } + + public V2GetPipelineStateResponse build() { + + return new V2GetPipelineStateResponse( + v2PipelineConfiguration); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2GetTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetTransactionResponse.java new file mode 100644 index 000000000..9905eb8d7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2GetTransactionResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2GetTransactionResponse { + + @JsonProperty("data") + private V2Transaction v2Transaction; + + @JsonCreator + public V2GetTransactionResponse( + @JsonProperty("data") V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + } + + @JsonIgnore + public V2Transaction v2Transaction() { + return v2Transaction; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetTransactionResponse withV2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetTransactionResponse other = (V2GetTransactionResponse) o; + return + Utils.enhancedDeepEquals(this.v2Transaction, other.v2Transaction); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Transaction); + } + + @Override + public String toString() { + return Utils.toString(V2GetTransactionResponse.class, + "v2Transaction", v2Transaction); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Transaction v2Transaction; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Transaction(V2Transaction v2Transaction) { + Utils.checkNotNull(v2Transaction, "v2Transaction"); + this.v2Transaction = v2Transaction; + return this; + } + + public V2GetTransactionResponse build() { + + return new V2GetTransactionResponse( + v2Transaction); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Ledger.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Ledger.java similarity index 83% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Ledger.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2Ledger.java index 0bcf28021..1c5bd4c23 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Ledger.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Ledger.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,11 @@ public class V2Ledger { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> v2Metadata; + + @JsonProperty("addedAt") private OffsetDateTime addedAt; @@ -44,36 +49,31 @@ public class V2Ledger { private Optional id; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional> metadata; - - @JsonProperty("name") private String name; @JsonCreator public V2Ledger( + @JsonProperty("metadata") Optional> v2Metadata, @JsonProperty("addedAt") OffsetDateTime addedAt, @JsonProperty("bucket") String bucket, @JsonProperty("deletedAt") JsonNullable deletedAt, @JsonProperty("features") Optional> features, @JsonProperty("id") Optional id, - @JsonProperty("metadata") Optional> metadata, @JsonProperty("name") String name) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); Utils.checkNotNull(addedAt, "addedAt"); Utils.checkNotNull(bucket, "bucket"); Utils.checkNotNull(deletedAt, "deletedAt"); Utils.checkNotNull(features, "features"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(name, "name"); + this.v2Metadata = v2Metadata; this.addedAt = addedAt; this.bucket = bucket; this.deletedAt = deletedAt; this.features = features; this.id = id; - this.metadata = metadata; this.name = name; } @@ -81,11 +81,17 @@ public V2Ledger( OffsetDateTime addedAt, String bucket, String name) { - this(addedAt, bucket, JsonNullable.undefined(), - Optional.empty(), Optional.empty(), Optional.empty(), + this(Optional.empty(), addedAt, bucket, + JsonNullable.undefined(), Optional.empty(), Optional.empty(), name); } + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2Metadata() { + return (Optional>) v2Metadata; + } + @JsonIgnore public OffsetDateTime addedAt() { return addedAt; @@ -112,12 +118,6 @@ public Optional id() { return id; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - @JsonIgnore public String name() { return name; @@ -128,6 +128,19 @@ public static Builder builder() { } + public V2Ledger withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = Optional.ofNullable(v2Metadata); + return this; + } + + + public V2Ledger withV2Metadata(Optional> v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + public V2Ledger withAddedAt(OffsetDateTime addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; @@ -178,19 +191,6 @@ public V2Ledger withId(Optional id) { return this; } - public V2Ledger withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V2Ledger withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V2Ledger withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -207,38 +207,40 @@ public boolean equals(java.lang.Object o) { } V2Ledger other = (V2Ledger) o; return + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && Utils.enhancedDeepEquals(this.addedAt, other.addedAt) && Utils.enhancedDeepEquals(this.bucket, other.bucket) && Utils.enhancedDeepEquals(this.deletedAt, other.deletedAt) && Utils.enhancedDeepEquals(this.features, other.features) && Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { return Utils.enhancedHash( - addedAt, bucket, deletedAt, - features, id, metadata, + v2Metadata, addedAt, bucket, + deletedAt, features, id, name); } @Override public String toString() { return Utils.toString(V2Ledger.class, + "v2Metadata", v2Metadata, "addedAt", addedAt, "bucket", bucket, "deletedAt", deletedAt, "features", features, "id", id, - "metadata", metadata, "name", name); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> v2Metadata = Optional.empty(); + private OffsetDateTime addedAt; private String bucket; @@ -249,8 +251,6 @@ public final static class Builder { private Optional id = Optional.empty(); - private Optional> metadata = Optional.empty(); - private String name; private Builder() { @@ -258,6 +258,19 @@ private Builder() { } + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = Optional.ofNullable(v2Metadata); + return this; + } + + public Builder v2Metadata(Optional> v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public Builder addedAt(OffsetDateTime addedAt) { Utils.checkNotNull(addedAt, "addedAt"); this.addedAt = addedAt; @@ -311,19 +324,6 @@ public Builder id(Optional id) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -333,8 +333,8 @@ public Builder name(String name) { public V2Ledger build() { return new V2Ledger( - addedAt, bucket, deletedAt, - features, id, metadata, + v2Metadata, addedAt, bucket, + deletedAt, features, id, name); } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfo.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfo.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfo.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfo.java index 81be8ccb4..769395870 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfo.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfo.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoResponse.java new file mode 100644 index 000000000..8a142cf34 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoResponse.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2LedgerInfoResponse { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional v2LedgerInfo; + + @JsonCreator + public V2LedgerInfoResponse( + @JsonProperty("data") Optional v2LedgerInfo) { + Utils.checkNotNull(v2LedgerInfo, "v2LedgerInfo"); + this.v2LedgerInfo = v2LedgerInfo; + } + + public V2LedgerInfoResponse() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2LedgerInfo() { + return (Optional) v2LedgerInfo; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2LedgerInfoResponse withV2LedgerInfo(V2LedgerInfo v2LedgerInfo) { + Utils.checkNotNull(v2LedgerInfo, "v2LedgerInfo"); + this.v2LedgerInfo = Optional.ofNullable(v2LedgerInfo); + return this; + } + + + public V2LedgerInfoResponse withV2LedgerInfo(Optional v2LedgerInfo) { + Utils.checkNotNull(v2LedgerInfo, "v2LedgerInfo"); + this.v2LedgerInfo = v2LedgerInfo; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2LedgerInfoResponse other = (V2LedgerInfoResponse) o; + return + Utils.enhancedDeepEquals(this.v2LedgerInfo, other.v2LedgerInfo); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2LedgerInfo); + } + + @Override + public String toString() { + return Utils.toString(V2LedgerInfoResponse.class, + "v2LedgerInfo", v2LedgerInfo); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2LedgerInfo = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2LedgerInfo(V2LedgerInfo v2LedgerInfo) { + Utils.checkNotNull(v2LedgerInfo, "v2LedgerInfo"); + this.v2LedgerInfo = Optional.ofNullable(v2LedgerInfo); + return this; + } + + public Builder v2LedgerInfo(Optional v2LedgerInfo) { + Utils.checkNotNull(v2LedgerInfo, "v2LedgerInfo"); + this.v2LedgerInfo = v2LedgerInfo; + return this; + } + + public V2LedgerInfoResponse build() { + + return new V2LedgerInfoResponse( + v2LedgerInfo); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoStorage.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoStorage.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoStorage.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoStorage.java index 6cff29d43..f5553d9b2 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoStorage.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerInfoStorage.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponse.java index 080577d5d..dea7b1102 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponseCursor.java index af3d8e295..e23b43aa8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerListResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LedgerListResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Log.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Log.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Log.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2Log.java index a5078f09e..2b0e899da 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Log.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Log.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -32,7 +32,7 @@ public class V2Log { * - INSERTED_SCHEMA: V2LogDataInsertedSchema */ @JsonProperty("data") - private V2LogData data; + private Data data; /** * Timestamp when the operation was recorded @@ -67,7 +67,7 @@ public class V2Log { @JsonCreator public V2Log( - @JsonProperty("data") V2LogData data, + @JsonProperty("data") Data data, @JsonProperty("date") OffsetDateTime date, @JsonProperty("hash") String hash, @JsonProperty("id") BigInteger id, @@ -88,7 +88,7 @@ public V2Log( } public V2Log( - V2LogData data, + Data data, OffsetDateTime date, String hash, BigInteger id, @@ -106,7 +106,7 @@ public V2Log( * - INSERTED_SCHEMA: V2LogDataInsertedSchema */ @JsonIgnore - public V2LogData data() { + public Data data() { return data; } @@ -163,7 +163,7 @@ public static Builder builder() { * - DELETE_METADATA: V2LogDataDeleteMetadata * - INSERTED_SCHEMA: V2LogDataInsertedSchema */ - public V2Log withData(V2LogData data) { + public V2Log withData(Data data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -271,7 +271,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private V2LogData data; + private Data data; private OffsetDateTime date; @@ -296,7 +296,7 @@ private Builder() { * - DELETE_METADATA: V2LogDataDeleteMetadata * - INSERTED_SCHEMA: V2LogDataInsertedSchema */ - public Builder data(V2LogData data) { + public Builder data(Data data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadata.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadata.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadata.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadata.java index e092951ea..b87297621 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadata.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadata.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetId.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetId.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetId.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetId.java index 86daadaf2..53bc56440 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetId.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetId.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetType.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetType.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetType.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetType.java index d5975852b..3da5edc7d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataDeleteMetadataTargetType.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataDeleteMetadataTargetType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataInsertedSchema.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataInsertedSchema.java new file mode 100644 index 000000000..efe925b7b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataInsertedSchema.java @@ -0,0 +1,105 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2LogDataInsertedSchema + * + *

Payload for INSERTED_SCHEMA log entries. Contains the schema that was inserted into the ledger. + */ +public class V2LogDataInsertedSchema { + /** + * Complete schema structure with metadata + */ + @JsonProperty("schema") + private V2SchemaData1 v2SchemaData; + + @JsonCreator + public V2LogDataInsertedSchema( + @JsonProperty("schema") V2SchemaData1 v2SchemaData) { + Utils.checkNotNull(v2SchemaData, "v2SchemaData"); + this.v2SchemaData = v2SchemaData; + } + + /** + * Complete schema structure with metadata + */ + @JsonIgnore + public V2SchemaData1 v2SchemaData() { + return v2SchemaData; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Complete schema structure with metadata + */ + public V2LogDataInsertedSchema withV2SchemaData(V2SchemaData1 v2SchemaData) { + Utils.checkNotNull(v2SchemaData, "v2SchemaData"); + this.v2SchemaData = v2SchemaData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2LogDataInsertedSchema other = (V2LogDataInsertedSchema) o; + return + Utils.enhancedDeepEquals(this.v2SchemaData, other.v2SchemaData); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2SchemaData); + } + + @Override + public String toString() { + return Utils.toString(V2LogDataInsertedSchema.class, + "v2SchemaData", v2SchemaData); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2SchemaData1 v2SchemaData; + + private Builder() { + // force use of static builder() method + } + + + /** + * Complete schema structure with metadata + */ + public Builder v2SchemaData(V2SchemaData1 v2SchemaData) { + Utils.checkNotNull(v2SchemaData, "v2SchemaData"); + this.v2SchemaData = v2SchemaData; + return this; + } + + public V2LogDataInsertedSchema build() { + + return new V2LogDataInsertedSchema( + v2SchemaData); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataNewTransaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataNewTransaction.java new file mode 100644 index 000000000..54c055e19 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataNewTransaction.java @@ -0,0 +1,148 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Map; + +/** + * V2LogDataNewTransaction + * + *

Payload for NEW_TRANSACTION log entries. Contains the created transaction and any account metadata + * set during creation. + */ +public class V2LogDataNewTransaction { + /** + * Transaction structure as it appears in log payloads + */ + @JsonProperty("transaction") + private V2LogTransaction v2LogTransaction; + + /** + * Metadata applied to accounts involved in the transaction + */ + @JsonProperty("accountMetadata") + private Map> accountMetadata; + + @JsonCreator + public V2LogDataNewTransaction( + @JsonProperty("transaction") V2LogTransaction v2LogTransaction, + @JsonProperty("accountMetadata") Map> accountMetadata) { + Utils.checkNotNull(v2LogTransaction, "v2LogTransaction"); + accountMetadata = Utils.emptyMapIfNull(accountMetadata); + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.v2LogTransaction = v2LogTransaction; + this.accountMetadata = accountMetadata; + } + + /** + * Transaction structure as it appears in log payloads + */ + @JsonIgnore + public V2LogTransaction v2LogTransaction() { + return v2LogTransaction; + } + + /** + * Metadata applied to accounts involved in the transaction + */ + @JsonIgnore + public Map> accountMetadata() { + return accountMetadata; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Transaction structure as it appears in log payloads + */ + public V2LogDataNewTransaction withV2LogTransaction(V2LogTransaction v2LogTransaction) { + Utils.checkNotNull(v2LogTransaction, "v2LogTransaction"); + this.v2LogTransaction = v2LogTransaction; + return this; + } + + /** + * Metadata applied to accounts involved in the transaction + */ + public V2LogDataNewTransaction withAccountMetadata(Map> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2LogDataNewTransaction other = (V2LogDataNewTransaction) o; + return + Utils.enhancedDeepEquals(this.v2LogTransaction, other.v2LogTransaction) && + Utils.enhancedDeepEquals(this.accountMetadata, other.accountMetadata); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2LogTransaction, accountMetadata); + } + + @Override + public String toString() { + return Utils.toString(V2LogDataNewTransaction.class, + "v2LogTransaction", v2LogTransaction, + "accountMetadata", accountMetadata); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2LogTransaction v2LogTransaction; + + private Map> accountMetadata; + + private Builder() { + // force use of static builder() method + } + + + /** + * Transaction structure as it appears in log payloads + */ + public Builder v2LogTransaction(V2LogTransaction v2LogTransaction) { + Utils.checkNotNull(v2LogTransaction, "v2LogTransaction"); + this.v2LogTransaction = v2LogTransaction; + return this; + } + + + /** + * Metadata applied to accounts involved in the transaction + */ + public Builder accountMetadata(Map> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + public V2LogDataNewTransaction build() { + + return new V2LogDataNewTransaction( + v2LogTransaction, accountMetadata); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataRevertedTransaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataRevertedTransaction.java new file mode 100644 index 000000000..de101472c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataRevertedTransaction.java @@ -0,0 +1,146 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2LogDataRevertedTransaction + * + *

Payload for REVERTED_TRANSACTION log entries. Contains both the original reverted transaction and + * the new reverting transaction. + */ +public class V2LogDataRevertedTransaction { + /** + * Transaction structure as it appears in log payloads + */ + @JsonProperty("revertedTransaction") + private V2LogTransaction v2LogTransaction; + + /** + * Transaction structure as it appears in log payloads + */ + @JsonProperty("transaction") + private V2LogTransaction v2LogTransaction1; + + @JsonCreator + public V2LogDataRevertedTransaction( + @JsonProperty("revertedTransaction") V2LogTransaction v2LogTransaction, + @JsonProperty("transaction") V2LogTransaction v2LogTransaction1) { + Utils.checkNotNull(v2LogTransaction, "v2LogTransaction"); + Utils.checkNotNull(v2LogTransaction1, "v2LogTransaction1"); + this.v2LogTransaction = v2LogTransaction; + this.v2LogTransaction1 = v2LogTransaction1; + } + + /** + * Transaction structure as it appears in log payloads + */ + @JsonIgnore + public V2LogTransaction v2LogTransaction() { + return v2LogTransaction; + } + + /** + * Transaction structure as it appears in log payloads + */ + @JsonIgnore + public V2LogTransaction v2LogTransaction1() { + return v2LogTransaction1; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Transaction structure as it appears in log payloads + */ + public V2LogDataRevertedTransaction withV2LogTransaction(V2LogTransaction v2LogTransaction) { + Utils.checkNotNull(v2LogTransaction, "v2LogTransaction"); + this.v2LogTransaction = v2LogTransaction; + return this; + } + + /** + * Transaction structure as it appears in log payloads + */ + public V2LogDataRevertedTransaction withV2LogTransaction1(V2LogTransaction v2LogTransaction1) { + Utils.checkNotNull(v2LogTransaction1, "v2LogTransaction1"); + this.v2LogTransaction1 = v2LogTransaction1; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2LogDataRevertedTransaction other = (V2LogDataRevertedTransaction) o; + return + Utils.enhancedDeepEquals(this.v2LogTransaction, other.v2LogTransaction) && + Utils.enhancedDeepEquals(this.v2LogTransaction1, other.v2LogTransaction1); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2LogTransaction, v2LogTransaction1); + } + + @Override + public String toString() { + return Utils.toString(V2LogDataRevertedTransaction.class, + "v2LogTransaction", v2LogTransaction, + "v2LogTransaction1", v2LogTransaction1); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2LogTransaction v2LogTransaction; + + private V2LogTransaction v2LogTransaction1; + + private Builder() { + // force use of static builder() method + } + + + /** + * Transaction structure as it appears in log payloads + */ + public Builder v2LogTransaction(V2LogTransaction v2LogTransaction) { + Utils.checkNotNull(v2LogTransaction, "v2LogTransaction"); + this.v2LogTransaction = v2LogTransaction; + return this; + } + + + /** + * Transaction structure as it appears in log payloads + */ + public Builder v2LogTransaction1(V2LogTransaction v2LogTransaction1) { + Utils.checkNotNull(v2LogTransaction1, "v2LogTransaction1"); + this.v2LogTransaction1 = v2LogTransaction1; + return this; + } + + public V2LogDataRevertedTransaction build() { + + return new V2LogDataRevertedTransaction( + v2LogTransaction, v2LogTransaction1); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadata.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadata.java similarity index 78% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadata.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadata.java index c649bf87d..fe0af3abb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadata.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadata.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,7 +19,7 @@ public class V2LogDataSetMetadata { @JsonProperty("metadata") - private Map metadata; + private Map v2Metadata; @JsonProperty("targetId") @@ -33,21 +33,21 @@ public class V2LogDataSetMetadata { @JsonCreator public V2LogDataSetMetadata( - @JsonProperty("metadata") Map metadata, + @JsonProperty("metadata") Map v2Metadata, @JsonProperty("targetId") V2LogDataSetMetadataTargetId targetId, @JsonProperty("targetType") V2LogDataSetMetadataTargetType targetType) { - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); + v2Metadata = Utils.emptyMapIfNull(v2Metadata); + Utils.checkNotNull(v2Metadata, "v2Metadata"); Utils.checkNotNull(targetId, "targetId"); Utils.checkNotNull(targetType, "targetType"); - this.metadata = metadata; + this.v2Metadata = v2Metadata; this.targetId = targetId; this.targetType = targetType; } @JsonIgnore - public Map metadata() { - return metadata; + public Map v2Metadata() { + return v2Metadata; } @JsonIgnore @@ -68,9 +68,9 @@ public static Builder builder() { } - public V2LogDataSetMetadata withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; + public V2LogDataSetMetadata withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; return this; } @@ -99,7 +99,7 @@ public boolean equals(java.lang.Object o) { } V2LogDataSetMetadata other = (V2LogDataSetMetadata) o; return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && Utils.enhancedDeepEquals(this.targetId, other.targetId) && Utils.enhancedDeepEquals(this.targetType, other.targetType); } @@ -107,13 +107,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - metadata, targetId, targetType); + v2Metadata, targetId, targetType); } @Override public String toString() { return Utils.toString(V2LogDataSetMetadata.class, - "metadata", metadata, + "v2Metadata", v2Metadata, "targetId", targetId, "targetType", targetType); } @@ -121,7 +121,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Map metadata; + private Map v2Metadata; private V2LogDataSetMetadataTargetId targetId; @@ -132,9 +132,9 @@ private Builder() { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; return this; } @@ -158,7 +158,7 @@ public Builder targetType(V2LogDataSetMetadataTargetType targetType) { public V2LogDataSetMetadata build() { return new V2LogDataSetMetadata( - metadata, targetId, targetType); + v2Metadata, targetId, targetType); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetId.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetId.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetId.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetId.java index 9e2d53fad..5aaefac3d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetId.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetId.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetType.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetType.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetType.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetType.java index 48ee67f37..4f0dc8ef8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataSetMetadataTargetType.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogDataSetMetadataTargetType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2LogTransaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogTransaction.java new file mode 100644 index 000000000..f0db12a5f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogTransaction.java @@ -0,0 +1,670 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + +/** + * V2LogTransaction + * + *

Transaction structure as it appears in log payloads + */ +public class V2LogTransaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postCommitVolumes") + private Optional>> v2AggregatedVolumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postCommitEffectiveVolumes") + private Optional>> v2AggregatedVolumes1; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preCommitVolumes") + private Optional>> v2AggregatedVolumes2; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preCommitEffectiveVolumes") + private Optional>> v2AggregatedVolumes3; + + + @JsonProperty("metadata") + private Map v2Metadata; + + + @JsonProperty("id") + private BigInteger id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("insertedAt") + private Optional insertedAt; + + + @JsonProperty("postings") + private List postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + /** + * Indicates if the transaction has been reverted + */ + @JsonProperty("reverted") + private boolean reverted; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("revertedAt") + private Optional revertedAt; + + /** + * Transaction template used + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("template") + private Optional template; + + + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + private Optional updatedAt; + + @JsonCreator + public V2LogTransaction( + @JsonProperty("postCommitVolumes") Optional>> v2AggregatedVolumes, + @JsonProperty("postCommitEffectiveVolumes") Optional>> v2AggregatedVolumes1, + @JsonProperty("preCommitVolumes") Optional>> v2AggregatedVolumes2, + @JsonProperty("preCommitEffectiveVolumes") Optional>> v2AggregatedVolumes3, + @JsonProperty("metadata") Map v2Metadata, + @JsonProperty("id") BigInteger id, + @JsonProperty("insertedAt") Optional insertedAt, + @JsonProperty("postings") List postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("reverted") boolean reverted, + @JsonProperty("revertedAt") Optional revertedAt, + @JsonProperty("template") Optional template, + @JsonProperty("timestamp") OffsetDateTime timestamp, + @JsonProperty("updatedAt") Optional updatedAt) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + v2Metadata = Utils.emptyMapIfNull(v2Metadata); + Utils.checkNotNull(v2Metadata, "v2Metadata"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(insertedAt, "insertedAt"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(reverted, "reverted"); + Utils.checkNotNull(revertedAt, "revertedAt"); + Utils.checkNotNull(template, "template"); + Utils.checkNotNull(timestamp, "timestamp"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.v2AggregatedVolumes = v2AggregatedVolumes; + this.v2AggregatedVolumes1 = v2AggregatedVolumes1; + this.v2AggregatedVolumes2 = v2AggregatedVolumes2; + this.v2AggregatedVolumes3 = v2AggregatedVolumes3; + this.v2Metadata = v2Metadata; + this.id = id; + this.insertedAt = insertedAt; + this.postings = postings; + this.reference = reference; + this.reverted = reverted; + this.revertedAt = revertedAt; + this.template = template; + this.timestamp = timestamp; + this.updatedAt = updatedAt; + } + + public V2LogTransaction( + Map v2Metadata, + BigInteger id, + List postings, + boolean reverted, + OffsetDateTime timestamp) { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), v2Metadata, id, + Optional.empty(), postings, Optional.empty(), + reverted, Optional.empty(), Optional.empty(), + timestamp, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes() { + return (Optional>>) v2AggregatedVolumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes1() { + return (Optional>>) v2AggregatedVolumes1; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes2() { + return (Optional>>) v2AggregatedVolumes2; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes3() { + return (Optional>>) v2AggregatedVolumes3; + } + + @JsonIgnore + public Map v2Metadata() { + return v2Metadata; + } + + @JsonIgnore + public BigInteger id() { + return id; + } + + @JsonIgnore + public Optional insertedAt() { + return insertedAt; + } + + @JsonIgnore + public List postings() { + return postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + /** + * Indicates if the transaction has been reverted + */ + @JsonIgnore + public boolean reverted() { + return reverted; + } + + @JsonIgnore + public Optional revertedAt() { + return revertedAt; + } + + /** + * Transaction template used + */ + @JsonIgnore + public Optional template() { + return template; + } + + @JsonIgnore + public OffsetDateTime timestamp() { + return timestamp; + } + + @JsonIgnore + public Optional updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2LogTransaction withV2AggregatedVolumes(Map> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = Optional.ofNullable(v2AggregatedVolumes); + return this; + } + + + public V2LogTransaction withV2AggregatedVolumes(Optional>> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = v2AggregatedVolumes; + return this; + } + + public V2LogTransaction withV2AggregatedVolumes1(Map> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = Optional.ofNullable(v2AggregatedVolumes1); + return this; + } + + + public V2LogTransaction withV2AggregatedVolumes1(Optional>> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = v2AggregatedVolumes1; + return this; + } + + public V2LogTransaction withV2AggregatedVolumes2(Map> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = Optional.ofNullable(v2AggregatedVolumes2); + return this; + } + + + public V2LogTransaction withV2AggregatedVolumes2(Optional>> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = v2AggregatedVolumes2; + return this; + } + + public V2LogTransaction withV2AggregatedVolumes3(Map> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = Optional.ofNullable(v2AggregatedVolumes3); + return this; + } + + + public V2LogTransaction withV2AggregatedVolumes3(Optional>> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = v2AggregatedVolumes3; + return this; + } + + public V2LogTransaction withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public V2LogTransaction withId(long id) { + this.id = BigInteger.valueOf(id); + return this; + } + + public V2LogTransaction withId(BigInteger id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2LogTransaction withInsertedAt(OffsetDateTime insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = Optional.ofNullable(insertedAt); + return this; + } + + + public V2LogTransaction withInsertedAt(Optional insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = insertedAt; + return this; + } + + public V2LogTransaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public V2LogTransaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public V2LogTransaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + /** + * Indicates if the transaction has been reverted + */ + public V2LogTransaction withReverted(boolean reverted) { + Utils.checkNotNull(reverted, "reverted"); + this.reverted = reverted; + return this; + } + + public V2LogTransaction withRevertedAt(OffsetDateTime revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = Optional.ofNullable(revertedAt); + return this; + } + + + public V2LogTransaction withRevertedAt(Optional revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = revertedAt; + return this; + } + + /** + * Transaction template used + */ + public V2LogTransaction withTemplate(String template) { + Utils.checkNotNull(template, "template"); + this.template = Optional.ofNullable(template); + return this; + } + + + /** + * Transaction template used + */ + public V2LogTransaction withTemplate(Optional template) { + Utils.checkNotNull(template, "template"); + this.template = template; + return this; + } + + public V2LogTransaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public V2LogTransaction withUpdatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + + public V2LogTransaction withUpdatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2LogTransaction other = (V2LogTransaction) o; + return + Utils.enhancedDeepEquals(this.v2AggregatedVolumes, other.v2AggregatedVolumes) && + Utils.enhancedDeepEquals(this.v2AggregatedVolumes1, other.v2AggregatedVolumes1) && + Utils.enhancedDeepEquals(this.v2AggregatedVolumes2, other.v2AggregatedVolumes2) && + Utils.enhancedDeepEquals(this.v2AggregatedVolumes3, other.v2AggregatedVolumes3) && + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.insertedAt, other.insertedAt) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.reverted, other.reverted) && + Utils.enhancedDeepEquals(this.revertedAt, other.revertedAt) && + Utils.enhancedDeepEquals(this.template, other.template) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2AggregatedVolumes, v2AggregatedVolumes1, v2AggregatedVolumes2, + v2AggregatedVolumes3, v2Metadata, id, + insertedAt, postings, reference, + reverted, revertedAt, template, + timestamp, updatedAt); + } + + @Override + public String toString() { + return Utils.toString(V2LogTransaction.class, + "v2AggregatedVolumes", v2AggregatedVolumes, + "v2AggregatedVolumes1", v2AggregatedVolumes1, + "v2AggregatedVolumes2", v2AggregatedVolumes2, + "v2AggregatedVolumes3", v2AggregatedVolumes3, + "v2Metadata", v2Metadata, + "id", id, + "insertedAt", insertedAt, + "postings", postings, + "reference", reference, + "reverted", reverted, + "revertedAt", revertedAt, + "template", template, + "timestamp", timestamp, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional>> v2AggregatedVolumes = Optional.empty(); + + private Optional>> v2AggregatedVolumes1 = Optional.empty(); + + private Optional>> v2AggregatedVolumes2 = Optional.empty(); + + private Optional>> v2AggregatedVolumes3 = Optional.empty(); + + private Map v2Metadata; + + private BigInteger id; + + private Optional insertedAt = Optional.empty(); + + private List postings; + + private Optional reference = Optional.empty(); + + private Boolean reverted; + + private Optional revertedAt = Optional.empty(); + + private Optional template = Optional.empty(); + + private OffsetDateTime timestamp; + + private Optional updatedAt = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2AggregatedVolumes(Map> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = Optional.ofNullable(v2AggregatedVolumes); + return this; + } + + public Builder v2AggregatedVolumes(Optional>> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = v2AggregatedVolumes; + return this; + } + + + public Builder v2AggregatedVolumes1(Map> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = Optional.ofNullable(v2AggregatedVolumes1); + return this; + } + + public Builder v2AggregatedVolumes1(Optional>> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = v2AggregatedVolumes1; + return this; + } + + + public Builder v2AggregatedVolumes2(Map> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = Optional.ofNullable(v2AggregatedVolumes2); + return this; + } + + public Builder v2AggregatedVolumes2(Optional>> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = v2AggregatedVolumes2; + return this; + } + + + public Builder v2AggregatedVolumes3(Map> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = Optional.ofNullable(v2AggregatedVolumes3); + return this; + } + + public Builder v2AggregatedVolumes3(Optional>> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = v2AggregatedVolumes3; + return this; + } + + + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + + public Builder id(long id) { + this.id = BigInteger.valueOf(id); + return this; + } + + public Builder id(BigInteger id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder insertedAt(OffsetDateTime insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = Optional.ofNullable(insertedAt); + return this; + } + + public Builder insertedAt(Optional insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = insertedAt; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + /** + * Indicates if the transaction has been reverted + */ + public Builder reverted(boolean reverted) { + Utils.checkNotNull(reverted, "reverted"); + this.reverted = reverted; + return this; + } + + + public Builder revertedAt(OffsetDateTime revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = Optional.ofNullable(revertedAt); + return this; + } + + public Builder revertedAt(Optional revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = revertedAt; + return this; + } + + + /** + * Transaction template used + */ + public Builder template(String template) { + Utils.checkNotNull(template, "template"); + this.template = Optional.ofNullable(template); + return this; + } + + /** + * Transaction template used + */ + public Builder template(Optional template) { + Utils.checkNotNull(template, "template"); + this.template = template; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + + public Builder updatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + public Builder updatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public V2LogTransaction build() { + + return new V2LogTransaction( + v2AggregatedVolumes, v2AggregatedVolumes1, v2AggregatedVolumes2, + v2AggregatedVolumes3, v2Metadata, id, + insertedAt, postings, reference, + reverted, revertedAt, template, + timestamp, updatedAt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogType.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogType.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogType.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogType.java index cd3aeae15..2c3ee6fd5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogType.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponse.java index f22c24de0..f703d5b18 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseCursor.java index 628f2b078..21140e72b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseResource.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseResource.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseResource.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseResource.java index 1c114d8e8..9fde8e588 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogsCursorResponseResource.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2LogsCursorResponseResource.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfo.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfo.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfo.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfo.java index 2eeae67c6..1eda05a54 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfo.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfo.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfoState.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfoState.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfoState.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfoState.java index 3e01cdaca..0636d7be7 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2MigrationInfoState.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2MigrationInfoState.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelineConfiguration.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelineConfiguration.java new file mode 100644 index 000000000..a0a8763c6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelineConfiguration.java @@ -0,0 +1,280 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class V2PipelineConfiguration { + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("enabled") + private Optional enabled; + + + @JsonProperty("exporterID") + private String exporterID; + + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lastLogID") + private Optional lastLogID; + + + @JsonProperty("ledger") + private String ledger; + + @JsonCreator + public V2PipelineConfiguration( + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("enabled") Optional enabled, + @JsonProperty("exporterID") String exporterID, + @JsonProperty("id") String id, + @JsonProperty("lastLogID") Optional lastLogID, + @JsonProperty("ledger") String ledger) { + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(enabled, "enabled"); + Utils.checkNotNull(exporterID, "exporterID"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(lastLogID, "lastLogID"); + Utils.checkNotNull(ledger, "ledger"); + this.createdAt = createdAt; + this.enabled = enabled; + this.exporterID = exporterID; + this.id = id; + this.lastLogID = lastLogID; + this.ledger = ledger; + } + + public V2PipelineConfiguration( + OffsetDateTime createdAt, + String exporterID, + String id, + String ledger) { + this(createdAt, Optional.empty(), exporterID, + id, Optional.empty(), ledger); + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public Optional enabled() { + return enabled; + } + + @JsonIgnore + public String exporterID() { + return exporterID; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public Optional lastLogID() { + return lastLogID; + } + + @JsonIgnore + public String ledger() { + return ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PipelineConfiguration withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V2PipelineConfiguration withEnabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + + public V2PipelineConfiguration withEnabled(Optional enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + public V2PipelineConfiguration withExporterID(String exporterID) { + Utils.checkNotNull(exporterID, "exporterID"); + this.exporterID = exporterID; + return this; + } + + public V2PipelineConfiguration withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2PipelineConfiguration withLastLogID(long lastLogID) { + Utils.checkNotNull(lastLogID, "lastLogID"); + this.lastLogID = Optional.ofNullable(lastLogID); + return this; + } + + + public V2PipelineConfiguration withLastLogID(Optional lastLogID) { + Utils.checkNotNull(lastLogID, "lastLogID"); + this.lastLogID = lastLogID; + return this; + } + + public V2PipelineConfiguration withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PipelineConfiguration other = (V2PipelineConfiguration) o; + return + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.enabled, other.enabled) && + Utils.enhancedDeepEquals(this.exporterID, other.exporterID) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.lastLogID, other.lastLogID) && + Utils.enhancedDeepEquals(this.ledger, other.ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + createdAt, enabled, exporterID, + id, lastLogID, ledger); + } + + @Override + public String toString() { + return Utils.toString(V2PipelineConfiguration.class, + "createdAt", createdAt, + "enabled", enabled, + "exporterID", exporterID, + "id", id, + "lastLogID", lastLogID, + "ledger", ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private OffsetDateTime createdAt; + + private Optional enabled = Optional.empty(); + + private String exporterID; + + private String id; + + private Optional lastLogID = Optional.empty(); + + private String ledger; + + private Builder() { + // force use of static builder() method + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder enabled(boolean enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = Optional.ofNullable(enabled); + return this; + } + + public Builder enabled(Optional enabled) { + Utils.checkNotNull(enabled, "enabled"); + this.enabled = enabled; + return this; + } + + + public Builder exporterID(String exporterID) { + Utils.checkNotNull(exporterID, "exporterID"); + this.exporterID = exporterID; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder lastLogID(long lastLogID) { + Utils.checkNotNull(lastLogID, "lastLogID"); + this.lastLogID = Optional.ofNullable(lastLogID); + return this; + } + + public Builder lastLogID(Optional lastLogID) { + Utils.checkNotNull(lastLogID, "lastLogID"); + this.lastLogID = lastLogID; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + public V2PipelineConfiguration build() { + + return new V2PipelineConfiguration( + createdAt, enabled, exporterID, + id, lastLogID, ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponse.java new file mode 100644 index 000000000..55b4480c7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2PipelinesCursorResponse + * + *

Pipelines list + */ +public class V2PipelinesCursorResponse { + + @JsonProperty("cursor") + private V2PipelinesCursorResponseCursor cursor; + + @JsonCreator + public V2PipelinesCursorResponse( + @JsonProperty("cursor") V2PipelinesCursorResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + } + + @JsonIgnore + public V2PipelinesCursorResponseCursor cursor() { + return cursor; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PipelinesCursorResponse withCursor(V2PipelinesCursorResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PipelinesCursorResponse other = (V2PipelinesCursorResponse) o; + return + Utils.enhancedDeepEquals(this.cursor, other.cursor); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursor); + } + + @Override + public String toString() { + return Utils.toString(V2PipelinesCursorResponse.class, + "cursor", cursor); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2PipelinesCursorResponseCursor cursor; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursor(V2PipelinesCursorResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + public V2PipelinesCursorResponse build() { + + return new V2PipelinesCursorResponse( + cursor); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponseCursor.java new file mode 100644 index 000000000..3d3e0d999 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2PipelinesCursorResponseCursor.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class V2PipelinesCursorResponseCursor { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public V2PipelinesCursorResponseCursor( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public V2PipelinesCursorResponseCursor( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PipelinesCursorResponseCursor withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public V2PipelinesCursorResponseCursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public V2PipelinesCursorResponseCursor withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public V2PipelinesCursorResponseCursor withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public V2PipelinesCursorResponseCursor withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public V2PipelinesCursorResponseCursor withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public V2PipelinesCursorResponseCursor withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PipelinesCursorResponseCursor other = (V2PipelinesCursorResponseCursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(V2PipelinesCursorResponseCursor.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public V2PipelinesCursorResponseCursor build() { + + return new V2PipelinesCursorResponseCursor( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransaction.java new file mode 100644 index 000000000..ae63425ac --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransaction.java @@ -0,0 +1,438 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class V2PostTransaction { + /** + * The numscript runtime used to execute the script. Uses "machine" by default, unless the + * "--experimental-numscript-interpreter" feature flag is passed. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("runtime") + private Optional runtime; + + + @JsonProperty("metadata") + private Map v2Metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("accountMetadata") + private Optional>> accountMetadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("force") + private Optional force; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postings") + private Optional> postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("script") + private Optional script; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public V2PostTransaction( + @JsonProperty("runtime") Optional runtime, + @JsonProperty("metadata") Map v2Metadata, + @JsonProperty("accountMetadata") Optional>> accountMetadata, + @JsonProperty("force") Optional force, + @JsonProperty("postings") Optional> postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("script") Optional script, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(runtime, "runtime"); + v2Metadata = Utils.emptyMapIfNull(v2Metadata); + Utils.checkNotNull(v2Metadata, "v2Metadata"); + Utils.checkNotNull(accountMetadata, "accountMetadata"); + Utils.checkNotNull(force, "force"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(script, "script"); + Utils.checkNotNull(timestamp, "timestamp"); + this.runtime = runtime; + this.v2Metadata = v2Metadata; + this.accountMetadata = accountMetadata; + this.force = force; + this.postings = postings; + this.reference = reference; + this.script = script; + this.timestamp = timestamp; + } + + public V2PostTransaction( + Map v2Metadata) { + this(Optional.empty(), v2Metadata, Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * The numscript runtime used to execute the script. Uses "machine" by default, unless the + * "--experimental-numscript-interpreter" feature flag is passed. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional runtime() { + return (Optional) runtime; + } + + @JsonIgnore + public Map v2Metadata() { + return v2Metadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> accountMetadata() { + return (Optional>>) accountMetadata; + } + + @JsonIgnore + public Optional force() { + return force; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> postings() { + return (Optional>) postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional script() { + return (Optional) script; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The numscript runtime used to execute the script. Uses "machine" by default, unless the + * "--experimental-numscript-interpreter" feature flag is passed. + */ + public V2PostTransaction withRuntime(Runtime runtime) { + Utils.checkNotNull(runtime, "runtime"); + this.runtime = Optional.ofNullable(runtime); + return this; + } + + + /** + * The numscript runtime used to execute the script. Uses "machine" by default, unless the + * "--experimental-numscript-interpreter" feature flag is passed. + */ + public V2PostTransaction withRuntime(Optional runtime) { + Utils.checkNotNull(runtime, "runtime"); + this.runtime = runtime; + return this; + } + + public V2PostTransaction withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public V2PostTransaction withAccountMetadata(Map> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = Optional.ofNullable(accountMetadata); + return this; + } + + + public V2PostTransaction withAccountMetadata(Optional>> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + public V2PostTransaction withForce(boolean force) { + Utils.checkNotNull(force, "force"); + this.force = Optional.ofNullable(force); + return this; + } + + + public V2PostTransaction withForce(Optional force) { + Utils.checkNotNull(force, "force"); + this.force = force; + return this; + } + + public V2PostTransaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + + public V2PostTransaction withPostings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public V2PostTransaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public V2PostTransaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V2PostTransaction withScript(V2PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + + public V2PostTransaction withScript(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + public V2PostTransaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public V2PostTransaction withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PostTransaction other = (V2PostTransaction) o; + return + Utils.enhancedDeepEquals(this.runtime, other.runtime) && + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && + Utils.enhancedDeepEquals(this.accountMetadata, other.accountMetadata) && + Utils.enhancedDeepEquals(this.force, other.force) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.script, other.script) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + runtime, v2Metadata, accountMetadata, + force, postings, reference, + script, timestamp); + } + + @Override + public String toString() { + return Utils.toString(V2PostTransaction.class, + "runtime", runtime, + "v2Metadata", v2Metadata, + "accountMetadata", accountMetadata, + "force", force, + "postings", postings, + "reference", reference, + "script", script, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional runtime = Optional.empty(); + + private Map v2Metadata; + + private Optional>> accountMetadata = Optional.empty(); + + private Optional force = Optional.empty(); + + private Optional> postings = Optional.empty(); + + private Optional reference = Optional.empty(); + + private Optional script = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The numscript runtime used to execute the script. Uses "machine" by default, unless the + * "--experimental-numscript-interpreter" feature flag is passed. + */ + public Builder runtime(Runtime runtime) { + Utils.checkNotNull(runtime, "runtime"); + this.runtime = Optional.ofNullable(runtime); + return this; + } + + /** + * The numscript runtime used to execute the script. Uses "machine" by default, unless the + * "--experimental-numscript-interpreter" feature flag is passed. + */ + public Builder runtime(Optional runtime) { + Utils.checkNotNull(runtime, "runtime"); + this.runtime = runtime; + return this; + } + + + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + + public Builder accountMetadata(Map> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = Optional.ofNullable(accountMetadata); + return this; + } + + public Builder accountMetadata(Optional>> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + + public Builder force(boolean force) { + Utils.checkNotNull(force, "force"); + this.force = Optional.ofNullable(force); + return this; + } + + public Builder force(Optional force) { + Utils.checkNotNull(force, "force"); + this.force = force; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + public Builder postings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder script(V2PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + public Builder script(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public V2PostTransaction build() { + + return new V2PostTransaction( + runtime, v2Metadata, accountMetadata, + force, postings, reference, + script, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransactionScript.java new file mode 100644 index 000000000..da5ae39c0 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2PostTransactionScript.java @@ -0,0 +1,200 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V2PostTransactionScript { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("plain") + private Optional plain; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("template") + private Optional template; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + @JsonCreator + public V2PostTransactionScript( + @JsonProperty("plain") Optional plain, + @JsonProperty("template") Optional template, + @JsonProperty("vars") Optional> vars) { + Utils.checkNotNull(plain, "plain"); + Utils.checkNotNull(template, "template"); + Utils.checkNotNull(vars, "vars"); + this.plain = plain; + this.template = template; + this.vars = vars; + } + + public V2PostTransactionScript() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional plain() { + return plain; + } + + @JsonIgnore + public Optional template() { + return template; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PostTransactionScript withPlain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = Optional.ofNullable(plain); + return this; + } + + + public V2PostTransactionScript withPlain(Optional plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + public V2PostTransactionScript withTemplate(String template) { + Utils.checkNotNull(template, "template"); + this.template = Optional.ofNullable(template); + return this; + } + + + public V2PostTransactionScript withTemplate(Optional template) { + Utils.checkNotNull(template, "template"); + this.template = template; + return this; + } + + public V2PostTransactionScript withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public V2PostTransactionScript withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PostTransactionScript other = (V2PostTransactionScript) o; + return + Utils.enhancedDeepEquals(this.plain, other.plain) && + Utils.enhancedDeepEquals(this.template, other.template) && + Utils.enhancedDeepEquals(this.vars, other.vars); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + plain, template, vars); + } + + @Override + public String toString() { + return Utils.toString(V2PostTransactionScript.class, + "plain", plain, + "template", template, + "vars", vars); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional plain = Optional.empty(); + + private Optional template = Optional.empty(); + + private Optional> vars = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder plain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = Optional.ofNullable(plain); + return this; + } + + public Builder plain(Optional plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + + public Builder template(String template) { + Utils.checkNotNull(template, "template"); + this.template = Optional.ofNullable(template); + return this; + } + + public Builder template(Optional template) { + Utils.checkNotNull(template, "template"); + this.template = template; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public V2PostTransactionScript build() { + + return new V2PostTransactionScript( + plain, template, vars); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2Posting.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Posting.java new file mode 100644 index 000000000..56eb6a3b5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Posting.java @@ -0,0 +1,190 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class V2Posting { + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("destination") + private String destination; + + + @JsonProperty("source") + private String source; + + @JsonCreator + public V2Posting( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset, + @JsonProperty("destination") String destination, + @JsonProperty("source") String source) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(source, "source"); + this.amount = amount; + this.asset = asset; + this.destination = destination; + this.source = source; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String destination() { + return destination; + } + + @JsonIgnore + public String source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Posting withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public V2Posting withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public V2Posting withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public V2Posting withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + public V2Posting withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Posting other = (V2Posting) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, destination, + source); + } + + @Override + public String toString() { + return Utils.toString(V2Posting.class, + "amount", amount, + "asset", asset, + "destination", destination, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private String destination; + + private String source; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public V2Posting build() { + + return new V2Posting( + amount, asset, destination, + source); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParams.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParams.java similarity index 92% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryParams.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParams.java index 8d54709b4..43381f8a6 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParams.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParams.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; @@ -48,10 +48,10 @@ public static V2QueryParams of(QueryTemplateVolumeParams value) { /** * Returns an instance of one of these types: *

    - *
  • {@code com.formance.formance_sdk.models.shared.QueryTemplateAccountParams}
  • - *
  • {@code com.formance.formance_sdk.models.shared.QueryTemplateTransactionParams}
  • - *
  • {@code com.formance.formance_sdk.models.shared.QueryTemplateLogParams}
  • - *
  • {@code com.formance.formance_sdk.models.shared.QueryTemplateVolumeParams}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.QueryTemplateAccountParams}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.QueryTemplateTransactionParams}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.QueryTemplateLogParams}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.QueryTemplateVolumeParams}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceAccounts.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceAccounts.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceAccounts.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceAccounts.java index 573d50217..95a00f859 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceAccounts.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceAccounts.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceLogs.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceLogs.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceLogs.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceLogs.java index c46978ee4..7bf6be016 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceLogs.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceLogs.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceTransactions.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceTransactions.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceTransactions.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceTransactions.java index 65635003e..44ef74298 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceTransactions.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceTransactions.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceVolumes.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceVolumes.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceVolumes.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceVolumes.java index f8af0607f..b9958aba1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryParamsResourceVolumes.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryParamsResourceVolumes.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryResource.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryResource.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryResource.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryResource.java index ca301ac44..bca6af841 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryResource.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryResource.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplate.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplate.java new file mode 100644 index 000000000..e8ed0b3a5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplate.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V2QueryTemplate { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("params") + private Optional v2QueryParams; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("resource") + private Optional v2QueryResource; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("body") + private Optional> body; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + @JsonCreator + public V2QueryTemplate( + @JsonProperty("params") Optional v2QueryParams, + @JsonProperty("resource") Optional v2QueryResource, + @JsonProperty("body") Optional> body, + @JsonProperty("description") Optional description, + @JsonProperty("vars") Optional> vars) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + Utils.checkNotNull(v2QueryResource, "v2QueryResource"); + Utils.checkNotNull(body, "body"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(vars, "vars"); + this.v2QueryParams = v2QueryParams; + this.v2QueryResource = v2QueryResource; + this.body = body; + this.description = description; + this.vars = vars; + } + + public V2QueryTemplate() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2QueryParams() { + return (Optional) v2QueryParams; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2QueryResource() { + return (Optional) v2QueryResource; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> body() { + return (Optional>) body; + } + + @JsonIgnore + public Optional description() { + return description; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2QueryTemplate withV2QueryParams(V2QueryParams v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = Optional.ofNullable(v2QueryParams); + return this; + } + + + public V2QueryTemplate withV2QueryParams(Optional v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = v2QueryParams; + return this; + } + + public V2QueryTemplate withV2QueryResource(V2QueryResource v2QueryResource) { + Utils.checkNotNull(v2QueryResource, "v2QueryResource"); + this.v2QueryResource = Optional.ofNullable(v2QueryResource); + return this; + } + + + public V2QueryTemplate withV2QueryResource(Optional v2QueryResource) { + Utils.checkNotNull(v2QueryResource, "v2QueryResource"); + this.v2QueryResource = v2QueryResource; + return this; + } + + public V2QueryTemplate withBody(Map body) { + Utils.checkNotNull(body, "body"); + this.body = Optional.ofNullable(body); + return this; + } + + + public V2QueryTemplate withBody(Optional> body) { + Utils.checkNotNull(body, "body"); + this.body = body; + return this; + } + + public V2QueryTemplate withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + public V2QueryTemplate withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + public V2QueryTemplate withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public V2QueryTemplate withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2QueryTemplate other = (V2QueryTemplate) o; + return + Utils.enhancedDeepEquals(this.v2QueryParams, other.v2QueryParams) && + Utils.enhancedDeepEquals(this.v2QueryResource, other.v2QueryResource) && + Utils.enhancedDeepEquals(this.body, other.body) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.vars, other.vars); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2QueryParams, v2QueryResource, body, + description, vars); + } + + @Override + public String toString() { + return Utils.toString(V2QueryTemplate.class, + "v2QueryParams", v2QueryParams, + "v2QueryResource", v2QueryResource, + "body", body, + "description", description, + "vars", vars); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2QueryParams = Optional.empty(); + + private Optional v2QueryResource = Optional.empty(); + + private Optional> body = Optional.empty(); + + private Optional description = Optional.empty(); + + private Optional> vars = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2QueryParams(V2QueryParams v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = Optional.ofNullable(v2QueryParams); + return this; + } + + public Builder v2QueryParams(Optional v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = v2QueryParams; + return this; + } + + + public Builder v2QueryResource(V2QueryResource v2QueryResource) { + Utils.checkNotNull(v2QueryResource, "v2QueryResource"); + this.v2QueryResource = Optional.ofNullable(v2QueryResource); + return this; + } + + public Builder v2QueryResource(Optional v2QueryResource) { + Utils.checkNotNull(v2QueryResource, "v2QueryResource"); + this.v2QueryResource = v2QueryResource; + return this; + } + + + public Builder body(Map body) { + Utils.checkNotNull(body, "body"); + this.body = Optional.ofNullable(body); + return this; + } + + public Builder body(Optional> body) { + Utils.checkNotNull(body, "body"); + this.body = body; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public V2QueryTemplate build() { + + return new V2QueryTemplate( + v2QueryParams, v2QueryResource, body, + description, vars); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplateVar.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplateVar.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplateVar.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplateVar.java index 6c6eb06c2..c97c356a0 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplateVar.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2QueryTemplateVar.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionRequest.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2RevertTransactionRequest.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionRequest.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2RevertTransactionRequest.java index 6af25fd2a..8ab992829 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2RevertTransactionRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData1.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData1.java new file mode 100644 index 000000000..6088e2ba5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData1.java @@ -0,0 +1,324 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + +/** + * V2SchemaData1 + * + *

Complete schema structure with metadata + */ +public class V2SchemaData1 { + /** + * Chart of account + */ + @JsonProperty("chart") + private Map v2ChartOfAccounts; + + /** + * Query templates + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("queries") + private Optional> v2QueryTemplates; + + /** + * Transaction templates + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transactions") + private Optional> v2TransactionTemplates; + + /** + * Schema creation timestamp + */ + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + /** + * Schema version + */ + @JsonProperty("version") + private String version; + + @JsonCreator + public V2SchemaData1( + @JsonProperty("chart") Map v2ChartOfAccounts, + @JsonProperty("queries") Optional> v2QueryTemplates, + @JsonProperty("transactions") Optional> v2TransactionTemplates, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("version") String version) { + v2ChartOfAccounts = Utils.emptyMapIfNull(v2ChartOfAccounts); + Utils.checkNotNull(v2ChartOfAccounts, "v2ChartOfAccounts"); + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(version, "version"); + this.v2ChartOfAccounts = v2ChartOfAccounts; + this.v2QueryTemplates = v2QueryTemplates; + this.v2TransactionTemplates = v2TransactionTemplates; + this.createdAt = createdAt; + this.version = version; + } + + public V2SchemaData1( + Map v2ChartOfAccounts, + OffsetDateTime createdAt, + String version) { + this(v2ChartOfAccounts, Optional.empty(), Optional.empty(), + createdAt, version); + } + + /** + * Chart of account + */ + @JsonIgnore + public Map v2ChartOfAccounts() { + return v2ChartOfAccounts; + } + + /** + * Query templates + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2QueryTemplates() { + return (Optional>) v2QueryTemplates; + } + + /** + * Transaction templates + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2TransactionTemplates() { + return (Optional>) v2TransactionTemplates; + } + + /** + * Schema creation timestamp + */ + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + /** + * Schema version + */ + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Chart of account + */ + public V2SchemaData1 withV2ChartOfAccounts(Map v2ChartOfAccounts) { + Utils.checkNotNull(v2ChartOfAccounts, "v2ChartOfAccounts"); + this.v2ChartOfAccounts = v2ChartOfAccounts; + return this; + } + + /** + * Query templates + */ + public V2SchemaData1 withV2QueryTemplates(Map v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = Optional.ofNullable(v2QueryTemplates); + return this; + } + + + /** + * Query templates + */ + public V2SchemaData1 withV2QueryTemplates(Optional> v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = v2QueryTemplates; + return this; + } + + /** + * Transaction templates + */ + public V2SchemaData1 withV2TransactionTemplates(Map v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = Optional.ofNullable(v2TransactionTemplates); + return this; + } + + + /** + * Transaction templates + */ + public V2SchemaData1 withV2TransactionTemplates(Optional> v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = v2TransactionTemplates; + return this; + } + + /** + * Schema creation timestamp + */ + public V2SchemaData1 withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * Schema version + */ + public V2SchemaData1 withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2SchemaData1 other = (V2SchemaData1) o; + return + Utils.enhancedDeepEquals(this.v2ChartOfAccounts, other.v2ChartOfAccounts) && + Utils.enhancedDeepEquals(this.v2QueryTemplates, other.v2QueryTemplates) && + Utils.enhancedDeepEquals(this.v2TransactionTemplates, other.v2TransactionTemplates) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ChartOfAccounts, v2QueryTemplates, v2TransactionTemplates, + createdAt, version); + } + + @Override + public String toString() { + return Utils.toString(V2SchemaData1.class, + "v2ChartOfAccounts", v2ChartOfAccounts, + "v2QueryTemplates", v2QueryTemplates, + "v2TransactionTemplates", v2TransactionTemplates, + "createdAt", createdAt, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map v2ChartOfAccounts; + + private Optional> v2QueryTemplates = Optional.empty(); + + private Optional> v2TransactionTemplates = Optional.empty(); + + private OffsetDateTime createdAt; + + private String version; + + private Builder() { + // force use of static builder() method + } + + + /** + * Chart of account + */ + public Builder v2ChartOfAccounts(Map v2ChartOfAccounts) { + Utils.checkNotNull(v2ChartOfAccounts, "v2ChartOfAccounts"); + this.v2ChartOfAccounts = v2ChartOfAccounts; + return this; + } + + + /** + * Query templates + */ + public Builder v2QueryTemplates(Map v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = Optional.ofNullable(v2QueryTemplates); + return this; + } + + /** + * Query templates + */ + public Builder v2QueryTemplates(Optional> v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = v2QueryTemplates; + return this; + } + + + /** + * Transaction templates + */ + public Builder v2TransactionTemplates(Map v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = Optional.ofNullable(v2TransactionTemplates); + return this; + } + + /** + * Transaction templates + */ + public Builder v2TransactionTemplates(Optional> v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = v2TransactionTemplates; + return this; + } + + + /** + * Schema creation timestamp + */ + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * Schema version + */ + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public V2SchemaData1 build() { + + return new V2SchemaData1( + v2ChartOfAccounts, v2QueryTemplates, v2TransactionTemplates, + createdAt, version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData2.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData2.java new file mode 100644 index 000000000..402c3a569 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaData2.java @@ -0,0 +1,238 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + +/** + * V2SchemaData2 + * + *

Schema data structure for ledger schemas + */ +public class V2SchemaData2 { + /** + * Chart of account + */ + @JsonProperty("chart") + private Map v2ChartOfAccounts; + + /** + * Query templates + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("queries") + private Optional> v2QueryTemplates; + + /** + * Transaction templates + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("transactions") + private Optional> v2TransactionTemplates; + + @JsonCreator + public V2SchemaData2( + @JsonProperty("chart") Map v2ChartOfAccounts, + @JsonProperty("queries") Optional> v2QueryTemplates, + @JsonProperty("transactions") Optional> v2TransactionTemplates) { + v2ChartOfAccounts = Utils.emptyMapIfNull(v2ChartOfAccounts); + Utils.checkNotNull(v2ChartOfAccounts, "v2ChartOfAccounts"); + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2ChartOfAccounts = v2ChartOfAccounts; + this.v2QueryTemplates = v2QueryTemplates; + this.v2TransactionTemplates = v2TransactionTemplates; + } + + public V2SchemaData2( + Map v2ChartOfAccounts) { + this(v2ChartOfAccounts, Optional.empty(), Optional.empty()); + } + + /** + * Chart of account + */ + @JsonIgnore + public Map v2ChartOfAccounts() { + return v2ChartOfAccounts; + } + + /** + * Query templates + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2QueryTemplates() { + return (Optional>) v2QueryTemplates; + } + + /** + * Transaction templates + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2TransactionTemplates() { + return (Optional>) v2TransactionTemplates; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Chart of account + */ + public V2SchemaData2 withV2ChartOfAccounts(Map v2ChartOfAccounts) { + Utils.checkNotNull(v2ChartOfAccounts, "v2ChartOfAccounts"); + this.v2ChartOfAccounts = v2ChartOfAccounts; + return this; + } + + /** + * Query templates + */ + public V2SchemaData2 withV2QueryTemplates(Map v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = Optional.ofNullable(v2QueryTemplates); + return this; + } + + + /** + * Query templates + */ + public V2SchemaData2 withV2QueryTemplates(Optional> v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = v2QueryTemplates; + return this; + } + + /** + * Transaction templates + */ + public V2SchemaData2 withV2TransactionTemplates(Map v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = Optional.ofNullable(v2TransactionTemplates); + return this; + } + + + /** + * Transaction templates + */ + public V2SchemaData2 withV2TransactionTemplates(Optional> v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = v2TransactionTemplates; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2SchemaData2 other = (V2SchemaData2) o; + return + Utils.enhancedDeepEquals(this.v2ChartOfAccounts, other.v2ChartOfAccounts) && + Utils.enhancedDeepEquals(this.v2QueryTemplates, other.v2QueryTemplates) && + Utils.enhancedDeepEquals(this.v2TransactionTemplates, other.v2TransactionTemplates); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ChartOfAccounts, v2QueryTemplates, v2TransactionTemplates); + } + + @Override + public String toString() { + return Utils.toString(V2SchemaData2.class, + "v2ChartOfAccounts", v2ChartOfAccounts, + "v2QueryTemplates", v2QueryTemplates, + "v2TransactionTemplates", v2TransactionTemplates); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map v2ChartOfAccounts; + + private Optional> v2QueryTemplates = Optional.empty(); + + private Optional> v2TransactionTemplates = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Chart of account + */ + public Builder v2ChartOfAccounts(Map v2ChartOfAccounts) { + Utils.checkNotNull(v2ChartOfAccounts, "v2ChartOfAccounts"); + this.v2ChartOfAccounts = v2ChartOfAccounts; + return this; + } + + + /** + * Query templates + */ + public Builder v2QueryTemplates(Map v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = Optional.ofNullable(v2QueryTemplates); + return this; + } + + /** + * Query templates + */ + public Builder v2QueryTemplates(Optional> v2QueryTemplates) { + Utils.checkNotNull(v2QueryTemplates, "v2QueryTemplates"); + this.v2QueryTemplates = v2QueryTemplates; + return this; + } + + + /** + * Transaction templates + */ + public Builder v2TransactionTemplates(Map v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = Optional.ofNullable(v2TransactionTemplates); + return this; + } + + /** + * Transaction templates + */ + public Builder v2TransactionTemplates(Optional> v2TransactionTemplates) { + Utils.checkNotNull(v2TransactionTemplates, "v2TransactionTemplates"); + this.v2TransactionTemplates = v2TransactionTemplates; + return this; + } + + public V2SchemaData2 build() { + + return new V2SchemaData2( + v2ChartOfAccounts, v2QueryTemplates, v2TransactionTemplates); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaResponse.java new file mode 100644 index 000000000..3c0c38852 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemaResponse.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2SchemaResponse { + /** + * Complete schema structure with metadata + */ + @JsonProperty("data") + private V2SchemaData1 v2SchemaData; + + @JsonCreator + public V2SchemaResponse( + @JsonProperty("data") V2SchemaData1 v2SchemaData) { + Utils.checkNotNull(v2SchemaData, "v2SchemaData"); + this.v2SchemaData = v2SchemaData; + } + + /** + * Complete schema structure with metadata + */ + @JsonIgnore + public V2SchemaData1 v2SchemaData() { + return v2SchemaData; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Complete schema structure with metadata + */ + public V2SchemaResponse withV2SchemaData(V2SchemaData1 v2SchemaData) { + Utils.checkNotNull(v2SchemaData, "v2SchemaData"); + this.v2SchemaData = v2SchemaData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2SchemaResponse other = (V2SchemaResponse) o; + return + Utils.enhancedDeepEquals(this.v2SchemaData, other.v2SchemaData); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2SchemaData); + } + + @Override + public String toString() { + return Utils.toString(V2SchemaResponse.class, + "v2SchemaData", v2SchemaData); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2SchemaData1 v2SchemaData; + + private Builder() { + // force use of static builder() method + } + + + /** + * Complete schema structure with metadata + */ + public Builder v2SchemaData(V2SchemaData1 v2SchemaData) { + Utils.checkNotNull(v2SchemaData, "v2SchemaData"); + this.v2SchemaData = v2SchemaData; + return this; + } + + public V2SchemaResponse build() { + + return new V2SchemaResponse( + v2SchemaData); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursor.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursor.java index 4147aae74..32b806ad5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,7 +20,7 @@ public class V2SchemasCursor { @JsonProperty("data") - private List data; + private List data; @JsonProperty("hasMore") @@ -42,7 +42,7 @@ public class V2SchemasCursor { @JsonCreator public V2SchemasCursor( - @JsonProperty("data") List data, + @JsonProperty("data") List data, @JsonProperty("hasMore") boolean hasMore, @JsonProperty("next") Optional next, @JsonProperty("pageSize") long pageSize, @@ -60,7 +60,7 @@ public V2SchemasCursor( } public V2SchemasCursor( - List data, + List data, boolean hasMore, long pageSize) { this(data, hasMore, Optional.empty(), @@ -68,7 +68,7 @@ public V2SchemasCursor( } @JsonIgnore - public List data() { + public List data() { return data; } @@ -97,7 +97,7 @@ public static Builder builder() { } - public V2SchemasCursor withData(List data) { + public V2SchemasCursor withData(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -178,7 +178,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List data; + private List data; private Boolean hasMore; @@ -193,7 +193,7 @@ private Builder() { } - public Builder data(List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursorResponse.java new file mode 100644 index 000000000..9d6fe6556 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2SchemasCursorResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2SchemasCursorResponse { + + @JsonProperty("cursor") + private V2SchemasCursor v2SchemasCursor; + + @JsonCreator + public V2SchemasCursorResponse( + @JsonProperty("cursor") V2SchemasCursor v2SchemasCursor) { + Utils.checkNotNull(v2SchemasCursor, "v2SchemasCursor"); + this.v2SchemasCursor = v2SchemasCursor; + } + + @JsonIgnore + public V2SchemasCursor v2SchemasCursor() { + return v2SchemasCursor; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2SchemasCursorResponse withV2SchemasCursor(V2SchemasCursor v2SchemasCursor) { + Utils.checkNotNull(v2SchemasCursor, "v2SchemasCursor"); + this.v2SchemasCursor = v2SchemasCursor; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2SchemasCursorResponse other = (V2SchemasCursorResponse) o; + return + Utils.enhancedDeepEquals(this.v2SchemasCursor, other.v2SchemasCursor); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2SchemasCursor); + } + + @Override + public String toString() { + return Utils.toString(V2SchemasCursorResponse.class, + "v2SchemasCursor", v2SchemasCursor); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2SchemasCursor v2SchemasCursor; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2SchemasCursor(V2SchemasCursor v2SchemasCursor) { + Utils.checkNotNull(v2SchemasCursor, "v2SchemasCursor"); + this.v2SchemasCursor = v2SchemasCursor; + return this; + } + + public V2SchemasCursorResponse build() { + + return new V2SchemasCursorResponse( + v2SchemasCursor); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Stats.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Stats.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Stats.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2Stats.java index a332f0832..3ab02076d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Stats.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Stats.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2StatsResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2StatsResponse.java new file mode 100644 index 000000000..5ceb83a91 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2StatsResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2StatsResponse { + + @JsonProperty("data") + private V2Stats v2Stats; + + @JsonCreator + public V2StatsResponse( + @JsonProperty("data") V2Stats v2Stats) { + Utils.checkNotNull(v2Stats, "v2Stats"); + this.v2Stats = v2Stats; + } + + @JsonIgnore + public V2Stats v2Stats() { + return v2Stats; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StatsResponse withV2Stats(V2Stats v2Stats) { + Utils.checkNotNull(v2Stats, "v2Stats"); + this.v2Stats = v2Stats; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StatsResponse other = (V2StatsResponse) o; + return + Utils.enhancedDeepEquals(this.v2Stats, other.v2Stats); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Stats); + } + + @Override + public String toString() { + return Utils.toString(V2StatsResponse.class, + "v2Stats", v2Stats); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Stats v2Stats; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Stats(V2Stats v2Stats) { + Utils.checkNotNull(v2Stats, "v2Stats"); + this.v2Stats = v2Stats; + return this; + } + + public V2StatsResponse build() { + + return new V2StatsResponse( + v2Stats); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2Transaction.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Transaction.java new file mode 100644 index 000000000..a3d9efb68 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Transaction.java @@ -0,0 +1,638 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class V2Transaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preCommitVolumes") + private Optional>> v2AggregatedVolumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postCommitVolumes") + private Optional>> v2AggregatedVolumes1; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preCommitEffectiveVolumes") + private Optional>> v2AggregatedVolumes2; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postCommitEffectiveVolumes") + private Optional>> v2AggregatedVolumes3; + + + @JsonProperty("metadata") + private Map v2Metadata; + + + @JsonProperty("id") + private BigInteger id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("insertedAt") + private Optional insertedAt; + + + @JsonProperty("postings") + private List postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonProperty("reverted") + private boolean reverted; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("revertedAt") + private Optional revertedAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("template") + private Optional template; + + + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("updatedAt") + private Optional updatedAt; + + @JsonCreator + public V2Transaction( + @JsonProperty("preCommitVolumes") Optional>> v2AggregatedVolumes, + @JsonProperty("postCommitVolumes") Optional>> v2AggregatedVolumes1, + @JsonProperty("preCommitEffectiveVolumes") Optional>> v2AggregatedVolumes2, + @JsonProperty("postCommitEffectiveVolumes") Optional>> v2AggregatedVolumes3, + @JsonProperty("metadata") Map v2Metadata, + @JsonProperty("id") BigInteger id, + @JsonProperty("insertedAt") Optional insertedAt, + @JsonProperty("postings") List postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("reverted") boolean reverted, + @JsonProperty("revertedAt") Optional revertedAt, + @JsonProperty("template") Optional template, + @JsonProperty("timestamp") OffsetDateTime timestamp, + @JsonProperty("updatedAt") Optional updatedAt) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + v2Metadata = Utils.emptyMapIfNull(v2Metadata); + Utils.checkNotNull(v2Metadata, "v2Metadata"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(insertedAt, "insertedAt"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(reverted, "reverted"); + Utils.checkNotNull(revertedAt, "revertedAt"); + Utils.checkNotNull(template, "template"); + Utils.checkNotNull(timestamp, "timestamp"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.v2AggregatedVolumes = v2AggregatedVolumes; + this.v2AggregatedVolumes1 = v2AggregatedVolumes1; + this.v2AggregatedVolumes2 = v2AggregatedVolumes2; + this.v2AggregatedVolumes3 = v2AggregatedVolumes3; + this.v2Metadata = v2Metadata; + this.id = id; + this.insertedAt = insertedAt; + this.postings = postings; + this.reference = reference; + this.reverted = reverted; + this.revertedAt = revertedAt; + this.template = template; + this.timestamp = timestamp; + this.updatedAt = updatedAt; + } + + public V2Transaction( + Map v2Metadata, + BigInteger id, + List postings, + boolean reverted, + OffsetDateTime timestamp) { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), v2Metadata, id, + Optional.empty(), postings, Optional.empty(), + reverted, Optional.empty(), Optional.empty(), + timestamp, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes() { + return (Optional>>) v2AggregatedVolumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes1() { + return (Optional>>) v2AggregatedVolumes1; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes2() { + return (Optional>>) v2AggregatedVolumes2; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> v2AggregatedVolumes3() { + return (Optional>>) v2AggregatedVolumes3; + } + + @JsonIgnore + public Map v2Metadata() { + return v2Metadata; + } + + @JsonIgnore + public BigInteger id() { + return id; + } + + @JsonIgnore + public Optional insertedAt() { + return insertedAt; + } + + @JsonIgnore + public List postings() { + return postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @JsonIgnore + public boolean reverted() { + return reverted; + } + + @JsonIgnore + public Optional revertedAt() { + return revertedAt; + } + + @JsonIgnore + public Optional template() { + return template; + } + + @JsonIgnore + public OffsetDateTime timestamp() { + return timestamp; + } + + @JsonIgnore + public Optional updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Transaction withV2AggregatedVolumes(Map> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = Optional.ofNullable(v2AggregatedVolumes); + return this; + } + + + public V2Transaction withV2AggregatedVolumes(Optional>> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = v2AggregatedVolumes; + return this; + } + + public V2Transaction withV2AggregatedVolumes1(Map> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = Optional.ofNullable(v2AggregatedVolumes1); + return this; + } + + + public V2Transaction withV2AggregatedVolumes1(Optional>> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = v2AggregatedVolumes1; + return this; + } + + public V2Transaction withV2AggregatedVolumes2(Map> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = Optional.ofNullable(v2AggregatedVolumes2); + return this; + } + + + public V2Transaction withV2AggregatedVolumes2(Optional>> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = v2AggregatedVolumes2; + return this; + } + + public V2Transaction withV2AggregatedVolumes3(Map> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = Optional.ofNullable(v2AggregatedVolumes3); + return this; + } + + + public V2Transaction withV2AggregatedVolumes3(Optional>> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = v2AggregatedVolumes3; + return this; + } + + public V2Transaction withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public V2Transaction withId(long id) { + this.id = BigInteger.valueOf(id); + return this; + } + + public V2Transaction withId(BigInteger id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2Transaction withInsertedAt(OffsetDateTime insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = Optional.ofNullable(insertedAt); + return this; + } + + + public V2Transaction withInsertedAt(Optional insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = insertedAt; + return this; + } + + public V2Transaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public V2Transaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public V2Transaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V2Transaction withReverted(boolean reverted) { + Utils.checkNotNull(reverted, "reverted"); + this.reverted = reverted; + return this; + } + + public V2Transaction withRevertedAt(OffsetDateTime revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = Optional.ofNullable(revertedAt); + return this; + } + + + public V2Transaction withRevertedAt(Optional revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = revertedAt; + return this; + } + + public V2Transaction withTemplate(String template) { + Utils.checkNotNull(template, "template"); + this.template = Optional.ofNullable(template); + return this; + } + + + public V2Transaction withTemplate(Optional template) { + Utils.checkNotNull(template, "template"); + this.template = template; + return this; + } + + public V2Transaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public V2Transaction withUpdatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + + public V2Transaction withUpdatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Transaction other = (V2Transaction) o; + return + Utils.enhancedDeepEquals(this.v2AggregatedVolumes, other.v2AggregatedVolumes) && + Utils.enhancedDeepEquals(this.v2AggregatedVolumes1, other.v2AggregatedVolumes1) && + Utils.enhancedDeepEquals(this.v2AggregatedVolumes2, other.v2AggregatedVolumes2) && + Utils.enhancedDeepEquals(this.v2AggregatedVolumes3, other.v2AggregatedVolumes3) && + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.insertedAt, other.insertedAt) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.reverted, other.reverted) && + Utils.enhancedDeepEquals(this.revertedAt, other.revertedAt) && + Utils.enhancedDeepEquals(this.template, other.template) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2AggregatedVolumes, v2AggregatedVolumes1, v2AggregatedVolumes2, + v2AggregatedVolumes3, v2Metadata, id, + insertedAt, postings, reference, + reverted, revertedAt, template, + timestamp, updatedAt); + } + + @Override + public String toString() { + return Utils.toString(V2Transaction.class, + "v2AggregatedVolumes", v2AggregatedVolumes, + "v2AggregatedVolumes1", v2AggregatedVolumes1, + "v2AggregatedVolumes2", v2AggregatedVolumes2, + "v2AggregatedVolumes3", v2AggregatedVolumes3, + "v2Metadata", v2Metadata, + "id", id, + "insertedAt", insertedAt, + "postings", postings, + "reference", reference, + "reverted", reverted, + "revertedAt", revertedAt, + "template", template, + "timestamp", timestamp, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional>> v2AggregatedVolumes = Optional.empty(); + + private Optional>> v2AggregatedVolumes1 = Optional.empty(); + + private Optional>> v2AggregatedVolumes2 = Optional.empty(); + + private Optional>> v2AggregatedVolumes3 = Optional.empty(); + + private Map v2Metadata; + + private BigInteger id; + + private Optional insertedAt = Optional.empty(); + + private List postings; + + private Optional reference = Optional.empty(); + + private Boolean reverted; + + private Optional revertedAt = Optional.empty(); + + private Optional template = Optional.empty(); + + private OffsetDateTime timestamp; + + private Optional updatedAt = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2AggregatedVolumes(Map> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = Optional.ofNullable(v2AggregatedVolumes); + return this; + } + + public Builder v2AggregatedVolumes(Optional>> v2AggregatedVolumes) { + Utils.checkNotNull(v2AggregatedVolumes, "v2AggregatedVolumes"); + this.v2AggregatedVolumes = v2AggregatedVolumes; + return this; + } + + + public Builder v2AggregatedVolumes1(Map> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = Optional.ofNullable(v2AggregatedVolumes1); + return this; + } + + public Builder v2AggregatedVolumes1(Optional>> v2AggregatedVolumes1) { + Utils.checkNotNull(v2AggregatedVolumes1, "v2AggregatedVolumes1"); + this.v2AggregatedVolumes1 = v2AggregatedVolumes1; + return this; + } + + + public Builder v2AggregatedVolumes2(Map> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = Optional.ofNullable(v2AggregatedVolumes2); + return this; + } + + public Builder v2AggregatedVolumes2(Optional>> v2AggregatedVolumes2) { + Utils.checkNotNull(v2AggregatedVolumes2, "v2AggregatedVolumes2"); + this.v2AggregatedVolumes2 = v2AggregatedVolumes2; + return this; + } + + + public Builder v2AggregatedVolumes3(Map> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = Optional.ofNullable(v2AggregatedVolumes3); + return this; + } + + public Builder v2AggregatedVolumes3(Optional>> v2AggregatedVolumes3) { + Utils.checkNotNull(v2AggregatedVolumes3, "v2AggregatedVolumes3"); + this.v2AggregatedVolumes3 = v2AggregatedVolumes3; + return this; + } + + + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + + public Builder id(long id) { + this.id = BigInteger.valueOf(id); + return this; + } + + public Builder id(BigInteger id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder insertedAt(OffsetDateTime insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = Optional.ofNullable(insertedAt); + return this; + } + + public Builder insertedAt(Optional insertedAt) { + Utils.checkNotNull(insertedAt, "insertedAt"); + this.insertedAt = insertedAt; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder reverted(boolean reverted) { + Utils.checkNotNull(reverted, "reverted"); + this.reverted = reverted; + return this; + } + + + public Builder revertedAt(OffsetDateTime revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = Optional.ofNullable(revertedAt); + return this; + } + + public Builder revertedAt(Optional revertedAt) { + Utils.checkNotNull(revertedAt, "revertedAt"); + this.revertedAt = revertedAt; + return this; + } + + + public Builder template(String template) { + Utils.checkNotNull(template, "template"); + this.template = Optional.ofNullable(template); + return this; + } + + public Builder template(Optional template) { + Utils.checkNotNull(template, "template"); + this.template = template; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + + public Builder updatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = Optional.ofNullable(updatedAt); + return this; + } + + public Builder updatedAt(Optional updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public V2Transaction build() { + + return new V2Transaction( + v2AggregatedVolumes, v2AggregatedVolumes1, v2AggregatedVolumes2, + v2AggregatedVolumes3, v2Metadata, id, + insertedAt, postings, reference, + reverted, revertedAt, template, + timestamp, updatedAt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionTemplate.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionTemplate.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2TransactionTemplate.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionTemplate.java index 1fb7e01b1..1be24cd1f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionTemplate.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionTemplate.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,11 +16,6 @@ public class V2TransactionTemplate { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - /** * The numscript runtime used to execute the script. Uses "machine" by default, unless the * "--experimental-numscript-interpreter" feature flag is passed. @@ -30,19 +25,24 @@ public class V2TransactionTemplate { private Optional runtime; + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + @JsonProperty("script") private String script; @JsonCreator public V2TransactionTemplate( - @JsonProperty("description") Optional description, @JsonProperty("runtime") Optional runtime, + @JsonProperty("description") Optional description, @JsonProperty("script") String script) { - Utils.checkNotNull(description, "description"); Utils.checkNotNull(runtime, "runtime"); + Utils.checkNotNull(description, "description"); Utils.checkNotNull(script, "script"); - this.description = description; this.runtime = runtime; + this.description = description; this.script = script; } @@ -51,11 +51,6 @@ public V2TransactionTemplate( this(Optional.empty(), Optional.empty(), script); } - @JsonIgnore - public Optional description() { - return description; - } - /** * The numscript runtime used to execute the script. Uses "machine" by default, unless the * "--experimental-numscript-interpreter" feature flag is passed. @@ -66,6 +61,11 @@ public Optional runtime() { return (Optional) runtime; } + @JsonIgnore + public Optional description() { + return description; + } + @JsonIgnore public String script() { return script; @@ -76,19 +76,6 @@ public static Builder builder() { } - public V2TransactionTemplate withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - - public V2TransactionTemplate withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - /** * The numscript runtime used to execute the script. Uses "machine" by default, unless the * "--experimental-numscript-interpreter" feature flag is passed. @@ -110,6 +97,19 @@ public V2TransactionTemplate withRuntime(Optional runtime) { return this; } + public V2TransactionTemplate withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + public V2TransactionTemplate withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + public V2TransactionTemplate withScript(String script) { Utils.checkNotNull(script, "script"); this.script = script; @@ -126,32 +126,32 @@ public boolean equals(java.lang.Object o) { } V2TransactionTemplate other = (V2TransactionTemplate) o; return - Utils.enhancedDeepEquals(this.description, other.description) && Utils.enhancedDeepEquals(this.runtime, other.runtime) && + Utils.enhancedDeepEquals(this.description, other.description) && Utils.enhancedDeepEquals(this.script, other.script); } @Override public int hashCode() { return Utils.enhancedHash( - description, runtime, script); + runtime, description, script); } @Override public String toString() { return Utils.toString(V2TransactionTemplate.class, - "description", description, "runtime", runtime, + "description", description, "script", script); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional description = Optional.empty(); - private Optional runtime = Optional.empty(); + private Optional description = Optional.empty(); + private String script; private Builder() { @@ -159,19 +159,6 @@ private Builder() { } - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - /** * The numscript runtime used to execute the script. Uses "machine" by default, unless the * "--experimental-numscript-interpreter" feature flag is passed. @@ -193,6 +180,19 @@ public Builder runtime(Optional runtime) { } + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + public Builder script(String script) { Utils.checkNotNull(script, "script"); this.script = script; @@ -202,7 +202,7 @@ public Builder script(String script) { public V2TransactionTemplate build() { return new V2TransactionTemplate( - description, runtime, script); + runtime, description, script); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponse.java index 80149b605..2255ec0f8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseCursor.java index 13492a769..0c90bb84c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseResource.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseResource.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseResource.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseResource.java index 5310dbaa4..05d02628a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TransactionsCursorResponseResource.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2TransactionsCursorResponseResource.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/V2Volume.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2Volume.java new file mode 100644 index 000000000..3f861868b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2Volume.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Optional; + + +public class V2Volume { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("input") + private BigInteger input; + + + @JsonProperty("output") + private BigInteger output; + + @JsonCreator + public V2Volume( + @JsonProperty("balance") Optional balance, + @JsonProperty("input") BigInteger input, + @JsonProperty("output") BigInteger output) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(output, "output"); + this.balance = balance; + this.input = input; + this.output = output; + } + + public V2Volume( + BigInteger input, + BigInteger output) { + this(Optional.empty(), input, output); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional balance() { + return (Optional) balance; + } + + @JsonIgnore + public BigInteger input() { + return input; + } + + @JsonIgnore + public BigInteger output() { + return output; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Volume withBalance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public V2Volume withBalance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + + public V2Volume withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public V2Volume withInput(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public V2Volume withInput(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + public V2Volume withOutput(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public V2Volume withOutput(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Volume other = (V2Volume) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.output, other.output); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, input, output); + } + + @Override + public String toString() { + return Utils.toString(V2Volume.class, + "balance", balance, + "input", input, + "output", output); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private BigInteger input; + + private BigInteger output; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder input(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Builder input(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + public Builder output(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Builder output(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + public V2Volume build() { + + return new V2Volume( + balance, input, output); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalance.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalance.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalance.java index 889fcf0e1..b13f80aa7 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalance.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponse.java index 7d95bf1be..e831d6541 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseCursor.java index 1cd8e86bc..66bfb3d90 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseResource.java b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseResource.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseResource.java rename to src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseResource.java index 02d9237c6..282a8a364 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2VolumesWithBalanceCursorResponseResource.java +++ b/src/main/java/com/formance/formance_sdk/models/ledger/V2VolumesWithBalanceCursorResponseResource.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.ledger; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/ledger/Volume.java b/src/main/java/com/formance/formance_sdk/models/ledger/Volume.java new file mode 100644 index 000000000..d0e04c3b8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/ledger/Volume.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.ledger; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Optional; + + +public class Volume { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("input") + private BigInteger input; + + + @JsonProperty("output") + private BigInteger output; + + @JsonCreator + public Volume( + @JsonProperty("balance") Optional balance, + @JsonProperty("input") BigInteger input, + @JsonProperty("output") BigInteger output) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(output, "output"); + this.balance = balance; + this.input = input; + this.output = output; + } + + public Volume( + BigInteger input, + BigInteger output) { + this(Optional.empty(), input, output); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional balance() { + return (Optional) balance; + } + + @JsonIgnore + public BigInteger input() { + return input; + } + + @JsonIgnore + public BigInteger output() { + return output; + } + + public static Builder builder() { + return new Builder(); + } + + + public Volume withBalance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Volume withBalance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + + public Volume withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public Volume withInput(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Volume withInput(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + public Volume withOutput(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Volume withOutput(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Volume other = (Volume) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.output, other.output); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, input, output); + } + + @Override + public String toString() { + return Utils.toString(Volume.class, + "balance", balance, + "input", input, + "output", output); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private BigInteger input; + + private BigInteger output; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder input(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Builder input(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + public Builder output(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Builder output(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + public Volume build() { + + return new Volume( + balance, input, output); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigRequestBuilder.java index eb7c74e13..cc9f8da33 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ActivateConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ActivateConfigRequestBuilder { private ActivateConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ActivateConfigRequestBuilder request(ActivateConfigRequest request) { this.request = request; return this; } + + public ActivateConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ActivateConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ActivateConfigResponse call() { RequestOperation operation - = new ActivateConfig.Sync(sdkConfiguration, _headers); + = new ActivateConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigResponse.java index 9f6cfd848..c66626d9d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ActivateConfigResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequest.java index 5c570a2d3..48cad687c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequest.java @@ -14,7 +14,7 @@ public class AddAccountToPoolRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.AddAccountToPoolRequest addAccountToPoolRequest; + private com.formance.formance_sdk.models.payments.AddAccountToPoolRequest addAccountToPoolRequest; /** * The pool ID. @@ -24,7 +24,7 @@ public class AddAccountToPoolRequest { @JsonCreator public AddAccountToPoolRequest( - com.formance.formance_sdk.models.shared.AddAccountToPoolRequest addAccountToPoolRequest, + com.formance.formance_sdk.models.payments.AddAccountToPoolRequest addAccountToPoolRequest, String poolId) { Utils.checkNotNull(addAccountToPoolRequest, "addAccountToPoolRequest"); Utils.checkNotNull(poolId, "poolId"); @@ -33,7 +33,7 @@ public AddAccountToPoolRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.AddAccountToPoolRequest addAccountToPoolRequest() { + public com.formance.formance_sdk.models.payments.AddAccountToPoolRequest addAccountToPoolRequest() { return addAccountToPoolRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public AddAccountToPoolRequest withAddAccountToPoolRequest(com.formance.formance_sdk.models.shared.AddAccountToPoolRequest addAccountToPoolRequest) { + public AddAccountToPoolRequest withAddAccountToPoolRequest(com.formance.formance_sdk.models.payments.AddAccountToPoolRequest addAccountToPoolRequest) { Utils.checkNotNull(addAccountToPoolRequest, "addAccountToPoolRequest"); this.addAccountToPoolRequest = addAccountToPoolRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.AddAccountToPoolRequest addAccountToPoolRequest; + private com.formance.formance_sdk.models.payments.AddAccountToPoolRequest addAccountToPoolRequest; private String poolId; @@ -104,7 +104,7 @@ private Builder() { } - public Builder addAccountToPoolRequest(com.formance.formance_sdk.models.shared.AddAccountToPoolRequest addAccountToPoolRequest) { + public Builder addAccountToPoolRequest(com.formance.formance_sdk.models.payments.AddAccountToPoolRequest addAccountToPoolRequest) { Utils.checkNotNull(addAccountToPoolRequest, "addAccountToPoolRequest"); this.addAccountToPoolRequest = addAccountToPoolRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequestBuilder.java index 5a1b61e2f..4a9e49925 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/AddAccountToPoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.AddAccountToPool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AddAccountToPoolRequestBuilder { private AddAccountToPoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public AddAccountToPoolRequestBuilder request(AddAccountToPoolRequest request) { this.request = request; return this; } + + public AddAccountToPoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public AddAccountToPoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public AddAccountToPoolResponse call() { RequestOperation operation - = new AddAccountToPool.Sync(sdkConfiguration, _headers); + = new AddAccountToPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataOnTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataOnTransactionRequestBuilder.java index 046c3de39..c5cff80c2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataOnTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataOnTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.AddMetadataOnTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AddMetadataOnTransactionRequestBuilder { private AddMetadataOnTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public AddMetadataOnTransactionRequestBuilder request(AddMetadataOnTransactionRe this.request = request; return this; } + + public AddMetadataOnTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public AddMetadataOnTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public AddMetadataOnTransactionResponse call() { RequestOperation operation - = new AddMetadataOnTransaction.Sync(sdkConfiguration, _headers); + = new AddMetadataOnTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataToAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataToAccountRequestBuilder.java index fccb7eb58..5f9705e08 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataToAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/AddMetadataToAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.AddMetadataToAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AddMetadataToAccountRequestBuilder { private AddMetadataToAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public AddMetadataToAccountRequestBuilder request(AddMetadataToAccountRequest re this.request = request; return this; } + + public AddMetadataToAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public AddMetadataToAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public AddMetadataToAccountResponse call() { RequestOperation operation - = new AddMetadataToAccount.Sync(sdkConfiguration, _headers); + = new AddMetadataToAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CancelEventRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CancelEventRequestBuilder.java index 4ef9a32ac..d27d01d87 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CancelEventRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CancelEventRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CancelEvent; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CancelEventRequestBuilder { private CancelEventRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CancelEventRequestBuilder request(CancelEventRequest request) { this.request = request; return this; } + + public CancelEventRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CancelEventRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CancelEventResponse call() { RequestOperation operation - = new CancelEvent.Sync(sdkConfiguration, _headers); + = new CancelEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequest.java index a784ae709..ed5288e89 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigChangeSecret; +import com.formance.formance_sdk.models.webhooks.ConfigChangeSecret; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequestBuilder.java index f0f72acde..0f846162d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ChangeConfigSecret; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ChangeConfigSecretRequestBuilder { private ChangeConfigSecretRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ChangeConfigSecretRequestBuilder request(ChangeConfigSecretRequest reques this.request = request; return this; } + + public ChangeConfigSecretRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ChangeConfigSecretRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ChangeConfigSecretResponse call() { RequestOperation operation - = new ChangeConfigSecret.Sync(sdkConfiguration, _headers); + = new ChangeConfigSecret.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretResponse.java index 13ecaab62..1b4c631ba 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ChangeConfigSecretResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequest.java index d2d8f5525..8d06591c1 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequest.java @@ -16,7 +16,7 @@ public class ConfirmHoldRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional confirmHoldRequest; + private Optional confirmHoldRequest; /** * Use an idempotency key @@ -30,7 +30,7 @@ public class ConfirmHoldRequest { @JsonCreator public ConfirmHoldRequest( - Optional confirmHoldRequest, + Optional confirmHoldRequest, Optional idempotencyKey, String holdId) { Utils.checkNotNull(confirmHoldRequest, "confirmHoldRequest"); @@ -48,8 +48,8 @@ public ConfirmHoldRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional confirmHoldRequest() { - return (Optional) confirmHoldRequest; + public Optional confirmHoldRequest() { + return (Optional) confirmHoldRequest; } /** @@ -70,14 +70,14 @@ public static Builder builder() { } - public ConfirmHoldRequest withConfirmHoldRequest(com.formance.formance_sdk.models.shared.ConfirmHoldRequest confirmHoldRequest) { + public ConfirmHoldRequest withConfirmHoldRequest(com.formance.formance_sdk.models.wallets.ConfirmHoldRequest confirmHoldRequest) { Utils.checkNotNull(confirmHoldRequest, "confirmHoldRequest"); this.confirmHoldRequest = Optional.ofNullable(confirmHoldRequest); return this; } - public ConfirmHoldRequest withConfirmHoldRequest(Optional confirmHoldRequest) { + public ConfirmHoldRequest withConfirmHoldRequest(Optional confirmHoldRequest) { Utils.checkNotNull(confirmHoldRequest, "confirmHoldRequest"); this.confirmHoldRequest = confirmHoldRequest; return this; @@ -140,7 +140,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional confirmHoldRequest = Optional.empty(); + private Optional confirmHoldRequest = Optional.empty(); private Optional idempotencyKey = Optional.empty(); @@ -151,13 +151,13 @@ private Builder() { } - public Builder confirmHoldRequest(com.formance.formance_sdk.models.shared.ConfirmHoldRequest confirmHoldRequest) { + public Builder confirmHoldRequest(com.formance.formance_sdk.models.wallets.ConfirmHoldRequest confirmHoldRequest) { Utils.checkNotNull(confirmHoldRequest, "confirmHoldRequest"); this.confirmHoldRequest = Optional.ofNullable(confirmHoldRequest); return this; } - public Builder confirmHoldRequest(Optional confirmHoldRequest) { + public Builder confirmHoldRequest(Optional confirmHoldRequest) { Utils.checkNotNull(confirmHoldRequest, "confirmHoldRequest"); this.confirmHoldRequest = confirmHoldRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequestBuilder.java index a42616a1a..6282c8485 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ConfirmHoldRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ConfirmHold; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ConfirmHoldRequestBuilder { private ConfirmHoldRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ConfirmHoldRequestBuilder request(ConfirmHoldRequest request) { this.request = request; return this; } + + public ConfirmHoldRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ConfirmHoldRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ConfirmHoldResponse call() { RequestOperation operation - = new ConfirmHold.Sync(sdkConfiguration, _headers); + = new ConfirmHold.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequest.java index edd423a4d..987a6d7eb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequest.java @@ -5,8 +5,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; -import com.formance.formance_sdk.models.shared.TransferRequest; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.TransferRequest; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequestBuilder.java index 4734d7326..72ef6481a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ConnectorsTransfer; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ConnectorsTransferRequestBuilder { private ConnectorsTransferRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ConnectorsTransferRequestBuilder request(ConnectorsTransferRequest reques this.request = request; return this; } + + public ConnectorsTransferRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ConnectorsTransferRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ConnectorsTransferResponse call() { RequestOperation operation - = new ConnectorsTransfer.Sync(sdkConfiguration, _headers); + = new ConnectorsTransfer.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferResponse.java index 195f4942d..d5966929d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ConnectorsTransferResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransferResponse; +import com.formance.formance_sdk.models.payments.TransferResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CountAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CountAccountsRequestBuilder.java index 68c884a86..9d72a5dc8 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CountAccountsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CountAccountsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CountAccounts; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CountAccountsRequestBuilder { private CountAccountsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CountAccountsRequestBuilder request(CountAccountsRequest request) { this.request = request; return this; } + + public CountAccountsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CountAccountsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CountAccountsResponse call() { RequestOperation operation - = new CountAccounts.Sync(sdkConfiguration, _headers); + = new CountAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CountTransactionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CountTransactionsRequestBuilder.java index d329d1c99..45d75abd6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CountTransactionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CountTransactionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CountTransactions; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CountTransactionsRequestBuilder { private CountTransactionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CountTransactionsRequestBuilder request(CountTransactionsRequest request) this.request = request; return this; } + + public CountTransactionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CountTransactionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CountTransactionsResponse call() { RequestOperation operation - = new CountTransactions.Sync(sdkConfiguration, _headers); + = new CountTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountRequestBuilder.java index 7d7a0bca5..1e119a1c4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.AccountRequest; +import com.formance.formance_sdk.models.payments.AccountRequest; import com.formance.formance_sdk.operations.CreateAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateAccountRequestBuilder { private AccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public CreateAccountRequestBuilder request(AccountRequest request) { this.request = request; return this; } + + public CreateAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateAccountResponse call() { RequestOperation operation - = new CreateAccount.Sync(sdkConfiguration, _headers); + = new CreateAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountResponse.java index 965a248f0..4a4eed9dc 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateAccountResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PaymentsAccountResponse; +import com.formance.formance_sdk.models.payments.AccountResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; @@ -18,6 +18,11 @@ public class CreateAccountResponse implements Response { + /** + * OK + */ + private Optional accountResponse; + /** * HTTP response content type for this operation */ @@ -33,33 +38,37 @@ public class CreateAccountResponse implements Response { */ private HttpResponse rawResponse; - /** - * OK - */ - private Optional paymentsAccountResponse; - @JsonCreator public CreateAccountResponse( + Optional accountResponse, String contentType, int statusCode, - HttpResponse rawResponse, - Optional paymentsAccountResponse) { + HttpResponse rawResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); + this.accountResponse = accountResponse; this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.paymentsAccountResponse = paymentsAccountResponse; } public CreateAccountResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, - Optional.empty()); + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * OK + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accountResponse() { + return (Optional) accountResponse; } /** @@ -86,19 +95,29 @@ public HttpResponse rawResponse() { return rawResponse; } + public static Builder builder() { + return new Builder(); + } + + /** * OK */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional paymentsAccountResponse() { - return (Optional) paymentsAccountResponse; + public CreateAccountResponse withAccountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; } - public static Builder builder() { - return new Builder(); - } + /** + * OK + */ + public CreateAccountResponse withAccountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } /** * HTTP response content type for this operation @@ -127,25 +146,6 @@ public CreateAccountResponse withRawResponse(HttpResponse rawRespon return this; } - /** - * OK - */ - public CreateAccountResponse withPaymentsAccountResponse(PaymentsAccountResponse paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = Optional.ofNullable(paymentsAccountResponse); - return this; - } - - - /** - * OK - */ - public CreateAccountResponse withPaymentsAccountResponse(Optional paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = paymentsAccountResponse; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -156,44 +156,63 @@ public boolean equals(java.lang.Object o) { } CreateAccountResponse other = (CreateAccountResponse) o; return + Utils.enhancedDeepEquals(this.accountResponse, other.accountResponse) && Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.paymentsAccountResponse, other.paymentsAccountResponse); + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { return Utils.enhancedHash( - contentType, statusCode, rawResponse, - paymentsAccountResponse); + accountResponse, contentType, statusCode, + rawResponse); } @Override public String toString() { return Utils.toString(CreateAccountResponse.class, + "accountResponse", accountResponse, "contentType", contentType, "statusCode", statusCode, - "rawResponse", rawResponse, - "paymentsAccountResponse", paymentsAccountResponse); + "rawResponse", rawResponse); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional accountResponse = Optional.empty(); + private String contentType; private Integer statusCode; private HttpResponse rawResponse; - private Optional paymentsAccountResponse = Optional.empty(); - private Builder() { // force use of static builder() method } + /** + * OK + */ + public Builder accountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + /** + * OK + */ + public Builder accountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + /** * HTTP response content type for this operation */ @@ -223,30 +242,11 @@ public Builder rawResponse(HttpResponse rawResponse) { return this; } - - /** - * OK - */ - public Builder paymentsAccountResponse(PaymentsAccountResponse paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = Optional.ofNullable(paymentsAccountResponse); - return this; - } - - /** - * OK - */ - public Builder paymentsAccountResponse(Optional paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = paymentsAccountResponse; - return this; - } - public CreateAccountResponse build() { return new CreateAccountResponse( - contentType, statusCode, rawResponse, - paymentsAccountResponse); + accountResponse, contentType, statusCode, + rawResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequest.java index f28c975ea..73307f204 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequest.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.wallets.Balance; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -16,7 +17,7 @@ public class CreateBalanceRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional createBalanceRequest; + private Optional balance; /** * Use an idempotency key @@ -30,13 +31,13 @@ public class CreateBalanceRequest { @JsonCreator public CreateBalanceRequest( - Optional createBalanceRequest, + Optional balance, Optional idempotencyKey, String id) { - Utils.checkNotNull(createBalanceRequest, "createBalanceRequest"); + Utils.checkNotNull(balance, "balance"); Utils.checkNotNull(idempotencyKey, "idempotencyKey"); Utils.checkNotNull(id, "id"); - this.createBalanceRequest = createBalanceRequest; + this.balance = balance; this.idempotencyKey = idempotencyKey; this.id = id; } @@ -48,8 +49,8 @@ public CreateBalanceRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional createBalanceRequest() { - return (Optional) createBalanceRequest; + public Optional balance() { + return (Optional) balance; } /** @@ -70,16 +71,16 @@ public static Builder builder() { } - public CreateBalanceRequest withCreateBalanceRequest(com.formance.formance_sdk.models.shared.CreateBalanceRequest createBalanceRequest) { - Utils.checkNotNull(createBalanceRequest, "createBalanceRequest"); - this.createBalanceRequest = Optional.ofNullable(createBalanceRequest); + public CreateBalanceRequest withBalance(Balance balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); return this; } - public CreateBalanceRequest withCreateBalanceRequest(Optional createBalanceRequest) { - Utils.checkNotNull(createBalanceRequest, "createBalanceRequest"); - this.createBalanceRequest = createBalanceRequest; + public CreateBalanceRequest withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; return this; } @@ -118,7 +119,7 @@ public boolean equals(java.lang.Object o) { } CreateBalanceRequest other = (CreateBalanceRequest) o; return - Utils.enhancedDeepEquals(this.createBalanceRequest, other.createBalanceRequest) && + Utils.enhancedDeepEquals(this.balance, other.balance) && Utils.enhancedDeepEquals(this.idempotencyKey, other.idempotencyKey) && Utils.enhancedDeepEquals(this.id, other.id); } @@ -126,13 +127,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - createBalanceRequest, idempotencyKey, id); + balance, idempotencyKey, id); } @Override public String toString() { return Utils.toString(CreateBalanceRequest.class, - "createBalanceRequest", createBalanceRequest, + "balance", balance, "idempotencyKey", idempotencyKey, "id", id); } @@ -140,7 +141,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional createBalanceRequest = Optional.empty(); + private Optional balance = Optional.empty(); private Optional idempotencyKey = Optional.empty(); @@ -151,15 +152,15 @@ private Builder() { } - public Builder createBalanceRequest(com.formance.formance_sdk.models.shared.CreateBalanceRequest createBalanceRequest) { - Utils.checkNotNull(createBalanceRequest, "createBalanceRequest"); - this.createBalanceRequest = Optional.ofNullable(createBalanceRequest); + public Builder balance(Balance balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); return this; } - public Builder createBalanceRequest(Optional createBalanceRequest) { - Utils.checkNotNull(createBalanceRequest, "createBalanceRequest"); - this.createBalanceRequest = createBalanceRequest; + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; return this; } @@ -192,7 +193,7 @@ public Builder id(String id) { public CreateBalanceRequest build() { return new CreateBalanceRequest( - createBalanceRequest, idempotencyKey, id); + balance, idempotencyKey, id); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequestBuilder.java index aa3dc780a..3192ef3a3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CreateBalance; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateBalanceRequestBuilder { private CreateBalanceRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CreateBalanceRequestBuilder request(CreateBalanceRequest request) { this.request = request; return this; } + + public CreateBalanceRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateBalanceRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateBalanceResponse call() { RequestOperation operation - = new CreateBalance.Sync(sdkConfiguration, _headers); + = new CreateBalance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceResponse.java index 6777fda4b..0eea62081 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateBalanceResponse.java @@ -25,7 +25,7 @@ public class CreateBalanceResponse implements Response { /** * Created balance */ - private Optional createBalanceResponse; + private Optional createBalanceResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class CreateBalanceResponse implements Response { @JsonCreator public CreateBalanceResponse( String contentType, - Optional createBalanceResponse, + Optional createBalanceResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional createBalanceResponse() { - return (Optional) createBalanceResponse; + public Optional createBalanceResponse() { + return (Optional) createBalanceResponse; } /** @@ -111,7 +111,7 @@ public CreateBalanceResponse withContentType(String contentType) { /** * Created balance */ - public CreateBalanceResponse withCreateBalanceResponse(com.formance.formance_sdk.models.shared.CreateBalanceResponse createBalanceResponse) { + public CreateBalanceResponse withCreateBalanceResponse(com.formance.formance_sdk.models.wallets.CreateBalanceResponse createBalanceResponse) { Utils.checkNotNull(createBalanceResponse, "createBalanceResponse"); this.createBalanceResponse = Optional.ofNullable(createBalanceResponse); return this; @@ -121,7 +121,7 @@ public CreateBalanceResponse withCreateBalanceResponse(com.formance.formance_sdk /** * Created balance */ - public CreateBalanceResponse withCreateBalanceResponse(Optional createBalanceResponse) { + public CreateBalanceResponse withCreateBalanceResponse(Optional createBalanceResponse) { Utils.checkNotNull(createBalanceResponse, "createBalanceResponse"); this.createBalanceResponse = createBalanceResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional createBalanceResponse = Optional.empty(); + private Optional createBalanceResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Created balance */ - public Builder createBalanceResponse(com.formance.formance_sdk.models.shared.CreateBalanceResponse createBalanceResponse) { + public Builder createBalanceResponse(com.formance.formance_sdk.models.wallets.CreateBalanceResponse createBalanceResponse) { Utils.checkNotNull(createBalanceResponse, "createBalanceResponse"); this.createBalanceResponse = Optional.ofNullable(createBalanceResponse); return this; @@ -215,7 +215,7 @@ public Builder createBalanceResponse(com.formance.formance_sdk.models.shared.Cre /** * Created balance */ - public Builder createBalanceResponse(Optional createBalanceResponse) { + public Builder createBalanceResponse(Optional createBalanceResponse) { Utils.checkNotNull(createBalanceResponse, "createBalanceResponse"); this.createBalanceResponse = createBalanceResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountRequestBuilder.java index 631ce3ed1..a4dcd3bff 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.BankAccountRequest; +import com.formance.formance_sdk.models.payments.BankAccountRequest; import com.formance.formance_sdk.operations.CreateBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateBankAccountRequestBuilder { private BankAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public CreateBankAccountRequestBuilder request(BankAccountRequest request) { this.request = request; return this; } + + public CreateBankAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateBankAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateBankAccountResponse call() { RequestOperation operation - = new CreateBankAccount.Sync(sdkConfiguration, _headers); + = new CreateBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountResponse.java index 779899324..d8ea86e34 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateBankAccountResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.BankAccountResponse; +import com.formance.formance_sdk.models.payments.BankAccountResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateClientRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateClientRequestBuilder.java index 3097ff7ed..4f14b1219 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateClientRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateClientRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.CreateClientRequest; +import com.formance.formance_sdk.models.auth.ClientOptions2; import com.formance.formance_sdk.operations.CreateClient; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class CreateClientRequestBuilder { - private Optional request = Optional.empty(); + private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,34 @@ public CreateClientRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public CreateClientRequestBuilder request(CreateClientRequest request) { + public CreateClientRequestBuilder request(ClientOptions2 request) { Utils.checkNotNull(request, "request"); this.request = Optional.of(request); return this; } - public CreateClientRequestBuilder request(Optional request) { + public CreateClientRequestBuilder request(Optional request) { Utils.checkNotNull(request, "request"); this.request = request; return this; } + + public CreateClientRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateClientRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateClientResponse call() { - RequestOperation, CreateClientResponse> operation - = new CreateClient.Sync(sdkConfiguration, _headers); + RequestOperation, CreateClientResponse> operation + = new CreateClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateClientResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateClientResponse.java index 2dbf04b77..f09d7047f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateClientResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateClientResponse.java @@ -25,7 +25,7 @@ public class CreateClientResponse implements Response { /** * Client created */ - private Optional createClientResponse; + private Optional createClientResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class CreateClientResponse implements Response { @JsonCreator public CreateClientResponse( String contentType, - Optional createClientResponse, + Optional createClientResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional createClientResponse() { - return (Optional) createClientResponse; + public Optional createClientResponse() { + return (Optional) createClientResponse; } /** @@ -111,7 +111,7 @@ public CreateClientResponse withContentType(String contentType) { /** * Client created */ - public CreateClientResponse withCreateClientResponse(com.formance.formance_sdk.models.shared.CreateClientResponse createClientResponse) { + public CreateClientResponse withCreateClientResponse(com.formance.formance_sdk.models.auth.CreateClientResponse createClientResponse) { Utils.checkNotNull(createClientResponse, "createClientResponse"); this.createClientResponse = Optional.ofNullable(createClientResponse); return this; @@ -121,7 +121,7 @@ public CreateClientResponse withCreateClientResponse(com.formance.formance_sdk.m /** * Client created */ - public CreateClientResponse withCreateClientResponse(Optional createClientResponse) { + public CreateClientResponse withCreateClientResponse(Optional createClientResponse) { Utils.checkNotNull(createClientResponse, "createClientResponse"); this.createClientResponse = createClientResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional createClientResponse = Optional.empty(); + private Optional createClientResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Client created */ - public Builder createClientResponse(com.formance.formance_sdk.models.shared.CreateClientResponse createClientResponse) { + public Builder createClientResponse(com.formance.formance_sdk.models.auth.CreateClientResponse createClientResponse) { Utils.checkNotNull(createClientResponse, "createClientResponse"); this.createClientResponse = Optional.ofNullable(createClientResponse); return this; @@ -215,7 +215,7 @@ public Builder createClientResponse(com.formance.formance_sdk.models.shared.Crea /** * Client created */ - public Builder createClientResponse(Optional createClientResponse) { + public Builder createClientResponse(Optional createClientResponse) { Utils.checkNotNull(createClientResponse, "createClientResponse"); this.createClientResponse = createClientResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentRequestBuilder.java index 007d55227..9404efcf6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.PaymentRequest; +import com.formance.formance_sdk.models.payments.PaymentRequest; import com.formance.formance_sdk.operations.CreatePayment; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreatePaymentRequestBuilder { private PaymentRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public CreatePaymentRequestBuilder request(PaymentRequest request) { this.request = request; return this; } + + public CreatePaymentRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreatePaymentRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreatePaymentResponse call() { RequestOperation operation - = new CreatePayment.Sync(sdkConfiguration, _headers); + = new CreatePayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentResponse.java index 4306dc7b2..f522792d2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreatePaymentResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyRequestBuilder.java index d0a476d5d..499c5c820 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.PolicyRequest; +import com.formance.formance_sdk.models.reconciliation.PolicyRequest; import com.formance.formance_sdk.operations.CreatePolicy; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreatePolicyRequestBuilder { private PolicyRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public CreatePolicyRequestBuilder request(PolicyRequest request) { this.request = request; return this; } + + public CreatePolicyRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreatePolicyRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreatePolicyResponse call() { RequestOperation operation - = new CreatePolicy.Sync(sdkConfiguration, _headers); + = new CreatePolicy.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyResponse.java index 5a3d17ff5..71363c182 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreatePolicyResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PolicyResponse; +import com.formance.formance_sdk.models.reconciliation.PolicyResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolRequestBuilder.java index bde79dccb..d6943448e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.PoolRequest; +import com.formance.formance_sdk.models.payments.PoolRequest; import com.formance.formance_sdk.operations.CreatePool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreatePoolRequestBuilder { private PoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public CreatePoolRequestBuilder request(PoolRequest request) { this.request = request; return this; } + + public CreatePoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreatePoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreatePoolResponse call() { RequestOperation operation - = new CreatePool.Sync(sdkConfiguration, _headers); + = new CreatePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolResponse.java index c7c9dafc2..b4645e7ea 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreatePoolResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PoolResponse; +import com.formance.formance_sdk.models.payments.PoolResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequest.java index 7a3385b92..6eb022b55 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequest.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.auth.SecretOptions1; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -16,7 +17,7 @@ public class CreateSecretRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional createSecretRequest; + private Optional secretOptions; /** * Client ID @@ -26,11 +27,11 @@ public class CreateSecretRequest { @JsonCreator public CreateSecretRequest( - Optional createSecretRequest, + Optional secretOptions, String clientId) { - Utils.checkNotNull(createSecretRequest, "createSecretRequest"); + Utils.checkNotNull(secretOptions, "secretOptions"); Utils.checkNotNull(clientId, "clientId"); - this.createSecretRequest = createSecretRequest; + this.secretOptions = secretOptions; this.clientId = clientId; } @@ -41,8 +42,8 @@ public CreateSecretRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional createSecretRequest() { - return (Optional) createSecretRequest; + public Optional secretOptions() { + return (Optional) secretOptions; } /** @@ -58,16 +59,16 @@ public static Builder builder() { } - public CreateSecretRequest withCreateSecretRequest(com.formance.formance_sdk.models.shared.CreateSecretRequest createSecretRequest) { - Utils.checkNotNull(createSecretRequest, "createSecretRequest"); - this.createSecretRequest = Optional.ofNullable(createSecretRequest); + public CreateSecretRequest withSecretOptions(SecretOptions1 secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = Optional.ofNullable(secretOptions); return this; } - public CreateSecretRequest withCreateSecretRequest(Optional createSecretRequest) { - Utils.checkNotNull(createSecretRequest, "createSecretRequest"); - this.createSecretRequest = createSecretRequest; + public CreateSecretRequest withSecretOptions(Optional secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = secretOptions; return this; } @@ -90,27 +91,27 @@ public boolean equals(java.lang.Object o) { } CreateSecretRequest other = (CreateSecretRequest) o; return - Utils.enhancedDeepEquals(this.createSecretRequest, other.createSecretRequest) && + Utils.enhancedDeepEquals(this.secretOptions, other.secretOptions) && Utils.enhancedDeepEquals(this.clientId, other.clientId); } @Override public int hashCode() { return Utils.enhancedHash( - createSecretRequest, clientId); + secretOptions, clientId); } @Override public String toString() { return Utils.toString(CreateSecretRequest.class, - "createSecretRequest", createSecretRequest, + "secretOptions", secretOptions, "clientId", clientId); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional createSecretRequest = Optional.empty(); + private Optional secretOptions = Optional.empty(); private String clientId; @@ -119,15 +120,15 @@ private Builder() { } - public Builder createSecretRequest(com.formance.formance_sdk.models.shared.CreateSecretRequest createSecretRequest) { - Utils.checkNotNull(createSecretRequest, "createSecretRequest"); - this.createSecretRequest = Optional.ofNullable(createSecretRequest); + public Builder secretOptions(SecretOptions1 secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = Optional.ofNullable(secretOptions); return this; } - public Builder createSecretRequest(Optional createSecretRequest) { - Utils.checkNotNull(createSecretRequest, "createSecretRequest"); - this.createSecretRequest = createSecretRequest; + public Builder secretOptions(Optional secretOptions) { + Utils.checkNotNull(secretOptions, "secretOptions"); + this.secretOptions = secretOptions; return this; } @@ -144,7 +145,7 @@ public Builder clientId(String clientId) { public CreateSecretRequest build() { return new CreateSecretRequest( - createSecretRequest, clientId); + secretOptions, clientId); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequestBuilder.java index 20b682ad4..1a68ec5f1 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CreateSecret; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateSecretRequestBuilder { private CreateSecretRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CreateSecretRequestBuilder request(CreateSecretRequest request) { this.request = request; return this; } + + public CreateSecretRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateSecretRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateSecretResponse call() { RequestOperation operation - = new CreateSecret.Sync(sdkConfiguration, _headers); + = new CreateSecret.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretResponse.java index 926af2f16..49080b559 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateSecretResponse.java @@ -25,7 +25,7 @@ public class CreateSecretResponse implements Response { /** * Created secret */ - private Optional createSecretResponse; + private Optional createSecretResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class CreateSecretResponse implements Response { @JsonCreator public CreateSecretResponse( String contentType, - Optional createSecretResponse, + Optional createSecretResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional createSecretResponse() { - return (Optional) createSecretResponse; + public Optional createSecretResponse() { + return (Optional) createSecretResponse; } /** @@ -111,7 +111,7 @@ public CreateSecretResponse withContentType(String contentType) { /** * Created secret */ - public CreateSecretResponse withCreateSecretResponse(com.formance.formance_sdk.models.shared.CreateSecretResponse createSecretResponse) { + public CreateSecretResponse withCreateSecretResponse(com.formance.formance_sdk.models.auth.CreateSecretResponse createSecretResponse) { Utils.checkNotNull(createSecretResponse, "createSecretResponse"); this.createSecretResponse = Optional.ofNullable(createSecretResponse); return this; @@ -121,7 +121,7 @@ public CreateSecretResponse withCreateSecretResponse(com.formance.formance_sdk.m /** * Created secret */ - public CreateSecretResponse withCreateSecretResponse(Optional createSecretResponse) { + public CreateSecretResponse withCreateSecretResponse(Optional createSecretResponse) { Utils.checkNotNull(createSecretResponse, "createSecretResponse"); this.createSecretResponse = createSecretResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional createSecretResponse = Optional.empty(); + private Optional createSecretResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Created secret */ - public Builder createSecretResponse(com.formance.formance_sdk.models.shared.CreateSecretResponse createSecretResponse) { + public Builder createSecretResponse(com.formance.formance_sdk.models.auth.CreateSecretResponse createSecretResponse) { Utils.checkNotNull(createSecretResponse, "createSecretResponse"); this.createSecretResponse = Optional.ofNullable(createSecretResponse); return this; @@ -215,7 +215,7 @@ public Builder createSecretResponse(com.formance.formance_sdk.models.shared.Crea /** * Created secret */ - public Builder createSecretResponse(Optional createSecretResponse) { + public Builder createSecretResponse(Optional createSecretResponse) { Utils.checkNotNull(createSecretResponse, "createSecretResponse"); this.createSecretResponse = createSecretResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequest.java index a91a9afc0..f7e9144b4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PostTransaction; +import com.formance.formance_sdk.models.ledger.PostTransaction; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Boolean; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequestBuilder.java index f7134b4e5..4a6e91920 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CreateTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateTransactionRequestBuilder { private CreateTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CreateTransactionRequestBuilder request(CreateTransactionRequest request) this.request = request; return this; } + + public CreateTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateTransactionResponse call() { RequestOperation operation - = new CreateTransaction.Sync(sdkConfiguration, _headers); + = new CreateTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionResponse.java index 812675d27..778c631ef 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransactionsResponse; +import com.formance.formance_sdk.models.ledger.TransactionsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequest.java index 52feacca8..178d00071 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Transactions; +import com.formance.formance_sdk.models.ledger.Transactions; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequestBuilder.java index f84079ec7..2ecae09ed 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CreateTransactions; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateTransactionsRequestBuilder { private CreateTransactionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CreateTransactionsRequestBuilder request(CreateTransactionsRequest reques this.request = request; return this; } + + public CreateTransactionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateTransactionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateTransactionsResponse call() { RequestOperation operation - = new CreateTransactions.Sync(sdkConfiguration, _headers); + = new CreateTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsResponse.java index 3829d8a29..346e7148c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransactionsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransactionsResponse; +import com.formance.formance_sdk.models.ledger.TransactionsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationRequestBuilder.java index 0e5803129..4ac9dd09d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.TransferInitiationRequest; +import com.formance.formance_sdk.models.payments.TransferInitiationRequest; import com.formance.formance_sdk.operations.CreateTransferInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateTransferInitiationRequestBuilder { private TransferInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public CreateTransferInitiationRequestBuilder request(TransferInitiationRequest this.request = request; return this; } + + public CreateTransferInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateTransferInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateTransferInitiationResponse call() { RequestOperation operation - = new CreateTransferInitiation.Sync(sdkConfiguration, _headers); + = new CreateTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationResponse.java index 54d0c6c22..15014116d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTransferInitiationResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransferInitiationResponse; +import com.formance.formance_sdk.models.payments.TransferInitiationResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerRequestBuilder.java index 5a55661ae..e97f8c240 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.TriggerData; +import com.formance.formance_sdk.models.orchestration.TriggerData2; import com.formance.formance_sdk.operations.CreateTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class CreateTriggerRequestBuilder { - private Optional request = Optional.empty(); + private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,34 @@ public CreateTriggerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public CreateTriggerRequestBuilder request(TriggerData request) { + public CreateTriggerRequestBuilder request(TriggerData2 request) { Utils.checkNotNull(request, "request"); this.request = Optional.of(request); return this; } - public CreateTriggerRequestBuilder request(Optional request) { + public CreateTriggerRequestBuilder request(Optional request) { Utils.checkNotNull(request, "request"); this.request = request; return this; } + + public CreateTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateTriggerResponse call() { - RequestOperation, CreateTriggerResponse> operation - = new CreateTrigger.Sync(sdkConfiguration, _headers); + RequestOperation, CreateTriggerResponse> operation + = new CreateTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerResponse.java index 7b9267652..6a9b9f275 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateTriggerResponse.java @@ -25,7 +25,7 @@ public class CreateTriggerResponse implements Response { /** * Created trigger */ - private Optional createTriggerResponse; + private Optional createTriggerResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class CreateTriggerResponse implements Response { @JsonCreator public CreateTriggerResponse( String contentType, - Optional createTriggerResponse, + Optional createTriggerResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional createTriggerResponse() { - return (Optional) createTriggerResponse; + public Optional createTriggerResponse() { + return (Optional) createTriggerResponse; } /** @@ -111,7 +111,7 @@ public CreateTriggerResponse withContentType(String contentType) { /** * Created trigger */ - public CreateTriggerResponse withCreateTriggerResponse(com.formance.formance_sdk.models.shared.CreateTriggerResponse createTriggerResponse) { + public CreateTriggerResponse withCreateTriggerResponse(com.formance.formance_sdk.models.orchestration.CreateTriggerResponse createTriggerResponse) { Utils.checkNotNull(createTriggerResponse, "createTriggerResponse"); this.createTriggerResponse = Optional.ofNullable(createTriggerResponse); return this; @@ -121,7 +121,7 @@ public CreateTriggerResponse withCreateTriggerResponse(com.formance.formance_sdk /** * Created trigger */ - public CreateTriggerResponse withCreateTriggerResponse(Optional createTriggerResponse) { + public CreateTriggerResponse withCreateTriggerResponse(Optional createTriggerResponse) { Utils.checkNotNull(createTriggerResponse, "createTriggerResponse"); this.createTriggerResponse = createTriggerResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional createTriggerResponse = Optional.empty(); + private Optional createTriggerResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Created trigger */ - public Builder createTriggerResponse(com.formance.formance_sdk.models.shared.CreateTriggerResponse createTriggerResponse) { + public Builder createTriggerResponse(com.formance.formance_sdk.models.orchestration.CreateTriggerResponse createTriggerResponse) { Utils.checkNotNull(createTriggerResponse, "createTriggerResponse"); this.createTriggerResponse = Optional.ofNullable(createTriggerResponse); return this; @@ -215,7 +215,7 @@ public Builder createTriggerResponse(com.formance.formance_sdk.models.shared.Cre /** * Created trigger */ - public Builder createTriggerResponse(Optional createTriggerResponse) { + public Builder createTriggerResponse(Optional createTriggerResponse) { Utils.checkNotNull(createTriggerResponse, "createTriggerResponse"); this.createTriggerResponse = createTriggerResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequest.java index 1f0c8fb02..9e35efb87 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequest.java @@ -16,7 +16,7 @@ public class CreateWalletRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional createWalletRequest; + private Optional createWalletRequest; /** * Use an idempotency key @@ -26,7 +26,7 @@ public class CreateWalletRequest { @JsonCreator public CreateWalletRequest( - Optional createWalletRequest, + Optional createWalletRequest, Optional idempotencyKey) { Utils.checkNotNull(createWalletRequest, "createWalletRequest"); Utils.checkNotNull(idempotencyKey, "idempotencyKey"); @@ -40,8 +40,8 @@ public CreateWalletRequest() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional createWalletRequest() { - return (Optional) createWalletRequest; + public Optional createWalletRequest() { + return (Optional) createWalletRequest; } /** @@ -57,14 +57,14 @@ public static Builder builder() { } - public CreateWalletRequest withCreateWalletRequest(com.formance.formance_sdk.models.shared.CreateWalletRequest createWalletRequest) { + public CreateWalletRequest withCreateWalletRequest(com.formance.formance_sdk.models.wallets.CreateWalletRequest createWalletRequest) { Utils.checkNotNull(createWalletRequest, "createWalletRequest"); this.createWalletRequest = Optional.ofNullable(createWalletRequest); return this; } - public CreateWalletRequest withCreateWalletRequest(Optional createWalletRequest) { + public CreateWalletRequest withCreateWalletRequest(Optional createWalletRequest) { Utils.checkNotNull(createWalletRequest, "createWalletRequest"); this.createWalletRequest = createWalletRequest; return this; @@ -119,7 +119,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional createWalletRequest = Optional.empty(); + private Optional createWalletRequest = Optional.empty(); private Optional idempotencyKey = Optional.empty(); @@ -128,13 +128,13 @@ private Builder() { } - public Builder createWalletRequest(com.formance.formance_sdk.models.shared.CreateWalletRequest createWalletRequest) { + public Builder createWalletRequest(com.formance.formance_sdk.models.wallets.CreateWalletRequest createWalletRequest) { Utils.checkNotNull(createWalletRequest, "createWalletRequest"); this.createWalletRequest = Optional.ofNullable(createWalletRequest); return this; } - public Builder createWalletRequest(Optional createWalletRequest) { + public Builder createWalletRequest(Optional createWalletRequest) { Utils.checkNotNull(createWalletRequest, "createWalletRequest"); this.createWalletRequest = createWalletRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequestBuilder.java index 5dc260cf1..caade91c2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CreateWallet; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateWalletRequestBuilder { private CreateWalletRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CreateWalletRequestBuilder request(CreateWalletRequest request) { this.request = request; return this; } + + public CreateWalletRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateWalletRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateWalletResponse call() { RequestOperation operation - = new CreateWallet.Sync(sdkConfiguration, _headers); + = new CreateWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletResponse.java index 8db9eadd4..6803a72e7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateWalletResponse.java @@ -25,7 +25,7 @@ public class CreateWalletResponse implements Response { /** * Wallet created */ - private Optional createWalletResponse; + private Optional createWalletResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class CreateWalletResponse implements Response { @JsonCreator public CreateWalletResponse( String contentType, - Optional createWalletResponse, + Optional createWalletResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional createWalletResponse() { - return (Optional) createWalletResponse; + public Optional createWalletResponse() { + return (Optional) createWalletResponse; } /** @@ -111,7 +111,7 @@ public CreateWalletResponse withContentType(String contentType) { /** * Wallet created */ - public CreateWalletResponse withCreateWalletResponse(com.formance.formance_sdk.models.shared.CreateWalletResponse createWalletResponse) { + public CreateWalletResponse withCreateWalletResponse(com.formance.formance_sdk.models.wallets.CreateWalletResponse createWalletResponse) { Utils.checkNotNull(createWalletResponse, "createWalletResponse"); this.createWalletResponse = Optional.ofNullable(createWalletResponse); return this; @@ -121,7 +121,7 @@ public CreateWalletResponse withCreateWalletResponse(com.formance.formance_sdk.m /** * Wallet created */ - public CreateWalletResponse withCreateWalletResponse(Optional createWalletResponse) { + public CreateWalletResponse withCreateWalletResponse(Optional createWalletResponse) { Utils.checkNotNull(createWalletResponse, "createWalletResponse"); this.createWalletResponse = createWalletResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional createWalletResponse = Optional.empty(); + private Optional createWalletResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Wallet created */ - public Builder createWalletResponse(com.formance.formance_sdk.models.shared.CreateWalletResponse createWalletResponse) { + public Builder createWalletResponse(com.formance.formance_sdk.models.wallets.CreateWalletResponse createWalletResponse) { Utils.checkNotNull(createWalletResponse, "createWalletResponse"); this.createWalletResponse = Optional.ofNullable(createWalletResponse); return this; @@ -215,7 +215,7 @@ public Builder createWalletResponse(com.formance.formance_sdk.models.shared.Crea /** * Wallet created */ - public Builder createWalletResponse(Optional createWalletResponse) { + public Builder createWalletResponse(Optional createWalletResponse) { Utils.checkNotNull(createWalletResponse, "createWalletResponse"); this.createWalletResponse = createWalletResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowRequestBuilder.java index 4b4412665..c62f1a9ab 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.CreateWorkflowRequest; +import com.formance.formance_sdk.models.orchestration.WorkflowConfig; import com.formance.formance_sdk.operations.CreateWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class CreateWorkflowRequestBuilder { - private Optional request = Optional.empty(); + private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,34 @@ public CreateWorkflowRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public CreateWorkflowRequestBuilder request(CreateWorkflowRequest request) { + public CreateWorkflowRequestBuilder request(WorkflowConfig request) { Utils.checkNotNull(request, "request"); this.request = Optional.of(request); return this; } - public CreateWorkflowRequestBuilder request(Optional request) { + public CreateWorkflowRequestBuilder request(Optional request) { Utils.checkNotNull(request, "request"); this.request = request; return this; } + + public CreateWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreateWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreateWorkflowResponse call() { - RequestOperation, CreateWorkflowResponse> operation - = new CreateWorkflow.Sync(sdkConfiguration, _headers); + RequestOperation, CreateWorkflowResponse> operation + = new CreateWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowResponse.java index df24f14e5..9456b7e91 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreateWorkflowResponse.java @@ -25,7 +25,7 @@ public class CreateWorkflowResponse implements Response { /** * Created workflow */ - private Optional createWorkflowResponse; + private Optional createWorkflowResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class CreateWorkflowResponse implements Response { @JsonCreator public CreateWorkflowResponse( String contentType, - Optional createWorkflowResponse, + Optional createWorkflowResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional createWorkflowResponse() { - return (Optional) createWorkflowResponse; + public Optional createWorkflowResponse() { + return (Optional) createWorkflowResponse; } /** @@ -111,7 +111,7 @@ public CreateWorkflowResponse withContentType(String contentType) { /** * Created workflow */ - public CreateWorkflowResponse withCreateWorkflowResponse(com.formance.formance_sdk.models.shared.CreateWorkflowResponse createWorkflowResponse) { + public CreateWorkflowResponse withCreateWorkflowResponse(com.formance.formance_sdk.models.orchestration.CreateWorkflowResponse createWorkflowResponse) { Utils.checkNotNull(createWorkflowResponse, "createWorkflowResponse"); this.createWorkflowResponse = Optional.ofNullable(createWorkflowResponse); return this; @@ -121,7 +121,7 @@ public CreateWorkflowResponse withCreateWorkflowResponse(com.formance.formance_s /** * Created workflow */ - public CreateWorkflowResponse withCreateWorkflowResponse(Optional createWorkflowResponse) { + public CreateWorkflowResponse withCreateWorkflowResponse(Optional createWorkflowResponse) { Utils.checkNotNull(createWorkflowResponse, "createWorkflowResponse"); this.createWorkflowResponse = createWorkflowResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional createWorkflowResponse = Optional.empty(); + private Optional createWorkflowResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Created workflow */ - public Builder createWorkflowResponse(com.formance.formance_sdk.models.shared.CreateWorkflowResponse createWorkflowResponse) { + public Builder createWorkflowResponse(com.formance.formance_sdk.models.orchestration.CreateWorkflowResponse createWorkflowResponse) { Utils.checkNotNull(createWorkflowResponse, "createWorkflowResponse"); this.createWorkflowResponse = Optional.ofNullable(createWorkflowResponse); return this; @@ -215,7 +215,7 @@ public Builder createWorkflowResponse(com.formance.formance_sdk.models.shared.Cr /** * Created workflow */ - public Builder createWorkflowResponse(Optional createWorkflowResponse) { + public Builder createWorkflowResponse(Optional createWorkflowResponse) { Utils.checkNotNull(createWorkflowResponse, "createWorkflowResponse"); this.createWorkflowResponse = createWorkflowResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequest.java index 68706ecc0..41cc1eebc 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequest.java @@ -16,7 +16,7 @@ public class CreditWalletRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional creditWalletRequest; + private Optional creditWalletRequest; /** * Use an idempotency key @@ -30,7 +30,7 @@ public class CreditWalletRequest { @JsonCreator public CreditWalletRequest( - Optional creditWalletRequest, + Optional creditWalletRequest, Optional idempotencyKey, String id) { Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); @@ -48,8 +48,8 @@ public CreditWalletRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional creditWalletRequest() { - return (Optional) creditWalletRequest; + public Optional creditWalletRequest() { + return (Optional) creditWalletRequest; } /** @@ -70,14 +70,14 @@ public static Builder builder() { } - public CreditWalletRequest withCreditWalletRequest(com.formance.formance_sdk.models.shared.CreditWalletRequest creditWalletRequest) { + public CreditWalletRequest withCreditWalletRequest(com.formance.formance_sdk.models.wallets.CreditWalletRequest creditWalletRequest) { Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); this.creditWalletRequest = Optional.ofNullable(creditWalletRequest); return this; } - public CreditWalletRequest withCreditWalletRequest(Optional creditWalletRequest) { + public CreditWalletRequest withCreditWalletRequest(Optional creditWalletRequest) { Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); this.creditWalletRequest = creditWalletRequest; return this; @@ -140,7 +140,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional creditWalletRequest = Optional.empty(); + private Optional creditWalletRequest = Optional.empty(); private Optional idempotencyKey = Optional.empty(); @@ -151,13 +151,13 @@ private Builder() { } - public Builder creditWalletRequest(com.formance.formance_sdk.models.shared.CreditWalletRequest creditWalletRequest) { + public Builder creditWalletRequest(com.formance.formance_sdk.models.wallets.CreditWalletRequest creditWalletRequest) { Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); this.creditWalletRequest = Optional.ofNullable(creditWalletRequest); return this; } - public Builder creditWalletRequest(Optional creditWalletRequest) { + public Builder creditWalletRequest(Optional creditWalletRequest) { Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); this.creditWalletRequest = creditWalletRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequestBuilder.java index ede37f896..dc9f7f36e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/CreditWalletRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.CreditWallet; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreditWalletRequestBuilder { private CreditWalletRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public CreditWalletRequestBuilder request(CreditWalletRequest request) { this.request = request; return this; } + + public CreditWalletRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public CreditWalletRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public CreditWalletResponse call() { RequestOperation operation - = new CreditWallet.Sync(sdkConfiguration, _headers); + = new CreditWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigRequestBuilder.java index 45b1f689f..0e2bb964b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeactivateConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeactivateConfigRequestBuilder { private DeactivateConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeactivateConfigRequestBuilder request(DeactivateConfigRequest request) { this.request = request; return this; } + + public DeactivateConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeactivateConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeactivateConfigResponse call() { RequestOperation operation - = new DeactivateConfig.Sync(sdkConfiguration, _headers); + = new DeactivateConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigResponse.java index df8180fc6..0f30f41ca 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeactivateConfigResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequest.java index dec4152cf..e4bcab2e0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequest.java @@ -16,7 +16,7 @@ public class DebitWalletRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional debitWalletRequest; + private Optional debitWalletRequest; /** * Use an idempotency key @@ -30,7 +30,7 @@ public class DebitWalletRequest { @JsonCreator public DebitWalletRequest( - Optional debitWalletRequest, + Optional debitWalletRequest, Optional idempotencyKey, String id) { Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); @@ -48,8 +48,8 @@ public DebitWalletRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional debitWalletRequest() { - return (Optional) debitWalletRequest; + public Optional debitWalletRequest() { + return (Optional) debitWalletRequest; } /** @@ -70,14 +70,14 @@ public static Builder builder() { } - public DebitWalletRequest withDebitWalletRequest(com.formance.formance_sdk.models.shared.DebitWalletRequest debitWalletRequest) { + public DebitWalletRequest withDebitWalletRequest(com.formance.formance_sdk.models.wallets.DebitWalletRequest debitWalletRequest) { Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); this.debitWalletRequest = Optional.ofNullable(debitWalletRequest); return this; } - public DebitWalletRequest withDebitWalletRequest(Optional debitWalletRequest) { + public DebitWalletRequest withDebitWalletRequest(Optional debitWalletRequest) { Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); this.debitWalletRequest = debitWalletRequest; return this; @@ -140,7 +140,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional debitWalletRequest = Optional.empty(); + private Optional debitWalletRequest = Optional.empty(); private Optional idempotencyKey = Optional.empty(); @@ -151,13 +151,13 @@ private Builder() { } - public Builder debitWalletRequest(com.formance.formance_sdk.models.shared.DebitWalletRequest debitWalletRequest) { + public Builder debitWalletRequest(com.formance.formance_sdk.models.wallets.DebitWalletRequest debitWalletRequest) { Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); this.debitWalletRequest = Optional.ofNullable(debitWalletRequest); return this; } - public Builder debitWalletRequest(Optional debitWalletRequest) { + public Builder debitWalletRequest(Optional debitWalletRequest) { Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); this.debitWalletRequest = debitWalletRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequestBuilder.java index 5f9c98b2c..b3d42022c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DebitWallet; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DebitWalletRequestBuilder { private DebitWalletRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DebitWalletRequestBuilder request(DebitWalletRequest request) { this.request = request; return this; } + + public DebitWalletRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DebitWalletRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DebitWalletResponse call() { RequestOperation operation - = new DebitWallet.Sync(sdkConfiguration, _headers); + = new DebitWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletResponse.java index f828c4800..ac5d6d616 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DebitWalletResponse.java @@ -25,7 +25,7 @@ public class DebitWalletResponse implements Response { /** * Wallet successfully debited as a pending hold */ - private Optional debitWalletResponse; + private Optional debitWalletResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class DebitWalletResponse implements Response { @JsonCreator public DebitWalletResponse( String contentType, - Optional debitWalletResponse, + Optional debitWalletResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional debitWalletResponse() { - return (Optional) debitWalletResponse; + public Optional debitWalletResponse() { + return (Optional) debitWalletResponse; } /** @@ -111,7 +111,7 @@ public DebitWalletResponse withContentType(String contentType) { /** * Wallet successfully debited as a pending hold */ - public DebitWalletResponse withDebitWalletResponse(com.formance.formance_sdk.models.shared.DebitWalletResponse debitWalletResponse) { + public DebitWalletResponse withDebitWalletResponse(com.formance.formance_sdk.models.wallets.DebitWalletResponse debitWalletResponse) { Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); this.debitWalletResponse = Optional.ofNullable(debitWalletResponse); return this; @@ -121,7 +121,7 @@ public DebitWalletResponse withDebitWalletResponse(com.formance.formance_sdk.mod /** * Wallet successfully debited as a pending hold */ - public DebitWalletResponse withDebitWalletResponse(Optional debitWalletResponse) { + public DebitWalletResponse withDebitWalletResponse(Optional debitWalletResponse) { Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); this.debitWalletResponse = debitWalletResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional debitWalletResponse = Optional.empty(); + private Optional debitWalletResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Wallet successfully debited as a pending hold */ - public Builder debitWalletResponse(com.formance.formance_sdk.models.shared.DebitWalletResponse debitWalletResponse) { + public Builder debitWalletResponse(com.formance.formance_sdk.models.wallets.DebitWalletResponse debitWalletResponse) { Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); this.debitWalletResponse = Optional.ofNullable(debitWalletResponse); return this; @@ -215,7 +215,7 @@ public Builder debitWalletResponse(com.formance.formance_sdk.models.shared.Debit /** * Wallet successfully debited as a pending hold */ - public Builder debitWalletResponse(Optional debitWalletResponse) { + public Builder debitWalletResponse(Optional debitWalletResponse) { Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); this.debitWalletResponse = debitWalletResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeleteClientRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeleteClientRequestBuilder.java index af284620f..42b23fa84 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeleteClientRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeleteClientRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeleteClient; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteClientRequestBuilder { private DeleteClientRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeleteClientRequestBuilder request(DeleteClientRequest request) { this.request = request; return this; } + + public DeleteClientRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeleteClientRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeleteClientResponse call() { RequestOperation operation - = new DeleteClient.Sync(sdkConfiguration, _headers); + = new DeleteClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeleteConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeleteConfigRequestBuilder.java index d1b2e4d05..0b7193a44 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeleteConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeleteConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeleteConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteConfigRequestBuilder { private DeleteConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeleteConfigRequestBuilder request(DeleteConfigRequest request) { this.request = request; return this; } + + public DeleteConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeleteConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeleteConfigResponse call() { RequestOperation operation - = new DeleteConfig.Sync(sdkConfiguration, _headers); + = new DeleteConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeletePolicyRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeletePolicyRequestBuilder.java index 644708fcc..7c98290ba 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeletePolicyRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeletePolicyRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeletePolicy; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeletePolicyRequestBuilder { private DeletePolicyRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeletePolicyRequestBuilder request(DeletePolicyRequest request) { this.request = request; return this; } + + public DeletePolicyRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeletePolicyRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeletePolicyResponse call() { RequestOperation operation - = new DeletePolicy.Sync(sdkConfiguration, _headers); + = new DeletePolicy.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeletePoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeletePoolRequestBuilder.java index 5a25dfaf4..bc39fd6ac 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeletePoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeletePoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeletePool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeletePoolRequestBuilder { private DeletePoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeletePoolRequestBuilder request(DeletePoolRequest request) { this.request = request; return this; } + + public DeletePoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeletePoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeletePoolResponse call() { RequestOperation operation - = new DeletePool.Sync(sdkConfiguration, _headers); + = new DeletePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeleteSecretRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeleteSecretRequestBuilder.java index 5c1848ad5..291f40558 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeleteSecretRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeleteSecretRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeleteSecret; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteSecretRequestBuilder { private DeleteSecretRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeleteSecretRequestBuilder request(DeleteSecretRequest request) { this.request = request; return this; } + + public DeleteSecretRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeleteSecretRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeleteSecretResponse call() { RequestOperation operation - = new DeleteSecret.Sync(sdkConfiguration, _headers); + = new DeleteSecret.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeleteTransferInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeleteTransferInitiationRequestBuilder.java index 5ac3c5c85..4418d73eb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeleteTransferInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeleteTransferInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeleteTransferInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteTransferInitiationRequestBuilder { private DeleteTransferInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeleteTransferInitiationRequestBuilder request(DeleteTransferInitiationRe this.request = request; return this; } + + public DeleteTransferInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeleteTransferInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeleteTransferInitiationResponse call() { RequestOperation operation - = new DeleteTransferInitiation.Sync(sdkConfiguration, _headers); + = new DeleteTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeleteTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeleteTriggerRequestBuilder.java index c56f810fd..5a06fe7fe 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeleteTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeleteTriggerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeleteTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteTriggerRequestBuilder { private DeleteTriggerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeleteTriggerRequestBuilder request(DeleteTriggerRequest request) { this.request = request; return this; } + + public DeleteTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeleteTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeleteTriggerResponse call() { RequestOperation operation - = new DeleteTrigger.Sync(sdkConfiguration, _headers); + = new DeleteTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/DeleteWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/DeleteWorkflowRequestBuilder.java index ac2fd6696..9946115e8 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/DeleteWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/DeleteWorkflowRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.DeleteWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteWorkflowRequestBuilder { private DeleteWorkflowRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public DeleteWorkflowRequestBuilder request(DeleteWorkflowRequest request) { this.request = request; return this; } + + public DeleteWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public DeleteWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public DeleteWorkflowResponse call() { RequestOperation operation - = new DeleteWorkflow.Sync(sdkConfiguration, _headers); + = new DeleteWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequest.java index 1d19ecaed..926439492 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequest.java @@ -14,7 +14,7 @@ public class ForwardBankAccountRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.ForwardBankAccountRequest forwardBankAccountRequest; + private com.formance.formance_sdk.models.payments.ForwardBankAccountRequest forwardBankAccountRequest; /** * The bank account ID. @@ -24,7 +24,7 @@ public class ForwardBankAccountRequest { @JsonCreator public ForwardBankAccountRequest( - com.formance.formance_sdk.models.shared.ForwardBankAccountRequest forwardBankAccountRequest, + com.formance.formance_sdk.models.payments.ForwardBankAccountRequest forwardBankAccountRequest, String bankAccountId) { Utils.checkNotNull(forwardBankAccountRequest, "forwardBankAccountRequest"); Utils.checkNotNull(bankAccountId, "bankAccountId"); @@ -33,7 +33,7 @@ public ForwardBankAccountRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.ForwardBankAccountRequest forwardBankAccountRequest() { + public com.formance.formance_sdk.models.payments.ForwardBankAccountRequest forwardBankAccountRequest() { return forwardBankAccountRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public ForwardBankAccountRequest withForwardBankAccountRequest(com.formance.formance_sdk.models.shared.ForwardBankAccountRequest forwardBankAccountRequest) { + public ForwardBankAccountRequest withForwardBankAccountRequest(com.formance.formance_sdk.models.payments.ForwardBankAccountRequest forwardBankAccountRequest) { Utils.checkNotNull(forwardBankAccountRequest, "forwardBankAccountRequest"); this.forwardBankAccountRequest = forwardBankAccountRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.ForwardBankAccountRequest forwardBankAccountRequest; + private com.formance.formance_sdk.models.payments.ForwardBankAccountRequest forwardBankAccountRequest; private String bankAccountId; @@ -104,7 +104,7 @@ private Builder() { } - public Builder forwardBankAccountRequest(com.formance.formance_sdk.models.shared.ForwardBankAccountRequest forwardBankAccountRequest) { + public Builder forwardBankAccountRequest(com.formance.formance_sdk.models.payments.ForwardBankAccountRequest forwardBankAccountRequest) { Utils.checkNotNull(forwardBankAccountRequest, "forwardBankAccountRequest"); this.forwardBankAccountRequest = forwardBankAccountRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequestBuilder.java index cef9c57a1..2b6b39524 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ForwardBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ForwardBankAccountRequestBuilder { private ForwardBankAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ForwardBankAccountRequestBuilder request(ForwardBankAccountRequest reques this.request = request; return this; } + + public ForwardBankAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ForwardBankAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ForwardBankAccountResponse call() { RequestOperation operation - = new ForwardBankAccount.Sync(sdkConfiguration, _headers); + = new ForwardBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountResponse.java index dcdc7d237..56fa8e558 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ForwardBankAccountResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.BankAccountResponse; +import com.formance.formance_sdk.models.payments.BankAccountResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesRequestBuilder.java index 2ce3bbfc0..68bca9e97 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetAccountBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetAccountBalancesRequestBuilder { private GetAccountBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetAccountBalancesRequestBuilder request(GetAccountBalancesRequest reques this.request = request; return this; } + + public GetAccountBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetAccountBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetAccountBalancesResponse call() { RequestOperation operation - = new GetAccountBalances.Sync(sdkConfiguration, _headers); + = new GetAccountBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesResponse.java index f7c9c99e7..be16c352b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountBalancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.BalancesCursor; +import com.formance.formance_sdk.models.payments.BalancesCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequest.java new file mode 100644 index 000000000..67cd92006 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequest.java @@ -0,0 +1,153 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.utils.SpeakeasyMetadata; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetAccountLedgerRequest { + /** + * Exact address of the account. It must match the following regular expressions pattern: + * ``` + * ^\w+(:\w+)*$ + * ``` + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=address") + private String address; + + /** + * Name of the ledger. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ledger") + private String ledger; + + @JsonCreator + public GetAccountLedgerRequest( + String address, + String ledger) { + Utils.checkNotNull(address, "address"); + Utils.checkNotNull(ledger, "ledger"); + this.address = address; + this.ledger = ledger; + } + + /** + * Exact address of the account. It must match the following regular expressions pattern: + * ``` + * ^\w+(:\w+)*$ + * ``` + */ + @JsonIgnore + public String address() { + return address; + } + + /** + * Name of the ledger. + */ + @JsonIgnore + public String ledger() { + return ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Exact address of the account. It must match the following regular expressions pattern: + * ``` + * ^\w+(:\w+)*$ + * ``` + */ + public GetAccountLedgerRequest withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + /** + * Name of the ledger. + */ + public GetAccountLedgerRequest withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountLedgerRequest other = (GetAccountLedgerRequest) o; + return + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.ledger, other.ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + address, ledger); + } + + @Override + public String toString() { + return Utils.toString(GetAccountLedgerRequest.class, + "address", address, + "ledger", ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String address; + + private String ledger; + + private Builder() { + // force use of static builder() method + } + + + /** + * Exact address of the account. It must match the following regular expressions pattern: + * ``` + * ^\w+(:\w+)*$ + * ``` + */ + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + + /** + * Name of the ledger. + */ + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + public GetAccountLedgerRequest build() { + + return new GetAccountLedgerRequest( + address, ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequestBuilder.java new file mode 100644 index 000000000..f5d3716f9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerRequestBuilder.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetAccountLedger; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetAccountLedgerRequestBuilder { + + private GetAccountLedgerRequest request; + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetAccountLedgerRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetAccountLedgerRequestBuilder request(GetAccountLedgerRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetAccountLedgerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetAccountLedgerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetAccountLedgerResponse call() { + + RequestOperation operation + = new GetAccountLedger.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerResponse.java new file mode 100644 index 000000000..243c01fd3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountLedgerResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.ledger.AccountResponse; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetAccountLedgerResponse implements Response { + /** + * OK + */ + private Optional accountResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetAccountLedgerResponse( + Optional accountResponse, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.accountResponse = accountResponse; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetAccountLedgerResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * OK + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accountResponse() { + return (Optional) accountResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * OK + */ + public GetAccountLedgerResponse withAccountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + + /** + * OK + */ + public GetAccountLedgerResponse withAccountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public GetAccountLedgerResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetAccountLedgerResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetAccountLedgerResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountLedgerResponse other = (GetAccountLedgerResponse) o; + return + Utils.enhancedDeepEquals(this.accountResponse, other.accountResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountResponse, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetAccountLedgerResponse.class, + "accountResponse", accountResponse, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional accountResponse = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * OK + */ + public Builder accountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + /** + * OK + */ + public Builder accountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetAccountLedgerResponse build() { + + return new GetAccountLedgerResponse( + accountResponse, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequest.java new file mode 100644 index 000000000..86cf41f6b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequest.java @@ -0,0 +1,101 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.utils.SpeakeasyMetadata; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetAccountPaymentsRequest { + /** + * The account ID. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=accountId") + private String accountId; + + @JsonCreator + public GetAccountPaymentsRequest( + String accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + } + + /** + * The account ID. + */ + @JsonIgnore + public String accountId() { + return accountId; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The account ID. + */ + public GetAccountPaymentsRequest withAccountId(String accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountPaymentsRequest other = (GetAccountPaymentsRequest) o; + return + Utils.enhancedDeepEquals(this.accountId, other.accountId); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountId); + } + + @Override + public String toString() { + return Utils.toString(GetAccountPaymentsRequest.class, + "accountId", accountId); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String accountId; + + private Builder() { + // force use of static builder() method + } + + + /** + * The account ID. + */ + public Builder accountId(String accountId) { + Utils.checkNotNull(accountId, "accountId"); + this.accountId = accountId; + return this; + } + + public GetAccountPaymentsRequest build() { + + return new GetAccountPaymentsRequest( + accountId); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequestBuilder.java new file mode 100644 index 000000000..01805d50a --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsRequestBuilder.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetAccountPayments; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetAccountPaymentsRequestBuilder { + + private GetAccountPaymentsRequest request; + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetAccountPaymentsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetAccountPaymentsRequestBuilder request(GetAccountPaymentsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public GetAccountPaymentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetAccountPaymentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetAccountPaymentsResponse call() { + + RequestOperation operation + = new GetAccountPayments.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsResponse.java new file mode 100644 index 000000000..47b5f71e2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountPaymentsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.payments.AccountResponse; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetAccountPaymentsResponse implements Response { + /** + * OK + */ + private Optional accountResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetAccountPaymentsResponse( + Optional accountResponse, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.accountResponse = accountResponse; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetAccountPaymentsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * OK + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accountResponse() { + return (Optional) accountResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * OK + */ + public GetAccountPaymentsResponse withAccountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + + /** + * OK + */ + public GetAccountPaymentsResponse withAccountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public GetAccountPaymentsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetAccountPaymentsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetAccountPaymentsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetAccountPaymentsResponse other = (GetAccountPaymentsResponse) o; + return + Utils.enhancedDeepEquals(this.accountResponse, other.accountResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountResponse, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetAccountPaymentsResponse.class, + "accountResponse", accountResponse, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional accountResponse = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * OK + */ + public Builder accountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + /** + * OK + */ + public Builder accountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetAccountPaymentsResponse build() { + + return new GetAccountPaymentsResponse( + accountResponse, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequest.java deleted file mode 100644 index 18764ed2c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequest.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.utils.SpeakeasyMetadata; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetAccountRequest { - /** - * Exact address of the account. It must match the following regular expressions pattern: - * ``` - * ^\w+(:\w+)*$ - * ``` - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=address") - private String address; - - /** - * Name of the ledger. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ledger") - private String ledger; - - @JsonCreator - public GetAccountRequest( - String address, - String ledger) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(ledger, "ledger"); - this.address = address; - this.ledger = ledger; - } - - /** - * Exact address of the account. It must match the following regular expressions pattern: - * ``` - * ^\w+(:\w+)*$ - * ``` - */ - @JsonIgnore - public String address() { - return address; - } - - /** - * Name of the ledger. - */ - @JsonIgnore - public String ledger() { - return ledger; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Exact address of the account. It must match the following regular expressions pattern: - * ``` - * ^\w+(:\w+)*$ - * ``` - */ - public GetAccountRequest withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - /** - * Name of the ledger. - */ - public GetAccountRequest withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAccountRequest other = (GetAccountRequest) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.ledger, other.ledger); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, ledger); - } - - @Override - public String toString() { - return Utils.toString(GetAccountRequest.class, - "address", address, - "ledger", ledger); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String address; - - private String ledger; - - private Builder() { - // force use of static builder() method - } - - - /** - * Exact address of the account. It must match the following regular expressions pattern: - * ``` - * ^\w+(:\w+)*$ - * ``` - */ - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - /** - * Name of the ledger. - */ - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - public GetAccountRequest build() { - - return new GetAccountRequest( - address, ledger); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequestBuilder.java deleted file mode 100644 index a141c2c5a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountRequestBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.GetAccount; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Utils; - -public class GetAccountRequestBuilder { - - private GetAccountRequest request; - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public GetAccountRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public GetAccountRequestBuilder request(GetAccountRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public GetAccountResponse call() { - - RequestOperation operation - = new GetAccount.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest(request)); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetAccountResponse.java deleted file mode 100644 index ff944fa87..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetAccountResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.AccountResponse; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class GetAccountResponse implements Response { - /** - * OK - */ - private Optional accountResponse; - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetAccountResponse( - Optional accountResponse, - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(accountResponse, "accountResponse"); - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.accountResponse = accountResponse; - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public GetAccountResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(Optional.empty(), contentType, statusCode, - rawResponse); - } - - /** - * OK - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountResponse() { - return (Optional) accountResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * OK - */ - public GetAccountResponse withAccountResponse(AccountResponse accountResponse) { - Utils.checkNotNull(accountResponse, "accountResponse"); - this.accountResponse = Optional.ofNullable(accountResponse); - return this; - } - - - /** - * OK - */ - public GetAccountResponse withAccountResponse(Optional accountResponse) { - Utils.checkNotNull(accountResponse, "accountResponse"); - this.accountResponse = accountResponse; - return this; - } - - /** - * HTTP response content type for this operation - */ - public GetAccountResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetAccountResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetAccountResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetAccountResponse other = (GetAccountResponse) o; - return - Utils.enhancedDeepEquals(this.accountResponse, other.accountResponse) && - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountResponse, contentType, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetAccountResponse.class, - "accountResponse", accountResponse, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional accountResponse = Optional.empty(); - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * OK - */ - public Builder accountResponse(AccountResponse accountResponse) { - Utils.checkNotNull(accountResponse, "accountResponse"); - this.accountResponse = Optional.ofNullable(accountResponse); - return this; - } - - /** - * OK - */ - public Builder accountResponse(Optional accountResponse) { - Utils.checkNotNull(accountResponse, "accountResponse"); - this.accountResponse = accountResponse; - return this; - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetAccountResponse build() { - - return new GetAccountResponse( - accountResponse, contentType, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceRequestBuilder.java index b77581a64..f799a717a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetBalance; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetBalanceRequestBuilder { private GetBalanceRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetBalanceRequestBuilder request(GetBalanceRequest request) { this.request = request; return this; } + + public GetBalanceRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetBalanceRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetBalanceResponse call() { RequestOperation operation - = new GetBalance.Sync(sdkConfiguration, _headers); + = new GetBalance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceResponse.java index 92f17dfd8..8d2c5b058 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBalanceResponse.java @@ -25,7 +25,7 @@ public class GetBalanceResponse implements Response { /** * Balance summary */ - private Optional getBalanceResponse; + private Optional getBalanceResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetBalanceResponse implements Response { @JsonCreator public GetBalanceResponse( String contentType, - Optional getBalanceResponse, + Optional getBalanceResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getBalanceResponse() { - return (Optional) getBalanceResponse; + public Optional getBalanceResponse() { + return (Optional) getBalanceResponse; } /** @@ -111,7 +111,7 @@ public GetBalanceResponse withContentType(String contentType) { /** * Balance summary */ - public GetBalanceResponse withGetBalanceResponse(com.formance.formance_sdk.models.shared.GetBalanceResponse getBalanceResponse) { + public GetBalanceResponse withGetBalanceResponse(com.formance.formance_sdk.models.wallets.GetBalanceResponse getBalanceResponse) { Utils.checkNotNull(getBalanceResponse, "getBalanceResponse"); this.getBalanceResponse = Optional.ofNullable(getBalanceResponse); return this; @@ -121,7 +121,7 @@ public GetBalanceResponse withGetBalanceResponse(com.formance.formance_sdk.model /** * Balance summary */ - public GetBalanceResponse withGetBalanceResponse(Optional getBalanceResponse) { + public GetBalanceResponse withGetBalanceResponse(Optional getBalanceResponse) { Utils.checkNotNull(getBalanceResponse, "getBalanceResponse"); this.getBalanceResponse = getBalanceResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getBalanceResponse = Optional.empty(); + private Optional getBalanceResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Balance summary */ - public Builder getBalanceResponse(com.formance.formance_sdk.models.shared.GetBalanceResponse getBalanceResponse) { + public Builder getBalanceResponse(com.formance.formance_sdk.models.wallets.GetBalanceResponse getBalanceResponse) { Utils.checkNotNull(getBalanceResponse, "getBalanceResponse"); this.getBalanceResponse = Optional.ofNullable(getBalanceResponse); return this; @@ -215,7 +215,7 @@ public Builder getBalanceResponse(com.formance.formance_sdk.models.shared.GetBal /** * Balance summary */ - public Builder getBalanceResponse(Optional getBalanceResponse) { + public Builder getBalanceResponse(Optional getBalanceResponse) { Utils.checkNotNull(getBalanceResponse, "getBalanceResponse"); this.getBalanceResponse = getBalanceResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedRequestBuilder.java index 2f51a2987..57a486df4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetBalancesAggregated; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetBalancesAggregatedRequestBuilder { private GetBalancesAggregatedRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetBalancesAggregatedRequestBuilder request(GetBalancesAggregatedRequest this.request = request; return this; } + + public GetBalancesAggregatedRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetBalancesAggregatedRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetBalancesAggregatedResponse call() { RequestOperation operation - = new GetBalancesAggregated.Sync(sdkConfiguration, _headers); + = new GetBalancesAggregated.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedResponse.java index 328eebad1..04c961c3b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesAggregatedResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.AggregateBalancesResponse; +import com.formance.formance_sdk.models.ledger.AggregateBalancesResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesRequestBuilder.java index 9cc8f1aa6..7f226d8b3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetBalancesRequestBuilder { private GetBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetBalancesRequestBuilder request(GetBalancesRequest request) { this.request = request; return this; } + + public GetBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetBalancesResponse call() { RequestOperation operation - = new GetBalances.Sync(sdkConfiguration, _headers); + = new GetBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesResponse.java index 3080dbf2b..e8adbb0b0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBalancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.BalancesCursorResponse; +import com.formance.formance_sdk.models.ledger.BalancesCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountRequestBuilder.java index 81e1a798f..24f1b1241 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetBankAccountRequestBuilder { private GetBankAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetBankAccountRequestBuilder request(GetBankAccountRequest request) { this.request = request; return this; } + + public GetBankAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetBankAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetBankAccountResponse call() { RequestOperation operation - = new GetBankAccount.Sync(sdkConfiguration, _headers); + = new GetBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountResponse.java index d5dbaf0a0..6b8a5cfdc 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetBankAccountResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.BankAccountResponse; +import com.formance.formance_sdk.models.payments.BankAccountResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequest.java index a70befdeb..f1d7fa9db 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequestBuilder.java index c71c41eb6..c5961b543 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetConnectorTask; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetConnectorTaskRequestBuilder { private GetConnectorTaskRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetConnectorTaskRequestBuilder request(GetConnectorTaskRequest request) { this.request = request; return this; } + + public GetConnectorTaskRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetConnectorTaskRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetConnectorTaskResponse call() { RequestOperation operation - = new GetConnectorTask.Sync(sdkConfiguration, _headers); + = new GetConnectorTask.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskResponse.java index 8cb2d576a..8e2197e5a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TaskResponse; +import com.formance.formance_sdk.models.payments.TaskResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Request.java b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Request.java index 6406e3f73..2ad6d21d7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Request.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Request.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1RequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1RequestBuilder.java index 428ddc797..5c23a4206 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1RequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1RequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetConnectorTaskV1; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetConnectorTaskV1RequestBuilder { private GetConnectorTaskV1Request request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetConnectorTaskV1RequestBuilder request(GetConnectorTaskV1Request reques this.request = request; return this; } + + public GetConnectorTaskV1RequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetConnectorTaskV1RequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetConnectorTaskV1Response call() { RequestOperation operation - = new GetConnectorTaskV1.Sync(sdkConfiguration, _headers); + = new GetConnectorTaskV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Response.java b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Response.java index 30081dc28..d92ab3643 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Response.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetConnectorTaskV1Response.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TaskResponse; +import com.formance.formance_sdk.models.payments.TaskResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldRequestBuilder.java index eec4764cc..28fa8ef4d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetHold; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetHoldRequestBuilder { private GetHoldRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetHoldRequestBuilder request(GetHoldRequest request) { this.request = request; return this; } + + public GetHoldRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetHoldRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetHoldResponse call() { RequestOperation operation - = new GetHold.Sync(sdkConfiguration, _headers); + = new GetHold.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldResponse.java index e4ff1d266..cb83e1f66 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldResponse.java @@ -25,7 +25,7 @@ public class GetHoldResponse implements Response { /** * Holds */ - private Optional getHoldResponse; + private Optional getHoldResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetHoldResponse implements Response { @JsonCreator public GetHoldResponse( String contentType, - Optional getHoldResponse, + Optional getHoldResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getHoldResponse() { - return (Optional) getHoldResponse; + public Optional getHoldResponse() { + return (Optional) getHoldResponse; } /** @@ -111,7 +111,7 @@ public GetHoldResponse withContentType(String contentType) { /** * Holds */ - public GetHoldResponse withGetHoldResponse(com.formance.formance_sdk.models.shared.GetHoldResponse getHoldResponse) { + public GetHoldResponse withGetHoldResponse(com.formance.formance_sdk.models.wallets.GetHoldResponse getHoldResponse) { Utils.checkNotNull(getHoldResponse, "getHoldResponse"); this.getHoldResponse = Optional.ofNullable(getHoldResponse); return this; @@ -121,7 +121,7 @@ public GetHoldResponse withGetHoldResponse(com.formance.formance_sdk.models.shar /** * Holds */ - public GetHoldResponse withGetHoldResponse(Optional getHoldResponse) { + public GetHoldResponse withGetHoldResponse(Optional getHoldResponse) { Utils.checkNotNull(getHoldResponse, "getHoldResponse"); this.getHoldResponse = getHoldResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getHoldResponse = Optional.empty(); + private Optional getHoldResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Holds */ - public Builder getHoldResponse(com.formance.formance_sdk.models.shared.GetHoldResponse getHoldResponse) { + public Builder getHoldResponse(com.formance.formance_sdk.models.wallets.GetHoldResponse getHoldResponse) { Utils.checkNotNull(getHoldResponse, "getHoldResponse"); this.getHoldResponse = Optional.ofNullable(getHoldResponse); return this; @@ -215,7 +215,7 @@ public Builder getHoldResponse(com.formance.formance_sdk.models.shared.GetHoldRe /** * Holds */ - public Builder getHoldResponse(Optional getHoldResponse) { + public Builder getHoldResponse(Optional getHoldResponse) { Utils.checkNotNull(getHoldResponse, "getHoldResponse"); this.getHoldResponse = getHoldResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsRequestBuilder.java index c77e63fc6..55108bccd 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetHolds; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetHoldsRequestBuilder { private GetHoldsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetHoldsRequestBuilder request(GetHoldsRequest request) { this.request = request; return this; } + + public GetHoldsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetHoldsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetHoldsResponse call() { RequestOperation operation - = new GetHolds.Sync(sdkConfiguration, _headers); + = new GetHolds.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsResponse.java index ae75c4b91..c61125be1 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetHoldsResponse.java @@ -25,7 +25,7 @@ public class GetHoldsResponse implements Response { /** * Holds */ - private Optional getHoldsResponse; + private Optional getHoldsResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetHoldsResponse implements Response { @JsonCreator public GetHoldsResponse( String contentType, - Optional getHoldsResponse, + Optional getHoldsResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getHoldsResponse() { - return (Optional) getHoldsResponse; + public Optional getHoldsResponse() { + return (Optional) getHoldsResponse; } /** @@ -111,7 +111,7 @@ public GetHoldsResponse withContentType(String contentType) { /** * Holds */ - public GetHoldsResponse withGetHoldsResponse(com.formance.formance_sdk.models.shared.GetHoldsResponse getHoldsResponse) { + public GetHoldsResponse withGetHoldsResponse(com.formance.formance_sdk.models.wallets.GetHoldsResponse getHoldsResponse) { Utils.checkNotNull(getHoldsResponse, "getHoldsResponse"); this.getHoldsResponse = Optional.ofNullable(getHoldsResponse); return this; @@ -121,7 +121,7 @@ public GetHoldsResponse withGetHoldsResponse(com.formance.formance_sdk.models.sh /** * Holds */ - public GetHoldsResponse withGetHoldsResponse(Optional getHoldsResponse) { + public GetHoldsResponse withGetHoldsResponse(Optional getHoldsResponse) { Utils.checkNotNull(getHoldsResponse, "getHoldsResponse"); this.getHoldsResponse = getHoldsResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getHoldsResponse = Optional.empty(); + private Optional getHoldsResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Holds */ - public Builder getHoldsResponse(com.formance.formance_sdk.models.shared.GetHoldsResponse getHoldsResponse) { + public Builder getHoldsResponse(com.formance.formance_sdk.models.wallets.GetHoldsResponse getHoldsResponse) { Utils.checkNotNull(getHoldsResponse, "getHoldsResponse"); this.getHoldsResponse = Optional.ofNullable(getHoldsResponse); return this; @@ -215,7 +215,7 @@ public Builder getHoldsResponse(com.formance.formance_sdk.models.shared.GetHolds /** * Holds */ - public Builder getHoldsResponse(Optional getHoldsResponse) { + public Builder getHoldsResponse(Optional getHoldsResponse) { Utils.checkNotNull(getHoldsResponse, "getHoldsResponse"); this.getHoldsResponse = getHoldsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInfoRequestBuilder.java index 8d7b4d4fd..b983460da 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInfoRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInfoRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.GetInfo; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetInfoRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetInfoRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetInfoRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetInfoRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetInfoResponse call() { RequestlessOperation operation - = new GetInfo.Sync(sdkConfiguration, _headers); + = new GetInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInfoResponse.java index 53ae7b184..856797b2e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInfoResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInfoResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigInfoResponse; +import com.formance.formance_sdk.models.ledger.ConfigInfoResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryRequestBuilder.java index 1d7fd5eb0..e52611520 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetInstanceHistory; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetInstanceHistoryRequestBuilder { private GetInstanceHistoryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetInstanceHistoryRequestBuilder request(GetInstanceHistoryRequest reques this.request = request; return this; } + + public GetInstanceHistoryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetInstanceHistoryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetInstanceHistoryResponse call() { RequestOperation operation - = new GetInstanceHistory.Sync(sdkConfiguration, _headers); + = new GetInstanceHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryResponse.java index bfeb5aa98..1e9f6aad6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceHistoryResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.GetWorkflowInstanceHistoryResponse; +import com.formance.formance_sdk.models.orchestration.GetWorkflowInstanceHistoryResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceRequestBuilder.java index 9967ddfa8..22b2f89c7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetInstance; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetInstanceRequestBuilder { private GetInstanceRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetInstanceRequestBuilder request(GetInstanceRequest request) { this.request = request; return this; } + + public GetInstanceRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetInstanceRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetInstanceResponse call() { RequestOperation operation - = new GetInstance.Sync(sdkConfiguration, _headers); + = new GetInstance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceResponse.java index 6e2881468..e7ebfb898 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.GetWorkflowInstanceResponse; +import com.formance.formance_sdk.models.orchestration.GetWorkflowInstanceResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryRequestBuilder.java index 25048ae42..8126f34a4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetInstanceStageHistory; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetInstanceStageHistoryRequestBuilder { private GetInstanceStageHistoryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetInstanceStageHistoryRequestBuilder request(GetInstanceStageHistoryRequ this.request = request; return this; } + + public GetInstanceStageHistoryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetInstanceStageHistoryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetInstanceStageHistoryResponse call() { RequestOperation operation - = new GetInstanceStageHistory.Sync(sdkConfiguration, _headers); + = new GetInstanceStageHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryResponse.java index 6bf3a4be8..d04d2a2c0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetInstanceStageHistoryResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.GetWorkflowInstanceHistoryStageResponse; +import com.formance.formance_sdk.models.orchestration.GetWorkflowInstanceHistoryStageResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoRequestBuilder.java index dff84b943..54ad014b7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetLedgerInfo; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetLedgerInfoRequestBuilder { private GetLedgerInfoRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetLedgerInfoRequestBuilder request(GetLedgerInfoRequest request) { this.request = request; return this; } + + public GetLedgerInfoRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetLedgerInfoRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetLedgerInfoResponse call() { RequestOperation operation - = new GetLedgerInfo.Sync(sdkConfiguration, _headers); + = new GetLedgerInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoResponse.java index 55d08f296..9f0a7b712 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetLedgerInfoResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.LedgerInfoResponse; +import com.formance.formance_sdk.models.ledger.LedgerInfoResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsRequestBuilder.java index 878c44ada..a1d6b6421 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetManyConfigs; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetManyConfigsRequestBuilder { private GetManyConfigsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetManyConfigsRequestBuilder request(GetManyConfigsRequest request) { this.request = request; return this; } + + public GetManyConfigsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetManyConfigsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetManyConfigsResponse call() { RequestOperation operation - = new GetManyConfigs.Sync(sdkConfiguration, _headers); + = new GetManyConfigs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsResponse.java index 155f603c0..88e290045 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetManyConfigsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigsResponse; +import com.formance.formance_sdk.models.webhooks.ConfigsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetMappingRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetMappingRequestBuilder.java index 0af47f375..74e9ef0de 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetMappingRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetMappingRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetMapping; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetMappingRequestBuilder { private GetMappingRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetMappingRequestBuilder request(GetMappingRequest request) { this.request = request; return this; } + + public GetMappingRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetMappingRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetMappingResponse call() { RequestOperation operation - = new GetMapping.Sync(sdkConfiguration, _headers); + = new GetMapping.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetMappingResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetMappingResponse.java index 127336cf8..b30164054 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetMappingResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetMappingResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.MappingResponse; +import com.formance.formance_sdk.models.ledger.MappingResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetMetricsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetMetricsRequestBuilder.java index 6d6f275ee..721a0581c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetMetricsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetMetricsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.GetMetrics; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetMetricsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetMetricsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetMetricsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetMetricsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetMetricsResponse call() { RequestlessOperation operation - = new GetMetrics.Sync(sdkConfiguration, _headers); + = new GetMetrics.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetOIDCWellKnownsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetOIDCWellKnownsRequestBuilder.java index 75ac46765..c9667fd79 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetOIDCWellKnownsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetOIDCWellKnownsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.GetOIDCWellKnowns; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetOIDCWellKnownsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetOIDCWellKnownsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetOIDCWellKnownsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetOIDCWellKnownsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetOIDCWellKnownsResponse call() { RequestlessOperation operation - = new GetOIDCWellKnowns.Sync(sdkConfiguration, _headers); + = new GetOIDCWellKnowns.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentRequestBuilder.java index 0a9e10028..355510107 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetPayment; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetPaymentRequestBuilder { private GetPaymentRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetPaymentRequestBuilder request(GetPaymentRequest request) { this.request = request; return this; } + + public GetPaymentRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetPaymentRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetPaymentResponse call() { RequestOperation operation - = new GetPayment.Sync(sdkConfiguration, _headers); + = new GetPayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentResponse.java index d0af36686..11832f126 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPaymentResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyRequestBuilder.java index 0dd10437d..4e4158a01 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetPolicy; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetPolicyRequestBuilder { private GetPolicyRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetPolicyRequestBuilder request(GetPolicyRequest request) { this.request = request; return this; } + + public GetPolicyRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetPolicyRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetPolicyResponse call() { RequestOperation operation - = new GetPolicy.Sync(sdkConfiguration, _headers); + = new GetPolicy.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyResponse.java index d10424629..b980dd17c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPolicyResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PolicyResponse; +import com.formance.formance_sdk.models.reconciliation.PolicyResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestRequestBuilder.java index 642df1ed3..c7917c66d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetPoolBalancesLatest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetPoolBalancesLatestRequestBuilder { private GetPoolBalancesLatestRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetPoolBalancesLatestRequestBuilder request(GetPoolBalancesLatestRequest this.request = request; return this; } + + public GetPoolBalancesLatestRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetPoolBalancesLatestRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetPoolBalancesLatestResponse call() { RequestOperation operation - = new GetPoolBalancesLatest.Sync(sdkConfiguration, _headers); + = new GetPoolBalancesLatest.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestResponse.java index 433d77aa7..237e415ec 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesLatestResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PoolBalancesLatestResponse; +import com.formance.formance_sdk.models.payments.PoolBalancesLatestResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesRequestBuilder.java index 104363e4d..379ec02c7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetPoolBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetPoolBalancesRequestBuilder { private GetPoolBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetPoolBalancesRequestBuilder request(GetPoolBalancesRequest request) { this.request = request; return this; } + + public GetPoolBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetPoolBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetPoolBalancesResponse call() { RequestOperation operation - = new GetPoolBalances.Sync(sdkConfiguration, _headers); + = new GetPoolBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesResponse.java index f39a33d3b..4f8ae8b78 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolBalancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PoolBalancesResponse; +import com.formance.formance_sdk.models.payments.PoolBalancesResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolRequestBuilder.java index c1c2a1fd0..15d28e964 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetPool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetPoolRequestBuilder { private GetPoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetPoolRequestBuilder request(GetPoolRequest request) { this.request = request; return this; } + + public GetPoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetPoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetPoolResponse call() { RequestOperation operation - = new GetPool.Sync(sdkConfiguration, _headers); + = new GetPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolResponse.java index 6cc0a42af..b2f0cca71 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetPoolResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetPoolResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PoolResponse; +import com.formance.formance_sdk.models.payments.PoolResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationRequestBuilder.java index 990e0975b..49fa5ed83 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetReconciliation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetReconciliationRequestBuilder { private GetReconciliationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetReconciliationRequestBuilder request(GetReconciliationRequest request) this.request = request; return this; } + + public GetReconciliationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetReconciliationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetReconciliationResponse call() { RequestOperation operation - = new GetReconciliation.Sync(sdkConfiguration, _headers); + = new GetReconciliation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationResponse.java index f30a06c9f..945e84091 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetReconciliationResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthRequestBuilder.java new file mode 100644 index 000000000..f90938ea8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthRequestBuilder.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetServerInfoAuth; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerInfoAuthRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetServerInfoAuthRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetServerInfoAuthRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerInfoAuthRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerInfoAuthResponse call() { + + RequestlessOperation operation + = new GetServerInfoAuth.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest()); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthResponse.java new file mode 100644 index 000000000..a0cddfdd9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoAuthResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.auth.ServerInfo; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetServerInfoAuthResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Server information + */ + private Optional serverInfo; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetServerInfoAuthResponse( + String contentType, + Optional serverInfo, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(serverInfo, "serverInfo"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.serverInfo = serverInfo; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetServerInfoAuthResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Server information + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional serverInfo() { + return (Optional) serverInfo; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetServerInfoAuthResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Server information + */ + public GetServerInfoAuthResponse withServerInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + + /** + * Server information + */ + public GetServerInfoAuthResponse withServerInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerInfoAuthResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerInfoAuthResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerInfoAuthResponse other = (GetServerInfoAuthResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, serverInfo, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerInfoAuthResponse.class, + "contentType", contentType, + "serverInfo", serverInfo, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional serverInfo = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Server information + */ + public Builder serverInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + /** + * Server information + */ + public Builder serverInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetServerInfoAuthResponse build() { + + return new GetServerInfoAuthResponse( + contentType, serverInfo, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationRequestBuilder.java new file mode 100644 index 000000000..93107ed8e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationRequestBuilder.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetServerInfoOrchestration; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerInfoOrchestrationRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetServerInfoOrchestrationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetServerInfoOrchestrationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerInfoOrchestrationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerInfoOrchestrationResponse call() { + + RequestlessOperation operation + = new GetServerInfoOrchestration.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest()); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationResponse.java new file mode 100644 index 000000000..8ce789b28 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoOrchestrationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.orchestration.ServerInfo; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetServerInfoOrchestrationResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Server information + */ + private Optional serverInfo; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetServerInfoOrchestrationResponse( + String contentType, + Optional serverInfo, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(serverInfo, "serverInfo"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.serverInfo = serverInfo; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetServerInfoOrchestrationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Server information + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional serverInfo() { + return (Optional) serverInfo; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetServerInfoOrchestrationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Server information + */ + public GetServerInfoOrchestrationResponse withServerInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + + /** + * Server information + */ + public GetServerInfoOrchestrationResponse withServerInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerInfoOrchestrationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerInfoOrchestrationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerInfoOrchestrationResponse other = (GetServerInfoOrchestrationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, serverInfo, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerInfoOrchestrationResponse.class, + "contentType", contentType, + "serverInfo", serverInfo, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional serverInfo = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Server information + */ + public Builder serverInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + /** + * Server information + */ + public Builder serverInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetServerInfoOrchestrationResponse build() { + + return new GetServerInfoOrchestrationResponse( + contentType, serverInfo, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsRequestBuilder.java new file mode 100644 index 000000000..1869c413b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsRequestBuilder.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetServerInfoPayments; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerInfoPaymentsRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetServerInfoPaymentsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetServerInfoPaymentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerInfoPaymentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerInfoPaymentsResponse call() { + + RequestlessOperation operation + = new GetServerInfoPayments.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest()); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsResponse.java new file mode 100644 index 000000000..5193b04f1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoPaymentsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.payments.ServerInfo; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetServerInfoPaymentsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Server information + */ + private Optional serverInfo; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetServerInfoPaymentsResponse( + String contentType, + Optional serverInfo, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(serverInfo, "serverInfo"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.serverInfo = serverInfo; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetServerInfoPaymentsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Server information + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional serverInfo() { + return (Optional) serverInfo; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetServerInfoPaymentsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Server information + */ + public GetServerInfoPaymentsResponse withServerInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + + /** + * Server information + */ + public GetServerInfoPaymentsResponse withServerInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerInfoPaymentsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerInfoPaymentsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerInfoPaymentsResponse other = (GetServerInfoPaymentsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, serverInfo, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerInfoPaymentsResponse.class, + "contentType", contentType, + "serverInfo", serverInfo, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional serverInfo = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Server information + */ + public Builder serverInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + /** + * Server information + */ + public Builder serverInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetServerInfoPaymentsResponse build() { + + return new GetServerInfoPaymentsResponse( + contentType, serverInfo, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationRequestBuilder.java new file mode 100644 index 000000000..2cb59f396 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationRequestBuilder.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetServerInfoReconciliation; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerInfoReconciliationRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetServerInfoReconciliationRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetServerInfoReconciliationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerInfoReconciliationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerInfoReconciliationResponse call() { + + RequestlessOperation operation + = new GetServerInfoReconciliation.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest()); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationResponse.java new file mode 100644 index 000000000..8cc47542d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoReconciliationResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.reconciliation.ServerInfo; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetServerInfoReconciliationResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Server information + */ + private Optional serverInfo; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetServerInfoReconciliationResponse( + String contentType, + Optional serverInfo, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(serverInfo, "serverInfo"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.serverInfo = serverInfo; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetServerInfoReconciliationResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Server information + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional serverInfo() { + return (Optional) serverInfo; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetServerInfoReconciliationResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Server information + */ + public GetServerInfoReconciliationResponse withServerInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + + /** + * Server information + */ + public GetServerInfoReconciliationResponse withServerInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerInfoReconciliationResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerInfoReconciliationResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerInfoReconciliationResponse other = (GetServerInfoReconciliationResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, serverInfo, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerInfoReconciliationResponse.class, + "contentType", contentType, + "serverInfo", serverInfo, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional serverInfo = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Server information + */ + public Builder serverInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + /** + * Server information + */ + public Builder serverInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetServerInfoReconciliationResponse build() { + + return new GetServerInfoReconciliationResponse( + contentType, serverInfo, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoRequestBuilder.java deleted file mode 100644 index 2bd738600..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoRequestBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.GetServerInfo; -import com.formance.formance_sdk.utils.Headers; - -public class GetServerInfoRequestBuilder { - - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public GetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public GetServerInfoResponse call() { - - RequestlessOperation operation - = new GetServerInfo.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest()); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoResponse.java deleted file mode 100644 index 401a32407..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class GetServerInfoResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * Server information - */ - private Optional serverInfo; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public GetServerInfoResponse( - String contentType, - Optional serverInfo, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(serverInfo, "serverInfo"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.serverInfo = serverInfo; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public GetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, - rawResponse); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * Server information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional serverInfo() { - return (Optional) serverInfo; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public GetServerInfoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * Server information - */ - public GetServerInfoResponse withServerInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - - /** - * Server information - */ - public GetServerInfoResponse withServerInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - /** - * HTTP response status code for this operation - */ - public GetServerInfoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public GetServerInfoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetServerInfoResponse other = (GetServerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, serverInfo, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(GetServerInfoResponse.class, - "contentType", contentType, - "serverInfo", serverInfo, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Optional serverInfo = Optional.empty(); - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * Server information - */ - public Builder serverInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - /** - * Server information - */ - public Builder serverInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public GetServerInfoResponse build() { - - return new GetServerInfoResponse( - contentType, serverInfo, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchRequestBuilder.java new file mode 100644 index 000000000..7876c7123 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchRequestBuilder.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetServerInfoSearch; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerInfoSearchRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetServerInfoSearchRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetServerInfoSearchRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerInfoSearchRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerInfoSearchResponse call() { + + RequestlessOperation operation + = new GetServerInfoSearch.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest()); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchResponse.java new file mode 100644 index 000000000..c7ff18866 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoSearchResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.search.ServerInfo; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetServerInfoSearchResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Server information + */ + private Optional serverInfo; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetServerInfoSearchResponse( + String contentType, + Optional serverInfo, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(serverInfo, "serverInfo"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.serverInfo = serverInfo; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetServerInfoSearchResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Server information + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional serverInfo() { + return (Optional) serverInfo; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetServerInfoSearchResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Server information + */ + public GetServerInfoSearchResponse withServerInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + + /** + * Server information + */ + public GetServerInfoSearchResponse withServerInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerInfoSearchResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerInfoSearchResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerInfoSearchResponse other = (GetServerInfoSearchResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, serverInfo, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerInfoSearchResponse.class, + "contentType", contentType, + "serverInfo", serverInfo, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional serverInfo = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Server information + */ + public Builder serverInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + /** + * Server information + */ + public Builder serverInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetServerInfoSearchResponse build() { + + return new GetServerInfoSearchResponse( + contentType, serverInfo, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsRequestBuilder.java new file mode 100644 index 000000000..397093c6f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsRequestBuilder.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.GetServerInfoWallets; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class GetServerInfoWalletsRequestBuilder { + + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public GetServerInfoWalletsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public GetServerInfoWalletsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetServerInfoWalletsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public GetServerInfoWalletsResponse call() { + + RequestlessOperation operation + = new GetServerInfoWallets.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest()); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsResponse.java new file mode 100644 index 000000000..dc3241207 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetServerInfoWalletsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.wallets.ServerInfo; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class GetServerInfoWalletsResponse implements Response { + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Server information + */ + private Optional serverInfo; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public GetServerInfoWalletsResponse( + String contentType, + Optional serverInfo, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(serverInfo, "serverInfo"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.contentType = contentType; + this.serverInfo = serverInfo; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public GetServerInfoWalletsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(contentType, Optional.empty(), statusCode, + rawResponse); + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Server information + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional serverInfo() { + return (Optional) serverInfo; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * HTTP response content type for this operation + */ + public GetServerInfoWalletsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Server information + */ + public GetServerInfoWalletsResponse withServerInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + + /** + * Server information + */ + public GetServerInfoWalletsResponse withServerInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + /** + * HTTP response status code for this operation + */ + public GetServerInfoWalletsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public GetServerInfoWalletsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetServerInfoWalletsResponse other = (GetServerInfoWalletsResponse) o; + return + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + contentType, serverInfo, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(GetServerInfoWalletsResponse.class, + "contentType", contentType, + "serverInfo", serverInfo, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String contentType; + + private Optional serverInfo = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Server information + */ + public Builder serverInfo(ServerInfo serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = Optional.ofNullable(serverInfo); + return this; + } + + /** + * Server information + */ + public Builder serverInfo(Optional serverInfo) { + Utils.checkNotNull(serverInfo, "serverInfo"); + this.serverInfo = serverInfo; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public GetServerInfoWalletsResponse build() { + + return new GetServerInfoWalletsResponse( + contentType, serverInfo, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionRequestBuilder.java index 6dcbf393e..310a28afe 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetTransactionRequestBuilder { private GetTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetTransactionRequestBuilder request(GetTransactionRequest request) { this.request = request; return this; } + + public GetTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetTransactionResponse call() { RequestOperation operation - = new GetTransaction.Sync(sdkConfiguration, _headers); + = new GetTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionResponse.java index 48d0ba211..9dfd47278 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransactionResponse; +import com.formance.formance_sdk.models.ledger.TransactionResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsRequestBuilder.java index 8ebd6550d..e193950ef 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetTransactions; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetTransactionsRequestBuilder { private GetTransactionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetTransactionsRequestBuilder request(GetTransactionsRequest request) { this.request = request; return this; } + + public GetTransactionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetTransactionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetTransactionsResponse call() { RequestOperation operation - = new GetTransactions.Sync(sdkConfiguration, _headers); + = new GetTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsResponse.java index 4439fedc2..490844d4c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetTransactionsResponse.java @@ -25,7 +25,7 @@ public class GetTransactionsResponse implements Response { /** * OK */ - private Optional getTransactionsResponse; + private Optional getTransactionsResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetTransactionsResponse implements Response { @JsonCreator public GetTransactionsResponse( String contentType, - Optional getTransactionsResponse, + Optional getTransactionsResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getTransactionsResponse() { - return (Optional) getTransactionsResponse; + public Optional getTransactionsResponse() { + return (Optional) getTransactionsResponse; } /** @@ -111,7 +111,7 @@ public GetTransactionsResponse withContentType(String contentType) { /** * OK */ - public GetTransactionsResponse withGetTransactionsResponse(com.formance.formance_sdk.models.shared.GetTransactionsResponse getTransactionsResponse) { + public GetTransactionsResponse withGetTransactionsResponse(com.formance.formance_sdk.models.wallets.GetTransactionsResponse getTransactionsResponse) { Utils.checkNotNull(getTransactionsResponse, "getTransactionsResponse"); this.getTransactionsResponse = Optional.ofNullable(getTransactionsResponse); return this; @@ -121,7 +121,7 @@ public GetTransactionsResponse withGetTransactionsResponse(com.formance.formance /** * OK */ - public GetTransactionsResponse withGetTransactionsResponse(Optional getTransactionsResponse) { + public GetTransactionsResponse withGetTransactionsResponse(Optional getTransactionsResponse) { Utils.checkNotNull(getTransactionsResponse, "getTransactionsResponse"); this.getTransactionsResponse = getTransactionsResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getTransactionsResponse = Optional.empty(); + private Optional getTransactionsResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * OK */ - public Builder getTransactionsResponse(com.formance.formance_sdk.models.shared.GetTransactionsResponse getTransactionsResponse) { + public Builder getTransactionsResponse(com.formance.formance_sdk.models.wallets.GetTransactionsResponse getTransactionsResponse) { Utils.checkNotNull(getTransactionsResponse, "getTransactionsResponse"); this.getTransactionsResponse = Optional.ofNullable(getTransactionsResponse); return this; @@ -215,7 +215,7 @@ public Builder getTransactionsResponse(com.formance.formance_sdk.models.shared.G /** * OK */ - public Builder getTransactionsResponse(Optional getTransactionsResponse) { + public Builder getTransactionsResponse(Optional getTransactionsResponse) { Utils.checkNotNull(getTransactionsResponse, "getTransactionsResponse"); this.getTransactionsResponse = getTransactionsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationRequestBuilder.java index 5956b6d07..a9cbccba5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetTransferInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetTransferInitiationRequestBuilder { private GetTransferInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetTransferInitiationRequestBuilder request(GetTransferInitiationRequest this.request = request; return this; } + + public GetTransferInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetTransferInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetTransferInitiationResponse call() { RequestOperation operation - = new GetTransferInitiation.Sync(sdkConfiguration, _headers); + = new GetTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationResponse.java index 31506c216..6b4671e7b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetTransferInitiationResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransferInitiationResponse; +import com.formance.formance_sdk.models.payments.TransferInitiationResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsRequestBuilder.java index 8e53cd795..f1ccd363d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.GetVersions; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetVersionsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetVersionsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetVersionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetVersionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetVersionsResponse call() { RequestlessOperation operation - = new GetVersions.Sync(sdkConfiguration, _headers); + = new GetVersions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsResponse.java index 8d5aca0d3..749271c49 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetVersionsResponse.java @@ -25,7 +25,7 @@ public class GetVersionsResponse implements Response { /** * OK */ - private Optional getVersionsResponse; + private Optional getVersionsResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetVersionsResponse implements Response { @JsonCreator public GetVersionsResponse( String contentType, - Optional getVersionsResponse, + Optional getVersionsResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getVersionsResponse() { - return (Optional) getVersionsResponse; + public Optional getVersionsResponse() { + return (Optional) getVersionsResponse; } /** @@ -111,7 +111,7 @@ public GetVersionsResponse withContentType(String contentType) { /** * OK */ - public GetVersionsResponse withGetVersionsResponse(com.formance.formance_sdk.models.shared.GetVersionsResponse getVersionsResponse) { + public GetVersionsResponse withGetVersionsResponse(com.formance.formance_sdk.models.gateway.GetVersionsResponse getVersionsResponse) { Utils.checkNotNull(getVersionsResponse, "getVersionsResponse"); this.getVersionsResponse = Optional.ofNullable(getVersionsResponse); return this; @@ -121,7 +121,7 @@ public GetVersionsResponse withGetVersionsResponse(com.formance.formance_sdk.mod /** * OK */ - public GetVersionsResponse withGetVersionsResponse(Optional getVersionsResponse) { + public GetVersionsResponse withGetVersionsResponse(Optional getVersionsResponse) { Utils.checkNotNull(getVersionsResponse, "getVersionsResponse"); this.getVersionsResponse = getVersionsResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getVersionsResponse = Optional.empty(); + private Optional getVersionsResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * OK */ - public Builder getVersionsResponse(com.formance.formance_sdk.models.shared.GetVersionsResponse getVersionsResponse) { + public Builder getVersionsResponse(com.formance.formance_sdk.models.gateway.GetVersionsResponse getVersionsResponse) { Utils.checkNotNull(getVersionsResponse, "getVersionsResponse"); this.getVersionsResponse = Optional.ofNullable(getVersionsResponse); return this; @@ -215,7 +215,7 @@ public Builder getVersionsResponse(com.formance.formance_sdk.models.shared.GetVe /** * OK */ - public Builder getVersionsResponse(Optional getVersionsResponse) { + public Builder getVersionsResponse(Optional getVersionsResponse) { Utils.checkNotNull(getVersionsResponse, "getVersionsResponse"); this.getVersionsResponse = getVersionsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletRequestBuilder.java index 027e1ed12..a805c0dc3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetWallet; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetWalletRequestBuilder { private GetWalletRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetWalletRequestBuilder request(GetWalletRequest request) { this.request = request; return this; } + + public GetWalletRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetWalletRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetWalletResponse call() { RequestOperation operation - = new GetWallet.Sync(sdkConfiguration, _headers); + = new GetWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletResponse.java index eb85c9072..008b5bb6d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletResponse.java @@ -25,7 +25,7 @@ public class GetWalletResponse implements Response { /** * Wallet */ - private Optional getWalletResponse; + private Optional getWalletResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetWalletResponse implements Response { @JsonCreator public GetWalletResponse( String contentType, - Optional getWalletResponse, + Optional getWalletResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getWalletResponse() { - return (Optional) getWalletResponse; + public Optional getWalletResponse() { + return (Optional) getWalletResponse; } /** @@ -111,7 +111,7 @@ public GetWalletResponse withContentType(String contentType) { /** * Wallet */ - public GetWalletResponse withGetWalletResponse(com.formance.formance_sdk.models.shared.GetWalletResponse getWalletResponse) { + public GetWalletResponse withGetWalletResponse(com.formance.formance_sdk.models.wallets.GetWalletResponse getWalletResponse) { Utils.checkNotNull(getWalletResponse, "getWalletResponse"); this.getWalletResponse = Optional.ofNullable(getWalletResponse); return this; @@ -121,7 +121,7 @@ public GetWalletResponse withGetWalletResponse(com.formance.formance_sdk.models. /** * Wallet */ - public GetWalletResponse withGetWalletResponse(Optional getWalletResponse) { + public GetWalletResponse withGetWalletResponse(Optional getWalletResponse) { Utils.checkNotNull(getWalletResponse, "getWalletResponse"); this.getWalletResponse = getWalletResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getWalletResponse = Optional.empty(); + private Optional getWalletResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Wallet */ - public Builder getWalletResponse(com.formance.formance_sdk.models.shared.GetWalletResponse getWalletResponse) { + public Builder getWalletResponse(com.formance.formance_sdk.models.wallets.GetWalletResponse getWalletResponse) { Utils.checkNotNull(getWalletResponse, "getWalletResponse"); this.getWalletResponse = Optional.ofNullable(getWalletResponse); return this; @@ -215,7 +215,7 @@ public Builder getWalletResponse(com.formance.formance_sdk.models.shared.GetWall /** * Wallet */ - public Builder getWalletResponse(Optional getWalletResponse) { + public Builder getWalletResponse(Optional getWalletResponse) { Utils.checkNotNull(getWalletResponse, "getWalletResponse"); this.getWalletResponse = getWalletResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryRequestBuilder.java index 1f777f1e0..5bd747f5f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetWalletSummary; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetWalletSummaryRequestBuilder { private GetWalletSummaryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetWalletSummaryRequestBuilder request(GetWalletSummaryRequest request) { this.request = request; return this; } + + public GetWalletSummaryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetWalletSummaryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetWalletSummaryResponse call() { RequestOperation operation - = new GetWalletSummary.Sync(sdkConfiguration, _headers); + = new GetWalletSummary.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryResponse.java index b6642b7f5..c3ea265a7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetWalletSummaryResponse.java @@ -25,7 +25,7 @@ public class GetWalletSummaryResponse implements Response { /** * Wallet summary */ - private Optional getWalletSummaryResponse; + private Optional getWalletSummaryResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetWalletSummaryResponse implements Response { @JsonCreator public GetWalletSummaryResponse( String contentType, - Optional getWalletSummaryResponse, + Optional getWalletSummaryResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getWalletSummaryResponse() { - return (Optional) getWalletSummaryResponse; + public Optional getWalletSummaryResponse() { + return (Optional) getWalletSummaryResponse; } /** @@ -111,7 +111,7 @@ public GetWalletSummaryResponse withContentType(String contentType) { /** * Wallet summary */ - public GetWalletSummaryResponse withGetWalletSummaryResponse(com.formance.formance_sdk.models.shared.GetWalletSummaryResponse getWalletSummaryResponse) { + public GetWalletSummaryResponse withGetWalletSummaryResponse(com.formance.formance_sdk.models.wallets.GetWalletSummaryResponse getWalletSummaryResponse) { Utils.checkNotNull(getWalletSummaryResponse, "getWalletSummaryResponse"); this.getWalletSummaryResponse = Optional.ofNullable(getWalletSummaryResponse); return this; @@ -121,7 +121,7 @@ public GetWalletSummaryResponse withGetWalletSummaryResponse(com.formance.forman /** * Wallet summary */ - public GetWalletSummaryResponse withGetWalletSummaryResponse(Optional getWalletSummaryResponse) { + public GetWalletSummaryResponse withGetWalletSummaryResponse(Optional getWalletSummaryResponse) { Utils.checkNotNull(getWalletSummaryResponse, "getWalletSummaryResponse"); this.getWalletSummaryResponse = getWalletSummaryResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getWalletSummaryResponse = Optional.empty(); + private Optional getWalletSummaryResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Wallet summary */ - public Builder getWalletSummaryResponse(com.formance.formance_sdk.models.shared.GetWalletSummaryResponse getWalletSummaryResponse) { + public Builder getWalletSummaryResponse(com.formance.formance_sdk.models.wallets.GetWalletSummaryResponse getWalletSummaryResponse) { Utils.checkNotNull(getWalletSummaryResponse, "getWalletSummaryResponse"); this.getWalletSummaryResponse = Optional.ofNullable(getWalletSummaryResponse); return this; @@ -215,7 +215,7 @@ public Builder getWalletSummaryResponse(com.formance.formance_sdk.models.shared. /** * Wallet summary */ - public Builder getWalletSummaryResponse(Optional getWalletSummaryResponse) { + public Builder getWalletSummaryResponse(Optional getWalletSummaryResponse) { Utils.checkNotNull(getWalletSummaryResponse, "getWalletSummaryResponse"); this.getWalletSummaryResponse = getWalletSummaryResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowRequestBuilder.java index 7106d9f63..d36c4ec00 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.GetWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetWorkflowRequestBuilder { private GetWorkflowRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public GetWorkflowRequestBuilder request(GetWorkflowRequest request) { this.request = request; return this; } + + public GetWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public GetWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public GetWorkflowResponse call() { RequestOperation operation - = new GetWorkflow.Sync(sdkConfiguration, _headers); + = new GetWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowResponse.java index dd7d8aaa6..e4eaf33df 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/GetWorkflowResponse.java @@ -25,7 +25,7 @@ public class GetWorkflowResponse implements Response { /** * The workflow */ - private Optional getWorkflowResponse; + private Optional getWorkflowResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class GetWorkflowResponse implements Response { @JsonCreator public GetWorkflowResponse( String contentType, - Optional getWorkflowResponse, + Optional getWorkflowResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional getWorkflowResponse() { - return (Optional) getWorkflowResponse; + public Optional getWorkflowResponse() { + return (Optional) getWorkflowResponse; } /** @@ -111,7 +111,7 @@ public GetWorkflowResponse withContentType(String contentType) { /** * The workflow */ - public GetWorkflowResponse withGetWorkflowResponse(com.formance.formance_sdk.models.shared.GetWorkflowResponse getWorkflowResponse) { + public GetWorkflowResponse withGetWorkflowResponse(com.formance.formance_sdk.models.orchestration.GetWorkflowResponse getWorkflowResponse) { Utils.checkNotNull(getWorkflowResponse, "getWorkflowResponse"); this.getWorkflowResponse = Optional.ofNullable(getWorkflowResponse); return this; @@ -121,7 +121,7 @@ public GetWorkflowResponse withGetWorkflowResponse(com.formance.formance_sdk.mod /** * The workflow */ - public GetWorkflowResponse withGetWorkflowResponse(Optional getWorkflowResponse) { + public GetWorkflowResponse withGetWorkflowResponse(Optional getWorkflowResponse) { Utils.checkNotNull(getWorkflowResponse, "getWorkflowResponse"); this.getWorkflowResponse = getWorkflowResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional getWorkflowResponse = Optional.empty(); + private Optional getWorkflowResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * The workflow */ - public Builder getWorkflowResponse(com.formance.formance_sdk.models.shared.GetWorkflowResponse getWorkflowResponse) { + public Builder getWorkflowResponse(com.formance.formance_sdk.models.orchestration.GetWorkflowResponse getWorkflowResponse) { Utils.checkNotNull(getWorkflowResponse, "getWorkflowResponse"); this.getWorkflowResponse = Optional.ofNullable(getWorkflowResponse); return this; @@ -215,7 +215,7 @@ public Builder getWorkflowResponse(com.formance.formance_sdk.models.shared.GetWo /** * The workflow */ - public Builder getWorkflowResponse(Optional getWorkflowResponse) { + public Builder getWorkflowResponse(Optional getWorkflowResponse) { Utils.checkNotNull(getWorkflowResponse, "getWorkflowResponse"); this.getWorkflowResponse = getWorkflowResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigRequestBuilder.java index bd9c35c1a..9720de923 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ConfigUser; import com.formance.formance_sdk.operations.InsertConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class InsertConfigRequestBuilder { private ConfigUser request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public InsertConfigRequestBuilder request(ConfigUser request) { this.request = request; return this; } + + public InsertConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public InsertConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public InsertConfigResponse call() { RequestOperation operation - = new InsertConfig.Sync(sdkConfiguration, _headers); + = new InsertConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigResponse.java index 087c42e3b..c8949d9ea 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/InsertConfigResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequest.java index f6f6526d1..484715f2b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequest.java @@ -5,8 +5,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; -import com.formance.formance_sdk.models.shared.ConnectorConfig; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.ConnectorConfig; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequestBuilder.java index 2d5b8392f..e032d196d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.InstallConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class InstallConnectorRequestBuilder { private InstallConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public InstallConnectorRequestBuilder request(InstallConnectorRequest request) { this.request = request; return this; } + + public InstallConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public InstallConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public InstallConnectorResponse call() { RequestOperation operation - = new InstallConnector.Sync(sdkConfiguration, _headers); + = new InstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorResponse.java index 2378a134d..8f613a5f0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/InstallConnectorResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConnectorResponse; +import com.formance.formance_sdk.models.payments.ConnectorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequest.java new file mode 100644 index 000000000..500d2c79a --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequest.java @@ -0,0 +1,599 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.utils.SpeakeasyMetadata; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Deprecated; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class ListAccountsLedgerRequest { + /** + * Filter accounts by address pattern (regular expression placed between ^ and $). + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=address") + private Optional address; + + /** + * Pagination cursor, will return accounts after given address, in descending order. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=after") + private Optional after; + + /** + * Filter accounts by their balance (default operator is gte) + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=balance") + private Optional balance; + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") + private Optional cursor; + + /** + * Name of the ledger. + */ + @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ledger") + private String ledger; + + /** + * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example + * below. + */ + @SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=metadata") + private Optional> metadata; + + /** + * The maximum number of results to return per page. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=pageSize") + private Optional pageSize; + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + * Deprecated, please use `cursor` instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=pagination_token") + @Deprecated + private Optional paginationToken; + + @JsonCreator + public ListAccountsLedgerRequest( + Optional address, + Optional after, + Optional balance, + Optional cursor, + String ledger, + Optional> metadata, + Optional pageSize, + Optional paginationToken) { + Utils.checkNotNull(address, "address"); + Utils.checkNotNull(after, "after"); + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(cursor, "cursor"); + Utils.checkNotNull(ledger, "ledger"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(paginationToken, "paginationToken"); + this.address = address; + this.after = after; + this.balance = balance; + this.cursor = cursor; + this.ledger = ledger; + this.metadata = metadata; + this.pageSize = pageSize; + this.paginationToken = paginationToken; + } + + public ListAccountsLedgerRequest( + String ledger) { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), ledger, Optional.empty(), + Optional.empty(), Optional.empty()); + } + + /** + * Filter accounts by address pattern (regular expression placed between ^ and $). + */ + @JsonIgnore + public Optional address() { + return address; + } + + /** + * Pagination cursor, will return accounts after given address, in descending order. + */ + @JsonIgnore + public Optional after() { + return after; + } + + /** + * Filter accounts by their balance (default operator is gte) + */ + @JsonIgnore + public Optional balance() { + return balance; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + @JsonIgnore + public Optional cursor() { + return cursor; + } + + /** + * Name of the ledger. + */ + @JsonIgnore + public String ledger() { + return ledger; + } + + /** + * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example + * below. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + /** + * The maximum number of results to return per page. + */ + @JsonIgnore + public Optional pageSize() { + return pageSize; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + * Deprecated, please use `cursor` instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + @JsonIgnore + public Optional paginationToken() { + return paginationToken; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * Filter accounts by address pattern (regular expression placed between ^ and $). + */ + public ListAccountsLedgerRequest withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = Optional.ofNullable(address); + return this; + } + + + /** + * Filter accounts by address pattern (regular expression placed between ^ and $). + */ + public ListAccountsLedgerRequest withAddress(Optional address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + /** + * Pagination cursor, will return accounts after given address, in descending order. + */ + public ListAccountsLedgerRequest withAfter(String after) { + Utils.checkNotNull(after, "after"); + this.after = Optional.ofNullable(after); + return this; + } + + + /** + * Pagination cursor, will return accounts after given address, in descending order. + */ + public ListAccountsLedgerRequest withAfter(Optional after) { + Utils.checkNotNull(after, "after"); + this.after = after; + return this; + } + + /** + * Filter accounts by their balance (default operator is gte) + */ + public ListAccountsLedgerRequest withBalance(long balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + /** + * Filter accounts by their balance (default operator is gte) + */ + public ListAccountsLedgerRequest withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public ListAccountsLedgerRequest withCursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); + return this; + } + + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public ListAccountsLedgerRequest withCursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + /** + * Name of the ledger. + */ + public ListAccountsLedgerRequest withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + /** + * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example + * below. + */ + public ListAccountsLedgerRequest withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + /** + * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example + * below. + */ + public ListAccountsLedgerRequest withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * The maximum number of results to return per page. + */ + public ListAccountsLedgerRequest withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + + /** + * The maximum number of results to return per page. + */ + public ListAccountsLedgerRequest withPageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + * Deprecated, please use `cursor` instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public ListAccountsLedgerRequest withPaginationToken(String paginationToken) { + Utils.checkNotNull(paginationToken, "paginationToken"); + this.paginationToken = Optional.ofNullable(paginationToken); + return this; + } + + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + * Deprecated, please use `cursor` instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public ListAccountsLedgerRequest withPaginationToken(Optional paginationToken) { + Utils.checkNotNull(paginationToken, "paginationToken"); + this.paginationToken = paginationToken; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountsLedgerRequest other = (ListAccountsLedgerRequest) o; + return + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.after, other.after) && + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.ledger, other.ledger) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.paginationToken, other.paginationToken); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + address, after, balance, + cursor, ledger, metadata, + pageSize, paginationToken); + } + + @Override + public String toString() { + return Utils.toString(ListAccountsLedgerRequest.class, + "address", address, + "after", after, + "balance", balance, + "cursor", cursor, + "ledger", ledger, + "metadata", metadata, + "pageSize", pageSize, + "paginationToken", paginationToken); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional address = Optional.empty(); + + private Optional after = Optional.empty(); + + private Optional balance = Optional.empty(); + + private Optional cursor = Optional.empty(); + + private String ledger; + + private Optional> metadata = Optional.empty(); + + private Optional pageSize = Optional.empty(); + + @Deprecated + private Optional paginationToken = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * Filter accounts by address pattern (regular expression placed between ^ and $). + */ + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = Optional.ofNullable(address); + return this; + } + + /** + * Filter accounts by address pattern (regular expression placed between ^ and $). + */ + public Builder address(Optional address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + + /** + * Pagination cursor, will return accounts after given address, in descending order. + */ + public Builder after(String after) { + Utils.checkNotNull(after, "after"); + this.after = Optional.ofNullable(after); + return this; + } + + /** + * Pagination cursor, will return accounts after given address, in descending order. + */ + public Builder after(Optional after) { + Utils.checkNotNull(after, "after"); + this.after = after; + return this; + } + + + /** + * Filter accounts by their balance (default operator is gte) + */ + public Builder balance(long balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + /** + * Filter accounts by their balance (default operator is gte) + */ + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public Builder cursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); + return this; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public Builder cursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + + /** + * Name of the ledger. + */ + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + + /** + * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example + * below. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + /** + * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example + * below. + */ + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * The maximum number of results to return per page. + */ + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * The maximum number of results to return per page. + */ + public Builder pageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + * Deprecated, please use `cursor` instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder paginationToken(String paginationToken) { + Utils.checkNotNull(paginationToken, "paginationToken"); + this.paginationToken = Optional.ofNullable(paginationToken); + return this; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 1000. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + * Deprecated, please use `cursor` instead. + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder paginationToken(Optional paginationToken) { + Utils.checkNotNull(paginationToken, "paginationToken"); + this.paginationToken = paginationToken; + return this; + } + + public ListAccountsLedgerRequest build() { + + return new ListAccountsLedgerRequest( + address, after, balance, + cursor, ledger, metadata, + pageSize, paginationToken); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequestBuilder.java new file mode 100644 index 000000000..c7a1be380 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerRequestBuilder.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.ListAccountsLedger; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ListAccountsLedgerRequestBuilder { + + private ListAccountsLedgerRequest request; + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListAccountsLedgerRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListAccountsLedgerRequestBuilder request(ListAccountsLedgerRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public ListAccountsLedgerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListAccountsLedgerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public ListAccountsLedgerResponse call() { + + RequestOperation operation + = new ListAccountsLedger.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerResponse.java new file mode 100644 index 000000000..169193412 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsLedgerResponse.java @@ -0,0 +1,313 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.ledger.AccountsCursorResponse; +import com.formance.formance_sdk.models.ledger.ErrorResponse; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListAccountsLedgerResponse implements Response { + /** + * OK + */ + private Optional accountsCursorResponse; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * Not found + */ + private Optional errorResponse; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListAccountsLedgerResponse( + Optional accountsCursorResponse, + String contentType, + Optional errorResponse, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(errorResponse, "errorResponse"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.accountsCursorResponse = accountsCursorResponse; + this.contentType = contentType; + this.errorResponse = errorResponse; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListAccountsLedgerResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, Optional.empty(), + statusCode, rawResponse); + } + + /** + * OK + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accountsCursorResponse() { + return (Optional) accountsCursorResponse; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * Not found + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional errorResponse() { + return (Optional) errorResponse; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * OK + */ + public ListAccountsLedgerResponse withAccountsCursorResponse(AccountsCursorResponse accountsCursorResponse) { + Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); + this.accountsCursorResponse = Optional.ofNullable(accountsCursorResponse); + return this; + } + + + /** + * OK + */ + public ListAccountsLedgerResponse withAccountsCursorResponse(Optional accountsCursorResponse) { + Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); + this.accountsCursorResponse = accountsCursorResponse; + return this; + } + + /** + * HTTP response content type for this operation + */ + public ListAccountsLedgerResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * Not found + */ + public ListAccountsLedgerResponse withErrorResponse(ErrorResponse errorResponse) { + Utils.checkNotNull(errorResponse, "errorResponse"); + this.errorResponse = Optional.ofNullable(errorResponse); + return this; + } + + + /** + * Not found + */ + public ListAccountsLedgerResponse withErrorResponse(Optional errorResponse) { + Utils.checkNotNull(errorResponse, "errorResponse"); + this.errorResponse = errorResponse; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListAccountsLedgerResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListAccountsLedgerResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountsLedgerResponse other = (ListAccountsLedgerResponse) o; + return + Utils.enhancedDeepEquals(this.accountsCursorResponse, other.accountsCursorResponse) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.errorResponse, other.errorResponse) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountsCursorResponse, contentType, errorResponse, + statusCode, rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListAccountsLedgerResponse.class, + "accountsCursorResponse", accountsCursorResponse, + "contentType", contentType, + "errorResponse", errorResponse, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional accountsCursorResponse = Optional.empty(); + + private String contentType; + + private Optional errorResponse = Optional.empty(); + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * OK + */ + public Builder accountsCursorResponse(AccountsCursorResponse accountsCursorResponse) { + Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); + this.accountsCursorResponse = Optional.ofNullable(accountsCursorResponse); + return this; + } + + /** + * OK + */ + public Builder accountsCursorResponse(Optional accountsCursorResponse) { + Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); + this.accountsCursorResponse = accountsCursorResponse; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * Not found + */ + public Builder errorResponse(ErrorResponse errorResponse) { + Utils.checkNotNull(errorResponse, "errorResponse"); + this.errorResponse = Optional.ofNullable(errorResponse); + return this; + } + + /** + * Not found + */ + public Builder errorResponse(Optional errorResponse) { + Utils.checkNotNull(errorResponse, "errorResponse"); + this.errorResponse = errorResponse; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListAccountsLedgerResponse build() { + + return new ListAccountsLedgerResponse( + accountsCursorResponse, contentType, errorResponse, + statusCode, rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequest.java new file mode 100644 index 000000000..13998164b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequest.java @@ -0,0 +1,383 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.utils.LazySingletonValue; +import com.formance.formance_sdk.utils.SpeakeasyMetadata; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class ListAccountsPaymentsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + + /** + * Parameter used in pagination requests. Maximum page size is set to 15. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") + private Optional cursor; + + /** + * The maximum number of results to return per page. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=pageSize") + private Optional pageSize; + + /** + * Filters used to filter resources. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") + private Optional query; + + /** + * Fields used to sort payments (default is date:desc). + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") + private Optional> sort; + + @JsonCreator + public ListAccountsPaymentsRequest( + Optional> requestBody, + Optional cursor, + Optional pageSize, + Optional query, + Optional> sort) { + Utils.checkNotNull(requestBody, "requestBody"); + Utils.checkNotNull(cursor, "cursor"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(query, "query"); + Utils.checkNotNull(sort, "sort"); + this.requestBody = requestBody; + this.cursor = cursor; + this.pageSize = pageSize; + this.query = query; + this.sort = sort; + } + + public ListAccountsPaymentsRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 15. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + @JsonIgnore + public Optional cursor() { + return cursor; + } + + /** + * The maximum number of results to return per page. + */ + @JsonIgnore + public Optional pageSize() { + return pageSize; + } + + /** + * Filters used to filter resources. + */ + @JsonIgnore + public Optional query() { + return query; + } + + /** + * Fields used to sort payments (default is date:desc). + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> sort() { + return (Optional>) sort; + } + + public static Builder builder() { + return new Builder(); + } + + + public ListAccountsPaymentsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public ListAccountsPaymentsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 15. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public ListAccountsPaymentsRequest withCursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); + return this; + } + + + /** + * Parameter used in pagination requests. Maximum page size is set to 15. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public ListAccountsPaymentsRequest withCursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + /** + * The maximum number of results to return per page. + */ + public ListAccountsPaymentsRequest withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + + /** + * The maximum number of results to return per page. + */ + public ListAccountsPaymentsRequest withPageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + /** + * Filters used to filter resources. + */ + public ListAccountsPaymentsRequest withQuery(String query) { + Utils.checkNotNull(query, "query"); + this.query = Optional.ofNullable(query); + return this; + } + + + /** + * Filters used to filter resources. + */ + public ListAccountsPaymentsRequest withQuery(Optional query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + /** + * Fields used to sort payments (default is date:desc). + */ + public ListAccountsPaymentsRequest withSort(List sort) { + Utils.checkNotNull(sort, "sort"); + this.sort = Optional.ofNullable(sort); + return this; + } + + + /** + * Fields used to sort payments (default is date:desc). + */ + public ListAccountsPaymentsRequest withSort(Optional> sort) { + Utils.checkNotNull(sort, "sort"); + this.sort = sort; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountsPaymentsRequest other = (ListAccountsPaymentsRequest) o; + return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && + Utils.enhancedDeepEquals(this.cursor, other.cursor) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.query, other.query) && + Utils.enhancedDeepEquals(this.sort, other.sort); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + requestBody, cursor, pageSize, + query, sort); + } + + @Override + public String toString() { + return Utils.toString(ListAccountsPaymentsRequest.class, + "requestBody", requestBody, + "cursor", cursor, + "pageSize", pageSize, + "query", query, + "sort", sort); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> requestBody = Optional.empty(); + + private Optional cursor = Optional.empty(); + + private Optional pageSize; + + private Optional query = Optional.empty(); + + private Optional> sort = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + + /** + * Parameter used in pagination requests. Maximum page size is set to 15. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public Builder cursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); + return this; + } + + /** + * Parameter used in pagination requests. Maximum page size is set to 15. + * Set to the value of next for the next page of results. + * Set to the value of previous for the previous page of results. + * No other parameters can be set when this parameter is set. + */ + public Builder cursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + + /** + * The maximum number of results to return per page. + */ + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + /** + * The maximum number of results to return per page. + */ + public Builder pageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + /** + * Filters used to filter resources. + */ + public Builder query(String query) { + Utils.checkNotNull(query, "query"); + this.query = Optional.ofNullable(query); + return this; + } + + /** + * Filters used to filter resources. + */ + public Builder query(Optional query) { + Utils.checkNotNull(query, "query"); + this.query = query; + return this; + } + + + /** + * Fields used to sort payments (default is date:desc). + */ + public Builder sort(List sort) { + Utils.checkNotNull(sort, "sort"); + this.sort = Optional.ofNullable(sort); + return this; + } + + /** + * Fields used to sort payments (default is date:desc). + */ + public Builder sort(Optional> sort) { + Utils.checkNotNull(sort, "sort"); + this.sort = sort; + return this; + } + + public ListAccountsPaymentsRequest build() { + if (pageSize == null) { + pageSize = _SINGLETON_VALUE_PageSize.value(); + } + + return new ListAccountsPaymentsRequest( + requestBody, cursor, pageSize, + query, sort); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_PageSize = + new LazySingletonValue<>( + "pageSize", + "15", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequestBuilder.java new file mode 100644 index 000000000..b12c38dad --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsRequestBuilder.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; + +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.operations.ListAccountsPayments; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; + +public class ListAccountsPaymentsRequestBuilder { + + private ListAccountsPaymentsRequest request; + private Optional serverURL = Optional.empty(); + private final SDKConfiguration sdkConfiguration; + private final Headers _headers = new Headers(); + + public ListAccountsPaymentsRequestBuilder(SDKConfiguration sdkConfiguration) { + this.sdkConfiguration = sdkConfiguration; + } + + public ListAccountsPaymentsRequestBuilder request(ListAccountsPaymentsRequest request) { + Utils.checkNotNull(request, "request"); + this.request = request; + return this; + } + + public ListAccountsPaymentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListAccountsPaymentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } + + public ListAccountsPaymentsResponse call() { + + RequestOperation operation + = new ListAccountsPayments.Sync(sdkConfiguration, serverURL, _headers); + + return operation.handleResponse(operation.doRequest(request)); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsResponse.java new file mode 100644 index 000000000..db847df2e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsPaymentsResponse.java @@ -0,0 +1,253 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.payments.AccountsCursor; +import com.formance.formance_sdk.utils.Response; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Integer; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.net.http.HttpResponse; +import java.util.Optional; + + +public class ListAccountsPaymentsResponse implements Response { + /** + * OK + */ + private Optional accountsCursor; + + /** + * HTTP response content type for this operation + */ + private String contentType; + + /** + * HTTP response status code for this operation + */ + private int statusCode; + + /** + * Raw HTTP response; suitable for custom response parsing + */ + private HttpResponse rawResponse; + + @JsonCreator + public ListAccountsPaymentsResponse( + Optional accountsCursor, + String contentType, + int statusCode, + HttpResponse rawResponse) { + Utils.checkNotNull(accountsCursor, "accountsCursor"); + Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(statusCode, "statusCode"); + Utils.checkNotNull(rawResponse, "rawResponse"); + this.accountsCursor = accountsCursor; + this.contentType = contentType; + this.statusCode = statusCode; + this.rawResponse = rawResponse; + } + + public ListAccountsPaymentsResponse( + String contentType, + int statusCode, + HttpResponse rawResponse) { + this(Optional.empty(), contentType, statusCode, + rawResponse); + } + + /** + * OK + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accountsCursor() { + return (Optional) accountsCursor; + } + + /** + * HTTP response content type for this operation + */ + @JsonIgnore + public String contentType() { + return contentType; + } + + /** + * HTTP response status code for this operation + */ + @JsonIgnore + public int statusCode() { + return statusCode; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + @JsonIgnore + public HttpResponse rawResponse() { + return rawResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * OK + */ + public ListAccountsPaymentsResponse withAccountsCursor(AccountsCursor accountsCursor) { + Utils.checkNotNull(accountsCursor, "accountsCursor"); + this.accountsCursor = Optional.ofNullable(accountsCursor); + return this; + } + + + /** + * OK + */ + public ListAccountsPaymentsResponse withAccountsCursor(Optional accountsCursor) { + Utils.checkNotNull(accountsCursor, "accountsCursor"); + this.accountsCursor = accountsCursor; + return this; + } + + /** + * HTTP response content type for this operation + */ + public ListAccountsPaymentsResponse withContentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + /** + * HTTP response status code for this operation + */ + public ListAccountsPaymentsResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public ListAccountsPaymentsResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAccountsPaymentsResponse other = (ListAccountsPaymentsResponse) o; + return + Utils.enhancedDeepEquals(this.accountsCursor, other.accountsCursor) && + Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountsCursor, contentType, statusCode, + rawResponse); + } + + @Override + public String toString() { + return Utils.toString(ListAccountsPaymentsResponse.class, + "accountsCursor", accountsCursor, + "contentType", contentType, + "statusCode", statusCode, + "rawResponse", rawResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional accountsCursor = Optional.empty(); + + private String contentType; + + private Integer statusCode; + + private HttpResponse rawResponse; + + private Builder() { + // force use of static builder() method + } + + + /** + * OK + */ + public Builder accountsCursor(AccountsCursor accountsCursor) { + Utils.checkNotNull(accountsCursor, "accountsCursor"); + this.accountsCursor = Optional.ofNullable(accountsCursor); + return this; + } + + /** + * OK + */ + public Builder accountsCursor(Optional accountsCursor) { + Utils.checkNotNull(accountsCursor, "accountsCursor"); + this.accountsCursor = accountsCursor; + return this; + } + + + /** + * HTTP response content type for this operation + */ + public Builder contentType(String contentType) { + Utils.checkNotNull(contentType, "contentType"); + this.contentType = contentType; + return this; + } + + + /** + * HTTP response status code for this operation + */ + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; + return this; + } + + + /** + * Raw HTTP response; suitable for custom response parsing + */ + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; + return this; + } + + public ListAccountsPaymentsResponse build() { + + return new ListAccountsPaymentsResponse( + accountsCursor, contentType, statusCode, + rawResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequest.java deleted file mode 100644 index ba9b738d1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequest.java +++ /dev/null @@ -1,599 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.utils.SpeakeasyMetadata; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Deprecated; -import java.lang.Long; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class ListAccountsRequest { - /** - * Filter accounts by address pattern (regular expression placed between ^ and $). - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=address") - private Optional address; - - /** - * Pagination cursor, will return accounts after given address, in descending order. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=after") - private Optional after; - - /** - * Filter accounts by their balance (default operator is gte) - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=balance") - private Optional balance; - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private Optional cursor; - - /** - * Name of the ledger. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=ledger") - private String ledger; - - /** - * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example - * below. - */ - @SpeakeasyMetadata("queryParam:style=deepObject,explode=true,name=metadata") - private Optional> metadata; - - /** - * The maximum number of results to return per page. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=pageSize") - private Optional pageSize; - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - * Deprecated, please use `cursor` instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=pagination_token") - @Deprecated - private Optional paginationToken; - - @JsonCreator - public ListAccountsRequest( - Optional address, - Optional after, - Optional balance, - Optional cursor, - String ledger, - Optional> metadata, - Optional pageSize, - Optional paginationToken) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(after, "after"); - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(ledger, "ledger"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(paginationToken, "paginationToken"); - this.address = address; - this.after = after; - this.balance = balance; - this.cursor = cursor; - this.ledger = ledger; - this.metadata = metadata; - this.pageSize = pageSize; - this.paginationToken = paginationToken; - } - - public ListAccountsRequest( - String ledger) { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), ledger, Optional.empty(), - Optional.empty(), Optional.empty()); - } - - /** - * Filter accounts by address pattern (regular expression placed between ^ and $). - */ - @JsonIgnore - public Optional address() { - return address; - } - - /** - * Pagination cursor, will return accounts after given address, in descending order. - */ - @JsonIgnore - public Optional after() { - return after; - } - - /** - * Filter accounts by their balance (default operator is gte) - */ - @JsonIgnore - public Optional balance() { - return balance; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - @JsonIgnore - public Optional cursor() { - return cursor; - } - - /** - * Name of the ledger. - */ - @JsonIgnore - public String ledger() { - return ledger; - } - - /** - * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example - * below. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - /** - * The maximum number of results to return per page. - */ - @JsonIgnore - public Optional pageSize() { - return pageSize; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - * Deprecated, please use `cursor` instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - @JsonIgnore - public Optional paginationToken() { - return paginationToken; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Filter accounts by address pattern (regular expression placed between ^ and $). - */ - public ListAccountsRequest withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - - /** - * Filter accounts by address pattern (regular expression placed between ^ and $). - */ - public ListAccountsRequest withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - /** - * Pagination cursor, will return accounts after given address, in descending order. - */ - public ListAccountsRequest withAfter(String after) { - Utils.checkNotNull(after, "after"); - this.after = Optional.ofNullable(after); - return this; - } - - - /** - * Pagination cursor, will return accounts after given address, in descending order. - */ - public ListAccountsRequest withAfter(Optional after) { - Utils.checkNotNull(after, "after"); - this.after = after; - return this; - } - - /** - * Filter accounts by their balance (default operator is gte) - */ - public ListAccountsRequest withBalance(long balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - - /** - * Filter accounts by their balance (default operator is gte) - */ - public ListAccountsRequest withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public ListAccountsRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public ListAccountsRequest withCursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * Name of the ledger. - */ - public ListAccountsRequest withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - /** - * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example - * below. - */ - public ListAccountsRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - /** - * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example - * below. - */ - public ListAccountsRequest withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - /** - * The maximum number of results to return per page. - */ - public ListAccountsRequest withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = Optional.ofNullable(pageSize); - return this; - } - - - /** - * The maximum number of results to return per page. - */ - public ListAccountsRequest withPageSize(Optional pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - * Deprecated, please use `cursor` instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public ListAccountsRequest withPaginationToken(String paginationToken) { - Utils.checkNotNull(paginationToken, "paginationToken"); - this.paginationToken = Optional.ofNullable(paginationToken); - return this; - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - * Deprecated, please use `cursor` instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public ListAccountsRequest withPaginationToken(Optional paginationToken) { - Utils.checkNotNull(paginationToken, "paginationToken"); - this.paginationToken = paginationToken; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListAccountsRequest other = (ListAccountsRequest) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.after, other.after) && - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.cursor, other.cursor) && - Utils.enhancedDeepEquals(this.ledger, other.ledger) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.paginationToken, other.paginationToken); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, after, balance, - cursor, ledger, metadata, - pageSize, paginationToken); - } - - @Override - public String toString() { - return Utils.toString(ListAccountsRequest.class, - "address", address, - "after", after, - "balance", balance, - "cursor", cursor, - "ledger", ledger, - "metadata", metadata, - "pageSize", pageSize, - "paginationToken", paginationToken); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional address = Optional.empty(); - - private Optional after = Optional.empty(); - - private Optional balance = Optional.empty(); - - private Optional cursor = Optional.empty(); - - private String ledger; - - private Optional> metadata = Optional.empty(); - - private Optional pageSize = Optional.empty(); - - @Deprecated - private Optional paginationToken = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Filter accounts by address pattern (regular expression placed between ^ and $). - */ - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - /** - * Filter accounts by address pattern (regular expression placed between ^ and $). - */ - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - /** - * Pagination cursor, will return accounts after given address, in descending order. - */ - public Builder after(String after) { - Utils.checkNotNull(after, "after"); - this.after = Optional.ofNullable(after); - return this; - } - - /** - * Pagination cursor, will return accounts after given address, in descending order. - */ - public Builder after(Optional after) { - Utils.checkNotNull(after, "after"); - this.after = after; - return this; - } - - - /** - * Filter accounts by their balance (default operator is gte) - */ - public Builder balance(long balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - /** - * Filter accounts by their balance (default operator is gte) - */ - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public Builder cursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - - /** - * Name of the ledger. - */ - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - - /** - * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example - * below. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - /** - * Filter accounts by metadata key value pairs. Nested objects can be used as seen in the example - * below. - */ - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - /** - * The maximum number of results to return per page. - */ - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = Optional.ofNullable(pageSize); - return this; - } - - /** - * The maximum number of results to return per page. - */ - public Builder pageSize(Optional pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - * Deprecated, please use `cursor` instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public Builder paginationToken(String paginationToken) { - Utils.checkNotNull(paginationToken, "paginationToken"); - this.paginationToken = Optional.ofNullable(paginationToken); - return this; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 1000. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - * Deprecated, please use `cursor` instead. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public Builder paginationToken(Optional paginationToken) { - Utils.checkNotNull(paginationToken, "paginationToken"); - this.paginationToken = paginationToken; - return this; - } - - public ListAccountsRequest build() { - - return new ListAccountsRequest( - address, after, balance, - cursor, ledger, metadata, - pageSize, paginationToken); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequestBuilder.java deleted file mode 100644 index f4dc98607..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsRequestBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.ListAccounts; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Utils; - -public class ListAccountsRequestBuilder { - - private ListAccountsRequest request; - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public ListAccountsRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public ListAccountsRequestBuilder request(ListAccountsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public ListAccountsResponse call() { - - RequestOperation operation - = new ListAccounts.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest(request)); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsResponse.java deleted file mode 100644 index 9c8001d74..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListAccountsResponse.java +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.AccountsCursorResponse; -import com.formance.formance_sdk.models.shared.ErrorResponse; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class ListAccountsResponse implements Response { - /** - * OK - */ - private Optional accountsCursorResponse; - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * Not found - */ - private Optional errorResponse; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public ListAccountsResponse( - Optional accountsCursorResponse, - String contentType, - Optional errorResponse, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(errorResponse, "errorResponse"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.accountsCursorResponse = accountsCursorResponse; - this.contentType = contentType; - this.errorResponse = errorResponse; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public ListAccountsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(Optional.empty(), contentType, Optional.empty(), - statusCode, rawResponse); - } - - /** - * OK - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountsCursorResponse() { - return (Optional) accountsCursorResponse; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * Not found - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional errorResponse() { - return (Optional) errorResponse; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * OK - */ - public ListAccountsResponse withAccountsCursorResponse(AccountsCursorResponse accountsCursorResponse) { - Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); - this.accountsCursorResponse = Optional.ofNullable(accountsCursorResponse); - return this; - } - - - /** - * OK - */ - public ListAccountsResponse withAccountsCursorResponse(Optional accountsCursorResponse) { - Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); - this.accountsCursorResponse = accountsCursorResponse; - return this; - } - - /** - * HTTP response content type for this operation - */ - public ListAccountsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * Not found - */ - public ListAccountsResponse withErrorResponse(ErrorResponse errorResponse) { - Utils.checkNotNull(errorResponse, "errorResponse"); - this.errorResponse = Optional.ofNullable(errorResponse); - return this; - } - - - /** - * Not found - */ - public ListAccountsResponse withErrorResponse(Optional errorResponse) { - Utils.checkNotNull(errorResponse, "errorResponse"); - this.errorResponse = errorResponse; - return this; - } - - /** - * HTTP response status code for this operation - */ - public ListAccountsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ListAccountsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListAccountsResponse other = (ListAccountsResponse) o; - return - Utils.enhancedDeepEquals(this.accountsCursorResponse, other.accountsCursorResponse) && - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.errorResponse, other.errorResponse) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountsCursorResponse, contentType, errorResponse, - statusCode, rawResponse); - } - - @Override - public String toString() { - return Utils.toString(ListAccountsResponse.class, - "accountsCursorResponse", accountsCursorResponse, - "contentType", contentType, - "errorResponse", errorResponse, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional accountsCursorResponse = Optional.empty(); - - private String contentType; - - private Optional errorResponse = Optional.empty(); - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * OK - */ - public Builder accountsCursorResponse(AccountsCursorResponse accountsCursorResponse) { - Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); - this.accountsCursorResponse = Optional.ofNullable(accountsCursorResponse); - return this; - } - - /** - * OK - */ - public Builder accountsCursorResponse(Optional accountsCursorResponse) { - Utils.checkNotNull(accountsCursorResponse, "accountsCursorResponse"); - this.accountsCursorResponse = accountsCursorResponse; - return this; - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * Not found - */ - public Builder errorResponse(ErrorResponse errorResponse) { - Utils.checkNotNull(errorResponse, "errorResponse"); - this.errorResponse = Optional.ofNullable(errorResponse); - return this; - } - - /** - * Not found - */ - public Builder errorResponse(Optional errorResponse) { - Utils.checkNotNull(errorResponse, "errorResponse"); - this.errorResponse = errorResponse; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public ListAccountsResponse build() { - - return new ListAccountsResponse( - accountsCursorResponse, contentType, errorResponse, - statusCode, rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsRequestBuilder.java index 7815c4e58..214a091ca 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.ListAllConnectors; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListAllConnectorsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListAllConnectorsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListAllConnectorsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListAllConnectorsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListAllConnectorsResponse call() { RequestlessOperation operation - = new ListAllConnectors.Sync(sdkConfiguration, _headers); + = new ListAllConnectors.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsResponse.java index 7f2664016..f3a3ac54d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListAllConnectorsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConnectorsResponse; +import com.formance.formance_sdk.models.payments.ConnectorsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesRequestBuilder.java index a9e83ae99..46635ec90 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListBalancesRequestBuilder { private ListBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListBalancesRequestBuilder request(ListBalancesRequest request) { this.request = request; return this; } + + public ListBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListBalancesResponse call() { RequestOperation operation - = new ListBalances.Sync(sdkConfiguration, _headers); + = new ListBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesResponse.java index 781744cb1..609c668ad 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListBalancesResponse.java @@ -25,7 +25,7 @@ public class ListBalancesResponse implements Response { /** * Balances list */ - private Optional listBalancesResponse; + private Optional listBalancesResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListBalancesResponse implements Response { @JsonCreator public ListBalancesResponse( String contentType, - Optional listBalancesResponse, + Optional listBalancesResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listBalancesResponse() { - return (Optional) listBalancesResponse; + public Optional listBalancesResponse() { + return (Optional) listBalancesResponse; } /** @@ -111,7 +111,7 @@ public ListBalancesResponse withContentType(String contentType) { /** * Balances list */ - public ListBalancesResponse withListBalancesResponse(com.formance.formance_sdk.models.shared.ListBalancesResponse listBalancesResponse) { + public ListBalancesResponse withListBalancesResponse(com.formance.formance_sdk.models.wallets.ListBalancesResponse listBalancesResponse) { Utils.checkNotNull(listBalancesResponse, "listBalancesResponse"); this.listBalancesResponse = Optional.ofNullable(listBalancesResponse); return this; @@ -121,7 +121,7 @@ public ListBalancesResponse withListBalancesResponse(com.formance.formance_sdk.m /** * Balances list */ - public ListBalancesResponse withListBalancesResponse(Optional listBalancesResponse) { + public ListBalancesResponse withListBalancesResponse(Optional listBalancesResponse) { Utils.checkNotNull(listBalancesResponse, "listBalancesResponse"); this.listBalancesResponse = listBalancesResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listBalancesResponse = Optional.empty(); + private Optional listBalancesResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Balances list */ - public Builder listBalancesResponse(com.formance.formance_sdk.models.shared.ListBalancesResponse listBalancesResponse) { + public Builder listBalancesResponse(com.formance.formance_sdk.models.wallets.ListBalancesResponse listBalancesResponse) { Utils.checkNotNull(listBalancesResponse, "listBalancesResponse"); this.listBalancesResponse = Optional.ofNullable(listBalancesResponse); return this; @@ -215,7 +215,7 @@ public Builder listBalancesResponse(com.formance.formance_sdk.models.shared.List /** * Balances list */ - public Builder listBalancesResponse(Optional listBalancesResponse) { + public Builder listBalancesResponse(Optional listBalancesResponse) { Utils.checkNotNull(listBalancesResponse, "listBalancesResponse"); this.listBalancesResponse = listBalancesResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsRequestBuilder.java index 7ca696a65..2542ad750 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListBankAccounts; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListBankAccountsRequestBuilder { private ListBankAccountsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListBankAccountsRequestBuilder request(ListBankAccountsRequest request) { this.request = request; return this; } + + public ListBankAccountsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListBankAccountsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListBankAccountsResponse call() { RequestOperation operation - = new ListBankAccounts.Sync(sdkConfiguration, _headers); + = new ListBankAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsResponse.java index 998981d08..0ebc159f6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListBankAccountsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.BankAccountsCursor; +import com.formance.formance_sdk.models.payments.BankAccountsCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListClientsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListClientsRequestBuilder.java index 0f70f9c75..a6fa5b41c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListClientsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListClientsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.ListClients; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListClientsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListClientsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListClientsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListClientsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListClientsResponse call() { RequestlessOperation operation - = new ListClients.Sync(sdkConfiguration, _headers); + = new ListClients.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListClientsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListClientsResponse.java index 8338f6392..a924c19d4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListClientsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListClientsResponse.java @@ -25,7 +25,7 @@ public class ListClientsResponse implements Response { /** * List of clients */ - private Optional listClientsResponse; + private Optional listClientsResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListClientsResponse implements Response { @JsonCreator public ListClientsResponse( String contentType, - Optional listClientsResponse, + Optional listClientsResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listClientsResponse() { - return (Optional) listClientsResponse; + public Optional listClientsResponse() { + return (Optional) listClientsResponse; } /** @@ -111,7 +111,7 @@ public ListClientsResponse withContentType(String contentType) { /** * List of clients */ - public ListClientsResponse withListClientsResponse(com.formance.formance_sdk.models.shared.ListClientsResponse listClientsResponse) { + public ListClientsResponse withListClientsResponse(com.formance.formance_sdk.models.auth.ListClientsResponse listClientsResponse) { Utils.checkNotNull(listClientsResponse, "listClientsResponse"); this.listClientsResponse = Optional.ofNullable(listClientsResponse); return this; @@ -121,7 +121,7 @@ public ListClientsResponse withListClientsResponse(com.formance.formance_sdk.mod /** * List of clients */ - public ListClientsResponse withListClientsResponse(Optional listClientsResponse) { + public ListClientsResponse withListClientsResponse(Optional listClientsResponse) { Utils.checkNotNull(listClientsResponse, "listClientsResponse"); this.listClientsResponse = listClientsResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listClientsResponse = Optional.empty(); + private Optional listClientsResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * List of clients */ - public Builder listClientsResponse(com.formance.formance_sdk.models.shared.ListClientsResponse listClientsResponse) { + public Builder listClientsResponse(com.formance.formance_sdk.models.auth.ListClientsResponse listClientsResponse) { Utils.checkNotNull(listClientsResponse, "listClientsResponse"); this.listClientsResponse = Optional.ofNullable(listClientsResponse); return this; @@ -215,7 +215,7 @@ public Builder listClientsResponse(com.formance.formance_sdk.models.shared.ListC /** * List of clients */ - public Builder listClientsResponse(Optional listClientsResponse) { + public Builder listClientsResponse(Optional listClientsResponse) { Utils.checkNotNull(listClientsResponse, "listClientsResponse"); this.listClientsResponse = listClientsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsRequestBuilder.java index c78bfa33e..2da84f760 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.ListConfigsAvailableConnectors; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListConfigsAvailableConnectorsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListConfigsAvailableConnectorsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListConfigsAvailableConnectorsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListConfigsAvailableConnectorsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListConfigsAvailableConnectorsResponse call() { RequestlessOperation operation - = new ListConfigsAvailableConnectors.Sync(sdkConfiguration, _headers); + = new ListConfigsAvailableConnectors.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsResponse.java index 16061588f..97acf5e0a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConfigsAvailableConnectorsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConnectorsConfigsResponse; +import com.formance.formance_sdk.models.payments.ConnectorsConfigsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequest.java index f9a7dbfe6..75aec880a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequest.java @@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.LazySingletonValue; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequestBuilder.java index 182da9555..4ad166a72 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListConnectorTasks; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListConnectorTasksRequestBuilder { private ListConnectorTasksRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListConnectorTasksRequestBuilder request(ListConnectorTasksRequest reques this.request = request; return this; } + + public ListConnectorTasksRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListConnectorTasksRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListConnectorTasksResponse call() { RequestOperation operation - = new ListConnectorTasks.Sync(sdkConfiguration, _headers); + = new ListConnectorTasks.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksResponse.java index 10a12d68b..e8341bc90 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TasksCursor; +import com.formance.formance_sdk.models.payments.TasksCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Request.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Request.java index 94085fae7..dc8b23cf3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Request.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Request.java @@ -6,7 +6,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.LazySingletonValue; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1RequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1RequestBuilder.java index b4c638609..7e8f53952 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1RequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1RequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListConnectorTasksV1; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListConnectorTasksV1RequestBuilder { private ListConnectorTasksV1Request request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListConnectorTasksV1RequestBuilder request(ListConnectorTasksV1Request re this.request = request; return this; } + + public ListConnectorTasksV1RequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListConnectorTasksV1RequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListConnectorTasksV1Response call() { RequestOperation operation - = new ListConnectorTasksV1.Sync(sdkConfiguration, _headers); + = new ListConnectorTasksV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Response.java b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Response.java index 20401c012..9b77257e8 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Response.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListConnectorTasksV1Response.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TasksCursor; +import com.formance.formance_sdk.models.payments.TasksCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesRequestBuilder.java index 94df51fae..90e1d4d7c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListInstances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListInstancesRequestBuilder { private ListInstancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListInstancesRequestBuilder request(ListInstancesRequest request) { this.request = request; return this; } + + public ListInstancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListInstancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListInstancesResponse call() { RequestOperation operation - = new ListInstances.Sync(sdkConfiguration, _headers); + = new ListInstances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesResponse.java index fc846626e..3ab26411b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListInstancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ListRunsResponse; +import com.formance.formance_sdk.models.orchestration.ListRunsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListLogsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListLogsRequestBuilder.java index b35314fb4..97d2568cb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListLogsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListLogsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListLogs; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListLogsRequestBuilder { private ListLogsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListLogsRequestBuilder request(ListLogsRequest request) { this.request = request; return this; } + + public ListLogsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListLogsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListLogsResponse call() { RequestOperation operation - = new ListLogs.Sync(sdkConfiguration, _headers); + = new ListLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListLogsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListLogsResponse.java index b008d60d6..b5e34450c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListLogsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListLogsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.LogsCursorResponse; +import com.formance.formance_sdk.models.ledger.LogsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsRequestBuilder.java index 24f51a356..e7ec3096d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListPayments; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListPaymentsRequestBuilder { private ListPaymentsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListPaymentsRequestBuilder request(ListPaymentsRequest request) { this.request = request; return this; } + + public ListPaymentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListPaymentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListPaymentsResponse call() { RequestOperation operation - = new ListPayments.Sync(sdkConfiguration, _headers); + = new ListPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsResponse.java index 9e8ed2d42..9fa5e3d9b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPaymentsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PaymentsCursor; +import com.formance.formance_sdk.models.payments.PaymentsCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequest.java index c5f0af17a..e536480fa 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class ListPoliciesRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -31,16 +38,25 @@ public class ListPoliciesRequest { @JsonCreator public ListPoliciesRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public ListPoliciesRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public ListPoliciesRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public ListPoliciesRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } ListPoliciesRequest other = (ListPoliciesRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(ListPoliciesRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public ListPoliciesRequest build() { return new ListPoliciesRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequestBuilder.java index e98311a63..530c1f269 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListPolicies; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListPoliciesRequestBuilder { private ListPoliciesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListPoliciesRequestBuilder request(ListPoliciesRequest request) { this.request = request; return this; } + + public ListPoliciesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListPoliciesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListPoliciesResponse call() { RequestOperation operation - = new ListPolicies.Sync(sdkConfiguration, _headers); + = new ListPolicies.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesResponse.java index f63857650..81aa5f77a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPoliciesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PoliciesCursorResponse; +import com.formance.formance_sdk.models.reconciliation.PoliciesCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsRequestBuilder.java index 1272eea6b..0481c4757 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListPools; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListPoolsRequestBuilder { private ListPoolsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListPoolsRequestBuilder request(ListPoolsRequest request) { this.request = request; return this; } + + public ListPoolsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListPoolsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListPoolsResponse call() { RequestOperation operation - = new ListPools.Sync(sdkConfiguration, _headers); + = new ListPools.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsResponse.java index 6bf50721b..e469ef7fe 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListPoolsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PoolsCursor; +import com.formance.formance_sdk.models.payments.PoolsCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequest.java index ab1a08344..227fd1ad9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class ListReconciliationsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -31,16 +38,25 @@ public class ListReconciliationsRequest { @JsonCreator public ListReconciliationsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public ListReconciliationsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public ListReconciliationsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public ListReconciliationsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } ListReconciliationsRequest other = (ListReconciliationsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(ListReconciliationsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public ListReconciliationsRequest build() { return new ListReconciliationsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequestBuilder.java index 038ed30a4..87e21b333 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListReconciliations; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListReconciliationsRequestBuilder { private ListReconciliationsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListReconciliationsRequestBuilder request(ListReconciliationsRequest requ this.request = request; return this; } + + public ListReconciliationsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListReconciliationsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListReconciliationsResponse call() { RequestOperation operation - = new ListReconciliations.Sync(sdkConfiguration, _headers); + = new ListReconciliations.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsResponse.java index 4eb7a4ed8..fc737be47 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListReconciliationsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ReconciliationsCursorResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsRequestBuilder.java index 77060fd28..304366ae9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListTransactions; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListTransactionsRequestBuilder { private ListTransactionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListTransactionsRequestBuilder request(ListTransactionsRequest request) { this.request = request; return this; } + + public ListTransactionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListTransactionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListTransactionsResponse call() { RequestOperation operation - = new ListTransactions.Sync(sdkConfiguration, _headers); + = new ListTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsResponse.java index 991507621..66c2ccf9a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTransactionsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransactionsCursorResponse; +import com.formance.formance_sdk.models.ledger.TransactionsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsRequestBuilder.java index 0632cc699..717c0e480 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListTransferInitiations; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListTransferInitiationsRequestBuilder { private ListTransferInitiationsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListTransferInitiationsRequestBuilder request(ListTransferInitiationsRequ this.request = request; return this; } + + public ListTransferInitiationsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListTransferInitiationsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListTransferInitiationsResponse call() { RequestOperation operation - = new ListTransferInitiations.Sync(sdkConfiguration, _headers); + = new ListTransferInitiations.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsResponse.java index c5b749e19..916d2b866 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTransferInitiationsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransferInitiationsCursor; +import com.formance.formance_sdk.models.payments.TransferInitiationsCursor; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesRequestBuilder.java index d0a62ea7f..b2ea8b3f2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListTriggersOccurrences; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListTriggersOccurrencesRequestBuilder { private ListTriggersOccurrencesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListTriggersOccurrencesRequestBuilder request(ListTriggersOccurrencesRequ this.request = request; return this; } + + public ListTriggersOccurrencesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListTriggersOccurrencesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListTriggersOccurrencesResponse call() { RequestOperation operation - = new ListTriggersOccurrences.Sync(sdkConfiguration, _headers); + = new ListTriggersOccurrences.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesResponse.java index 4958d96a3..775b64ace 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersOccurrencesResponse.java @@ -25,7 +25,7 @@ public class ListTriggersOccurrencesResponse implements Response { /** * List of triggers occurrences */ - private Optional listTriggersOccurrencesResponse; + private Optional listTriggersOccurrencesResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListTriggersOccurrencesResponse implements Response { @JsonCreator public ListTriggersOccurrencesResponse( String contentType, - Optional listTriggersOccurrencesResponse, + Optional listTriggersOccurrencesResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listTriggersOccurrencesResponse() { - return (Optional) listTriggersOccurrencesResponse; + public Optional listTriggersOccurrencesResponse() { + return (Optional) listTriggersOccurrencesResponse; } /** @@ -111,7 +111,7 @@ public ListTriggersOccurrencesResponse withContentType(String contentType) { /** * List of triggers occurrences */ - public ListTriggersOccurrencesResponse withListTriggersOccurrencesResponse(com.formance.formance_sdk.models.shared.ListTriggersOccurrencesResponse listTriggersOccurrencesResponse) { + public ListTriggersOccurrencesResponse withListTriggersOccurrencesResponse(com.formance.formance_sdk.models.orchestration.ListTriggersOccurrencesResponse listTriggersOccurrencesResponse) { Utils.checkNotNull(listTriggersOccurrencesResponse, "listTriggersOccurrencesResponse"); this.listTriggersOccurrencesResponse = Optional.ofNullable(listTriggersOccurrencesResponse); return this; @@ -121,7 +121,7 @@ public ListTriggersOccurrencesResponse withListTriggersOccurrencesResponse(com.f /** * List of triggers occurrences */ - public ListTriggersOccurrencesResponse withListTriggersOccurrencesResponse(Optional listTriggersOccurrencesResponse) { + public ListTriggersOccurrencesResponse withListTriggersOccurrencesResponse(Optional listTriggersOccurrencesResponse) { Utils.checkNotNull(listTriggersOccurrencesResponse, "listTriggersOccurrencesResponse"); this.listTriggersOccurrencesResponse = listTriggersOccurrencesResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listTriggersOccurrencesResponse = Optional.empty(); + private Optional listTriggersOccurrencesResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * List of triggers occurrences */ - public Builder listTriggersOccurrencesResponse(com.formance.formance_sdk.models.shared.ListTriggersOccurrencesResponse listTriggersOccurrencesResponse) { + public Builder listTriggersOccurrencesResponse(com.formance.formance_sdk.models.orchestration.ListTriggersOccurrencesResponse listTriggersOccurrencesResponse) { Utils.checkNotNull(listTriggersOccurrencesResponse, "listTriggersOccurrencesResponse"); this.listTriggersOccurrencesResponse = Optional.ofNullable(listTriggersOccurrencesResponse); return this; @@ -215,7 +215,7 @@ public Builder listTriggersOccurrencesResponse(com.formance.formance_sdk.models. /** * List of triggers occurrences */ - public Builder listTriggersOccurrencesResponse(Optional listTriggersOccurrencesResponse) { + public Builder listTriggersOccurrencesResponse(Optional listTriggersOccurrencesResponse) { Utils.checkNotNull(listTriggersOccurrencesResponse, "listTriggersOccurrencesResponse"); this.listTriggersOccurrencesResponse = listTriggersOccurrencesResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersRequestBuilder.java index 1b6704846..46c4fa4a0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListTriggers; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListTriggersRequestBuilder { private ListTriggersRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListTriggersRequestBuilder request(ListTriggersRequest request) { this.request = request; return this; } + + public ListTriggersRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListTriggersRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListTriggersResponse call() { RequestOperation operation - = new ListTriggers.Sync(sdkConfiguration, _headers); + = new ListTriggers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersResponse.java index 3b9f27e2c..0b1936d69 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListTriggersResponse.java @@ -25,7 +25,7 @@ public class ListTriggersResponse implements Response { /** * List of triggers */ - private Optional listTriggersResponse; + private Optional listTriggersResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListTriggersResponse implements Response { @JsonCreator public ListTriggersResponse( String contentType, - Optional listTriggersResponse, + Optional listTriggersResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listTriggersResponse() { - return (Optional) listTriggersResponse; + public Optional listTriggersResponse() { + return (Optional) listTriggersResponse; } /** @@ -111,7 +111,7 @@ public ListTriggersResponse withContentType(String contentType) { /** * List of triggers */ - public ListTriggersResponse withListTriggersResponse(com.formance.formance_sdk.models.shared.ListTriggersResponse listTriggersResponse) { + public ListTriggersResponse withListTriggersResponse(com.formance.formance_sdk.models.orchestration.ListTriggersResponse listTriggersResponse) { Utils.checkNotNull(listTriggersResponse, "listTriggersResponse"); this.listTriggersResponse = Optional.ofNullable(listTriggersResponse); return this; @@ -121,7 +121,7 @@ public ListTriggersResponse withListTriggersResponse(com.formance.formance_sdk.m /** * List of triggers */ - public ListTriggersResponse withListTriggersResponse(Optional listTriggersResponse) { + public ListTriggersResponse withListTriggersResponse(Optional listTriggersResponse) { Utils.checkNotNull(listTriggersResponse, "listTriggersResponse"); this.listTriggersResponse = listTriggersResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listTriggersResponse = Optional.empty(); + private Optional listTriggersResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * List of triggers */ - public Builder listTriggersResponse(com.formance.formance_sdk.models.shared.ListTriggersResponse listTriggersResponse) { + public Builder listTriggersResponse(com.formance.formance_sdk.models.orchestration.ListTriggersResponse listTriggersResponse) { Utils.checkNotNull(listTriggersResponse, "listTriggersResponse"); this.listTriggersResponse = Optional.ofNullable(listTriggersResponse); return this; @@ -215,7 +215,7 @@ public Builder listTriggersResponse(com.formance.formance_sdk.models.shared.List /** * List of triggers */ - public Builder listTriggersResponse(Optional listTriggersResponse) { + public Builder listTriggersResponse(Optional listTriggersResponse) { Utils.checkNotNull(listTriggersResponse, "listTriggersResponse"); this.listTriggersResponse = listTriggersResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListUsersRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListUsersRequestBuilder.java index 60bb6262c..423891a6b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListUsersRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListUsersRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.ListUsers; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListUsersRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListUsersRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListUsersRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListUsersRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListUsersResponse call() { RequestlessOperation operation - = new ListUsers.Sync(sdkConfiguration, _headers); + = new ListUsers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListUsersResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListUsersResponse.java index e0baca786..add6e3319 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListUsersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListUsersResponse.java @@ -25,7 +25,7 @@ public class ListUsersResponse implements Response { /** * List of users */ - private Optional listUsersResponse; + private Optional listUsersResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListUsersResponse implements Response { @JsonCreator public ListUsersResponse( String contentType, - Optional listUsersResponse, + Optional listUsersResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listUsersResponse() { - return (Optional) listUsersResponse; + public Optional listUsersResponse() { + return (Optional) listUsersResponse; } /** @@ -111,7 +111,7 @@ public ListUsersResponse withContentType(String contentType) { /** * List of users */ - public ListUsersResponse withListUsersResponse(com.formance.formance_sdk.models.shared.ListUsersResponse listUsersResponse) { + public ListUsersResponse withListUsersResponse(com.formance.formance_sdk.models.auth.ListUsersResponse listUsersResponse) { Utils.checkNotNull(listUsersResponse, "listUsersResponse"); this.listUsersResponse = Optional.ofNullable(listUsersResponse); return this; @@ -121,7 +121,7 @@ public ListUsersResponse withListUsersResponse(com.formance.formance_sdk.models. /** * List of users */ - public ListUsersResponse withListUsersResponse(Optional listUsersResponse) { + public ListUsersResponse withListUsersResponse(Optional listUsersResponse) { Utils.checkNotNull(listUsersResponse, "listUsersResponse"); this.listUsersResponse = listUsersResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listUsersResponse = Optional.empty(); + private Optional listUsersResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * List of users */ - public Builder listUsersResponse(com.formance.formance_sdk.models.shared.ListUsersResponse listUsersResponse) { + public Builder listUsersResponse(com.formance.formance_sdk.models.auth.ListUsersResponse listUsersResponse) { Utils.checkNotNull(listUsersResponse, "listUsersResponse"); this.listUsersResponse = Optional.ofNullable(listUsersResponse); return this; @@ -215,7 +215,7 @@ public Builder listUsersResponse(com.formance.formance_sdk.models.shared.ListUse /** * List of users */ - public Builder listUsersResponse(Optional listUsersResponse) { + public Builder listUsersResponse(Optional listUsersResponse) { Utils.checkNotNull(listUsersResponse, "listUsersResponse"); this.listUsersResponse = listUsersResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsRequestBuilder.java index 64f9dd3ac..65075b2cb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ListWallets; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListWalletsRequestBuilder { private ListWalletsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ListWalletsRequestBuilder request(ListWalletsRequest request) { this.request = request; return this; } + + public ListWalletsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListWalletsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListWalletsResponse call() { RequestOperation operation - = new ListWallets.Sync(sdkConfiguration, _headers); + = new ListWallets.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsResponse.java index e617351bd..994f24c0d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListWalletsResponse.java @@ -25,7 +25,7 @@ public class ListWalletsResponse implements Response { /** * OK */ - private Optional listWalletsResponse; + private Optional listWalletsResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListWalletsResponse implements Response { @JsonCreator public ListWalletsResponse( String contentType, - Optional listWalletsResponse, + Optional listWalletsResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listWalletsResponse() { - return (Optional) listWalletsResponse; + public Optional listWalletsResponse() { + return (Optional) listWalletsResponse; } /** @@ -111,7 +111,7 @@ public ListWalletsResponse withContentType(String contentType) { /** * OK */ - public ListWalletsResponse withListWalletsResponse(com.formance.formance_sdk.models.shared.ListWalletsResponse listWalletsResponse) { + public ListWalletsResponse withListWalletsResponse(com.formance.formance_sdk.models.wallets.ListWalletsResponse listWalletsResponse) { Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); this.listWalletsResponse = Optional.ofNullable(listWalletsResponse); return this; @@ -121,7 +121,7 @@ public ListWalletsResponse withListWalletsResponse(com.formance.formance_sdk.mod /** * OK */ - public ListWalletsResponse withListWalletsResponse(Optional listWalletsResponse) { + public ListWalletsResponse withListWalletsResponse(Optional listWalletsResponse) { Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); this.listWalletsResponse = listWalletsResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listWalletsResponse = Optional.empty(); + private Optional listWalletsResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * OK */ - public Builder listWalletsResponse(com.formance.formance_sdk.models.shared.ListWalletsResponse listWalletsResponse) { + public Builder listWalletsResponse(com.formance.formance_sdk.models.wallets.ListWalletsResponse listWalletsResponse) { Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); this.listWalletsResponse = Optional.ofNullable(listWalletsResponse); return this; @@ -215,7 +215,7 @@ public Builder listWalletsResponse(com.formance.formance_sdk.models.shared.ListW /** * OK */ - public Builder listWalletsResponse(Optional listWalletsResponse) { + public Builder listWalletsResponse(Optional listWalletsResponse) { Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); this.listWalletsResponse = listWalletsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsRequestBuilder.java index e21f1a4a5..03856b50a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.ListWorkflows; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListWorkflowsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListWorkflowsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListWorkflowsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ListWorkflowsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ListWorkflowsResponse call() { RequestlessOperation operation - = new ListWorkflows.Sync(sdkConfiguration, _headers); + = new ListWorkflows.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsResponse.java index 275d996e3..a27e6a78e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ListWorkflowsResponse.java @@ -25,7 +25,7 @@ public class ListWorkflowsResponse implements Response { /** * List of workflows */ - private Optional listWorkflowsResponse; + private Optional listWorkflowsResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ListWorkflowsResponse implements Response { @JsonCreator public ListWorkflowsResponse( String contentType, - Optional listWorkflowsResponse, + Optional listWorkflowsResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional listWorkflowsResponse() { - return (Optional) listWorkflowsResponse; + public Optional listWorkflowsResponse() { + return (Optional) listWorkflowsResponse; } /** @@ -111,7 +111,7 @@ public ListWorkflowsResponse withContentType(String contentType) { /** * List of workflows */ - public ListWorkflowsResponse withListWorkflowsResponse(com.formance.formance_sdk.models.shared.ListWorkflowsResponse listWorkflowsResponse) { + public ListWorkflowsResponse withListWorkflowsResponse(com.formance.formance_sdk.models.orchestration.ListWorkflowsResponse listWorkflowsResponse) { Utils.checkNotNull(listWorkflowsResponse, "listWorkflowsResponse"); this.listWorkflowsResponse = Optional.ofNullable(listWorkflowsResponse); return this; @@ -121,7 +121,7 @@ public ListWorkflowsResponse withListWorkflowsResponse(com.formance.formance_sdk /** * List of workflows */ - public ListWorkflowsResponse withListWorkflowsResponse(Optional listWorkflowsResponse) { + public ListWorkflowsResponse withListWorkflowsResponse(Optional listWorkflowsResponse) { Utils.checkNotNull(listWorkflowsResponse, "listWorkflowsResponse"); this.listWorkflowsResponse = listWorkflowsResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional listWorkflowsResponse = Optional.empty(); + private Optional listWorkflowsResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * List of workflows */ - public Builder listWorkflowsResponse(com.formance.formance_sdk.models.shared.ListWorkflowsResponse listWorkflowsResponse) { + public Builder listWorkflowsResponse(com.formance.formance_sdk.models.orchestration.ListWorkflowsResponse listWorkflowsResponse) { Utils.checkNotNull(listWorkflowsResponse, "listWorkflowsResponse"); this.listWorkflowsResponse = Optional.ofNullable(listWorkflowsResponse); return this; @@ -215,7 +215,7 @@ public Builder listWorkflowsResponse(com.formance.formance_sdk.models.shared.Lis /** * List of workflows */ - public Builder listWorkflowsResponse(Optional listWorkflowsResponse) { + public Builder listWorkflowsResponse(Optional listWorkflowsResponse) { Utils.checkNotNull(listWorkflowsResponse, "listWorkflowsResponse"); this.listWorkflowsResponse = listWorkflowsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoRequestBuilder.java deleted file mode 100644 index ab726455f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoRequestBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.OrchestrationgetServerInfo; -import com.formance.formance_sdk.utils.Headers; - -public class OrchestrationgetServerInfoRequestBuilder { - - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public OrchestrationgetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public OrchestrationgetServerInfoResponse call() { - - RequestlessOperation operation - = new OrchestrationgetServerInfo.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest()); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoResponse.java deleted file mode 100644 index 257f589a9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/OrchestrationgetServerInfoResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class OrchestrationgetServerInfoResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * Server information - */ - private Optional serverInfo; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public OrchestrationgetServerInfoResponse( - String contentType, - Optional serverInfo, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(serverInfo, "serverInfo"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.serverInfo = serverInfo; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public OrchestrationgetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, - rawResponse); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * Server information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional serverInfo() { - return (Optional) serverInfo; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public OrchestrationgetServerInfoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * Server information - */ - public OrchestrationgetServerInfoResponse withServerInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - - /** - * Server information - */ - public OrchestrationgetServerInfoResponse withServerInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - /** - * HTTP response status code for this operation - */ - public OrchestrationgetServerInfoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public OrchestrationgetServerInfoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationgetServerInfoResponse other = (OrchestrationgetServerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, serverInfo, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationgetServerInfoResponse.class, - "contentType", contentType, - "serverInfo", serverInfo, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Optional serverInfo = Optional.empty(); - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * Server information - */ - public Builder serverInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - /** - * Server information - */ - public Builder serverInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public OrchestrationgetServerInfoResponse build() { - - return new OrchestrationgetServerInfoResponse( - contentType, serverInfo, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequest.java deleted file mode 100644 index 02e497235..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequest.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.utils.SpeakeasyMetadata; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class PaymentsgetAccountRequest { - /** - * The account ID. - */ - @SpeakeasyMetadata("pathParam:style=simple,explode=false,name=accountId") - private String accountId; - - @JsonCreator - public PaymentsgetAccountRequest( - String accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = accountId; - } - - /** - * The account ID. - */ - @JsonIgnore - public String accountId() { - return accountId; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The account ID. - */ - public PaymentsgetAccountRequest withAccountId(String accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = accountId; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsgetAccountRequest other = (PaymentsgetAccountRequest) o; - return - Utils.enhancedDeepEquals(this.accountId, other.accountId); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountId); - } - - @Override - public String toString() { - return Utils.toString(PaymentsgetAccountRequest.class, - "accountId", accountId); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String accountId; - - private Builder() { - // force use of static builder() method - } - - - /** - * The account ID. - */ - public Builder accountId(String accountId) { - Utils.checkNotNull(accountId, "accountId"); - this.accountId = accountId; - return this; - } - - public PaymentsgetAccountRequest build() { - - return new PaymentsgetAccountRequest( - accountId); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequestBuilder.java deleted file mode 100644 index 98cadfa29..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountRequestBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.PaymentsgetAccount; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Utils; - -public class PaymentsgetAccountRequestBuilder { - - private PaymentsgetAccountRequest request; - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public PaymentsgetAccountRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public PaymentsgetAccountRequestBuilder request(PaymentsgetAccountRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PaymentsgetAccountResponse call() { - - RequestOperation operation - = new PaymentsgetAccount.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest(request)); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountResponse.java deleted file mode 100644 index cc9c3e8a0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetAccountResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PaymentsAccountResponse; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class PaymentsgetAccountResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * OK - */ - private Optional paymentsAccountResponse; - - @JsonCreator - public PaymentsgetAccountResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional paymentsAccountResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.paymentsAccountResponse = paymentsAccountResponse; - } - - public PaymentsgetAccountResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, - Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * OK - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional paymentsAccountResponse() { - return (Optional) paymentsAccountResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public PaymentsgetAccountResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PaymentsgetAccountResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PaymentsgetAccountResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * OK - */ - public PaymentsgetAccountResponse withPaymentsAccountResponse(PaymentsAccountResponse paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = Optional.ofNullable(paymentsAccountResponse); - return this; - } - - - /** - * OK - */ - public PaymentsgetAccountResponse withPaymentsAccountResponse(Optional paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = paymentsAccountResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsgetAccountResponse other = (PaymentsgetAccountResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.paymentsAccountResponse, other.paymentsAccountResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, statusCode, rawResponse, - paymentsAccountResponse); - } - - @Override - public String toString() { - return Utils.toString(PaymentsgetAccountResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "paymentsAccountResponse", paymentsAccountResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional paymentsAccountResponse = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - - /** - * OK - */ - public Builder paymentsAccountResponse(PaymentsAccountResponse paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = Optional.ofNullable(paymentsAccountResponse); - return this; - } - - /** - * OK - */ - public Builder paymentsAccountResponse(Optional paymentsAccountResponse) { - Utils.checkNotNull(paymentsAccountResponse, "paymentsAccountResponse"); - this.paymentsAccountResponse = paymentsAccountResponse; - return this; - } - - public PaymentsgetAccountResponse build() { - - return new PaymentsgetAccountResponse( - contentType, statusCode, rawResponse, - paymentsAccountResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoRequestBuilder.java deleted file mode 100644 index ba454a8a4..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoRequestBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.PaymentsgetServerInfo; -import com.formance.formance_sdk.utils.Headers; - -public class PaymentsgetServerInfoRequestBuilder { - - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public PaymentsgetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public PaymentsgetServerInfoResponse call() { - - RequestlessOperation operation - = new PaymentsgetServerInfo.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest()); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoResponse.java deleted file mode 100644 index d68386b49..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentsgetServerInfoResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.PaymentsServerInfo; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class PaymentsgetServerInfoResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - /** - * Server information - */ - private Optional paymentsServerInfo; - - @JsonCreator - public PaymentsgetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse, - Optional paymentsServerInfo) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(paymentsServerInfo, "paymentsServerInfo"); - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - this.paymentsServerInfo = paymentsServerInfo; - } - - public PaymentsgetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, - Optional.empty()); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - /** - * Server information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional paymentsServerInfo() { - return (Optional) paymentsServerInfo; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public PaymentsgetServerInfoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PaymentsgetServerInfoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PaymentsgetServerInfoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - /** - * Server information - */ - public PaymentsgetServerInfoResponse withPaymentsServerInfo(PaymentsServerInfo paymentsServerInfo) { - Utils.checkNotNull(paymentsServerInfo, "paymentsServerInfo"); - this.paymentsServerInfo = Optional.ofNullable(paymentsServerInfo); - return this; - } - - - /** - * Server information - */ - public PaymentsgetServerInfoResponse withPaymentsServerInfo(Optional paymentsServerInfo) { - Utils.checkNotNull(paymentsServerInfo, "paymentsServerInfo"); - this.paymentsServerInfo = paymentsServerInfo; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsgetServerInfoResponse other = (PaymentsgetServerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.paymentsServerInfo, other.paymentsServerInfo); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, statusCode, rawResponse, - paymentsServerInfo); - } - - @Override - public String toString() { - return Utils.toString(PaymentsgetServerInfoResponse.class, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse, - "paymentsServerInfo", paymentsServerInfo); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Optional paymentsServerInfo = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - - /** - * Server information - */ - public Builder paymentsServerInfo(PaymentsServerInfo paymentsServerInfo) { - Utils.checkNotNull(paymentsServerInfo, "paymentsServerInfo"); - this.paymentsServerInfo = Optional.ofNullable(paymentsServerInfo); - return this; - } - - /** - * Server information - */ - public Builder paymentsServerInfo(Optional paymentsServerInfo) { - Utils.checkNotNull(paymentsServerInfo, "paymentsServerInfo"); - this.paymentsServerInfo = paymentsServerInfo; - return this; - } - - public PaymentsgetServerInfoResponse build() { - - return new PaymentsgetServerInfoResponse( - contentType, statusCode, rawResponse, - paymentsServerInfo); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequest.java deleted file mode 100644 index de0d841c6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequest.java +++ /dev/null @@ -1,338 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.utils.LazySingletonValue; -import com.formance.formance_sdk.utils.SpeakeasyMetadata; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class PaymentslistAccountsRequest { - /** - * Parameter used in pagination requests. Maximum page size is set to 15. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=cursor") - private Optional cursor; - - /** - * The maximum number of results to return per page. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=pageSize") - private Optional pageSize; - - /** - * Filters used to filter resources. - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=query") - private Optional query; - - /** - * Fields used to sort payments (default is date:desc). - */ - @SpeakeasyMetadata("queryParam:style=form,explode=true,name=sort") - private Optional> sort; - - @JsonCreator - public PaymentslistAccountsRequest( - Optional cursor, - Optional pageSize, - Optional query, - Optional> sort) { - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(query, "query"); - Utils.checkNotNull(sort, "sort"); - this.cursor = cursor; - this.pageSize = pageSize; - this.query = query; - this.sort = sort; - } - - public PaymentslistAccountsRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 15. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - @JsonIgnore - public Optional cursor() { - return cursor; - } - - /** - * The maximum number of results to return per page. - */ - @JsonIgnore - public Optional pageSize() { - return pageSize; - } - - /** - * Filters used to filter resources. - */ - @JsonIgnore - public Optional query() { - return query; - } - - /** - * Fields used to sort payments (default is date:desc). - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> sort() { - return (Optional>) sort; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 15. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public PaymentslistAccountsRequest withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 15. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public PaymentslistAccountsRequest withCursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - /** - * The maximum number of results to return per page. - */ - public PaymentslistAccountsRequest withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = Optional.ofNullable(pageSize); - return this; - } - - - /** - * The maximum number of results to return per page. - */ - public PaymentslistAccountsRequest withPageSize(Optional pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - /** - * Filters used to filter resources. - */ - public PaymentslistAccountsRequest withQuery(String query) { - Utils.checkNotNull(query, "query"); - this.query = Optional.ofNullable(query); - return this; - } - - - /** - * Filters used to filter resources. - */ - public PaymentslistAccountsRequest withQuery(Optional query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - /** - * Fields used to sort payments (default is date:desc). - */ - public PaymentslistAccountsRequest withSort(List sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - - /** - * Fields used to sort payments (default is date:desc). - */ - public PaymentslistAccountsRequest withSort(Optional> sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentslistAccountsRequest other = (PaymentslistAccountsRequest) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.query, other.query) && - Utils.enhancedDeepEquals(this.sort, other.sort); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor, pageSize, query, - sort); - } - - @Override - public String toString() { - return Utils.toString(PaymentslistAccountsRequest.class, - "cursor", cursor, - "pageSize", pageSize, - "query", query, - "sort", sort); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional cursor = Optional.empty(); - - private Optional pageSize; - - private Optional query = Optional.empty(); - - private Optional> sort = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Parameter used in pagination requests. Maximum page size is set to 15. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - /** - * Parameter used in pagination requests. Maximum page size is set to 15. - * Set to the value of next for the next page of results. - * Set to the value of previous for the previous page of results. - * No other parameters can be set when this parameter is set. - */ - public Builder cursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - - /** - * The maximum number of results to return per page. - */ - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = Optional.ofNullable(pageSize); - return this; - } - - /** - * The maximum number of results to return per page. - */ - public Builder pageSize(Optional pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - /** - * Filters used to filter resources. - */ - public Builder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = Optional.ofNullable(query); - return this; - } - - /** - * Filters used to filter resources. - */ - public Builder query(Optional query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - - /** - * Fields used to sort payments (default is date:desc). - */ - public Builder sort(List sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = Optional.ofNullable(sort); - return this; - } - - /** - * Fields used to sort payments (default is date:desc). - */ - public Builder sort(Optional> sort) { - Utils.checkNotNull(sort, "sort"); - this.sort = sort; - return this; - } - - public PaymentslistAccountsRequest build() { - if (pageSize == null) { - pageSize = _SINGLETON_VALUE_PageSize.value(); - } - - return new PaymentslistAccountsRequest( - cursor, pageSize, query, - sort); - } - - - private static final LazySingletonValue> _SINGLETON_VALUE_PageSize = - new LazySingletonValue<>( - "pageSize", - "15", - new TypeReference>() {}); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequestBuilder.java deleted file mode 100644 index 9b788b51a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsRequestBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.PaymentslistAccounts; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Utils; - -public class PaymentslistAccountsRequestBuilder { - - private PaymentslistAccountsRequest request; - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public PaymentslistAccountsRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public PaymentslistAccountsRequestBuilder request(PaymentslistAccountsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; - return this; - } - - public PaymentslistAccountsResponse call() { - - RequestOperation operation - = new PaymentslistAccounts.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest(request)); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsResponse.java deleted file mode 100644 index cfe70e52d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/PaymentslistAccountsResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.AccountsCursor; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class PaymentslistAccountsResponse implements Response { - /** - * OK - */ - private Optional accountsCursor; - - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public PaymentslistAccountsResponse( - Optional accountsCursor, - String contentType, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(accountsCursor, "accountsCursor"); - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.accountsCursor = accountsCursor; - this.contentType = contentType; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public PaymentslistAccountsResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(Optional.empty(), contentType, statusCode, - rawResponse); - } - - /** - * OK - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional accountsCursor() { - return (Optional) accountsCursor; - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * OK - */ - public PaymentslistAccountsResponse withAccountsCursor(AccountsCursor accountsCursor) { - Utils.checkNotNull(accountsCursor, "accountsCursor"); - this.accountsCursor = Optional.ofNullable(accountsCursor); - return this; - } - - - /** - * OK - */ - public PaymentslistAccountsResponse withAccountsCursor(Optional accountsCursor) { - Utils.checkNotNull(accountsCursor, "accountsCursor"); - this.accountsCursor = accountsCursor; - return this; - } - - /** - * HTTP response content type for this operation - */ - public PaymentslistAccountsResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * HTTP response status code for this operation - */ - public PaymentslistAccountsResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public PaymentslistAccountsResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentslistAccountsResponse other = (PaymentslistAccountsResponse) o; - return - Utils.enhancedDeepEquals(this.accountsCursor, other.accountsCursor) && - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountsCursor, contentType, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(PaymentslistAccountsResponse.class, - "accountsCursor", accountsCursor, - "contentType", contentType, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional accountsCursor = Optional.empty(); - - private String contentType; - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * OK - */ - public Builder accountsCursor(AccountsCursor accountsCursor) { - Utils.checkNotNull(accountsCursor, "accountsCursor"); - this.accountsCursor = Optional.ofNullable(accountsCursor); - return this; - } - - /** - * OK - */ - public Builder accountsCursor(Optional accountsCursor) { - Utils.checkNotNull(accountsCursor, "accountsCursor"); - this.accountsCursor = accountsCursor; - return this; - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public PaymentslistAccountsResponse build() { - - return new PaymentslistAccountsResponse( - accountsCursor, contentType, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadClientRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadClientRequestBuilder.java index 3369821da..970e78355 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadClientRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadClientRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReadClient; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReadClientRequestBuilder { private ReadClientRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReadClientRequestBuilder request(ReadClientRequest request) { this.request = request; return this; } + + public ReadClientRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReadClientRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReadClientResponse call() { RequestOperation operation - = new ReadClient.Sync(sdkConfiguration, _headers); + = new ReadClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadClientResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadClientResponse.java index b50f33293..b6b89a26f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadClientResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadClientResponse.java @@ -25,7 +25,7 @@ public class ReadClientResponse implements Response { /** * Retrieved client */ - private Optional readClientResponse; + private Optional readClientResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ReadClientResponse implements Response { @JsonCreator public ReadClientResponse( String contentType, - Optional readClientResponse, + Optional readClientResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional readClientResponse() { - return (Optional) readClientResponse; + public Optional readClientResponse() { + return (Optional) readClientResponse; } /** @@ -111,7 +111,7 @@ public ReadClientResponse withContentType(String contentType) { /** * Retrieved client */ - public ReadClientResponse withReadClientResponse(com.formance.formance_sdk.models.shared.ReadClientResponse readClientResponse) { + public ReadClientResponse withReadClientResponse(com.formance.formance_sdk.models.auth.ReadClientResponse readClientResponse) { Utils.checkNotNull(readClientResponse, "readClientResponse"); this.readClientResponse = Optional.ofNullable(readClientResponse); return this; @@ -121,7 +121,7 @@ public ReadClientResponse withReadClientResponse(com.formance.formance_sdk.model /** * Retrieved client */ - public ReadClientResponse withReadClientResponse(Optional readClientResponse) { + public ReadClientResponse withReadClientResponse(Optional readClientResponse) { Utils.checkNotNull(readClientResponse, "readClientResponse"); this.readClientResponse = readClientResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional readClientResponse = Optional.empty(); + private Optional readClientResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Retrieved client */ - public Builder readClientResponse(com.formance.formance_sdk.models.shared.ReadClientResponse readClientResponse) { + public Builder readClientResponse(com.formance.formance_sdk.models.auth.ReadClientResponse readClientResponse) { Utils.checkNotNull(readClientResponse, "readClientResponse"); this.readClientResponse = Optional.ofNullable(readClientResponse); return this; @@ -215,7 +215,7 @@ public Builder readClientResponse(com.formance.formance_sdk.models.shared.ReadCl /** * Retrieved client */ - public Builder readClientResponse(Optional readClientResponse) { + public Builder readClientResponse(Optional readClientResponse) { Utils.checkNotNull(readClientResponse, "readClientResponse"); this.readClientResponse = readClientResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequest.java index 5c618a3e3..1991076c2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequestBuilder.java index 1664320be..a4a224b0d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReadConnectorConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReadConnectorConfigRequestBuilder { private ReadConnectorConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReadConnectorConfigRequestBuilder request(ReadConnectorConfigRequest requ this.request = request; return this; } + + public ReadConnectorConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReadConnectorConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReadConnectorConfigResponse call() { RequestOperation operation - = new ReadConnectorConfig.Sync(sdkConfiguration, _headers); + = new ReadConnectorConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigResponse.java index 97d92ba5d..d7af48e31 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.ConnectorConfigResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Request.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Request.java index 3337c3454..e30e08788 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Request.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Request.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1RequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1RequestBuilder.java index 18d72a927..773e88fb7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1RequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1RequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReadConnectorConfigV1; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReadConnectorConfigV1RequestBuilder { private ReadConnectorConfigV1Request request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReadConnectorConfigV1RequestBuilder request(ReadConnectorConfigV1Request this.request = request; return this; } + + public ReadConnectorConfigV1RequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReadConnectorConfigV1RequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReadConnectorConfigV1Response call() { RequestOperation operation - = new ReadConnectorConfigV1.Sync(sdkConfiguration, _headers); + = new ReadConnectorConfigV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Response.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Response.java index 29ab9be91..e55823cf3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Response.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadConnectorConfigV1Response.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.ConnectorConfigResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsRequestBuilder.java index 8c77b128e..6ce5c82b6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReadStats; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReadStatsRequestBuilder { private ReadStatsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReadStatsRequestBuilder request(ReadStatsRequest request) { this.request = request; return this; } + + public ReadStatsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReadStatsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReadStatsResponse call() { RequestOperation operation - = new ReadStats.Sync(sdkConfiguration, _headers); + = new ReadStats.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsResponse.java index c80afc214..63465c541 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadStatsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.StatsResponse; +import com.formance.formance_sdk.models.ledger.StatsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerRequestBuilder.java index e847c9d46..8d6890251 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReadTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReadTriggerRequestBuilder { private ReadTriggerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReadTriggerRequestBuilder request(ReadTriggerRequest request) { this.request = request; return this; } + + public ReadTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReadTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReadTriggerResponse call() { RequestOperation operation - = new ReadTrigger.Sync(sdkConfiguration, _headers); + = new ReadTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerResponse.java index b05ae9f67..00a2284d2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadTriggerResponse.java @@ -25,7 +25,7 @@ public class ReadTriggerResponse implements Response { /** * A specific trigger */ - private Optional readTriggerResponse; + private Optional readTriggerResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ReadTriggerResponse implements Response { @JsonCreator public ReadTriggerResponse( String contentType, - Optional readTriggerResponse, + Optional readTriggerResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional readTriggerResponse() { - return (Optional) readTriggerResponse; + public Optional readTriggerResponse() { + return (Optional) readTriggerResponse; } /** @@ -111,7 +111,7 @@ public ReadTriggerResponse withContentType(String contentType) { /** * A specific trigger */ - public ReadTriggerResponse withReadTriggerResponse(com.formance.formance_sdk.models.shared.ReadTriggerResponse readTriggerResponse) { + public ReadTriggerResponse withReadTriggerResponse(com.formance.formance_sdk.models.orchestration.ReadTriggerResponse readTriggerResponse) { Utils.checkNotNull(readTriggerResponse, "readTriggerResponse"); this.readTriggerResponse = Optional.ofNullable(readTriggerResponse); return this; @@ -121,7 +121,7 @@ public ReadTriggerResponse withReadTriggerResponse(com.formance.formance_sdk.mod /** * A specific trigger */ - public ReadTriggerResponse withReadTriggerResponse(Optional readTriggerResponse) { + public ReadTriggerResponse withReadTriggerResponse(Optional readTriggerResponse) { Utils.checkNotNull(readTriggerResponse, "readTriggerResponse"); this.readTriggerResponse = readTriggerResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional readTriggerResponse = Optional.empty(); + private Optional readTriggerResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * A specific trigger */ - public Builder readTriggerResponse(com.formance.formance_sdk.models.shared.ReadTriggerResponse readTriggerResponse) { + public Builder readTriggerResponse(com.formance.formance_sdk.models.orchestration.ReadTriggerResponse readTriggerResponse) { Utils.checkNotNull(readTriggerResponse, "readTriggerResponse"); this.readTriggerResponse = Optional.ofNullable(readTriggerResponse); return this; @@ -215,7 +215,7 @@ public Builder readTriggerResponse(com.formance.formance_sdk.models.shared.ReadT /** * A specific trigger */ - public Builder readTriggerResponse(Optional readTriggerResponse) { + public Builder readTriggerResponse(Optional readTriggerResponse) { Utils.checkNotNull(readTriggerResponse, "readTriggerResponse"); this.readTriggerResponse = readTriggerResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadUserRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadUserRequestBuilder.java index d226923b9..7148f3283 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadUserRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadUserRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReadUser; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReadUserRequestBuilder { private ReadUserRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReadUserRequestBuilder request(ReadUserRequest request) { this.request = request; return this; } + + public ReadUserRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReadUserRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReadUserResponse call() { RequestOperation operation - = new ReadUser.Sync(sdkConfiguration, _headers); + = new ReadUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReadUserResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReadUserResponse.java index 7e234305e..ee86f933d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReadUserResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReadUserResponse.java @@ -25,7 +25,7 @@ public class ReadUserResponse implements Response { /** * Retrieved user */ - private Optional readUserResponse; + private Optional readUserResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class ReadUserResponse implements Response { @JsonCreator public ReadUserResponse( String contentType, - Optional readUserResponse, + Optional readUserResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional readUserResponse() { - return (Optional) readUserResponse; + public Optional readUserResponse() { + return (Optional) readUserResponse; } /** @@ -111,7 +111,7 @@ public ReadUserResponse withContentType(String contentType) { /** * Retrieved user */ - public ReadUserResponse withReadUserResponse(com.formance.formance_sdk.models.shared.ReadUserResponse readUserResponse) { + public ReadUserResponse withReadUserResponse(com.formance.formance_sdk.models.auth.ReadUserResponse readUserResponse) { Utils.checkNotNull(readUserResponse, "readUserResponse"); this.readUserResponse = Optional.ofNullable(readUserResponse); return this; @@ -121,7 +121,7 @@ public ReadUserResponse withReadUserResponse(com.formance.formance_sdk.models.sh /** * Retrieved user */ - public ReadUserResponse withReadUserResponse(Optional readUserResponse) { + public ReadUserResponse withReadUserResponse(Optional readUserResponse) { Utils.checkNotNull(readUserResponse, "readUserResponse"); this.readUserResponse = readUserResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional readUserResponse = Optional.empty(); + private Optional readUserResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Retrieved user */ - public Builder readUserResponse(com.formance.formance_sdk.models.shared.ReadUserResponse readUserResponse) { + public Builder readUserResponse(com.formance.formance_sdk.models.auth.ReadUserResponse readUserResponse) { Utils.checkNotNull(readUserResponse, "readUserResponse"); this.readUserResponse = Optional.ofNullable(readUserResponse); return this; @@ -215,7 +215,7 @@ public Builder readUserResponse(com.formance.formance_sdk.models.shared.ReadUser /** * Retrieved user */ - public Builder readUserResponse(Optional readUserResponse) { + public Builder readUserResponse(Optional readUserResponse) { Utils.checkNotNull(readUserResponse, "readUserResponse"); this.readUserResponse = readUserResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequest.java index 6bb11ab24..cef7a575c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ReconciliationRequest; +import com.formance.formance_sdk.models.reconciliation.ReconciliationRequest; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequestBuilder.java index 9f7d11428..add4ae93d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReconcileRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.Reconcile; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReconcileRequestBuilder { private ReconcileRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReconcileRequestBuilder request(ReconcileRequest request) { this.request = request; return this; } + + public ReconcileRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReconcileRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReconcileResponse call() { RequestOperation operation - = new Reconcile.Sync(sdkConfiguration, _headers); + = new Reconcile.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReconcileResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReconcileResponse.java index 0726e4610..dc1e4c245 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReconcileResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReconcileResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoRequestBuilder.java deleted file mode 100644 index d6d9ba052..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoRequestBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.ReconciliationgetServerInfo; -import com.formance.formance_sdk.utils.Headers; - -public class ReconciliationgetServerInfoRequestBuilder { - - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public ReconciliationgetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public ReconciliationgetServerInfoResponse call() { - - RequestlessOperation operation - = new ReconciliationgetServerInfo.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest()); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoResponse.java deleted file mode 100644 index 53119d39a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReconciliationgetServerInfoResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class ReconciliationgetServerInfoResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * Server information - */ - private Optional serverInfo; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public ReconciliationgetServerInfoResponse( - String contentType, - Optional serverInfo, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(serverInfo, "serverInfo"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.serverInfo = serverInfo; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public ReconciliationgetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, - rawResponse); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * Server information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional serverInfo() { - return (Optional) serverInfo; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public ReconciliationgetServerInfoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * Server information - */ - public ReconciliationgetServerInfoResponse withServerInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - - /** - * Server information - */ - public ReconciliationgetServerInfoResponse withServerInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - /** - * HTTP response status code for this operation - */ - public ReconciliationgetServerInfoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public ReconciliationgetServerInfoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReconciliationgetServerInfoResponse other = (ReconciliationgetServerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, serverInfo, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(ReconciliationgetServerInfoResponse.class, - "contentType", contentType, - "serverInfo", serverInfo, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Optional serverInfo = Optional.empty(); - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * Server information - */ - public Builder serverInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - /** - * Server information - */ - public Builder serverInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public ReconciliationgetServerInfoResponse build() { - - return new ReconciliationgetServerInfoResponse( - contentType, serverInfo, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolRequestBuilder.java index 60e3f7548..ee0d0fcb5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RemoveAccountFromPoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.RemoveAccountFromPool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class RemoveAccountFromPoolRequestBuilder { private RemoveAccountFromPoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public RemoveAccountFromPoolRequestBuilder request(RemoveAccountFromPoolRequest this.request = request; return this; } + + public RemoveAccountFromPoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public RemoveAccountFromPoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public RemoveAccountFromPoolResponse call() { RequestOperation operation - = new RemoveAccountFromPool.Sync(sdkConfiguration, _headers); + = new RemoveAccountFromPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequest.java index 1c87de9e4..3b96802ce 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequestBuilder.java index d32accdb6..d86f55773 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ResetConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ResetConnectorRequestBuilder { private ResetConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ResetConnectorRequestBuilder request(ResetConnectorRequest request) { this.request = request; return this; } + + public ResetConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ResetConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ResetConnectorResponse call() { RequestOperation operation - = new ResetConnector.Sync(sdkConfiguration, _headers); + = new ResetConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Request.java b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Request.java index a132574c1..e6612706f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Request.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1Request.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1RequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1RequestBuilder.java index 897052926..2eb9889f5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1RequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ResetConnectorV1RequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ResetConnectorV1; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ResetConnectorV1RequestBuilder { private ResetConnectorV1Request request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ResetConnectorV1RequestBuilder request(ResetConnectorV1Request request) { this.request = request; return this; } + + public ResetConnectorV1RequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ResetConnectorV1RequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ResetConnectorV1Response call() { RequestOperation operation - = new ResetConnectorV1.Sync(sdkConfiguration, _headers); + = new ResetConnectorV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationRequestBuilder.java index 551493e65..30259c352 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RetryTransferInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.RetryTransferInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class RetryTransferInitiationRequestBuilder { private RetryTransferInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public RetryTransferInitiationRequestBuilder request(RetryTransferInitiationRequ this.request = request; return this; } + + public RetryTransferInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public RetryTransferInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public RetryTransferInitiationResponse call() { RequestOperation operation - = new RetryTransferInitiation.Sync(sdkConfiguration, _headers); + = new RetryTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java index 710d6d273..4fe794b20 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequest.java @@ -14,7 +14,7 @@ public class ReverseTransferInitiationRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest; + private com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest reverseTransferInitiationRequest; /** * The transfer ID. @@ -24,7 +24,7 @@ public class ReverseTransferInitiationRequest { @JsonCreator public ReverseTransferInitiationRequest( - com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest, + com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest reverseTransferInitiationRequest, String transferId) { Utils.checkNotNull(reverseTransferInitiationRequest, "reverseTransferInitiationRequest"); Utils.checkNotNull(transferId, "transferId"); @@ -33,7 +33,7 @@ public ReverseTransferInitiationRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest() { + public com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest reverseTransferInitiationRequest() { return reverseTransferInitiationRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public ReverseTransferInitiationRequest withReverseTransferInitiationRequest(com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest) { + public ReverseTransferInitiationRequest withReverseTransferInitiationRequest(com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest reverseTransferInitiationRequest) { Utils.checkNotNull(reverseTransferInitiationRequest, "reverseTransferInitiationRequest"); this.reverseTransferInitiationRequest = reverseTransferInitiationRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest; + private com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest reverseTransferInitiationRequest; private String transferId; @@ -104,7 +104,7 @@ private Builder() { } - public Builder reverseTransferInitiationRequest(com.formance.formance_sdk.models.shared.ReverseTransferInitiationRequest reverseTransferInitiationRequest) { + public Builder reverseTransferInitiationRequest(com.formance.formance_sdk.models.payments.ReverseTransferInitiationRequest reverseTransferInitiationRequest) { Utils.checkNotNull(reverseTransferInitiationRequest, "reverseTransferInitiationRequest"); this.reverseTransferInitiationRequest = reverseTransferInitiationRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequestBuilder.java index dc0391d5c..931efd06d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/ReverseTransferInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.ReverseTransferInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ReverseTransferInitiationRequestBuilder { private ReverseTransferInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public ReverseTransferInitiationRequestBuilder request(ReverseTransferInitiation this.request = request; return this; } + + public ReverseTransferInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public ReverseTransferInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public ReverseTransferInitiationResponse call() { RequestOperation operation - = new ReverseTransferInitiation.Sync(sdkConfiguration, _headers); + = new ReverseTransferInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionRequestBuilder.java index 441a45866..2d6c65793 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.RevertTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class RevertTransactionRequestBuilder { private RevertTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public RevertTransactionRequestBuilder request(RevertTransactionRequest request) this.request = request; return this; } + + public RevertTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public RevertTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public RevertTransactionResponse call() { RequestOperation operation - = new RevertTransaction.Sync(sdkConfiguration, _headers); + = new RevertTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionResponse.java index 9566a7d09..b9cedc9fe 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RevertTransactionResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.TransactionResponse; +import com.formance.formance_sdk.models.ledger.TransactionResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequest.java index b09dba4b9..db9818953 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Script; +import com.formance.formance_sdk.models.ledger.Script; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Boolean; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequestBuilder.java index 56c5bd935..1aa893e04 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RunScriptRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.RunScript; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class RunScriptRequestBuilder { private RunScriptRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public RunScriptRequestBuilder request(RunScriptRequest request) { this.request = request; return this; } + + public RunScriptRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public RunScriptRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public RunScriptResponse call() { RequestOperation operation - = new RunScript.Sync(sdkConfiguration, _headers); + = new RunScript.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RunScriptResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/RunScriptResponse.java index bb297f911..652ab4c1b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RunScriptResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RunScriptResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ScriptResponse; +import com.formance.formance_sdk.models.ledger.ScriptResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowRequestBuilder.java index 7f87eab08..0bf279431 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.RunWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class RunWorkflowRequestBuilder { private RunWorkflowRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public RunWorkflowRequestBuilder request(RunWorkflowRequest request) { this.request = request; return this; } + + public RunWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public RunWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public RunWorkflowResponse call() { RequestOperation operation - = new RunWorkflow.Sync(sdkConfiguration, _headers); + = new RunWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowResponse.java index 857b84c19..c410308b9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/RunWorkflowResponse.java @@ -25,7 +25,7 @@ public class RunWorkflowResponse implements Response { /** * The workflow instance */ - private Optional runWorkflowResponse; + private Optional runWorkflowResponse; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class RunWorkflowResponse implements Response { @JsonCreator public RunWorkflowResponse( String contentType, - Optional runWorkflowResponse, + Optional runWorkflowResponse, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional runWorkflowResponse() { - return (Optional) runWorkflowResponse; + public Optional runWorkflowResponse() { + return (Optional) runWorkflowResponse; } /** @@ -111,7 +111,7 @@ public RunWorkflowResponse withContentType(String contentType) { /** * The workflow instance */ - public RunWorkflowResponse withRunWorkflowResponse(com.formance.formance_sdk.models.shared.RunWorkflowResponse runWorkflowResponse) { + public RunWorkflowResponse withRunWorkflowResponse(com.formance.formance_sdk.models.orchestration.RunWorkflowResponse runWorkflowResponse) { Utils.checkNotNull(runWorkflowResponse, "runWorkflowResponse"); this.runWorkflowResponse = Optional.ofNullable(runWorkflowResponse); return this; @@ -121,7 +121,7 @@ public RunWorkflowResponse withRunWorkflowResponse(com.formance.formance_sdk.mod /** * The workflow instance */ - public RunWorkflowResponse withRunWorkflowResponse(Optional runWorkflowResponse) { + public RunWorkflowResponse withRunWorkflowResponse(Optional runWorkflowResponse) { Utils.checkNotNull(runWorkflowResponse, "runWorkflowResponse"); this.runWorkflowResponse = runWorkflowResponse; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional runWorkflowResponse = Optional.empty(); + private Optional runWorkflowResponse = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * The workflow instance */ - public Builder runWorkflowResponse(com.formance.formance_sdk.models.shared.RunWorkflowResponse runWorkflowResponse) { + public Builder runWorkflowResponse(com.formance.formance_sdk.models.orchestration.RunWorkflowResponse runWorkflowResponse) { Utils.checkNotNull(runWorkflowResponse, "runWorkflowResponse"); this.runWorkflowResponse = Optional.ofNullable(runWorkflowResponse); return this; @@ -215,7 +215,7 @@ public Builder runWorkflowResponse(com.formance.formance_sdk.models.shared.RunWo /** * The workflow instance */ - public Builder runWorkflowResponse(Optional runWorkflowResponse) { + public Builder runWorkflowResponse(Optional runWorkflowResponse) { Utils.checkNotNull(runWorkflowResponse, "runWorkflowResponse"); this.runWorkflowResponse = runWorkflowResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/SearchRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/SearchRequestBuilder.java index f781c5a7f..194d29ba5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/SearchRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/SearchRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.Query; +import com.formance.formance_sdk.models.search.Query; import com.formance.formance_sdk.operations.Search; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class SearchRequestBuilder { private Query request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -26,11 +29,23 @@ public SearchRequestBuilder request(Query request) { this.request = request; return this; } + + public SearchRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public SearchRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public SearchResponse call() { RequestOperation operation - = new Search.Sync(sdkConfiguration, _headers); + = new Search.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/SearchResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/SearchResponse.java index 0438a1f11..339110e4b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/SearchResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/SearchResponse.java @@ -25,7 +25,7 @@ public class SearchResponse implements Response { /** * Success */ - private Optional response; + private Optional response; /** * HTTP response status code for this operation @@ -40,7 +40,7 @@ public class SearchResponse implements Response { @JsonCreator public SearchResponse( String contentType, - Optional response, + Optional response, int statusCode, HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); @@ -74,8 +74,8 @@ public String contentType() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional response() { - return (Optional) response; + public Optional response() { + return (Optional) response; } /** @@ -111,7 +111,7 @@ public SearchResponse withContentType(String contentType) { /** * Success */ - public SearchResponse withResponse(com.formance.formance_sdk.models.shared.Response response) { + public SearchResponse withResponse(com.formance.formance_sdk.models.search.Response response) { Utils.checkNotNull(response, "response"); this.response = Optional.ofNullable(response); return this; @@ -121,7 +121,7 @@ public SearchResponse withResponse(com.formance.formance_sdk.models.shared.Respo /** * Success */ - public SearchResponse withResponse(Optional response) { + public SearchResponse withResponse(Optional response) { Utils.checkNotNull(response, "response"); this.response = response; return this; @@ -182,7 +182,7 @@ public final static class Builder { private String contentType; - private Optional response = Optional.empty(); + private Optional response = Optional.empty(); private Integer statusCode; @@ -206,7 +206,7 @@ public Builder contentType(String contentType) { /** * Success */ - public Builder response(com.formance.formance_sdk.models.shared.Response response) { + public Builder response(com.formance.formance_sdk.models.search.Response response) { Utils.checkNotNull(response, "response"); this.response = Optional.ofNullable(response); return this; @@ -215,7 +215,7 @@ public Builder response(com.formance.formance_sdk.models.shared.Response respons /** * Success */ - public Builder response(Optional response) { + public Builder response(Optional response) { Utils.checkNotNull(response, "response"); this.response = response; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoRequestBuilder.java deleted file mode 100644 index ceb5546be..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoRequestBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.SearchgetServerInfo; -import com.formance.formance_sdk.utils.Headers; - -public class SearchgetServerInfoRequestBuilder { - - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public SearchgetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public SearchgetServerInfoResponse call() { - - RequestlessOperation operation - = new SearchgetServerInfo.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest()); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoResponse.java deleted file mode 100644 index d19ed9400..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/SearchgetServerInfoResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class SearchgetServerInfoResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * Server information - */ - private Optional serverInfo; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public SearchgetServerInfoResponse( - String contentType, - Optional serverInfo, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(serverInfo, "serverInfo"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.serverInfo = serverInfo; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public SearchgetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, - rawResponse); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * Server information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional serverInfo() { - return (Optional) serverInfo; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public SearchgetServerInfoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * Server information - */ - public SearchgetServerInfoResponse withServerInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - - /** - * Server information - */ - public SearchgetServerInfoResponse withServerInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - /** - * HTTP response status code for this operation - */ - public SearchgetServerInfoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public SearchgetServerInfoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - SearchgetServerInfoResponse other = (SearchgetServerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, serverInfo, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(SearchgetServerInfoResponse.class, - "contentType", contentType, - "serverInfo", serverInfo, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Optional serverInfo = Optional.empty(); - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * Server information - */ - public Builder serverInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - /** - * Server information - */ - public Builder serverInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public SearchgetServerInfoResponse build() { - - return new SearchgetServerInfoResponse( - contentType, serverInfo, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/SendEventRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/SendEventRequestBuilder.java index 8b5710034..94452e144 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/SendEventRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/SendEventRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.SendEvent; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class SendEventRequestBuilder { private SendEventRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public SendEventRequestBuilder request(SendEventRequest request) { this.request = request; return this; } + + public SendEventRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public SendEventRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public SendEventResponse call() { RequestOperation operation - = new SendEvent.Sync(sdkConfiguration, _headers); + = new SendEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/TestConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/TestConfigRequestBuilder.java index 3bc7a2fee..679b1863e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/TestConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/TestConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.TestConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class TestConfigRequestBuilder { private TestConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public TestConfigRequestBuilder request(TestConfigRequest request) { this.request = request; return this; } + + public TestConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public TestConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public TestConfigResponse call() { RequestOperation operation - = new TestConfig.Sync(sdkConfiguration, _headers); + = new TestConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/TestConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/TestConfigResponse.java index 51582678a..2191f00bf 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/TestConfigResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/TestConfigResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.AttemptResponse; +import com.formance.formance_sdk.models.webhooks.AttemptResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerRequestBuilder.java index 15adf56e6..27cbc53a5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.TestTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class TestTriggerRequestBuilder { private TestTriggerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public TestTriggerRequestBuilder request(TestTriggerRequest request) { this.request = request; return this; } + + public TestTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public TestTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public TestTriggerResponse call() { RequestOperation operation - = new TestTrigger.Sync(sdkConfiguration, _headers); + = new TestTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerResponse.java index 7fabccf66..2235ad108 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/TestTriggerResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2TestTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2TestTriggerResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequest.java index b7f5f4e93..b49b66557 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequestBuilder.java index 8099e7b52..3af5fe7e3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UninstallConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UninstallConnectorRequestBuilder { private UninstallConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UninstallConnectorRequestBuilder request(UninstallConnectorRequest reques this.request = request; return this; } + + public UninstallConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UninstallConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UninstallConnectorResponse call() { RequestOperation operation - = new UninstallConnector.Sync(sdkConfiguration, _headers); + = new UninstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1Request.java b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1Request.java index 702ad3b8f..f7c1ed917 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1Request.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1Request.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; +import com.formance.formance_sdk.models.payments.Connector; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1RequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1RequestBuilder.java index 2aa48ad28..a20f2103c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1RequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UninstallConnectorV1RequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UninstallConnectorV1; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UninstallConnectorV1RequestBuilder { private UninstallConnectorV1Request request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UninstallConnectorV1RequestBuilder request(UninstallConnectorV1Request re this.request = request; return this; } + + public UninstallConnectorV1RequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UninstallConnectorV1RequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UninstallConnectorV1Response call() { RequestOperation operation - = new UninstallConnectorV1.Sync(sdkConfiguration, _headers); + = new UninstallConnectorV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequest.java index 91984389c..77fbfe88f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequest.java @@ -14,7 +14,7 @@ public class UpdateBankAccountMetadataRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest; + private com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest; /** * The bank account ID. @@ -24,7 +24,7 @@ public class UpdateBankAccountMetadataRequest { @JsonCreator public UpdateBankAccountMetadataRequest( - com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest, + com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest, String bankAccountId) { Utils.checkNotNull(updateBankAccountMetadataRequest, "updateBankAccountMetadataRequest"); Utils.checkNotNull(bankAccountId, "bankAccountId"); @@ -33,7 +33,7 @@ public UpdateBankAccountMetadataRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest() { + public com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest() { return updateBankAccountMetadataRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public UpdateBankAccountMetadataRequest withUpdateBankAccountMetadataRequest(com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest) { + public UpdateBankAccountMetadataRequest withUpdateBankAccountMetadataRequest(com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest) { Utils.checkNotNull(updateBankAccountMetadataRequest, "updateBankAccountMetadataRequest"); this.updateBankAccountMetadataRequest = updateBankAccountMetadataRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest; + private com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest; private String bankAccountId; @@ -104,7 +104,7 @@ private Builder() { } - public Builder updateBankAccountMetadataRequest(com.formance.formance_sdk.models.shared.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest) { + public Builder updateBankAccountMetadataRequest(com.formance.formance_sdk.models.payments.UpdateBankAccountMetadataRequest updateBankAccountMetadataRequest) { Utils.checkNotNull(updateBankAccountMetadataRequest, "updateBankAccountMetadataRequest"); this.updateBankAccountMetadataRequest = updateBankAccountMetadataRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequestBuilder.java index ae532feb6..8c9eb3b01 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateBankAccountMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateBankAccountMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateBankAccountMetadataRequestBuilder { private UpdateBankAccountMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateBankAccountMetadataRequestBuilder request(UpdateBankAccountMetadata this.request = request; return this; } + + public UpdateBankAccountMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateBankAccountMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateBankAccountMetadataResponse call() { RequestOperation operation - = new UpdateBankAccountMetadata.Sync(sdkConfiguration, _headers); + = new UpdateBankAccountMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequest.java index 737e0eb52..db81ebe6c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.CreateClientRequest; +import com.formance.formance_sdk.models.auth.ClientOptions2; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -17,7 +17,7 @@ public class UpdateClientRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional createClientRequest; + private Optional clientOptions; /** * Client ID @@ -27,11 +27,11 @@ public class UpdateClientRequest { @JsonCreator public UpdateClientRequest( - Optional createClientRequest, + Optional clientOptions, String clientId) { - Utils.checkNotNull(createClientRequest, "createClientRequest"); + Utils.checkNotNull(clientOptions, "clientOptions"); Utils.checkNotNull(clientId, "clientId"); - this.createClientRequest = createClientRequest; + this.clientOptions = clientOptions; this.clientId = clientId; } @@ -42,8 +42,8 @@ public UpdateClientRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional createClientRequest() { - return (Optional) createClientRequest; + public Optional clientOptions() { + return (Optional) clientOptions; } /** @@ -59,16 +59,16 @@ public static Builder builder() { } - public UpdateClientRequest withCreateClientRequest(CreateClientRequest createClientRequest) { - Utils.checkNotNull(createClientRequest, "createClientRequest"); - this.createClientRequest = Optional.ofNullable(createClientRequest); + public UpdateClientRequest withClientOptions(ClientOptions2 clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = Optional.ofNullable(clientOptions); return this; } - public UpdateClientRequest withCreateClientRequest(Optional createClientRequest) { - Utils.checkNotNull(createClientRequest, "createClientRequest"); - this.createClientRequest = createClientRequest; + public UpdateClientRequest withClientOptions(Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; return this; } @@ -91,27 +91,27 @@ public boolean equals(java.lang.Object o) { } UpdateClientRequest other = (UpdateClientRequest) o; return - Utils.enhancedDeepEquals(this.createClientRequest, other.createClientRequest) && + Utils.enhancedDeepEquals(this.clientOptions, other.clientOptions) && Utils.enhancedDeepEquals(this.clientId, other.clientId); } @Override public int hashCode() { return Utils.enhancedHash( - createClientRequest, clientId); + clientOptions, clientId); } @Override public String toString() { return Utils.toString(UpdateClientRequest.class, - "createClientRequest", createClientRequest, + "clientOptions", clientOptions, "clientId", clientId); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional createClientRequest = Optional.empty(); + private Optional clientOptions = Optional.empty(); private String clientId; @@ -120,15 +120,15 @@ private Builder() { } - public Builder createClientRequest(CreateClientRequest createClientRequest) { - Utils.checkNotNull(createClientRequest, "createClientRequest"); - this.createClientRequest = Optional.ofNullable(createClientRequest); + public Builder clientOptions(ClientOptions2 clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = Optional.ofNullable(clientOptions); return this; } - public Builder createClientRequest(Optional createClientRequest) { - Utils.checkNotNull(createClientRequest, "createClientRequest"); - this.createClientRequest = createClientRequest; + public Builder clientOptions(Optional clientOptions) { + Utils.checkNotNull(clientOptions, "clientOptions"); + this.clientOptions = clientOptions; return this; } @@ -145,7 +145,7 @@ public Builder clientId(String clientId) { public UpdateClientRequest build() { return new UpdateClientRequest( - createClientRequest, clientId); + clientOptions, clientId); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequestBuilder.java index f4ff7dfce..3ffda40d6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateClient; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateClientRequestBuilder { private UpdateClientRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateClientRequestBuilder request(UpdateClientRequest request) { this.request = request; return this; } + + public UpdateClientRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateClientRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateClientResponse call() { RequestOperation operation - = new UpdateClient.Sync(sdkConfiguration, _headers); + = new UpdateClient.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientResponse.java index 727c8bd04..1492e4dd8 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateClientResponse.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.auth.CreateClientResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; @@ -22,6 +23,11 @@ public class UpdateClientResponse implements Response { */ private String contentType; + /** + * Updated client + */ + private Optional createClientResponse; + /** * HTTP response status code for this operation */ @@ -32,33 +38,28 @@ public class UpdateClientResponse implements Response { */ private HttpResponse rawResponse; - /** - * Updated client - */ - private Optional updateClientResponse; - @JsonCreator public UpdateClientResponse( String contentType, + Optional createClientResponse, int statusCode, - HttpResponse rawResponse, - Optional updateClientResponse) { + HttpResponse rawResponse) { Utils.checkNotNull(contentType, "contentType"); + Utils.checkNotNull(createClientResponse, "createClientResponse"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(updateClientResponse, "updateClientResponse"); this.contentType = contentType; + this.createClientResponse = createClientResponse; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.updateClientResponse = updateClientResponse; } public UpdateClientResponse( String contentType, int statusCode, HttpResponse rawResponse) { - this(contentType, statusCode, rawResponse, - Optional.empty()); + this(contentType, Optional.empty(), statusCode, + rawResponse); } /** @@ -69,6 +70,15 @@ public String contentType() { return contentType; } + /** + * Updated client + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional createClientResponse() { + return (Optional) createClientResponse; + } + /** * HTTP response status code for this operation */ @@ -85,15 +95,6 @@ public HttpResponse rawResponse() { return rawResponse; } - /** - * Updated client - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional updateClientResponse() { - return (Optional) updateClientResponse; - } - public static Builder builder() { return new Builder(); } @@ -109,39 +110,39 @@ public UpdateClientResponse withContentType(String contentType) { } /** - * HTTP response status code for this operation + * Updated client */ - public UpdateClientResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; + public UpdateClientResponse withCreateClientResponse(CreateClientResponse createClientResponse) { + Utils.checkNotNull(createClientResponse, "createClientResponse"); + this.createClientResponse = Optional.ofNullable(createClientResponse); return this; } + /** - * Raw HTTP response; suitable for custom response parsing + * Updated client */ - public UpdateClientResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; + public UpdateClientResponse withCreateClientResponse(Optional createClientResponse) { + Utils.checkNotNull(createClientResponse, "createClientResponse"); + this.createClientResponse = createClientResponse; return this; } /** - * Updated client + * HTTP response status code for this operation */ - public UpdateClientResponse withUpdateClientResponse(com.formance.formance_sdk.models.shared.UpdateClientResponse updateClientResponse) { - Utils.checkNotNull(updateClientResponse, "updateClientResponse"); - this.updateClientResponse = Optional.ofNullable(updateClientResponse); + public UpdateClientResponse withStatusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; return this; } - /** - * Updated client + * Raw HTTP response; suitable for custom response parsing */ - public UpdateClientResponse withUpdateClientResponse(Optional updateClientResponse) { - Utils.checkNotNull(updateClientResponse, "updateClientResponse"); - this.updateClientResponse = updateClientResponse; + public UpdateClientResponse withRawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; return this; } @@ -156,25 +157,25 @@ public boolean equals(java.lang.Object o) { UpdateClientResponse other = (UpdateClientResponse) o; return Utils.enhancedDeepEquals(this.contentType, other.contentType) && + Utils.enhancedDeepEquals(this.createClientResponse, other.createClientResponse) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.updateClientResponse, other.updateClientResponse); + Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); } @Override public int hashCode() { return Utils.enhancedHash( - contentType, statusCode, rawResponse, - updateClientResponse); + contentType, createClientResponse, statusCode, + rawResponse); } @Override public String toString() { return Utils.toString(UpdateClientResponse.class, "contentType", contentType, + "createClientResponse", createClientResponse, "statusCode", statusCode, - "rawResponse", rawResponse, - "updateClientResponse", updateClientResponse); + "rawResponse", rawResponse); } @SuppressWarnings("UnusedReturnValue") @@ -182,12 +183,12 @@ public final static class Builder { private String contentType; + private Optional createClientResponse = Optional.empty(); + private Integer statusCode; private HttpResponse rawResponse; - private Optional updateClientResponse = Optional.empty(); - private Builder() { // force use of static builder() method } @@ -204,48 +205,48 @@ public Builder contentType(String contentType) { /** - * HTTP response status code for this operation + * Updated client */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; + public Builder createClientResponse(CreateClientResponse createClientResponse) { + Utils.checkNotNull(createClientResponse, "createClientResponse"); + this.createClientResponse = Optional.ofNullable(createClientResponse); return this; } - /** - * Raw HTTP response; suitable for custom response parsing + * Updated client */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; + public Builder createClientResponse(Optional createClientResponse) { + Utils.checkNotNull(createClientResponse, "createClientResponse"); + this.createClientResponse = createClientResponse; return this; } /** - * Updated client + * HTTP response status code for this operation */ - public Builder updateClientResponse(com.formance.formance_sdk.models.shared.UpdateClientResponse updateClientResponse) { - Utils.checkNotNull(updateClientResponse, "updateClientResponse"); - this.updateClientResponse = Optional.ofNullable(updateClientResponse); + public Builder statusCode(int statusCode) { + Utils.checkNotNull(statusCode, "statusCode"); + this.statusCode = statusCode; return this; } + /** - * Updated client + * Raw HTTP response; suitable for custom response parsing */ - public Builder updateClientResponse(Optional updateClientResponse) { - Utils.checkNotNull(updateClientResponse, "updateClientResponse"); - this.updateClientResponse = updateClientResponse; + public Builder rawResponse(HttpResponse rawResponse) { + Utils.checkNotNull(rawResponse, "rawResponse"); + this.rawResponse = rawResponse; return this; } public UpdateClientResponse build() { return new UpdateClientResponse( - contentType, statusCode, rawResponse, - updateClientResponse); + contentType, createClientResponse, statusCode, + rawResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequest.java index eda02239a..05db8b7b5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ConfigUser; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequestBuilder.java index 855f124bb..fca118cbe 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateConfigRequestBuilder { private UpdateConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateConfigRequestBuilder request(UpdateConfigRequest request) { this.request = request; return this; } + + public UpdateConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateConfigResponse call() { RequestOperation operation - = new UpdateConfig.Sync(sdkConfiguration, _headers); + = new UpdateConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1Request.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1Request.java index af7a3c000..ce8138306 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1Request.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1Request.java @@ -5,8 +5,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Connector; -import com.formance.formance_sdk.models.shared.ConnectorConfig; +import com.formance.formance_sdk.models.payments.Connector; +import com.formance.formance_sdk.models.payments.ConnectorConfig; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1RequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1RequestBuilder.java index 20732ea93..7ea53edc9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1RequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateConnectorConfigV1RequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateConnectorConfigV1; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateConnectorConfigV1RequestBuilder { private UpdateConnectorConfigV1Request request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateConnectorConfigV1RequestBuilder request(UpdateConnectorConfigV1Requ this.request = request; return this; } + + public UpdateConnectorConfigV1RequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateConnectorConfigV1RequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateConnectorConfigV1Response call() { RequestOperation operation - = new UpdateConnectorConfigV1.Sync(sdkConfiguration, _headers); + = new UpdateConnectorConfigV1.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequest.java index a63c3f295..e35797029 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.Mapping; +import com.formance.formance_sdk.models.ledger.Mapping; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequestBuilder.java index 0528cfa1e..83a961b77 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateMapping; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateMappingRequestBuilder { private UpdateMappingRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateMappingRequestBuilder request(UpdateMappingRequest request) { this.request = request; return this; } + + public UpdateMappingRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateMappingRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateMappingResponse call() { RequestOperation operation - = new UpdateMapping.Sync(sdkConfiguration, _headers); + = new UpdateMapping.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingResponse.java index 501cacb47..e861a6c96 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMappingResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.MappingResponse; +import com.formance.formance_sdk.models.ledger.MappingResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataRequestBuilder.java index 827d8b43f..4c4e42624 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateMetadataRequestBuilder { private UpdateMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateMetadataRequestBuilder request(UpdateMetadataRequest request) { this.request = request; return this; } + + public UpdateMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateMetadataResponse call() { RequestOperation operation - = new UpdateMetadata.Sync(sdkConfiguration, _headers); + = new UpdateMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequest.java index 58c68c601..9be9e5270 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequest.java @@ -14,7 +14,7 @@ public class UpdatePoolQueryRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest updatePoolQueryRequest; + private com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest updatePoolQueryRequest; /** * The pool ID. @@ -24,7 +24,7 @@ public class UpdatePoolQueryRequest { @JsonCreator public UpdatePoolQueryRequest( - com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest updatePoolQueryRequest, + com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest updatePoolQueryRequest, String poolId) { Utils.checkNotNull(updatePoolQueryRequest, "updatePoolQueryRequest"); Utils.checkNotNull(poolId, "poolId"); @@ -33,7 +33,7 @@ public UpdatePoolQueryRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest updatePoolQueryRequest() { + public com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest updatePoolQueryRequest() { return updatePoolQueryRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public UpdatePoolQueryRequest withUpdatePoolQueryRequest(com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest updatePoolQueryRequest) { + public UpdatePoolQueryRequest withUpdatePoolQueryRequest(com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest updatePoolQueryRequest) { Utils.checkNotNull(updatePoolQueryRequest, "updatePoolQueryRequest"); this.updatePoolQueryRequest = updatePoolQueryRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest updatePoolQueryRequest; + private com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest updatePoolQueryRequest; private String poolId; @@ -104,7 +104,7 @@ private Builder() { } - public Builder updatePoolQueryRequest(com.formance.formance_sdk.models.shared.UpdatePoolQueryRequest updatePoolQueryRequest) { + public Builder updatePoolQueryRequest(com.formance.formance_sdk.models.payments.UpdatePoolQueryRequest updatePoolQueryRequest) { Utils.checkNotNull(updatePoolQueryRequest, "updatePoolQueryRequest"); this.updatePoolQueryRequest = updatePoolQueryRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequestBuilder.java index 0dcee7089..aa62fbea5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdatePoolQueryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdatePoolQuery; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdatePoolQueryRequestBuilder { private UpdatePoolQueryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdatePoolQueryRequestBuilder request(UpdatePoolQueryRequest request) { this.request = request; return this; } + + public UpdatePoolQueryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdatePoolQueryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdatePoolQueryResponse call() { RequestOperation operation - = new UpdatePoolQuery.Sync(sdkConfiguration, _headers); + = new UpdatePoolQuery.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequest.java index 10079e89e..8a6257e55 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequest.java @@ -14,7 +14,7 @@ public class UpdateTransferInitiationStatusRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest; + private com.formance.formance_sdk.models.payments.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest; /** * The transfer ID. @@ -24,7 +24,7 @@ public class UpdateTransferInitiationStatusRequest { @JsonCreator public UpdateTransferInitiationStatusRequest( - com.formance.formance_sdk.models.shared.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest, + com.formance.formance_sdk.models.payments.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest, String transferId) { Utils.checkNotNull(updateTransferInitiationStatusRequest, "updateTransferInitiationStatusRequest"); Utils.checkNotNull(transferId, "transferId"); @@ -33,7 +33,7 @@ public UpdateTransferInitiationStatusRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest() { + public com.formance.formance_sdk.models.payments.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest() { return updateTransferInitiationStatusRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public UpdateTransferInitiationStatusRequest withUpdateTransferInitiationStatusRequest(com.formance.formance_sdk.models.shared.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest) { + public UpdateTransferInitiationStatusRequest withUpdateTransferInitiationStatusRequest(com.formance.formance_sdk.models.payments.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest) { Utils.checkNotNull(updateTransferInitiationStatusRequest, "updateTransferInitiationStatusRequest"); this.updateTransferInitiationStatusRequest = updateTransferInitiationStatusRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest; + private com.formance.formance_sdk.models.payments.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest; private String transferId; @@ -104,7 +104,7 @@ private Builder() { } - public Builder updateTransferInitiationStatusRequest(com.formance.formance_sdk.models.shared.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest) { + public Builder updateTransferInitiationStatusRequest(com.formance.formance_sdk.models.payments.UpdateTransferInitiationStatusRequest updateTransferInitiationStatusRequest) { Utils.checkNotNull(updateTransferInitiationStatusRequest, "updateTransferInitiationStatusRequest"); this.updateTransferInitiationStatusRequest = updateTransferInitiationStatusRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequestBuilder.java index 33bdbe5fa..41b8f2588 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateTransferInitiationStatusRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateTransferInitiationStatus; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateTransferInitiationStatusRequestBuilder { private UpdateTransferInitiationStatusRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateTransferInitiationStatusRequestBuilder request(UpdateTransferInitia this.request = request; return this; } + + public UpdateTransferInitiationStatusRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateTransferInitiationStatusRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateTransferInitiationStatusResponse call() { RequestOperation operation - = new UpdateTransferInitiationStatus.Sync(sdkConfiguration, _headers); + = new UpdateTransferInitiationStatus.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/UpdateWalletRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/UpdateWalletRequestBuilder.java index a15ac03e5..f1357e15f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/UpdateWalletRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/UpdateWalletRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.UpdateWallet; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateWalletRequestBuilder { private UpdateWalletRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public UpdateWalletRequestBuilder request(UpdateWalletRequest request) { this.request = request; return this; } + + public UpdateWalletRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public UpdateWalletRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public UpdateWalletResponse call() { RequestOperation operation - = new UpdateWallet.Sync(sdkConfiguration, _headers); + = new UpdateWallet.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataOnTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataOnTransactionRequestBuilder.java index 8efc42545..090e96d74 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataOnTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataOnTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2AddMetadataOnTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2AddMetadataOnTransactionRequestBuilder { private V2AddMetadataOnTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2AddMetadataOnTransactionRequestBuilder request(V2AddMetadataOnTransacti this.request = request; return this; } + + public V2AddMetadataOnTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2AddMetadataOnTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2AddMetadataOnTransactionResponse call() { RequestOperation operation - = new V2AddMetadataOnTransaction.Sync(sdkConfiguration, _headers); + = new V2AddMetadataOnTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataToAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataToAccountRequestBuilder.java index c294df7d3..d2057cbb0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataToAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2AddMetadataToAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2AddMetadataToAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2AddMetadataToAccountRequestBuilder { private V2AddMetadataToAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2AddMetadataToAccountRequestBuilder request(V2AddMetadataToAccountReques this.request = request; return this; } + + public V2AddMetadataToAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2AddMetadataToAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2AddMetadataToAccountResponse call() { RequestOperation operation - = new V2AddMetadataToAccount.Sync(sdkConfiguration, _headers); + = new V2AddMetadataToAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CancelEventRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CancelEventRequestBuilder.java index 602395931..d545e5fff 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CancelEventRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CancelEventRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CancelEvent; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CancelEventRequestBuilder { private V2CancelEventRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CancelEventRequestBuilder request(V2CancelEventRequest request) { this.request = request; return this; } + + public V2CancelEventRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CancelEventRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CancelEventResponse call() { RequestOperation operation - = new V2CancelEvent.Sync(sdkConfiguration, _headers); + = new V2CancelEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequest.java index 2e4c79331..d85ea9ce8 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequest.java @@ -7,13 +7,19 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; +import java.util.Map; import java.util.Optional; public class V2CountAccountsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Name of the ledger. */ @@ -26,17 +32,27 @@ public class V2CountAccountsRequest { @JsonCreator public V2CountAccountsRequest( + Map requestBody, String ledger, Optional pit) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(ledger, "ledger"); Utils.checkNotNull(pit, "pit"); + this.requestBody = requestBody; this.ledger = ledger; this.pit = pit; } public V2CountAccountsRequest( + Map requestBody, String ledger) { - this(ledger, Optional.empty()); + this(requestBody, ledger, Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -57,6 +73,12 @@ public static Builder builder() { } + public V2CountAccountsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Name of the ledger. */ @@ -89,6 +111,7 @@ public boolean equals(java.lang.Object o) { } V2CountAccountsRequest other = (V2CountAccountsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.ledger, other.ledger) && Utils.enhancedDeepEquals(this.pit, other.pit); } @@ -96,12 +119,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - ledger, pit); + requestBody, ledger, pit); } @Override public String toString() { return Utils.toString(V2CountAccountsRequest.class, + "requestBody", requestBody, "ledger", ledger, "pit", pit); } @@ -109,6 +133,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private String ledger; private Optional pit = Optional.empty(); @@ -118,6 +144,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Name of the ledger. */ @@ -143,7 +176,7 @@ public Builder pit(Optional pit) { public V2CountAccountsRequest build() { return new V2CountAccountsRequest( - ledger, pit); + requestBody, ledger, pit); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequestBuilder.java index c15034143..ada53e4f3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CountAccountsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CountAccounts; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CountAccountsRequestBuilder { private V2CountAccountsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CountAccountsRequestBuilder request(V2CountAccountsRequest request) { this.request = request; return this; } + + public V2CountAccountsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CountAccountsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CountAccountsResponse call() { RequestOperation operation - = new V2CountAccounts.Sync(sdkConfiguration, _headers); + = new V2CountAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequest.java index 345605144..f773b983c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequest.java @@ -7,13 +7,19 @@ import com.fasterxml.jackson.annotation.JsonIgnore; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; +import java.util.Map; import java.util.Optional; public class V2CountTransactionsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Name of the ledger. */ @@ -26,17 +32,27 @@ public class V2CountTransactionsRequest { @JsonCreator public V2CountTransactionsRequest( + Map requestBody, String ledger, Optional pit) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(ledger, "ledger"); Utils.checkNotNull(pit, "pit"); + this.requestBody = requestBody; this.ledger = ledger; this.pit = pit; } public V2CountTransactionsRequest( + Map requestBody, String ledger) { - this(ledger, Optional.empty()); + this(requestBody, ledger, Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -57,6 +73,12 @@ public static Builder builder() { } + public V2CountTransactionsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Name of the ledger. */ @@ -89,6 +111,7 @@ public boolean equals(java.lang.Object o) { } V2CountTransactionsRequest other = (V2CountTransactionsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.ledger, other.ledger) && Utils.enhancedDeepEquals(this.pit, other.pit); } @@ -96,12 +119,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - ledger, pit); + requestBody, ledger, pit); } @Override public String toString() { return Utils.toString(V2CountTransactionsRequest.class, + "requestBody", requestBody, "ledger", ledger, "pit", pit); } @@ -109,6 +133,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private String ledger; private Optional pit = Optional.empty(); @@ -118,6 +144,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Name of the ledger. */ @@ -143,7 +176,7 @@ public Builder pit(Optional pit) { public V2CountTransactionsRequest build() { return new V2CountTransactionsRequest( - ledger, pit); + requestBody, ledger, pit); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequestBuilder.java index 08eeda907..068760b60 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CountTransactionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CountTransactions; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CountTransactionsRequestBuilder { private V2CountTransactionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CountTransactionsRequestBuilder request(V2CountTransactionsRequest requ this.request = request; return this; } + + public V2CountTransactionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CountTransactionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CountTransactionsResponse call() { RequestOperation operation - = new V2CountTransactions.Sync(sdkConfiguration, _headers); + = new V2CountTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequest.java index 04a2296f4..1b323b14d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequest.java @@ -5,10 +5,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2BulkElement; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Boolean; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.util.List; @@ -18,7 +18,7 @@ public class V2CreateBulkRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private List requestBody; + private List requestBody; /** * Make bulk atomic @@ -52,7 +52,7 @@ public class V2CreateBulkRequest { @JsonCreator public V2CreateBulkRequest( - List requestBody, + List requestBody, Optional atomic, Optional continueOnFailure, String ledger, @@ -73,14 +73,14 @@ public V2CreateBulkRequest( } public V2CreateBulkRequest( - List requestBody, + List requestBody, String ledger) { this(requestBody, Optional.empty(), Optional.empty(), ledger, Optional.empty(), Optional.empty()); } @JsonIgnore - public List requestBody() { + public List requestBody() { return requestBody; } @@ -129,7 +129,7 @@ public static Builder builder() { } - public V2CreateBulkRequest withRequestBody(List requestBody) { + public V2CreateBulkRequest withRequestBody(List requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; @@ -259,7 +259,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List requestBody; + private List requestBody; private Optional atomic = Optional.empty(); @@ -276,7 +276,7 @@ private Builder() { } - public Builder requestBody(List requestBody) { + public Builder requestBody(List requestBody) { Utils.checkNotNull(requestBody, "requestBody"); this.requestBody = requestBody; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequestBuilder.java index b8b25903e..f1774cb39 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CreateBulk; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CreateBulkRequestBuilder { private V2CreateBulkRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CreateBulkRequestBuilder request(V2CreateBulkRequest request) { this.request = request; return this; } + + public V2CreateBulkRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreateBulkRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreateBulkResponse call() { RequestOperation operation - = new V2CreateBulk.Sync(sdkConfiguration, _headers); + = new V2CreateBulk.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkResponse.java index 652041a8b..7b4cbd851 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateBulkResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2BulkResponse; +import com.formance.formance_sdk.models.ledger.V2BulkResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterRequestBuilder.java index 00ccc6eae..203466a15 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterRequestBuilder.java @@ -6,14 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V2CreateExporterRequest; +import com.formance.formance_sdk.models.ledger.V2ExporterConfiguration2; import com.formance.formance_sdk.operations.V2CreateExporter; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CreateExporterRequestBuilder { - private V2CreateExporterRequest request; + private V2ExporterConfiguration2 request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -21,16 +24,28 @@ public V2CreateExporterRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public V2CreateExporterRequestBuilder request(V2CreateExporterRequest request) { + public V2CreateExporterRequestBuilder request(V2ExporterConfiguration2 request) { Utils.checkNotNull(request, "request"); this.request = request; return this; } + + public V2CreateExporterRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreateExporterRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreateExporterResponse call() { - RequestOperation operation - = new V2CreateExporter.Sync(sdkConfiguration, _headers); + RequestOperation operation + = new V2CreateExporter.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponse.java index 9281d9adc..eb8d34c96 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponse.java @@ -35,22 +35,22 @@ public class V2CreateExporterResponse implements Response { /** * Created exporter */ - private Optional object; + private Optional v2CreateExporterResponse; @JsonCreator public V2CreateExporterResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional v2CreateExporterResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(v2CreateExporterResponse, "v2CreateExporterResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.v2CreateExporterResponse = v2CreateExporterResponse; } public V2CreateExporterResponse( @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional v2CreateExporterResponse() { + return (Optional) v2CreateExporterResponse; } public static Builder builder() { @@ -129,9 +129,9 @@ public V2CreateExporterResponse withRawResponse(HttpResponse rawRes /** * Created exporter */ - public V2CreateExporterResponse withObject(V2CreateExporterResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public V2CreateExporterResponse withV2CreateExporterResponse(com.formance.formance_sdk.models.ledger.V2CreateExporterResponse v2CreateExporterResponse) { + Utils.checkNotNull(v2CreateExporterResponse, "v2CreateExporterResponse"); + this.v2CreateExporterResponse = Optional.ofNullable(v2CreateExporterResponse); return this; } @@ -139,9 +139,9 @@ public V2CreateExporterResponse withObject(V2CreateExporterResponseBody object) /** * Created exporter */ - public V2CreateExporterResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public V2CreateExporterResponse withV2CreateExporterResponse(Optional v2CreateExporterResponse) { + Utils.checkNotNull(v2CreateExporterResponse, "v2CreateExporterResponse"); + this.v2CreateExporterResponse = v2CreateExporterResponse; return this; } @@ -158,14 +158,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.object, other.object); + Utils.enhancedDeepEquals(this.v2CreateExporterResponse, other.v2CreateExporterResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - object); + v2CreateExporterResponse); } @Override @@ -174,7 +174,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "v2CreateExporterResponse", v2CreateExporterResponse); } @SuppressWarnings("UnusedReturnValue") @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional v2CreateExporterResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,18 +226,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created exporter */ - public Builder object(V2CreateExporterResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder v2CreateExporterResponse(com.formance.formance_sdk.models.ledger.V2CreateExporterResponse v2CreateExporterResponse) { + Utils.checkNotNull(v2CreateExporterResponse, "v2CreateExporterResponse"); + this.v2CreateExporterResponse = Optional.ofNullable(v2CreateExporterResponse); return this; } /** * Created exporter */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder v2CreateExporterResponse(Optional v2CreateExporterResponse) { + Utils.checkNotNull(v2CreateExporterResponse, "v2CreateExporterResponse"); + this.v2CreateExporterResponse = v2CreateExporterResponse; return this; } @@ -245,7 +245,7 @@ public V2CreateExporterResponse build() { return new V2CreateExporterResponse( contentType, statusCode, rawResponse, - object); + v2CreateExporterResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponseBody.java deleted file mode 100644 index fbf820da1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateExporterResponseBody.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.models.shared.V2Exporter; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2CreateExporterResponseBody - * - *

Created exporter - */ -public class V2CreateExporterResponseBody { - - @JsonProperty("data") - private V2Exporter data; - - @JsonCreator - public V2CreateExporterResponseBody( - @JsonProperty("data") V2Exporter data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Exporter data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreateExporterResponseBody withData(V2Exporter data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreateExporterResponseBody other = (V2CreateExporterResponseBody) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2CreateExporterResponseBody.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Exporter data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Exporter data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2CreateExporterResponseBody build() { - - return new V2CreateExporterResponseBody( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequest.java index 2b278aa2e..ba3f9ae8b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequest.java @@ -14,7 +14,7 @@ public class V2CreateLedgerRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private com.formance.formance_sdk.models.shared.V2CreateLedgerRequest v2CreateLedgerRequest; + private com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest v2CreateLedgerRequest; /** * Name of the ledger. @@ -24,7 +24,7 @@ public class V2CreateLedgerRequest { @JsonCreator public V2CreateLedgerRequest( - com.formance.formance_sdk.models.shared.V2CreateLedgerRequest v2CreateLedgerRequest, + com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest v2CreateLedgerRequest, String ledger) { Utils.checkNotNull(v2CreateLedgerRequest, "v2CreateLedgerRequest"); Utils.checkNotNull(ledger, "ledger"); @@ -33,7 +33,7 @@ public V2CreateLedgerRequest( } @JsonIgnore - public com.formance.formance_sdk.models.shared.V2CreateLedgerRequest v2CreateLedgerRequest() { + public com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest v2CreateLedgerRequest() { return v2CreateLedgerRequest; } @@ -50,7 +50,7 @@ public static Builder builder() { } - public V2CreateLedgerRequest withV2CreateLedgerRequest(com.formance.formance_sdk.models.shared.V2CreateLedgerRequest v2CreateLedgerRequest) { + public V2CreateLedgerRequest withV2CreateLedgerRequest(com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest v2CreateLedgerRequest) { Utils.checkNotNull(v2CreateLedgerRequest, "v2CreateLedgerRequest"); this.v2CreateLedgerRequest = v2CreateLedgerRequest; return this; @@ -95,7 +95,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private com.formance.formance_sdk.models.shared.V2CreateLedgerRequest v2CreateLedgerRequest; + private com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest v2CreateLedgerRequest; private String ledger; @@ -104,7 +104,7 @@ private Builder() { } - public Builder v2CreateLedgerRequest(com.formance.formance_sdk.models.shared.V2CreateLedgerRequest v2CreateLedgerRequest) { + public Builder v2CreateLedgerRequest(com.formance.formance_sdk.models.ledger.V2CreateLedgerRequest v2CreateLedgerRequest) { Utils.checkNotNull(v2CreateLedgerRequest, "v2CreateLedgerRequest"); this.v2CreateLedgerRequest = v2CreateLedgerRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequestBuilder.java index 0c4dcc44f..e2a92fc8f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateLedgerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CreateLedger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CreateLedgerRequestBuilder { private V2CreateLedgerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CreateLedgerRequestBuilder request(V2CreateLedgerRequest request) { this.request = request; return this; } + + public V2CreateLedgerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreateLedgerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreateLedgerResponse call() { RequestOperation operation - = new V2CreateLedger.Sync(sdkConfiguration, _headers); + = new V2CreateLedger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequest.java index c98ca5b7c..6b8c0287d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequest.java @@ -16,7 +16,7 @@ public class V2CreatePipelineRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v2CreatePipelineRequest; + private Optional v2CreatePipelineRequest; /** * Name of the ledger. @@ -26,7 +26,7 @@ public class V2CreatePipelineRequest { @JsonCreator public V2CreatePipelineRequest( - Optional v2CreatePipelineRequest, + Optional v2CreatePipelineRequest, String ledger) { Utils.checkNotNull(v2CreatePipelineRequest, "v2CreatePipelineRequest"); Utils.checkNotNull(ledger, "ledger"); @@ -41,8 +41,8 @@ public V2CreatePipelineRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2CreatePipelineRequest() { - return (Optional) v2CreatePipelineRequest; + public Optional v2CreatePipelineRequest() { + return (Optional) v2CreatePipelineRequest; } /** @@ -58,14 +58,14 @@ public static Builder builder() { } - public V2CreatePipelineRequest withV2CreatePipelineRequest(com.formance.formance_sdk.models.shared.V2CreatePipelineRequest v2CreatePipelineRequest) { + public V2CreatePipelineRequest withV2CreatePipelineRequest(com.formance.formance_sdk.models.ledger.V2CreatePipelineRequest v2CreatePipelineRequest) { Utils.checkNotNull(v2CreatePipelineRequest, "v2CreatePipelineRequest"); this.v2CreatePipelineRequest = Optional.ofNullable(v2CreatePipelineRequest); return this; } - public V2CreatePipelineRequest withV2CreatePipelineRequest(Optional v2CreatePipelineRequest) { + public V2CreatePipelineRequest withV2CreatePipelineRequest(Optional v2CreatePipelineRequest) { Utils.checkNotNull(v2CreatePipelineRequest, "v2CreatePipelineRequest"); this.v2CreatePipelineRequest = v2CreatePipelineRequest; return this; @@ -110,7 +110,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v2CreatePipelineRequest = Optional.empty(); + private Optional v2CreatePipelineRequest = Optional.empty(); private String ledger; @@ -119,13 +119,13 @@ private Builder() { } - public Builder v2CreatePipelineRequest(com.formance.formance_sdk.models.shared.V2CreatePipelineRequest v2CreatePipelineRequest) { + public Builder v2CreatePipelineRequest(com.formance.formance_sdk.models.ledger.V2CreatePipelineRequest v2CreatePipelineRequest) { Utils.checkNotNull(v2CreatePipelineRequest, "v2CreatePipelineRequest"); this.v2CreatePipelineRequest = Optional.ofNullable(v2CreatePipelineRequest); return this; } - public Builder v2CreatePipelineRequest(Optional v2CreatePipelineRequest) { + public Builder v2CreatePipelineRequest(Optional v2CreatePipelineRequest) { Utils.checkNotNull(v2CreatePipelineRequest, "v2CreatePipelineRequest"); this.v2CreatePipelineRequest = v2CreatePipelineRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequestBuilder.java index fd25d8f6a..de28f7ae7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CreatePipeline; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CreatePipelineRequestBuilder { private V2CreatePipelineRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CreatePipelineRequestBuilder request(V2CreatePipelineRequest request) { this.request = request; return this; } + + public V2CreatePipelineRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreatePipelineRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreatePipelineResponse call() { RequestOperation operation - = new V2CreatePipeline.Sync(sdkConfiguration, _headers); + = new V2CreatePipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponse.java index f21e72809..de114f11e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponse.java @@ -35,22 +35,22 @@ public class V2CreatePipelineResponse implements Response { /** * Created ipeline */ - private Optional object; + private Optional v2CreatePipelineResponse; @JsonCreator public V2CreatePipelineResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional v2CreatePipelineResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(v2CreatePipelineResponse, "v2CreatePipelineResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.v2CreatePipelineResponse = v2CreatePipelineResponse; } public V2CreatePipelineResponse( @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional v2CreatePipelineResponse() { + return (Optional) v2CreatePipelineResponse; } public static Builder builder() { @@ -129,9 +129,9 @@ public V2CreatePipelineResponse withRawResponse(HttpResponse rawRes /** * Created ipeline */ - public V2CreatePipelineResponse withObject(V2CreatePipelineResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public V2CreatePipelineResponse withV2CreatePipelineResponse(com.formance.formance_sdk.models.ledger.V2CreatePipelineResponse v2CreatePipelineResponse) { + Utils.checkNotNull(v2CreatePipelineResponse, "v2CreatePipelineResponse"); + this.v2CreatePipelineResponse = Optional.ofNullable(v2CreatePipelineResponse); return this; } @@ -139,9 +139,9 @@ public V2CreatePipelineResponse withObject(V2CreatePipelineResponseBody object) /** * Created ipeline */ - public V2CreatePipelineResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public V2CreatePipelineResponse withV2CreatePipelineResponse(Optional v2CreatePipelineResponse) { + Utils.checkNotNull(v2CreatePipelineResponse, "v2CreatePipelineResponse"); + this.v2CreatePipelineResponse = v2CreatePipelineResponse; return this; } @@ -158,14 +158,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.object, other.object); + Utils.enhancedDeepEquals(this.v2CreatePipelineResponse, other.v2CreatePipelineResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - object); + v2CreatePipelineResponse); } @Override @@ -174,7 +174,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "v2CreatePipelineResponse", v2CreatePipelineResponse); } @SuppressWarnings("UnusedReturnValue") @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional v2CreatePipelineResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,18 +226,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created ipeline */ - public Builder object(V2CreatePipelineResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder v2CreatePipelineResponse(com.formance.formance_sdk.models.ledger.V2CreatePipelineResponse v2CreatePipelineResponse) { + Utils.checkNotNull(v2CreatePipelineResponse, "v2CreatePipelineResponse"); + this.v2CreatePipelineResponse = Optional.ofNullable(v2CreatePipelineResponse); return this; } /** * Created ipeline */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder v2CreatePipelineResponse(Optional v2CreatePipelineResponse) { + Utils.checkNotNull(v2CreatePipelineResponse, "v2CreatePipelineResponse"); + this.v2CreatePipelineResponse = v2CreatePipelineResponse; return this; } @@ -245,7 +245,7 @@ public V2CreatePipelineResponse build() { return new V2CreatePipelineResponse( contentType, statusCode, rawResponse, - object); + v2CreatePipelineResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponseBody.java deleted file mode 100644 index 94fa1665f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreatePipelineResponseBody.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.models.shared.V2Pipeline; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2CreatePipelineResponseBody - * - *

Created ipeline - */ -public class V2CreatePipelineResponseBody { - - @JsonProperty("data") - private V2Pipeline data; - - @JsonCreator - public V2CreatePipelineResponseBody( - @JsonProperty("data") V2Pipeline data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Pipeline data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreatePipelineResponseBody withData(V2Pipeline data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreatePipelineResponseBody other = (V2CreatePipelineResponseBody) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2CreatePipelineResponseBody.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Pipeline data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Pipeline data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2CreatePipelineResponseBody build() { - - return new V2CreatePipelineResponseBody( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequest.java index b0b8242cb..20dc212f9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2PostTransaction; +import com.formance.formance_sdk.models.ledger.V2PostTransaction; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Boolean; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequestBuilder.java index e18aedfa3..6d429ccb7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2CreateTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2CreateTransactionRequestBuilder { private V2CreateTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2CreateTransactionRequestBuilder request(V2CreateTransactionRequest requ this.request = request; return this; } + + public V2CreateTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreateTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreateTransactionResponse call() { RequestOperation operation - = new V2CreateTransaction.Sync(sdkConfiguration, _headers); + = new V2CreateTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionResponse.java index 2f2d90f2d..2c4eb168a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTransactionResponse.java @@ -40,7 +40,7 @@ public class V2CreateTransactionResponse implements Response { /** * OK */ - private Optional v2CreateTransactionResponse; + private Optional v2CreateTransactionResponse; @JsonCreator public V2CreateTransactionResponse( @@ -48,7 +48,7 @@ public V2CreateTransactionResponse( Map> headers, int statusCode, HttpResponse rawResponse, - Optional v2CreateTransactionResponse) { + Optional v2CreateTransactionResponse) { Utils.checkNotNull(contentType, "contentType"); headers = Utils.emptyMapIfNull(headers); Utils.checkNotNull(headers, "headers"); @@ -105,8 +105,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2CreateTransactionResponse() { - return (Optional) v2CreateTransactionResponse; + public Optional v2CreateTransactionResponse() { + return (Optional) v2CreateTransactionResponse; } public static Builder builder() { @@ -150,7 +150,7 @@ public V2CreateTransactionResponse withRawResponse(HttpResponse raw /** * OK */ - public V2CreateTransactionResponse withV2CreateTransactionResponse(com.formance.formance_sdk.models.shared.V2CreateTransactionResponse v2CreateTransactionResponse) { + public V2CreateTransactionResponse withV2CreateTransactionResponse(com.formance.formance_sdk.models.ledger.V2CreateTransactionResponse v2CreateTransactionResponse) { Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); this.v2CreateTransactionResponse = Optional.ofNullable(v2CreateTransactionResponse); return this; @@ -160,7 +160,7 @@ public V2CreateTransactionResponse withV2CreateTransactionResponse(com.formance. /** * OK */ - public V2CreateTransactionResponse withV2CreateTransactionResponse(Optional v2CreateTransactionResponse) { + public V2CreateTransactionResponse withV2CreateTransactionResponse(Optional v2CreateTransactionResponse) { Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); this.v2CreateTransactionResponse = v2CreateTransactionResponse; return this; @@ -211,7 +211,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2CreateTransactionResponse = Optional.empty(); + private Optional v2CreateTransactionResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -258,7 +258,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v2CreateTransactionResponse(com.formance.formance_sdk.models.shared.V2CreateTransactionResponse v2CreateTransactionResponse) { + public Builder v2CreateTransactionResponse(com.formance.formance_sdk.models.ledger.V2CreateTransactionResponse v2CreateTransactionResponse) { Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); this.v2CreateTransactionResponse = Optional.ofNullable(v2CreateTransactionResponse); return this; @@ -267,7 +267,7 @@ public Builder v2CreateTransactionResponse(com.formance.formance_sdk.models.shar /** * OK */ - public Builder v2CreateTransactionResponse(Optional v2CreateTransactionResponse) { + public Builder v2CreateTransactionResponse(Optional v2CreateTransactionResponse) { Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); this.v2CreateTransactionResponse = v2CreateTransactionResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerRequestBuilder.java index d9128d929..09ec23ede 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V2TriggerData; +import com.formance.formance_sdk.models.orchestration.V2TriggerData2; import com.formance.formance_sdk.operations.V2CreateTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V2CreateTriggerRequestBuilder { - private Optional request = Optional.empty(); + private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,34 @@ public V2CreateTriggerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public V2CreateTriggerRequestBuilder request(V2TriggerData request) { + public V2CreateTriggerRequestBuilder request(V2TriggerData2 request) { Utils.checkNotNull(request, "request"); this.request = Optional.of(request); return this; } - public V2CreateTriggerRequestBuilder request(Optional request) { + public V2CreateTriggerRequestBuilder request(Optional request) { Utils.checkNotNull(request, "request"); this.request = request; return this; } + + public V2CreateTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreateTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreateTriggerResponse call() { - RequestOperation, V2CreateTriggerResponse> operation - = new V2CreateTrigger.Sync(sdkConfiguration, _headers); + RequestOperation, V2CreateTriggerResponse> operation + = new V2CreateTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerResponse.java index b70a930a8..becae7fba 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateTriggerResponse.java @@ -35,14 +35,14 @@ public class V2CreateTriggerResponse implements Response { /** * Created trigger */ - private Optional v2CreateTriggerResponse; + private Optional v2CreateTriggerResponse; @JsonCreator public V2CreateTriggerResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2CreateTriggerResponse) { + Optional v2CreateTriggerResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2CreateTriggerResponse() { - return (Optional) v2CreateTriggerResponse; + public Optional v2CreateTriggerResponse() { + return (Optional) v2CreateTriggerResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2CreateTriggerResponse withRawResponse(HttpResponse rawResp /** * Created trigger */ - public V2CreateTriggerResponse withV2CreateTriggerResponse(com.formance.formance_sdk.models.shared.V2CreateTriggerResponse v2CreateTriggerResponse) { + public V2CreateTriggerResponse withV2CreateTriggerResponse(com.formance.formance_sdk.models.orchestration.V2CreateTriggerResponse v2CreateTriggerResponse) { Utils.checkNotNull(v2CreateTriggerResponse, "v2CreateTriggerResponse"); this.v2CreateTriggerResponse = Optional.ofNullable(v2CreateTriggerResponse); return this; @@ -139,7 +139,7 @@ public V2CreateTriggerResponse withV2CreateTriggerResponse(com.formance.formance /** * Created trigger */ - public V2CreateTriggerResponse withV2CreateTriggerResponse(Optional v2CreateTriggerResponse) { + public V2CreateTriggerResponse withV2CreateTriggerResponse(Optional v2CreateTriggerResponse) { Utils.checkNotNull(v2CreateTriggerResponse, "v2CreateTriggerResponse"); this.v2CreateTriggerResponse = v2CreateTriggerResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2CreateTriggerResponse = Optional.empty(); + private Optional v2CreateTriggerResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created trigger */ - public Builder v2CreateTriggerResponse(com.formance.formance_sdk.models.shared.V2CreateTriggerResponse v2CreateTriggerResponse) { + public Builder v2CreateTriggerResponse(com.formance.formance_sdk.models.orchestration.V2CreateTriggerResponse v2CreateTriggerResponse) { Utils.checkNotNull(v2CreateTriggerResponse, "v2CreateTriggerResponse"); this.v2CreateTriggerResponse = Optional.ofNullable(v2CreateTriggerResponse); return this; @@ -235,7 +235,7 @@ public Builder v2CreateTriggerResponse(com.formance.formance_sdk.models.shared.V /** * Created trigger */ - public Builder v2CreateTriggerResponse(Optional v2CreateTriggerResponse) { + public Builder v2CreateTriggerResponse(Optional v2CreateTriggerResponse) { Utils.checkNotNull(v2CreateTriggerResponse, "v2CreateTriggerResponse"); this.v2CreateTriggerResponse = v2CreateTriggerResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowRequestBuilder.java index dc59c5f98..1da21ca62 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V2CreateWorkflowRequest; +import com.formance.formance_sdk.models.orchestration.V2WorkflowConfig; import com.formance.formance_sdk.operations.V2CreateWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V2CreateWorkflowRequestBuilder { - private Optional request = Optional.empty(); + private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,34 @@ public V2CreateWorkflowRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public V2CreateWorkflowRequestBuilder request(V2CreateWorkflowRequest request) { + public V2CreateWorkflowRequestBuilder request(V2WorkflowConfig request) { Utils.checkNotNull(request, "request"); this.request = Optional.of(request); return this; } - public V2CreateWorkflowRequestBuilder request(Optional request) { + public V2CreateWorkflowRequestBuilder request(Optional request) { Utils.checkNotNull(request, "request"); this.request = request; return this; } + + public V2CreateWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2CreateWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2CreateWorkflowResponse call() { - RequestOperation, V2CreateWorkflowResponse> operation - = new V2CreateWorkflow.Sync(sdkConfiguration, _headers); + RequestOperation, V2CreateWorkflowResponse> operation + = new V2CreateWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowResponse.java index c60ed1138..a6d5e7f18 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2CreateWorkflowResponse.java @@ -35,14 +35,14 @@ public class V2CreateWorkflowResponse implements Response { /** * Created workflow */ - private Optional v2CreateWorkflowResponse; + private Optional v2CreateWorkflowResponse; @JsonCreator public V2CreateWorkflowResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2CreateWorkflowResponse) { + Optional v2CreateWorkflowResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2CreateWorkflowResponse() { - return (Optional) v2CreateWorkflowResponse; + public Optional v2CreateWorkflowResponse() { + return (Optional) v2CreateWorkflowResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2CreateWorkflowResponse withRawResponse(HttpResponse rawRes /** * Created workflow */ - public V2CreateWorkflowResponse withV2CreateWorkflowResponse(com.formance.formance_sdk.models.shared.V2CreateWorkflowResponse v2CreateWorkflowResponse) { + public V2CreateWorkflowResponse withV2CreateWorkflowResponse(com.formance.formance_sdk.models.orchestration.V2CreateWorkflowResponse v2CreateWorkflowResponse) { Utils.checkNotNull(v2CreateWorkflowResponse, "v2CreateWorkflowResponse"); this.v2CreateWorkflowResponse = Optional.ofNullable(v2CreateWorkflowResponse); return this; @@ -139,7 +139,7 @@ public V2CreateWorkflowResponse withV2CreateWorkflowResponse(com.formance.forman /** * Created workflow */ - public V2CreateWorkflowResponse withV2CreateWorkflowResponse(Optional v2CreateWorkflowResponse) { + public V2CreateWorkflowResponse withV2CreateWorkflowResponse(Optional v2CreateWorkflowResponse) { Utils.checkNotNull(v2CreateWorkflowResponse, "v2CreateWorkflowResponse"); this.v2CreateWorkflowResponse = v2CreateWorkflowResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2CreateWorkflowResponse = Optional.empty(); + private Optional v2CreateWorkflowResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created workflow */ - public Builder v2CreateWorkflowResponse(com.formance.formance_sdk.models.shared.V2CreateWorkflowResponse v2CreateWorkflowResponse) { + public Builder v2CreateWorkflowResponse(com.formance.formance_sdk.models.orchestration.V2CreateWorkflowResponse v2CreateWorkflowResponse) { Utils.checkNotNull(v2CreateWorkflowResponse, "v2CreateWorkflowResponse"); this.v2CreateWorkflowResponse = Optional.ofNullable(v2CreateWorkflowResponse); return this; @@ -235,7 +235,7 @@ public Builder v2CreateWorkflowResponse(com.formance.formance_sdk.models.shared. /** * Created workflow */ - public Builder v2CreateWorkflowResponse(Optional v2CreateWorkflowResponse) { + public Builder v2CreateWorkflowResponse(Optional v2CreateWorkflowResponse) { Utils.checkNotNull(v2CreateWorkflowResponse, "v2CreateWorkflowResponse"); this.v2CreateWorkflowResponse = v2CreateWorkflowResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataRequestBuilder.java index c4c518fa9..408278bd0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteAccountMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteAccountMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteAccountMetadataRequestBuilder { private V2DeleteAccountMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteAccountMetadataRequestBuilder request(V2DeleteAccountMetadataRequ this.request = request; return this; } + + public V2DeleteAccountMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteAccountMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteAccountMetadataResponse call() { RequestOperation operation - = new V2DeleteAccountMetadata.Sync(sdkConfiguration, _headers); + = new V2DeleteAccountMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketRequestBuilder.java index 36c958490..f11b7dbf5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteBucket; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteBucketRequestBuilder { private V2DeleteBucketRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteBucketRequestBuilder request(V2DeleteBucketRequest request) { this.request = request; return this; } + + public V2DeleteBucketRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteBucketRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteBucketResponse call() { RequestOperation operation - = new V2DeleteBucket.Sync(sdkConfiguration, _headers); + = new V2DeleteBucket.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketResponse.java index d3f450dff..3605501d7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteBucketResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterRequestBuilder.java index 7ccdbeb45..fc18e4629 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteExporterRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteExporter; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteExporterRequestBuilder { private V2DeleteExporterRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteExporterRequestBuilder request(V2DeleteExporterRequest request) { this.request = request; return this; } + + public V2DeleteExporterRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteExporterRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteExporterResponse call() { RequestOperation operation - = new V2DeleteExporter.Sync(sdkConfiguration, _headers); + = new V2DeleteExporter.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteLedgerMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteLedgerMetadataRequestBuilder.java index 075bc8882..103bd27de 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteLedgerMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteLedgerMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteLedgerMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteLedgerMetadataRequestBuilder { private V2DeleteLedgerMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteLedgerMetadataRequestBuilder request(V2DeleteLedgerMetadataReques this.request = request; return this; } + + public V2DeleteLedgerMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteLedgerMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteLedgerMetadataResponse call() { RequestOperation operation - = new V2DeleteLedgerMetadata.Sync(sdkConfiguration, _headers); + = new V2DeleteLedgerMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeletePipelineRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeletePipelineRequestBuilder.java index 841207e0f..ed7162bc2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeletePipelineRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeletePipelineRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeletePipeline; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeletePipelineRequestBuilder { private V2DeletePipelineRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeletePipelineRequestBuilder request(V2DeletePipelineRequest request) { this.request = request; return this; } + + public V2DeletePipelineRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeletePipelineRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeletePipelineResponse call() { RequestOperation operation - = new V2DeletePipeline.Sync(sdkConfiguration, _headers); + = new V2DeletePipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTransactionMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTransactionMetadataRequestBuilder.java index 15d52221f..78c743bfd 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTransactionMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTransactionMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteTransactionMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteTransactionMetadataRequestBuilder { private V2DeleteTransactionMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteTransactionMetadataRequestBuilder request(V2DeleteTransactionMeta this.request = request; return this; } + + public V2DeleteTransactionMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteTransactionMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteTransactionMetadataResponse call() { RequestOperation operation - = new V2DeleteTransactionMetadata.Sync(sdkConfiguration, _headers); + = new V2DeleteTransactionMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTriggerRequestBuilder.java index 8bac78de2..c25b2edcd 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteTriggerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteTriggerRequestBuilder { private V2DeleteTriggerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteTriggerRequestBuilder request(V2DeleteTriggerRequest request) { this.request = request; return this; } + + public V2DeleteTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteTriggerResponse call() { RequestOperation operation - = new V2DeleteTrigger.Sync(sdkConfiguration, _headers); + = new V2DeleteTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteWorkflowRequestBuilder.java index 18811ab18..5a874c4b3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2DeleteWorkflowRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2DeleteWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2DeleteWorkflowRequestBuilder { private V2DeleteWorkflowRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2DeleteWorkflowRequestBuilder request(V2DeleteWorkflowRequest request) { this.request = request; return this; } + + public V2DeleteWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2DeleteWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2DeleteWorkflowResponse call() { RequestOperation operation - = new V2DeleteWorkflow.Sync(sdkConfiguration, _headers); + = new V2DeleteWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ExportLogsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ExportLogsRequestBuilder.java index 8720c86a3..0f018ede9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ExportLogsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ExportLogsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ExportLogs; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ExportLogsRequestBuilder { private V2ExportLogsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ExportLogsRequestBuilder request(V2ExportLogsRequest request) { this.request = request; return this; } + + public V2ExportLogsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ExportLogsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ExportLogsResponse call() { RequestOperation operation - = new V2ExportLogs.Sync(sdkConfiguration, _headers); + = new V2ExportLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountRequestBuilder.java index 70912f714..a7de70c8e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetAccountRequestBuilder { private V2GetAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetAccountRequestBuilder request(V2GetAccountRequest request) { this.request = request; return this; } + + public V2GetAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetAccountResponse call() { RequestOperation operation - = new V2GetAccount.Sync(sdkConfiguration, _headers); + = new V2GetAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountResponse.java index a1e4343a7..85fb8ef6a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetAccountResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2AccountResponse; +import com.formance.formance_sdk.models.ledger.V2AccountResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequest.java index e863ae077..fcb96a607 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequest.java @@ -8,13 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Boolean; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; +import java.util.Map; import java.util.Optional; public class V2GetBalancesAggregatedRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Name of the ledger. */ @@ -33,20 +39,31 @@ public class V2GetBalancesAggregatedRequest { @JsonCreator public V2GetBalancesAggregatedRequest( + Map requestBody, String ledger, Optional pit, Optional useInsertionDate) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(ledger, "ledger"); Utils.checkNotNull(pit, "pit"); Utils.checkNotNull(useInsertionDate, "useInsertionDate"); + this.requestBody = requestBody; this.ledger = ledger; this.pit = pit; this.useInsertionDate = useInsertionDate; } public V2GetBalancesAggregatedRequest( + Map requestBody, String ledger) { - this(ledger, Optional.empty(), Optional.empty()); + this(requestBody, ledger, Optional.empty(), + Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -75,6 +92,12 @@ public static Builder builder() { } + public V2GetBalancesAggregatedRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Name of the ledger. */ @@ -126,6 +149,7 @@ public boolean equals(java.lang.Object o) { } V2GetBalancesAggregatedRequest other = (V2GetBalancesAggregatedRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.ledger, other.ledger) && Utils.enhancedDeepEquals(this.pit, other.pit) && Utils.enhancedDeepEquals(this.useInsertionDate, other.useInsertionDate); @@ -134,12 +158,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - ledger, pit, useInsertionDate); + requestBody, ledger, pit, + useInsertionDate); } @Override public String toString() { return Utils.toString(V2GetBalancesAggregatedRequest.class, + "requestBody", requestBody, "ledger", ledger, "pit", pit, "useInsertionDate", useInsertionDate); @@ -148,6 +174,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private String ledger; private Optional pit = Optional.empty(); @@ -159,6 +187,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Name of the ledger. */ @@ -203,7 +238,8 @@ public Builder useInsertionDate(Optional useInsertionDate) { public V2GetBalancesAggregatedRequest build() { return new V2GetBalancesAggregatedRequest( - ledger, pit, useInsertionDate); + requestBody, ledger, pit, + useInsertionDate); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequestBuilder.java index f259a6094..65c791081 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetBalancesAggregated; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetBalancesAggregatedRequestBuilder { private V2GetBalancesAggregatedRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetBalancesAggregatedRequestBuilder request(V2GetBalancesAggregatedRequ this.request = request; return this; } + + public V2GetBalancesAggregatedRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetBalancesAggregatedRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetBalancesAggregatedResponse call() { RequestOperation operation - = new V2GetBalancesAggregated.Sync(sdkConfiguration, _headers); + = new V2GetBalancesAggregated.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedResponse.java index 937ea161c..1a83c82f9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetBalancesAggregatedResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2AggregateBalancesResponse; +import com.formance.formance_sdk.models.ledger.V2AggregateBalancesResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateRequestBuilder.java index 25eb3d15e..9ac3f5951 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetExporterState; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetExporterStateRequestBuilder { private V2GetExporterStateRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetExporterStateRequestBuilder request(V2GetExporterStateRequest reques this.request = request; return this; } + + public V2GetExporterStateRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetExporterStateRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetExporterStateResponse call() { RequestOperation operation - = new V2GetExporterState.Sync(sdkConfiguration, _headers); + = new V2GetExporterState.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponse.java index 34626902e..b8e1bda8f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponse.java @@ -35,22 +35,22 @@ public class V2GetExporterStateResponse implements Response { /** * Exporter information */ - private Optional object; + private Optional v2GetExporterStateResponse; @JsonCreator public V2GetExporterStateResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional v2GetExporterStateResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(v2GetExporterStateResponse, "v2GetExporterStateResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.v2GetExporterStateResponse = v2GetExporterStateResponse; } public V2GetExporterStateResponse( @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional v2GetExporterStateResponse() { + return (Optional) v2GetExporterStateResponse; } public static Builder builder() { @@ -129,9 +129,9 @@ public V2GetExporterStateResponse withRawResponse(HttpResponse rawR /** * Exporter information */ - public V2GetExporterStateResponse withObject(V2GetExporterStateResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public V2GetExporterStateResponse withV2GetExporterStateResponse(com.formance.formance_sdk.models.ledger.V2GetExporterStateResponse v2GetExporterStateResponse) { + Utils.checkNotNull(v2GetExporterStateResponse, "v2GetExporterStateResponse"); + this.v2GetExporterStateResponse = Optional.ofNullable(v2GetExporterStateResponse); return this; } @@ -139,9 +139,9 @@ public V2GetExporterStateResponse withObject(V2GetExporterStateResponseBody obje /** * Exporter information */ - public V2GetExporterStateResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public V2GetExporterStateResponse withV2GetExporterStateResponse(Optional v2GetExporterStateResponse) { + Utils.checkNotNull(v2GetExporterStateResponse, "v2GetExporterStateResponse"); + this.v2GetExporterStateResponse = v2GetExporterStateResponse; return this; } @@ -158,14 +158,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.object, other.object); + Utils.enhancedDeepEquals(this.v2GetExporterStateResponse, other.v2GetExporterStateResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - object); + v2GetExporterStateResponse); } @Override @@ -174,7 +174,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "v2GetExporterStateResponse", v2GetExporterStateResponse); } @SuppressWarnings("UnusedReturnValue") @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional v2GetExporterStateResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,18 +226,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Exporter information */ - public Builder object(V2GetExporterStateResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder v2GetExporterStateResponse(com.formance.formance_sdk.models.ledger.V2GetExporterStateResponse v2GetExporterStateResponse) { + Utils.checkNotNull(v2GetExporterStateResponse, "v2GetExporterStateResponse"); + this.v2GetExporterStateResponse = Optional.ofNullable(v2GetExporterStateResponse); return this; } /** * Exporter information */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder v2GetExporterStateResponse(Optional v2GetExporterStateResponse) { + Utils.checkNotNull(v2GetExporterStateResponse, "v2GetExporterStateResponse"); + this.v2GetExporterStateResponse = v2GetExporterStateResponse; return this; } @@ -245,7 +245,7 @@ public V2GetExporterStateResponse build() { return new V2GetExporterStateResponse( contentType, statusCode, rawResponse, - object); + v2GetExporterStateResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponseBody.java deleted file mode 100644 index 3ef5a6191..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetExporterStateResponseBody.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.models.shared.V2Exporter; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2GetExporterStateResponseBody - * - *

Exporter information - */ -public class V2GetExporterStateResponseBody { - - @JsonProperty("data") - private V2Exporter data; - - @JsonCreator - public V2GetExporterStateResponseBody( - @JsonProperty("data") V2Exporter data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Exporter data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetExporterStateResponseBody withData(V2Exporter data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetExporterStateResponseBody other = (V2GetExporterStateResponseBody) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetExporterStateResponseBody.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Exporter data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Exporter data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetExporterStateResponseBody build() { - - return new V2GetExporterStateResponseBody( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoRequestBuilder.java index c8717994d..b9052812d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.V2GetInfo; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetInfoRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public V2GetInfoRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public V2GetInfoRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetInfoRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetInfoResponse call() { RequestlessOperation operation - = new V2GetInfo.Sync(sdkConfiguration, _headers); + = new V2GetInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoResponse.java index ad8f3f22e..e0674cd3b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInfoResponse.java @@ -5,8 +5,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2ConfigInfoResponse; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ConfigInfo; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; @@ -37,7 +37,7 @@ public class V2GetInfoResponse implements Response { /** * OK */ - private Optional v2ConfigInfoResponse; + private Optional v2ConfigInfo; /** * Error @@ -49,17 +49,17 @@ public V2GetInfoResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2ConfigInfoResponse, + Optional v2ConfigInfo, Optional v2ErrorResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(v2ConfigInfoResponse, "v2ConfigInfoResponse"); + Utils.checkNotNull(v2ConfigInfo, "v2ConfigInfo"); Utils.checkNotNull(v2ErrorResponse, "v2ErrorResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.v2ConfigInfoResponse = v2ConfigInfoResponse; + this.v2ConfigInfo = v2ConfigInfo; this.v2ErrorResponse = v2ErrorResponse; } @@ -100,8 +100,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2ConfigInfoResponse() { - return (Optional) v2ConfigInfoResponse; + public Optional v2ConfigInfo() { + return (Optional) v2ConfigInfo; } /** @@ -148,9 +148,9 @@ public V2GetInfoResponse withRawResponse(HttpResponse rawResponse) /** * OK */ - public V2GetInfoResponse withV2ConfigInfoResponse(V2ConfigInfoResponse v2ConfigInfoResponse) { - Utils.checkNotNull(v2ConfigInfoResponse, "v2ConfigInfoResponse"); - this.v2ConfigInfoResponse = Optional.ofNullable(v2ConfigInfoResponse); + public V2GetInfoResponse withV2ConfigInfo(V2ConfigInfo v2ConfigInfo) { + Utils.checkNotNull(v2ConfigInfo, "v2ConfigInfo"); + this.v2ConfigInfo = Optional.ofNullable(v2ConfigInfo); return this; } @@ -158,9 +158,9 @@ public V2GetInfoResponse withV2ConfigInfoResponse(V2ConfigInfoResponse v2ConfigI /** * OK */ - public V2GetInfoResponse withV2ConfigInfoResponse(Optional v2ConfigInfoResponse) { - Utils.checkNotNull(v2ConfigInfoResponse, "v2ConfigInfoResponse"); - this.v2ConfigInfoResponse = v2ConfigInfoResponse; + public V2GetInfoResponse withV2ConfigInfo(Optional v2ConfigInfo) { + Utils.checkNotNull(v2ConfigInfo, "v2ConfigInfo"); + this.v2ConfigInfo = v2ConfigInfo; return this; } @@ -196,7 +196,7 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.v2ConfigInfoResponse, other.v2ConfigInfoResponse) && + Utils.enhancedDeepEquals(this.v2ConfigInfo, other.v2ConfigInfo) && Utils.enhancedDeepEquals(this.v2ErrorResponse, other.v2ErrorResponse); } @@ -204,7 +204,7 @@ public boolean equals(java.lang.Object o) { public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - v2ConfigInfoResponse, v2ErrorResponse); + v2ConfigInfo, v2ErrorResponse); } @Override @@ -213,7 +213,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "v2ConfigInfoResponse", v2ConfigInfoResponse, + "v2ConfigInfo", v2ConfigInfo, "v2ErrorResponse", v2ErrorResponse); } @@ -226,7 +226,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2ConfigInfoResponse = Optional.empty(); + private Optional v2ConfigInfo = Optional.empty(); private Optional v2ErrorResponse = Optional.empty(); @@ -268,18 +268,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v2ConfigInfoResponse(V2ConfigInfoResponse v2ConfigInfoResponse) { - Utils.checkNotNull(v2ConfigInfoResponse, "v2ConfigInfoResponse"); - this.v2ConfigInfoResponse = Optional.ofNullable(v2ConfigInfoResponse); + public Builder v2ConfigInfo(V2ConfigInfo v2ConfigInfo) { + Utils.checkNotNull(v2ConfigInfo, "v2ConfigInfo"); + this.v2ConfigInfo = Optional.ofNullable(v2ConfigInfo); return this; } /** * OK */ - public Builder v2ConfigInfoResponse(Optional v2ConfigInfoResponse) { - Utils.checkNotNull(v2ConfigInfoResponse, "v2ConfigInfoResponse"); - this.v2ConfigInfoResponse = v2ConfigInfoResponse; + public Builder v2ConfigInfo(Optional v2ConfigInfo) { + Utils.checkNotNull(v2ConfigInfo, "v2ConfigInfo"); + this.v2ConfigInfo = v2ConfigInfo; return this; } @@ -306,7 +306,7 @@ public V2GetInfoResponse build() { return new V2GetInfoResponse( contentType, statusCode, rawResponse, - v2ConfigInfoResponse, v2ErrorResponse); + v2ConfigInfo, v2ErrorResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryRequestBuilder.java index a349603af..4f5557161 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetInstanceHistory; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetInstanceHistoryRequestBuilder { private V2GetInstanceHistoryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetInstanceHistoryRequestBuilder request(V2GetInstanceHistoryRequest re this.request = request; return this; } + + public V2GetInstanceHistoryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetInstanceHistoryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetInstanceHistoryResponse call() { RequestOperation operation - = new V2GetInstanceHistory.Sync(sdkConfiguration, _headers); + = new V2GetInstanceHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryResponse.java index 2d52080cb..c9618869d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceHistoryResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2GetWorkflowInstanceHistoryResponse; +import com.formance.formance_sdk.models.orchestration.V2GetWorkflowInstanceHistoryResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceRequestBuilder.java index 523293dc5..ca4cf906f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetInstance; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetInstanceRequestBuilder { private V2GetInstanceRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetInstanceRequestBuilder request(V2GetInstanceRequest request) { this.request = request; return this; } + + public V2GetInstanceRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetInstanceRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetInstanceResponse call() { RequestOperation operation - = new V2GetInstance.Sync(sdkConfiguration, _headers); + = new V2GetInstance.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceResponse.java index a7270e3da..3f0144891 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2GetWorkflowInstanceResponse; +import com.formance.formance_sdk.models.orchestration.V2GetWorkflowInstanceResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryRequestBuilder.java index 0f61eba2d..002e6e093 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetInstanceStageHistory; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetInstanceStageHistoryRequestBuilder { private V2GetInstanceStageHistoryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetInstanceStageHistoryRequestBuilder request(V2GetInstanceStageHistory this.request = request; return this; } + + public V2GetInstanceStageHistoryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetInstanceStageHistoryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetInstanceStageHistoryResponse call() { RequestOperation operation - = new V2GetInstanceStageHistory.Sync(sdkConfiguration, _headers); + = new V2GetInstanceStageHistory.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryResponse.java index 20eec5563..1193ee53a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetInstanceStageHistoryResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2GetWorkflowInstanceHistoryStageResponse; +import com.formance.formance_sdk.models.orchestration.V2GetWorkflowInstanceHistoryStageResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoRequestBuilder.java index 03b0e713b..290bb7925 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetLedgerInfo; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetLedgerInfoRequestBuilder { private V2GetLedgerInfoRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetLedgerInfoRequestBuilder request(V2GetLedgerInfoRequest request) { this.request = request; return this; } + + public V2GetLedgerInfoRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetLedgerInfoRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetLedgerInfoResponse call() { RequestOperation operation - = new V2GetLedgerInfo.Sync(sdkConfiguration, _headers); + = new V2GetLedgerInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoResponse.java index 7d1caaa95..a8aaac8ba 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerInfoResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2LedgerInfoResponse; +import com.formance.formance_sdk.models.ledger.V2LedgerInfoResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerRequestBuilder.java index 4e4c525b5..004a0899c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetLedger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetLedgerRequestBuilder { private V2GetLedgerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetLedgerRequestBuilder request(V2GetLedgerRequest request) { this.request = request; return this; } + + public V2GetLedgerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetLedgerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetLedgerResponse call() { RequestOperation operation - = new V2GetLedger.Sync(sdkConfiguration, _headers); + = new V2GetLedger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerResponse.java index 99cd80411..40d384126 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetLedgerResponse.java @@ -35,14 +35,14 @@ public class V2GetLedgerResponse implements Response { /** * OK */ - private Optional v2GetLedgerResponse; + private Optional v2GetLedgerResponse; @JsonCreator public V2GetLedgerResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2GetLedgerResponse) { + Optional v2GetLedgerResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2GetLedgerResponse() { - return (Optional) v2GetLedgerResponse; + public Optional v2GetLedgerResponse() { + return (Optional) v2GetLedgerResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2GetLedgerResponse withRawResponse(HttpResponse rawResponse /** * OK */ - public V2GetLedgerResponse withV2GetLedgerResponse(com.formance.formance_sdk.models.shared.V2GetLedgerResponse v2GetLedgerResponse) { + public V2GetLedgerResponse withV2GetLedgerResponse(com.formance.formance_sdk.models.ledger.V2GetLedgerResponse v2GetLedgerResponse) { Utils.checkNotNull(v2GetLedgerResponse, "v2GetLedgerResponse"); this.v2GetLedgerResponse = Optional.ofNullable(v2GetLedgerResponse); return this; @@ -139,7 +139,7 @@ public V2GetLedgerResponse withV2GetLedgerResponse(com.formance.formance_sdk.mod /** * OK */ - public V2GetLedgerResponse withV2GetLedgerResponse(Optional v2GetLedgerResponse) { + public V2GetLedgerResponse withV2GetLedgerResponse(Optional v2GetLedgerResponse) { Utils.checkNotNull(v2GetLedgerResponse, "v2GetLedgerResponse"); this.v2GetLedgerResponse = v2GetLedgerResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2GetLedgerResponse = Optional.empty(); + private Optional v2GetLedgerResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v2GetLedgerResponse(com.formance.formance_sdk.models.shared.V2GetLedgerResponse v2GetLedgerResponse) { + public Builder v2GetLedgerResponse(com.formance.formance_sdk.models.ledger.V2GetLedgerResponse v2GetLedgerResponse) { Utils.checkNotNull(v2GetLedgerResponse, "v2GetLedgerResponse"); this.v2GetLedgerResponse = Optional.ofNullable(v2GetLedgerResponse); return this; @@ -235,7 +235,7 @@ public Builder v2GetLedgerResponse(com.formance.formance_sdk.models.shared.V2Get /** * OK */ - public Builder v2GetLedgerResponse(Optional v2GetLedgerResponse) { + public Builder v2GetLedgerResponse(Optional v2GetLedgerResponse) { Utils.checkNotNull(v2GetLedgerResponse, "v2GetLedgerResponse"); this.v2GetLedgerResponse = v2GetLedgerResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateRequestBuilder.java index 5c0ff7d34..be435e893 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetPipelineState; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetPipelineStateRequestBuilder { private V2GetPipelineStateRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetPipelineStateRequestBuilder request(V2GetPipelineStateRequest reques this.request = request; return this; } + + public V2GetPipelineStateRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetPipelineStateRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetPipelineStateResponse call() { RequestOperation operation - = new V2GetPipelineState.Sync(sdkConfiguration, _headers); + = new V2GetPipelineState.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponse.java index a90a5253e..626958abb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponse.java @@ -35,22 +35,22 @@ public class V2GetPipelineStateResponse implements Response { /** * Pipeline information */ - private Optional object; + private Optional v2GetPipelineStateResponse; @JsonCreator public V2GetPipelineStateResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional v2GetPipelineStateResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(v2GetPipelineStateResponse, "v2GetPipelineStateResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.v2GetPipelineStateResponse = v2GetPipelineStateResponse; } public V2GetPipelineStateResponse( @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional v2GetPipelineStateResponse() { + return (Optional) v2GetPipelineStateResponse; } public static Builder builder() { @@ -129,9 +129,9 @@ public V2GetPipelineStateResponse withRawResponse(HttpResponse rawR /** * Pipeline information */ - public V2GetPipelineStateResponse withObject(V2GetPipelineStateResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public V2GetPipelineStateResponse withV2GetPipelineStateResponse(com.formance.formance_sdk.models.ledger.V2GetPipelineStateResponse v2GetPipelineStateResponse) { + Utils.checkNotNull(v2GetPipelineStateResponse, "v2GetPipelineStateResponse"); + this.v2GetPipelineStateResponse = Optional.ofNullable(v2GetPipelineStateResponse); return this; } @@ -139,9 +139,9 @@ public V2GetPipelineStateResponse withObject(V2GetPipelineStateResponseBody obje /** * Pipeline information */ - public V2GetPipelineStateResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public V2GetPipelineStateResponse withV2GetPipelineStateResponse(Optional v2GetPipelineStateResponse) { + Utils.checkNotNull(v2GetPipelineStateResponse, "v2GetPipelineStateResponse"); + this.v2GetPipelineStateResponse = v2GetPipelineStateResponse; return this; } @@ -158,14 +158,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.object, other.object); + Utils.enhancedDeepEquals(this.v2GetPipelineStateResponse, other.v2GetPipelineStateResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - object); + v2GetPipelineStateResponse); } @Override @@ -174,7 +174,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "v2GetPipelineStateResponse", v2GetPipelineStateResponse); } @SuppressWarnings("UnusedReturnValue") @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional v2GetPipelineStateResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,18 +226,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Pipeline information */ - public Builder object(V2GetPipelineStateResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder v2GetPipelineStateResponse(com.formance.formance_sdk.models.ledger.V2GetPipelineStateResponse v2GetPipelineStateResponse) { + Utils.checkNotNull(v2GetPipelineStateResponse, "v2GetPipelineStateResponse"); + this.v2GetPipelineStateResponse = Optional.ofNullable(v2GetPipelineStateResponse); return this; } /** * Pipeline information */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder v2GetPipelineStateResponse(Optional v2GetPipelineStateResponse) { + Utils.checkNotNull(v2GetPipelineStateResponse, "v2GetPipelineStateResponse"); + this.v2GetPipelineStateResponse = v2GetPipelineStateResponse; return this; } @@ -245,7 +245,7 @@ public V2GetPipelineStateResponse build() { return new V2GetPipelineStateResponse( contentType, statusCode, rawResponse, - object); + v2GetPipelineStateResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponseBody.java deleted file mode 100644 index d1143ac57..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetPipelineStateResponseBody.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.models.shared.V2Pipeline; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2GetPipelineStateResponseBody - * - *

Pipeline information - */ -public class V2GetPipelineStateResponseBody { - - @JsonProperty("data") - private V2Pipeline data; - - @JsonCreator - public V2GetPipelineStateResponseBody( - @JsonProperty("data") V2Pipeline data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Pipeline data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetPipelineStateResponseBody withData(V2Pipeline data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetPipelineStateResponseBody other = (V2GetPipelineStateResponseBody) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetPipelineStateResponseBody.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Pipeline data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Pipeline data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetPipelineStateResponseBody build() { - - return new V2GetPipelineStateResponseBody( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaRequestBuilder.java index e925cd502..dad7cb26c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetSchema; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetSchemaRequestBuilder { private V2GetSchemaRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetSchemaRequestBuilder request(V2GetSchemaRequest request) { this.request = request; return this; } + + public V2GetSchemaRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetSchemaRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetSchemaResponse call() { RequestOperation operation - = new V2GetSchema.Sync(sdkConfiguration, _headers); + = new V2GetSchema.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaResponse.java index 04d72c3cf..28a0c0811 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetSchemaResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2SchemaResponse; +import com.formance.formance_sdk.models.ledger.V2SchemaResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoRequestBuilder.java index adbb92f99..03fcc3449 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.V2GetServerInfo; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetServerInfoRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public V2GetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public V2GetServerInfoRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetServerInfoRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetServerInfoResponse call() { RequestlessOperation operation - = new V2GetServerInfo.Sync(sdkConfiguration, _headers); + = new V2GetServerInfo.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoResponse.java index edcb3dba4..6dde7dc95 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetServerInfoResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2ServerInfo; +import com.formance.formance_sdk.models.orchestration.V2ServerInfo; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionRequestBuilder.java index 4742a2636..b3db0d3f7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetTransactionRequestBuilder { private V2GetTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetTransactionRequestBuilder request(V2GetTransactionRequest request) { this.request = request; return this; } + + public V2GetTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetTransactionResponse call() { RequestOperation operation - = new V2GetTransaction.Sync(sdkConfiguration, _headers); + = new V2GetTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionResponse.java index d02aa4a16..d759b0bc3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetTransactionResponse.java @@ -35,14 +35,14 @@ public class V2GetTransactionResponse implements Response { /** * OK */ - private Optional v2GetTransactionResponse; + private Optional v2GetTransactionResponse; @JsonCreator public V2GetTransactionResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2GetTransactionResponse) { + Optional v2GetTransactionResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2GetTransactionResponse() { - return (Optional) v2GetTransactionResponse; + public Optional v2GetTransactionResponse() { + return (Optional) v2GetTransactionResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2GetTransactionResponse withRawResponse(HttpResponse rawRes /** * OK */ - public V2GetTransactionResponse withV2GetTransactionResponse(com.formance.formance_sdk.models.shared.V2GetTransactionResponse v2GetTransactionResponse) { + public V2GetTransactionResponse withV2GetTransactionResponse(com.formance.formance_sdk.models.ledger.V2GetTransactionResponse v2GetTransactionResponse) { Utils.checkNotNull(v2GetTransactionResponse, "v2GetTransactionResponse"); this.v2GetTransactionResponse = Optional.ofNullable(v2GetTransactionResponse); return this; @@ -139,7 +139,7 @@ public V2GetTransactionResponse withV2GetTransactionResponse(com.formance.forman /** * OK */ - public V2GetTransactionResponse withV2GetTransactionResponse(Optional v2GetTransactionResponse) { + public V2GetTransactionResponse withV2GetTransactionResponse(Optional v2GetTransactionResponse) { Utils.checkNotNull(v2GetTransactionResponse, "v2GetTransactionResponse"); this.v2GetTransactionResponse = v2GetTransactionResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2GetTransactionResponse = Optional.empty(); + private Optional v2GetTransactionResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v2GetTransactionResponse(com.formance.formance_sdk.models.shared.V2GetTransactionResponse v2GetTransactionResponse) { + public Builder v2GetTransactionResponse(com.formance.formance_sdk.models.ledger.V2GetTransactionResponse v2GetTransactionResponse) { Utils.checkNotNull(v2GetTransactionResponse, "v2GetTransactionResponse"); this.v2GetTransactionResponse = Optional.ofNullable(v2GetTransactionResponse); return this; @@ -235,7 +235,7 @@ public Builder v2GetTransactionResponse(com.formance.formance_sdk.models.shared. /** * OK */ - public Builder v2GetTransactionResponse(Optional v2GetTransactionResponse) { + public Builder v2GetTransactionResponse(Optional v2GetTransactionResponse) { Utils.checkNotNull(v2GetTransactionResponse, "v2GetTransactionResponse"); this.v2GetTransactionResponse = v2GetTransactionResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesRequestBuilder.java index c9b79b085..8ffe74a04 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetVolumesWithBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetVolumesWithBalancesRequestBuilder { private V2GetVolumesWithBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetVolumesWithBalancesRequestBuilder request(V2GetVolumesWithBalancesRe this.request = request; return this; } + + public V2GetVolumesWithBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetVolumesWithBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetVolumesWithBalancesResponse call() { RequestOperation operation - = new V2GetVolumesWithBalances.Sync(sdkConfiguration, _headers); + = new V2GetVolumesWithBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesResponse.java index fbc279055..947a2b43a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetVolumesWithBalancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2VolumesWithBalanceCursorResponse; +import com.formance.formance_sdk.models.ledger.V2VolumesWithBalanceCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowRequestBuilder.java index 3aa09dd61..cb91e279b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2GetWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2GetWorkflowRequestBuilder { private V2GetWorkflowRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2GetWorkflowRequestBuilder request(V2GetWorkflowRequest request) { this.request = request; return this; } + + public V2GetWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2GetWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2GetWorkflowResponse call() { RequestOperation operation - = new V2GetWorkflow.Sync(sdkConfiguration, _headers); + = new V2GetWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowResponse.java index c96e01558..832ec1729 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2GetWorkflowResponse.java @@ -35,14 +35,14 @@ public class V2GetWorkflowResponse implements Response { /** * The workflow */ - private Optional v2GetWorkflowResponse; + private Optional v2GetWorkflowResponse; @JsonCreator public V2GetWorkflowResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2GetWorkflowResponse) { + Optional v2GetWorkflowResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2GetWorkflowResponse() { - return (Optional) v2GetWorkflowResponse; + public Optional v2GetWorkflowResponse() { + return (Optional) v2GetWorkflowResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2GetWorkflowResponse withRawResponse(HttpResponse rawRespon /** * The workflow */ - public V2GetWorkflowResponse withV2GetWorkflowResponse(com.formance.formance_sdk.models.shared.V2GetWorkflowResponse v2GetWorkflowResponse) { + public V2GetWorkflowResponse withV2GetWorkflowResponse(com.formance.formance_sdk.models.orchestration.V2GetWorkflowResponse v2GetWorkflowResponse) { Utils.checkNotNull(v2GetWorkflowResponse, "v2GetWorkflowResponse"); this.v2GetWorkflowResponse = Optional.ofNullable(v2GetWorkflowResponse); return this; @@ -139,7 +139,7 @@ public V2GetWorkflowResponse withV2GetWorkflowResponse(com.formance.formance_sdk /** * The workflow */ - public V2GetWorkflowResponse withV2GetWorkflowResponse(Optional v2GetWorkflowResponse) { + public V2GetWorkflowResponse withV2GetWorkflowResponse(Optional v2GetWorkflowResponse) { Utils.checkNotNull(v2GetWorkflowResponse, "v2GetWorkflowResponse"); this.v2GetWorkflowResponse = v2GetWorkflowResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2GetWorkflowResponse = Optional.empty(); + private Optional v2GetWorkflowResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * The workflow */ - public Builder v2GetWorkflowResponse(com.formance.formance_sdk.models.shared.V2GetWorkflowResponse v2GetWorkflowResponse) { + public Builder v2GetWorkflowResponse(com.formance.formance_sdk.models.orchestration.V2GetWorkflowResponse v2GetWorkflowResponse) { Utils.checkNotNull(v2GetWorkflowResponse, "v2GetWorkflowResponse"); this.v2GetWorkflowResponse = Optional.ofNullable(v2GetWorkflowResponse); return this; @@ -235,7 +235,7 @@ public Builder v2GetWorkflowResponse(com.formance.formance_sdk.models.shared.V2G /** * The workflow */ - public Builder v2GetWorkflowResponse(Optional v2GetWorkflowResponse) { + public Builder v2GetWorkflowResponse(Optional v2GetWorkflowResponse) { Utils.checkNotNull(v2GetWorkflowResponse, "v2GetWorkflowResponse"); this.v2GetWorkflowResponse = v2GetWorkflowResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsRequestBuilder.java index b6a6bd6d2..ce234dc60 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ImportLogsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ImportLogs; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ImportLogsRequestBuilder { private V2ImportLogsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ImportLogsRequestBuilder request(V2ImportLogsRequest request) { this.request = request; return this; } + + public V2ImportLogsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ImportLogsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ImportLogsResponse call() { RequestOperation operation - = new V2ImportLogs.Sync(sdkConfiguration, _headers); + = new V2ImportLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequest.java index d0be861c3..33e67857b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2SchemaData; +import com.formance.formance_sdk.models.ledger.V2SchemaData2; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -22,7 +22,7 @@ public class V2InsertSchemaRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private V2SchemaData v2SchemaData; + private V2SchemaData2 v2SchemaData; /** * Name of the ledger. @@ -39,7 +39,7 @@ public class V2InsertSchemaRequest { @JsonCreator public V2InsertSchemaRequest( Optional idempotencyKey, - V2SchemaData v2SchemaData, + V2SchemaData2 v2SchemaData, String ledger, String version) { Utils.checkNotNull(idempotencyKey, "idempotencyKey"); @@ -53,7 +53,7 @@ public V2InsertSchemaRequest( } public V2InsertSchemaRequest( - V2SchemaData v2SchemaData, + V2SchemaData2 v2SchemaData, String ledger, String version) { this(Optional.empty(), v2SchemaData, ledger, @@ -69,7 +69,7 @@ public Optional idempotencyKey() { } @JsonIgnore - public V2SchemaData v2SchemaData() { + public V2SchemaData2 v2SchemaData() { return v2SchemaData; } @@ -113,7 +113,7 @@ public V2InsertSchemaRequest withIdempotencyKey(Optional idempotencyKey) return this; } - public V2InsertSchemaRequest withV2SchemaData(V2SchemaData v2SchemaData) { + public V2InsertSchemaRequest withV2SchemaData(V2SchemaData2 v2SchemaData) { Utils.checkNotNull(v2SchemaData, "v2SchemaData"); this.v2SchemaData = v2SchemaData; return this; @@ -174,7 +174,7 @@ public final static class Builder { private Optional idempotencyKey = Optional.empty(); - private V2SchemaData v2SchemaData; + private V2SchemaData2 v2SchemaData; private String ledger; @@ -204,7 +204,7 @@ public Builder idempotencyKey(Optional idempotencyKey) { } - public Builder v2SchemaData(V2SchemaData v2SchemaData) { + public Builder v2SchemaData(V2SchemaData2 v2SchemaData) { Utils.checkNotNull(v2SchemaData, "v2SchemaData"); this.v2SchemaData = v2SchemaData; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequestBuilder.java index 56e31740b..89f8ddc6c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2InsertSchemaRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2InsertSchema; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2InsertSchemaRequestBuilder { private V2InsertSchemaRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2InsertSchemaRequestBuilder request(V2InsertSchemaRequest request) { this.request = request; return this; } + + public V2InsertSchemaRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2InsertSchemaRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2InsertSchemaResponse call() { RequestOperation operation - = new V2InsertSchema.Sync(sdkConfiguration, _headers); + = new V2InsertSchema.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequest.java index dd93db32a..c7e60789c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequest.java @@ -8,13 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; +import java.util.Map; import java.util.Optional; public class V2ListAccountsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -54,18 +60,22 @@ public class V2ListAccountsRequest { @JsonCreator public V2ListAccountsRequest( + Map requestBody, Optional cursor, Optional expand, String ledger, Optional pageSize, Optional pit, Optional sort) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(expand, "expand"); Utils.checkNotNull(ledger, "ledger"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(pit, "pit"); Utils.checkNotNull(sort, "sort"); + this.requestBody = requestBody; this.cursor = cursor; this.expand = expand; this.ledger = ledger; @@ -75,9 +85,16 @@ public V2ListAccountsRequest( } public V2ListAccountsRequest( + Map requestBody, String ledger) { - this(Optional.empty(), Optional.empty(), ledger, - Optional.empty(), Optional.empty(), Optional.empty()); + this(requestBody, Optional.empty(), Optional.empty(), + ledger, Optional.empty(), Optional.empty(), + Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -132,6 +149,12 @@ public static Builder builder() { } + public V2ListAccountsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -244,6 +267,7 @@ public boolean equals(java.lang.Object o) { } V2ListAccountsRequest other = (V2ListAccountsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.expand, other.expand) && Utils.enhancedDeepEquals(this.ledger, other.ledger) && @@ -255,13 +279,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, expand, ledger, - pageSize, pit, sort); + requestBody, cursor, expand, + ledger, pageSize, pit, + sort); } @Override public String toString() { return Utils.toString(V2ListAccountsRequest.class, + "requestBody", requestBody, "cursor", cursor, "expand", expand, "ledger", ledger, @@ -273,6 +299,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private Optional cursor = Optional.empty(); private Optional expand = Optional.empty(); @@ -290,6 +318,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -395,8 +430,9 @@ public Builder sort(Optional sort) { public V2ListAccountsRequest build() { return new V2ListAccountsRequest( - cursor, expand, ledger, - pageSize, pit, sort); + requestBody, cursor, expand, + ledger, pageSize, pit, + sort); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequestBuilder.java index f9018d2ac..f6b5836c8 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListAccounts; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListAccountsRequestBuilder { private V2ListAccountsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListAccountsRequestBuilder request(V2ListAccountsRequest request) { this.request = request; return this; } + + public V2ListAccountsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListAccountsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListAccountsResponse call() { RequestOperation operation - = new V2ListAccounts.Sync(sdkConfiguration, _headers); + = new V2ListAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsResponse.java index 3a64bceef..da538370a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListAccountsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2AccountsCursorResponse; +import com.formance.formance_sdk.models.ledger.V2AccountsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor1.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor1.java deleted file mode 100644 index 2d4a805b9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor1.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -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.formance.formance_sdk.models.shared.V2Exporter; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class V2ListExportersCursor1 { - - @JsonProperty("cursor") - private V2ListExportersCursor2 cursor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional> data; - - @JsonCreator - public V2ListExportersCursor1( - @JsonProperty("cursor") V2ListExportersCursor2 cursor, - @JsonProperty("data") Optional> data) { - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(data, "data"); - this.cursor = cursor; - this.data = data; - } - - public V2ListExportersCursor1( - V2ListExportersCursor2 cursor) { - this(cursor, Optional.empty()); - } - - @JsonIgnore - public V2ListExportersCursor2 cursor() { - return cursor; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> data() { - return (Optional>) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListExportersCursor1 withCursor(V2ListExportersCursor2 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public V2ListExportersCursor1 withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2ListExportersCursor1 withData(Optional> data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListExportersCursor1 other = (V2ListExportersCursor1) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor) && - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor, data); - } - - @Override - public String toString() { - return Utils.toString(V2ListExportersCursor1.class, - "cursor", cursor, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2ListExportersCursor2 cursor; - - private Optional> data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(V2ListExportersCursor2 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional> data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ListExportersCursor1 build() { - - return new V2ListExportersCursor1( - cursor, data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor2.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor2.java deleted file mode 100644 index a2d60a4f9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersCursor2.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -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.formance.formance_sdk.models.shared.V2Exporter; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class V2ListExportersCursor2 { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public V2ListExportersCursor2( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public V2ListExportersCursor2( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListExportersCursor2 withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ListExportersCursor2 withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public V2ListExportersCursor2 withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public V2ListExportersCursor2 withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public V2ListExportersCursor2 withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public V2ListExportersCursor2 withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public V2ListExportersCursor2 withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListExportersCursor2 other = (V2ListExportersCursor2) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(V2ListExportersCursor2.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public V2ListExportersCursor2 build() { - - return new V2ListExportersCursor2( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersRequestBuilder.java index 4479fa30d..b3311f656 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.V2ListExporters; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListExportersRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public V2ListExportersRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public V2ListExportersRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListExportersRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListExportersResponse call() { RequestlessOperation operation - = new V2ListExporters.Sync(sdkConfiguration, _headers); + = new V2ListExporters.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponse.java index 42c74ca5d..7bb3554c3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponse.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.ledger.V2ExportersCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; @@ -35,22 +36,22 @@ public class V2ListExportersResponse implements Response { /** * Exporters list */ - private Optional object; + private Optional v2ExportersCursorResponse; @JsonCreator public V2ListExportersResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional v2ExportersCursorResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(v2ExportersCursorResponse, "v2ExportersCursorResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.v2ExportersCursorResponse = v2ExportersCursorResponse; } public V2ListExportersResponse( @@ -90,8 +91,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional v2ExportersCursorResponse() { + return (Optional) v2ExportersCursorResponse; } public static Builder builder() { @@ -129,9 +130,9 @@ public V2ListExportersResponse withRawResponse(HttpResponse rawResp /** * Exporters list */ - public V2ListExportersResponse withObject(V2ListExportersResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public V2ListExportersResponse withV2ExportersCursorResponse(V2ExportersCursorResponse v2ExportersCursorResponse) { + Utils.checkNotNull(v2ExportersCursorResponse, "v2ExportersCursorResponse"); + this.v2ExportersCursorResponse = Optional.ofNullable(v2ExportersCursorResponse); return this; } @@ -139,9 +140,9 @@ public V2ListExportersResponse withObject(V2ListExportersResponseBody object) { /** * Exporters list */ - public V2ListExportersResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public V2ListExportersResponse withV2ExportersCursorResponse(Optional v2ExportersCursorResponse) { + Utils.checkNotNull(v2ExportersCursorResponse, "v2ExportersCursorResponse"); + this.v2ExportersCursorResponse = v2ExportersCursorResponse; return this; } @@ -158,14 +159,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.object, other.object); + Utils.enhancedDeepEquals(this.v2ExportersCursorResponse, other.v2ExportersCursorResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - object); + v2ExportersCursorResponse); } @Override @@ -174,7 +175,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "v2ExportersCursorResponse", v2ExportersCursorResponse); } @SuppressWarnings("UnusedReturnValue") @@ -186,7 +187,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional v2ExportersCursorResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,18 +227,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Exporters list */ - public Builder object(V2ListExportersResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder v2ExportersCursorResponse(V2ExportersCursorResponse v2ExportersCursorResponse) { + Utils.checkNotNull(v2ExportersCursorResponse, "v2ExportersCursorResponse"); + this.v2ExportersCursorResponse = Optional.ofNullable(v2ExportersCursorResponse); return this; } /** * Exporters list */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder v2ExportersCursorResponse(Optional v2ExportersCursorResponse) { + Utils.checkNotNull(v2ExportersCursorResponse, "v2ExportersCursorResponse"); + this.v2ExportersCursorResponse = v2ExportersCursorResponse; return this; } @@ -245,7 +246,7 @@ public V2ListExportersResponse build() { return new V2ListExportersResponse( contentType, statusCode, rawResponse, - object); + v2ExportersCursorResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponseBody.java deleted file mode 100644 index c1b281c86..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListExportersResponseBody.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - -/** - * V2ListExportersResponseBody - * - *

Exporters list - */ -public class V2ListExportersResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cursor") - private Optional cursor; - - @JsonCreator - public V2ListExportersResponseBody( - @JsonProperty("cursor") Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - public V2ListExportersResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cursor() { - return (Optional) cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListExportersResponseBody withCursor(V2ListExportersCursor1 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - - public V2ListExportersResponseBody withCursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListExportersResponseBody other = (V2ListExportersResponseBody) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(V2ListExportersResponseBody.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional cursor = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(V2ListExportersCursor1 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - public Builder cursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public V2ListExportersResponseBody build() { - - return new V2ListExportersResponseBody( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesRequestBuilder.java index 89bde9300..931f4a8e7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListInstances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListInstancesRequestBuilder { private V2ListInstancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListInstancesRequestBuilder request(V2ListInstancesRequest request) { this.request = request; return this; } + + public V2ListInstancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListInstancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListInstancesResponse call() { RequestOperation operation - = new V2ListInstances.Sync(sdkConfiguration, _headers); + = new V2ListInstances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesResponse.java index fd09fcef0..3639108da 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListInstancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2ListRunsResponse; +import com.formance.formance_sdk.models.orchestration.V2ListRunsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequest.java index d035ca06f..12b6c5d5d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequest.java @@ -11,12 +11,18 @@ import com.formance.formance_sdk.utils.Utils; import java.lang.Boolean; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.util.Map; import java.util.Optional; public class V2ListLedgersRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -48,23 +54,33 @@ public class V2ListLedgersRequest { @JsonCreator public V2ListLedgersRequest( + Map requestBody, Optional cursor, Optional includeDeleted, Optional pageSize, Optional sort) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(includeDeleted, "includeDeleted"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(sort, "sort"); + this.requestBody = requestBody; this.cursor = cursor; this.includeDeleted = includeDeleted; this.pageSize = pageSize; this.sort = sort; } - public V2ListLedgersRequest() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); + public V2ListLedgersRequest( + Map requestBody) { + this(requestBody, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -109,6 +125,12 @@ public static Builder builder() { } + public V2ListLedgersRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -205,6 +227,7 @@ public boolean equals(java.lang.Object o) { } V2ListLedgersRequest other = (V2ListLedgersRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.includeDeleted, other.includeDeleted) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && @@ -214,13 +237,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, includeDeleted, pageSize, - sort); + requestBody, cursor, includeDeleted, + pageSize, sort); } @Override public String toString() { return Utils.toString(V2ListLedgersRequest.class, + "requestBody", requestBody, "cursor", cursor, "includeDeleted", includeDeleted, "pageSize", pageSize, @@ -230,6 +254,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private Optional cursor = Optional.empty(); private Optional includeDeleted; @@ -243,6 +269,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -334,8 +367,8 @@ public V2ListLedgersRequest build() { } return new V2ListLedgersRequest( - cursor, includeDeleted, pageSize, - sort); + requestBody, cursor, includeDeleted, + pageSize, sort); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequestBuilder.java index 57948a793..eb64f5372 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListLedgers; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListLedgersRequestBuilder { private V2ListLedgersRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListLedgersRequestBuilder request(V2ListLedgersRequest request) { this.request = request; return this; } + + public V2ListLedgersRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListLedgersRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListLedgersResponse call() { RequestOperation operation - = new V2ListLedgers.Sync(sdkConfiguration, _headers); + = new V2ListLedgers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersResponse.java index 77be1d1b4..6f5ef40e7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLedgersResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2LedgerListResponse; +import com.formance.formance_sdk.models.ledger.V2LedgerListResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequest.java index aa462c46a..91613b8e5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequest.java @@ -8,13 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.time.OffsetDateTime; +import java.util.Map; import java.util.Optional; public class V2ListLogsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -50,16 +56,20 @@ public class V2ListLogsRequest { @JsonCreator public V2ListLogsRequest( + Map requestBody, Optional cursor, String ledger, Optional pageSize, Optional pit, Optional sort) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(ledger, "ledger"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(pit, "pit"); Utils.checkNotNull(sort, "sort"); + this.requestBody = requestBody; this.cursor = cursor; this.ledger = ledger; this.pageSize = pageSize; @@ -68,9 +78,15 @@ public V2ListLogsRequest( } public V2ListLogsRequest( + Map requestBody, String ledger) { - this(Optional.empty(), ledger, Optional.empty(), - Optional.empty(), Optional.empty()); + this(requestBody, Optional.empty(), ledger, + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -120,6 +136,12 @@ public static Builder builder() { } + public V2ListLogsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -219,6 +241,7 @@ public boolean equals(java.lang.Object o) { } V2ListLogsRequest other = (V2ListLogsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.ledger, other.ledger) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && @@ -229,13 +252,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, ledger, pageSize, - pit, sort); + requestBody, cursor, ledger, + pageSize, pit, sort); } @Override public String toString() { return Utils.toString(V2ListLogsRequest.class, + "requestBody", requestBody, "cursor", cursor, "ledger", ledger, "pageSize", pageSize, @@ -246,6 +270,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private Optional cursor = Optional.empty(); private String ledger; @@ -261,6 +287,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -353,8 +386,8 @@ public Builder sort(Optional sort) { public V2ListLogsRequest build() { return new V2ListLogsRequest( - cursor, ledger, pageSize, - pit, sort); + requestBody, cursor, ledger, + pageSize, pit, sort); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequestBuilder.java index 535aa80e5..768b63bf9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListLogs; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListLogsRequestBuilder { private V2ListLogsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListLogsRequestBuilder request(V2ListLogsRequest request) { this.request = request; return this; } + + public V2ListLogsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListLogsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListLogsResponse call() { RequestOperation operation - = new V2ListLogs.Sync(sdkConfiguration, _headers); + = new V2ListLogs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsResponse.java index ff5da01b4..d005d378a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListLogsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2LogsCursorResponse; +import com.formance.formance_sdk.models.ledger.V2LogsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor1.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor1.java deleted file mode 100644 index 757bc31a1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor1.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -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.formance.formance_sdk.models.shared.V2Pipeline; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class V2ListPipelinesCursor1 { - - @JsonProperty("cursor") - private V2ListPipelinesCursor2 cursor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional> data; - - @JsonCreator - public V2ListPipelinesCursor1( - @JsonProperty("cursor") V2ListPipelinesCursor2 cursor, - @JsonProperty("data") Optional> data) { - Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(data, "data"); - this.cursor = cursor; - this.data = data; - } - - public V2ListPipelinesCursor1( - V2ListPipelinesCursor2 cursor) { - this(cursor, Optional.empty()); - } - - @JsonIgnore - public V2ListPipelinesCursor2 cursor() { - return cursor; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> data() { - return (Optional>) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListPipelinesCursor1 withCursor(V2ListPipelinesCursor2 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public V2ListPipelinesCursor1 withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2ListPipelinesCursor1 withData(Optional> data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListPipelinesCursor1 other = (V2ListPipelinesCursor1) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor) && - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor, data); - } - - @Override - public String toString() { - return Utils.toString(V2ListPipelinesCursor1.class, - "cursor", cursor, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2ListPipelinesCursor2 cursor; - - private Optional> data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(V2ListPipelinesCursor2 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional> data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ListPipelinesCursor1 build() { - - return new V2ListPipelinesCursor1( - cursor, data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor2.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor2.java deleted file mode 100644 index 68648608d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesCursor2.java +++ /dev/null @@ -1,251 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -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.formance.formance_sdk.models.shared.V2Pipeline; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class V2ListPipelinesCursor2 { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public V2ListPipelinesCursor2( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public V2ListPipelinesCursor2( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListPipelinesCursor2 withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ListPipelinesCursor2 withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public V2ListPipelinesCursor2 withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public V2ListPipelinesCursor2 withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public V2ListPipelinesCursor2 withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public V2ListPipelinesCursor2 withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public V2ListPipelinesCursor2 withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListPipelinesCursor2 other = (V2ListPipelinesCursor2) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(V2ListPipelinesCursor2.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public V2ListPipelinesCursor2 build() { - - return new V2ListPipelinesCursor2( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesRequestBuilder.java index 362a1afc6..f31a32f7e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListPipelines; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListPipelinesRequestBuilder { private V2ListPipelinesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListPipelinesRequestBuilder request(V2ListPipelinesRequest request) { this.request = request; return this; } + + public V2ListPipelinesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListPipelinesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListPipelinesResponse call() { RequestOperation operation - = new V2ListPipelines.Sync(sdkConfiguration, _headers); + = new V2ListPipelines.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponse.java index 1ea803712..e3cfbc620 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponse.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.ledger.V2PipelinesCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; @@ -35,22 +36,22 @@ public class V2ListPipelinesResponse implements Response { /** * Pipelines list */ - private Optional object; + private Optional v2PipelinesCursorResponse; @JsonCreator public V2ListPipelinesResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional object) { + Optional v2PipelinesCursorResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(object, "object"); + Utils.checkNotNull(v2PipelinesCursorResponse, "v2PipelinesCursorResponse"); this.contentType = contentType; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.object = object; + this.v2PipelinesCursorResponse = v2PipelinesCursorResponse; } public V2ListPipelinesResponse( @@ -90,8 +91,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional object() { - return (Optional) object; + public Optional v2PipelinesCursorResponse() { + return (Optional) v2PipelinesCursorResponse; } public static Builder builder() { @@ -129,9 +130,9 @@ public V2ListPipelinesResponse withRawResponse(HttpResponse rawResp /** * Pipelines list */ - public V2ListPipelinesResponse withObject(V2ListPipelinesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public V2ListPipelinesResponse withV2PipelinesCursorResponse(V2PipelinesCursorResponse v2PipelinesCursorResponse) { + Utils.checkNotNull(v2PipelinesCursorResponse, "v2PipelinesCursorResponse"); + this.v2PipelinesCursorResponse = Optional.ofNullable(v2PipelinesCursorResponse); return this; } @@ -139,9 +140,9 @@ public V2ListPipelinesResponse withObject(V2ListPipelinesResponseBody object) { /** * Pipelines list */ - public V2ListPipelinesResponse withObject(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public V2ListPipelinesResponse withV2PipelinesCursorResponse(Optional v2PipelinesCursorResponse) { + Utils.checkNotNull(v2PipelinesCursorResponse, "v2PipelinesCursorResponse"); + this.v2PipelinesCursorResponse = v2PipelinesCursorResponse; return this; } @@ -158,14 +159,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.contentType, other.contentType) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.object, other.object); + Utils.enhancedDeepEquals(this.v2PipelinesCursorResponse, other.v2PipelinesCursorResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, statusCode, rawResponse, - object); + v2PipelinesCursorResponse); } @Override @@ -174,7 +175,7 @@ public String toString() { "contentType", contentType, "statusCode", statusCode, "rawResponse", rawResponse, - "object", object); + "v2PipelinesCursorResponse", v2PipelinesCursorResponse); } @SuppressWarnings("UnusedReturnValue") @@ -186,7 +187,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional object = Optional.empty(); + private Optional v2PipelinesCursorResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,18 +227,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Pipelines list */ - public Builder object(V2ListPipelinesResponseBody object) { - Utils.checkNotNull(object, "object"); - this.object = Optional.ofNullable(object); + public Builder v2PipelinesCursorResponse(V2PipelinesCursorResponse v2PipelinesCursorResponse) { + Utils.checkNotNull(v2PipelinesCursorResponse, "v2PipelinesCursorResponse"); + this.v2PipelinesCursorResponse = Optional.ofNullable(v2PipelinesCursorResponse); return this; } /** * Pipelines list */ - public Builder object(Optional object) { - Utils.checkNotNull(object, "object"); - this.object = object; + public Builder v2PipelinesCursorResponse(Optional v2PipelinesCursorResponse) { + Utils.checkNotNull(v2PipelinesCursorResponse, "v2PipelinesCursorResponse"); + this.v2PipelinesCursorResponse = v2PipelinesCursorResponse; return this; } @@ -245,7 +246,7 @@ public V2ListPipelinesResponse build() { return new V2ListPipelinesResponse( contentType, statusCode, rawResponse, - object); + v2PipelinesCursorResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponseBody.java deleted file mode 100644 index ea1cfbd26..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListPipelinesResponseBody.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - -/** - * V2ListPipelinesResponseBody - * - *

Pipelines list - */ -public class V2ListPipelinesResponseBody { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cursor") - private Optional cursor; - - @JsonCreator - public V2ListPipelinesResponseBody( - @JsonProperty("cursor") Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - public V2ListPipelinesResponseBody() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional cursor() { - return (Optional) cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListPipelinesResponseBody withCursor(V2ListPipelinesCursor1 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - - public V2ListPipelinesResponseBody withCursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListPipelinesResponseBody other = (V2ListPipelinesResponseBody) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(V2ListPipelinesResponseBody.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional cursor = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(V2ListPipelinesCursor1 cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); - return this; - } - - public Builder cursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public V2ListPipelinesResponseBody build() { - - return new V2ListPipelinesResponseBody( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasRequestBuilder.java index 349a83f42..5a7f3c16e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListSchemas; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListSchemasRequestBuilder { private V2ListSchemasRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListSchemasRequestBuilder request(V2ListSchemasRequest request) { this.request = request; return this; } + + public V2ListSchemasRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListSchemasRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListSchemasResponse call() { RequestOperation operation - = new V2ListSchemas.Sync(sdkConfiguration, _headers); + = new V2ListSchemas.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasResponse.java index f2cc959b3..dc9118f34 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListSchemasResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2SchemasCursorResponse; +import com.formance.formance_sdk.models.ledger.V2SchemasCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequest.java index 9192bdb7a..80cf0acd6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequest.java @@ -10,14 +10,20 @@ import java.lang.Boolean; import java.lang.Deprecated; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; import java.time.OffsetDateTime; +import java.util.Map; import java.util.Optional; public class V2ListTransactionsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Map requestBody; + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -70,6 +76,7 @@ public class V2ListTransactionsRequest { @JsonCreator public V2ListTransactionsRequest( + Map requestBody, Optional cursor, Optional expand, String ledger, @@ -78,6 +85,8 @@ public V2ListTransactionsRequest( Optional pit, Optional reverse, Optional sort) { + requestBody = Utils.emptyMapIfNull(requestBody); + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(expand, "expand"); Utils.checkNotNull(ledger, "ledger"); @@ -86,6 +95,7 @@ public V2ListTransactionsRequest( Utils.checkNotNull(pit, "pit"); Utils.checkNotNull(reverse, "reverse"); Utils.checkNotNull(sort, "sort"); + this.requestBody = requestBody; this.cursor = cursor; this.expand = expand; this.ledger = ledger; @@ -97,10 +107,16 @@ public V2ListTransactionsRequest( } public V2ListTransactionsRequest( + Map requestBody, String ledger) { - this(Optional.empty(), Optional.empty(), ledger, - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); + this(requestBody, Optional.empty(), Optional.empty(), + ledger, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Map requestBody() { + return requestBody; } /** @@ -172,6 +188,12 @@ public static Builder builder() { } + public V2ListTransactionsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -322,6 +344,7 @@ public boolean equals(java.lang.Object o) { } V2ListTransactionsRequest other = (V2ListTransactionsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.expand, other.expand) && Utils.enhancedDeepEquals(this.ledger, other.ledger) && @@ -335,14 +358,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, expand, ledger, - order, pageSize, pit, - reverse, sort); + requestBody, cursor, expand, + ledger, order, pageSize, + pit, reverse, sort); } @Override public String toString() { return Utils.toString(V2ListTransactionsRequest.class, + "requestBody", requestBody, "cursor", cursor, "expand", expand, "ledger", ledger, @@ -356,6 +380,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Map requestBody; + private Optional cursor = Optional.empty(); private Optional expand = Optional.empty(); @@ -378,6 +404,13 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Maximum page size is set to 15. * Set to the value of next for the next page of results. @@ -521,9 +554,9 @@ public Builder sort(Optional sort) { public V2ListTransactionsRequest build() { return new V2ListTransactionsRequest( - cursor, expand, ledger, - order, pageSize, pit, - reverse, sort); + requestBody, cursor, expand, + ledger, order, pageSize, + pit, reverse, sort); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequestBuilder.java index 6d45a13fa..f0342224f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListTransactions; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListTransactionsRequestBuilder { private V2ListTransactionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListTransactionsRequestBuilder request(V2ListTransactionsRequest reques this.request = request; return this; } + + public V2ListTransactionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListTransactionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListTransactionsResponse call() { RequestOperation operation - = new V2ListTransactions.Sync(sdkConfiguration, _headers); + = new V2ListTransactions.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsResponse.java index 371809f51..e1984d7d4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTransactionsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2TransactionsCursorResponse; +import com.formance.formance_sdk.models.ledger.V2TransactionsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesRequestBuilder.java index 8efa70782..98a564d47 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListTriggersOccurrences; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListTriggersOccurrencesRequestBuilder { private V2ListTriggersOccurrencesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListTriggersOccurrencesRequestBuilder request(V2ListTriggersOccurrences this.request = request; return this; } + + public V2ListTriggersOccurrencesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListTriggersOccurrencesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListTriggersOccurrencesResponse call() { RequestOperation operation - = new V2ListTriggersOccurrences.Sync(sdkConfiguration, _headers); + = new V2ListTriggersOccurrences.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesResponse.java index 97753a01a..a761476e4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersOccurrencesResponse.java @@ -35,14 +35,14 @@ public class V2ListTriggersOccurrencesResponse implements Response { /** * List of triggers occurrences */ - private Optional v2ListTriggersOccurrencesResponse; + private Optional v2ListTriggersOccurrencesResponse; @JsonCreator public V2ListTriggersOccurrencesResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2ListTriggersOccurrencesResponse) { + Optional v2ListTriggersOccurrencesResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2ListTriggersOccurrencesResponse() { - return (Optional) v2ListTriggersOccurrencesResponse; + public Optional v2ListTriggersOccurrencesResponse() { + return (Optional) v2ListTriggersOccurrencesResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2ListTriggersOccurrencesResponse withRawResponse(HttpResponse v2ListTriggersOccurrencesResponse) { + public V2ListTriggersOccurrencesResponse withV2ListTriggersOccurrencesResponse(Optional v2ListTriggersOccurrencesResponse) { Utils.checkNotNull(v2ListTriggersOccurrencesResponse, "v2ListTriggersOccurrencesResponse"); this.v2ListTriggersOccurrencesResponse = v2ListTriggersOccurrencesResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2ListTriggersOccurrencesResponse = Optional.empty(); + private Optional v2ListTriggersOccurrencesResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * List of triggers occurrences */ - public Builder v2ListTriggersOccurrencesResponse(com.formance.formance_sdk.models.shared.V2ListTriggersOccurrencesResponse v2ListTriggersOccurrencesResponse) { + public Builder v2ListTriggersOccurrencesResponse(com.formance.formance_sdk.models.orchestration.V2ListTriggersOccurrencesResponse v2ListTriggersOccurrencesResponse) { Utils.checkNotNull(v2ListTriggersOccurrencesResponse, "v2ListTriggersOccurrencesResponse"); this.v2ListTriggersOccurrencesResponse = Optional.ofNullable(v2ListTriggersOccurrencesResponse); return this; @@ -235,7 +235,7 @@ public Builder v2ListTriggersOccurrencesResponse(com.formance.formance_sdk.model /** * List of triggers occurrences */ - public Builder v2ListTriggersOccurrencesResponse(Optional v2ListTriggersOccurrencesResponse) { + public Builder v2ListTriggersOccurrencesResponse(Optional v2ListTriggersOccurrencesResponse) { Utils.checkNotNull(v2ListTriggersOccurrencesResponse, "v2ListTriggersOccurrencesResponse"); this.v2ListTriggersOccurrencesResponse = v2ListTriggersOccurrencesResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersRequestBuilder.java index fae2246f2..48b9263e0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListTriggers; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListTriggersRequestBuilder { private V2ListTriggersRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListTriggersRequestBuilder request(V2ListTriggersRequest request) { this.request = request; return this; } + + public V2ListTriggersRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListTriggersRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListTriggersResponse call() { RequestOperation operation - = new V2ListTriggers.Sync(sdkConfiguration, _headers); + = new V2ListTriggers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersResponse.java index 747cadec4..15da975ea 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListTriggersResponse.java @@ -35,14 +35,14 @@ public class V2ListTriggersResponse implements Response { /** * List of triggers */ - private Optional v2ListTriggersResponse; + private Optional v2ListTriggersResponse; @JsonCreator public V2ListTriggersResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2ListTriggersResponse) { + Optional v2ListTriggersResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2ListTriggersResponse() { - return (Optional) v2ListTriggersResponse; + public Optional v2ListTriggersResponse() { + return (Optional) v2ListTriggersResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2ListTriggersResponse withRawResponse(HttpResponse rawRespo /** * List of triggers */ - public V2ListTriggersResponse withV2ListTriggersResponse(com.formance.formance_sdk.models.shared.V2ListTriggersResponse v2ListTriggersResponse) { + public V2ListTriggersResponse withV2ListTriggersResponse(com.formance.formance_sdk.models.orchestration.V2ListTriggersResponse v2ListTriggersResponse) { Utils.checkNotNull(v2ListTriggersResponse, "v2ListTriggersResponse"); this.v2ListTriggersResponse = Optional.ofNullable(v2ListTriggersResponse); return this; @@ -139,7 +139,7 @@ public V2ListTriggersResponse withV2ListTriggersResponse(com.formance.formance_s /** * List of triggers */ - public V2ListTriggersResponse withV2ListTriggersResponse(Optional v2ListTriggersResponse) { + public V2ListTriggersResponse withV2ListTriggersResponse(Optional v2ListTriggersResponse) { Utils.checkNotNull(v2ListTriggersResponse, "v2ListTriggersResponse"); this.v2ListTriggersResponse = v2ListTriggersResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2ListTriggersResponse = Optional.empty(); + private Optional v2ListTriggersResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * List of triggers */ - public Builder v2ListTriggersResponse(com.formance.formance_sdk.models.shared.V2ListTriggersResponse v2ListTriggersResponse) { + public Builder v2ListTriggersResponse(com.formance.formance_sdk.models.orchestration.V2ListTriggersResponse v2ListTriggersResponse) { Utils.checkNotNull(v2ListTriggersResponse, "v2ListTriggersResponse"); this.v2ListTriggersResponse = Optional.ofNullable(v2ListTriggersResponse); return this; @@ -235,7 +235,7 @@ public Builder v2ListTriggersResponse(com.formance.formance_sdk.models.shared.V2 /** * List of triggers */ - public Builder v2ListTriggersResponse(Optional v2ListTriggersResponse) { + public Builder v2ListTriggersResponse(Optional v2ListTriggersResponse) { Utils.checkNotNull(v2ListTriggersResponse, "v2ListTriggersResponse"); this.v2ListTriggersResponse = v2ListTriggersResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsRequestBuilder.java index 7eb871d0c..511e5c8e5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ListWorkflows; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ListWorkflowsRequestBuilder { private V2ListWorkflowsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ListWorkflowsRequestBuilder request(V2ListWorkflowsRequest request) { this.request = request; return this; } + + public V2ListWorkflowsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ListWorkflowsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ListWorkflowsResponse call() { RequestOperation operation - = new V2ListWorkflows.Sync(sdkConfiguration, _headers); + = new V2ListWorkflows.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsResponse.java index 15982982b..ec1675d57 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ListWorkflowsResponse.java @@ -35,14 +35,14 @@ public class V2ListWorkflowsResponse implements Response { /** * List of workflows */ - private Optional v2ListWorkflowsResponse; + private Optional v2ListWorkflowsResponse; @JsonCreator public V2ListWorkflowsResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2ListWorkflowsResponse) { + Optional v2ListWorkflowsResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2ListWorkflowsResponse() { - return (Optional) v2ListWorkflowsResponse; + public Optional v2ListWorkflowsResponse() { + return (Optional) v2ListWorkflowsResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2ListWorkflowsResponse withRawResponse(HttpResponse rawResp /** * List of workflows */ - public V2ListWorkflowsResponse withV2ListWorkflowsResponse(com.formance.formance_sdk.models.shared.V2ListWorkflowsResponse v2ListWorkflowsResponse) { + public V2ListWorkflowsResponse withV2ListWorkflowsResponse(com.formance.formance_sdk.models.orchestration.V2ListWorkflowsResponse v2ListWorkflowsResponse) { Utils.checkNotNull(v2ListWorkflowsResponse, "v2ListWorkflowsResponse"); this.v2ListWorkflowsResponse = Optional.ofNullable(v2ListWorkflowsResponse); return this; @@ -139,7 +139,7 @@ public V2ListWorkflowsResponse withV2ListWorkflowsResponse(com.formance.formance /** * List of workflows */ - public V2ListWorkflowsResponse withV2ListWorkflowsResponse(Optional v2ListWorkflowsResponse) { + public V2ListWorkflowsResponse withV2ListWorkflowsResponse(Optional v2ListWorkflowsResponse) { Utils.checkNotNull(v2ListWorkflowsResponse, "v2ListWorkflowsResponse"); this.v2ListWorkflowsResponse = v2ListWorkflowsResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2ListWorkflowsResponse = Optional.empty(); + private Optional v2ListWorkflowsResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * List of workflows */ - public Builder v2ListWorkflowsResponse(com.formance.formance_sdk.models.shared.V2ListWorkflowsResponse v2ListWorkflowsResponse) { + public Builder v2ListWorkflowsResponse(com.formance.formance_sdk.models.orchestration.V2ListWorkflowsResponse v2ListWorkflowsResponse) { Utils.checkNotNull(v2ListWorkflowsResponse, "v2ListWorkflowsResponse"); this.v2ListWorkflowsResponse = Optional.ofNullable(v2ListWorkflowsResponse); return this; @@ -235,7 +235,7 @@ public Builder v2ListWorkflowsResponse(com.formance.formance_sdk.models.shared.V /** * List of workflows */ - public Builder v2ListWorkflowsResponse(Optional v2ListWorkflowsResponse) { + public Builder v2ListWorkflowsResponse(Optional v2ListWorkflowsResponse) { Utils.checkNotNull(v2ListWorkflowsResponse, "v2ListWorkflowsResponse"); this.v2ListWorkflowsResponse = v2ListWorkflowsResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsRequestBuilder.java index 6adbe2df9..67b43a9ff 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ReadStats; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ReadStatsRequestBuilder { private V2ReadStatsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ReadStatsRequestBuilder request(V2ReadStatsRequest request) { this.request = request; return this; } + + public V2ReadStatsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ReadStatsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ReadStatsResponse call() { RequestOperation operation - = new V2ReadStats.Sync(sdkConfiguration, _headers); + = new V2ReadStats.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsResponse.java index cbf9c3bf0..f9f9d7773 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadStatsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2StatsResponse; +import com.formance.formance_sdk.models.ledger.V2StatsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerRequestBuilder.java index 6720ca118..78f9c9304 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ReadTrigger; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ReadTriggerRequestBuilder { private V2ReadTriggerRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ReadTriggerRequestBuilder request(V2ReadTriggerRequest request) { this.request = request; return this; } + + public V2ReadTriggerRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ReadTriggerRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ReadTriggerResponse call() { RequestOperation operation - = new V2ReadTrigger.Sync(sdkConfiguration, _headers); + = new V2ReadTrigger.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerResponse.java index 4638cd4dd..319853f19 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ReadTriggerResponse.java @@ -35,14 +35,14 @@ public class V2ReadTriggerResponse implements Response { /** * A specific trigger */ - private Optional v2ReadTriggerResponse; + private Optional v2ReadTriggerResponse; @JsonCreator public V2ReadTriggerResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2ReadTriggerResponse) { + Optional v2ReadTriggerResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2ReadTriggerResponse() { - return (Optional) v2ReadTriggerResponse; + public Optional v2ReadTriggerResponse() { + return (Optional) v2ReadTriggerResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2ReadTriggerResponse withRawResponse(HttpResponse rawRespon /** * A specific trigger */ - public V2ReadTriggerResponse withV2ReadTriggerResponse(com.formance.formance_sdk.models.shared.V2ReadTriggerResponse v2ReadTriggerResponse) { + public V2ReadTriggerResponse withV2ReadTriggerResponse(com.formance.formance_sdk.models.orchestration.V2ReadTriggerResponse v2ReadTriggerResponse) { Utils.checkNotNull(v2ReadTriggerResponse, "v2ReadTriggerResponse"); this.v2ReadTriggerResponse = Optional.ofNullable(v2ReadTriggerResponse); return this; @@ -139,7 +139,7 @@ public V2ReadTriggerResponse withV2ReadTriggerResponse(com.formance.formance_sdk /** * A specific trigger */ - public V2ReadTriggerResponse withV2ReadTriggerResponse(Optional v2ReadTriggerResponse) { + public V2ReadTriggerResponse withV2ReadTriggerResponse(Optional v2ReadTriggerResponse) { Utils.checkNotNull(v2ReadTriggerResponse, "v2ReadTriggerResponse"); this.v2ReadTriggerResponse = v2ReadTriggerResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2ReadTriggerResponse = Optional.empty(); + private Optional v2ReadTriggerResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * A specific trigger */ - public Builder v2ReadTriggerResponse(com.formance.formance_sdk.models.shared.V2ReadTriggerResponse v2ReadTriggerResponse) { + public Builder v2ReadTriggerResponse(com.formance.formance_sdk.models.orchestration.V2ReadTriggerResponse v2ReadTriggerResponse) { Utils.checkNotNull(v2ReadTriggerResponse, "v2ReadTriggerResponse"); this.v2ReadTriggerResponse = Optional.ofNullable(v2ReadTriggerResponse); return this; @@ -235,7 +235,7 @@ public Builder v2ReadTriggerResponse(com.formance.formance_sdk.models.shared.V2R /** * A specific trigger */ - public Builder v2ReadTriggerResponse(Optional v2ReadTriggerResponse) { + public Builder v2ReadTriggerResponse(Optional v2ReadTriggerResponse) { Utils.checkNotNull(v2ReadTriggerResponse, "v2ReadTriggerResponse"); this.v2ReadTriggerResponse = v2ReadTriggerResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineRequestBuilder.java index e7eeed7c2..53ad6a9ec 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2ResetPipelineRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2ResetPipeline; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2ResetPipelineRequestBuilder { private V2ResetPipelineRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2ResetPipelineRequestBuilder request(V2ResetPipelineRequest request) { this.request = request; return this; } + + public V2ResetPipelineRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2ResetPipelineRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2ResetPipelineResponse call() { RequestOperation operation - = new V2ResetPipeline.Sync(sdkConfiguration, _headers); + = new V2ResetPipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketRequestBuilder.java index 22b731b9f..e11984993 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2RestoreBucket; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2RestoreBucketRequestBuilder { private V2RestoreBucketRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2RestoreBucketRequestBuilder request(V2RestoreBucketRequest request) { this.request = request; return this; } + + public V2RestoreBucketRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2RestoreBucketRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2RestoreBucketResponse call() { RequestOperation operation - = new V2RestoreBucket.Sync(sdkConfiguration, _headers); + = new V2RestoreBucket.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketResponse.java index cfeda8013..b98e95afd 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RestoreBucketResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequest.java index 91ab9cd08..d8cbea5f4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequest.java @@ -24,7 +24,7 @@ public class V2RevertTransactionRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v2RevertTransactionRequest; + private Optional v2RevertTransactionRequest; /** * Revert transaction at effective date of the original tx @@ -66,7 +66,7 @@ public class V2RevertTransactionRequest { @JsonCreator public V2RevertTransactionRequest( Optional idempotencyKey, - Optional v2RevertTransactionRequest, + Optional v2RevertTransactionRequest, Optional atEffectiveDate, Optional dryRun, Optional force, @@ -109,8 +109,8 @@ public Optional idempotencyKey() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2RevertTransactionRequest() { - return (Optional) v2RevertTransactionRequest; + public Optional v2RevertTransactionRequest() { + return (Optional) v2RevertTransactionRequest; } /** @@ -186,14 +186,14 @@ public V2RevertTransactionRequest withIdempotencyKey(Optional idempotenc return this; } - public V2RevertTransactionRequest withV2RevertTransactionRequest(com.formance.formance_sdk.models.shared.V2RevertTransactionRequest v2RevertTransactionRequest) { + public V2RevertTransactionRequest withV2RevertTransactionRequest(com.formance.formance_sdk.models.ledger.V2RevertTransactionRequest v2RevertTransactionRequest) { Utils.checkNotNull(v2RevertTransactionRequest, "v2RevertTransactionRequest"); this.v2RevertTransactionRequest = Optional.ofNullable(v2RevertTransactionRequest); return this; } - public V2RevertTransactionRequest withV2RevertTransactionRequest(Optional v2RevertTransactionRequest) { + public V2RevertTransactionRequest withV2RevertTransactionRequest(Optional v2RevertTransactionRequest) { Utils.checkNotNull(v2RevertTransactionRequest, "v2RevertTransactionRequest"); this.v2RevertTransactionRequest = v2RevertTransactionRequest; return this; @@ -349,7 +349,7 @@ public final static class Builder { private Optional idempotencyKey = Optional.empty(); - private Optional v2RevertTransactionRequest = Optional.empty(); + private Optional v2RevertTransactionRequest = Optional.empty(); private Optional atEffectiveDate = Optional.empty(); @@ -387,13 +387,13 @@ public Builder idempotencyKey(Optional idempotencyKey) { } - public Builder v2RevertTransactionRequest(com.formance.formance_sdk.models.shared.V2RevertTransactionRequest v2RevertTransactionRequest) { + public Builder v2RevertTransactionRequest(com.formance.formance_sdk.models.ledger.V2RevertTransactionRequest v2RevertTransactionRequest) { Utils.checkNotNull(v2RevertTransactionRequest, "v2RevertTransactionRequest"); this.v2RevertTransactionRequest = Optional.ofNullable(v2RevertTransactionRequest); return this; } - public Builder v2RevertTransactionRequest(Optional v2RevertTransactionRequest) { + public Builder v2RevertTransactionRequest(Optional v2RevertTransactionRequest) { Utils.checkNotNull(v2RevertTransactionRequest, "v2RevertTransactionRequest"); this.v2RevertTransactionRequest = v2RevertTransactionRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequestBuilder.java index 0eb1f25a0..7d8b0dcc7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2RevertTransaction; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2RevertTransactionRequestBuilder { private V2RevertTransactionRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2RevertTransactionRequestBuilder request(V2RevertTransactionRequest requ this.request = request; return this; } + + public V2RevertTransactionRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2RevertTransactionRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2RevertTransactionResponse call() { RequestOperation operation - = new V2RevertTransaction.Sync(sdkConfiguration, _headers); + = new V2RevertTransaction.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionResponse.java index 21cd9947a..3ab8081c3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RevertTransactionResponse.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.ledger.V2CreateTransactionResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; @@ -40,7 +41,7 @@ public class V2RevertTransactionResponse implements Response { /** * OK */ - private Optional v2RevertTransactionResponse; + private Optional v2CreateTransactionResponse; @JsonCreator public V2RevertTransactionResponse( @@ -48,18 +49,18 @@ public V2RevertTransactionResponse( Map> headers, int statusCode, HttpResponse rawResponse, - Optional v2RevertTransactionResponse) { + Optional v2CreateTransactionResponse) { Utils.checkNotNull(contentType, "contentType"); headers = Utils.emptyMapIfNull(headers); Utils.checkNotNull(headers, "headers"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); - Utils.checkNotNull(v2RevertTransactionResponse, "v2RevertTransactionResponse"); + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); this.contentType = contentType; this.headers = headers; this.statusCode = statusCode; this.rawResponse = rawResponse; - this.v2RevertTransactionResponse = v2RevertTransactionResponse; + this.v2CreateTransactionResponse = v2CreateTransactionResponse; } public V2RevertTransactionResponse( @@ -105,8 +106,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2RevertTransactionResponse() { - return (Optional) v2RevertTransactionResponse; + public Optional v2CreateTransactionResponse() { + return (Optional) v2CreateTransactionResponse; } public static Builder builder() { @@ -150,9 +151,9 @@ public V2RevertTransactionResponse withRawResponse(HttpResponse raw /** * OK */ - public V2RevertTransactionResponse withV2RevertTransactionResponse(com.formance.formance_sdk.models.shared.V2RevertTransactionResponse v2RevertTransactionResponse) { - Utils.checkNotNull(v2RevertTransactionResponse, "v2RevertTransactionResponse"); - this.v2RevertTransactionResponse = Optional.ofNullable(v2RevertTransactionResponse); + public V2RevertTransactionResponse withV2CreateTransactionResponse(V2CreateTransactionResponse v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = Optional.ofNullable(v2CreateTransactionResponse); return this; } @@ -160,9 +161,9 @@ public V2RevertTransactionResponse withV2RevertTransactionResponse(com.formance. /** * OK */ - public V2RevertTransactionResponse withV2RevertTransactionResponse(Optional v2RevertTransactionResponse) { - Utils.checkNotNull(v2RevertTransactionResponse, "v2RevertTransactionResponse"); - this.v2RevertTransactionResponse = v2RevertTransactionResponse; + public V2RevertTransactionResponse withV2CreateTransactionResponse(Optional v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = v2CreateTransactionResponse; return this; } @@ -180,14 +181,14 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.headers, other.headers) && Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse) && - Utils.enhancedDeepEquals(this.v2RevertTransactionResponse, other.v2RevertTransactionResponse); + Utils.enhancedDeepEquals(this.v2CreateTransactionResponse, other.v2CreateTransactionResponse); } @Override public int hashCode() { return Utils.enhancedHash( contentType, headers, statusCode, - rawResponse, v2RevertTransactionResponse); + rawResponse, v2CreateTransactionResponse); } @Override @@ -197,7 +198,7 @@ public String toString() { "headers", headers, "statusCode", statusCode, "rawResponse", rawResponse, - "v2RevertTransactionResponse", v2RevertTransactionResponse); + "v2CreateTransactionResponse", v2CreateTransactionResponse); } @SuppressWarnings("UnusedReturnValue") @@ -211,7 +212,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2RevertTransactionResponse = Optional.empty(); + private Optional v2CreateTransactionResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -258,18 +259,18 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v2RevertTransactionResponse(com.formance.formance_sdk.models.shared.V2RevertTransactionResponse v2RevertTransactionResponse) { - Utils.checkNotNull(v2RevertTransactionResponse, "v2RevertTransactionResponse"); - this.v2RevertTransactionResponse = Optional.ofNullable(v2RevertTransactionResponse); + public Builder v2CreateTransactionResponse(V2CreateTransactionResponse v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = Optional.ofNullable(v2CreateTransactionResponse); return this; } /** * OK */ - public Builder v2RevertTransactionResponse(Optional v2RevertTransactionResponse) { - Utils.checkNotNull(v2RevertTransactionResponse, "v2RevertTransactionResponse"); - this.v2RevertTransactionResponse = v2RevertTransactionResponse; + public Builder v2CreateTransactionResponse(Optional v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = v2CreateTransactionResponse; return this; } @@ -277,7 +278,7 @@ public V2RevertTransactionResponse build() { return new V2RevertTransactionResponse( contentType, headers, statusCode, - rawResponse, v2RevertTransactionResponse); + rawResponse, v2CreateTransactionResponse); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBody.java index 96273276f..34bd5aefd 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBody.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBody.java @@ -8,7 +8,7 @@ import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.models.shared.V2QueryParams; +import com.formance.formance_sdk.models.ledger.V2QueryParams; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; import java.lang.String; @@ -20,13 +20,13 @@ public class V2RunQueryRequestBody { @JsonInclude(Include.NON_ABSENT) - @JsonProperty("cursor") - private Optional cursor; + @JsonProperty("params") + private Optional v2QueryParams; @JsonInclude(Include.NON_ABSENT) - @JsonProperty("params") - private Optional params; + @JsonProperty("cursor") + private Optional cursor; @JsonInclude(Include.NON_ABSENT) @@ -35,14 +35,14 @@ public class V2RunQueryRequestBody { @JsonCreator public V2RunQueryRequestBody( + @JsonProperty("params") Optional v2QueryParams, @JsonProperty("cursor") Optional cursor, - @JsonProperty("params") Optional params, @JsonProperty("vars") Optional> vars) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); Utils.checkNotNull(cursor, "cursor"); - Utils.checkNotNull(params, "params"); Utils.checkNotNull(vars, "vars"); + this.v2QueryParams = v2QueryParams; this.cursor = cursor; - this.params = params; this.vars = vars; } @@ -50,15 +50,15 @@ public V2RunQueryRequestBody() { this(Optional.empty(), Optional.empty(), Optional.empty()); } + @SuppressWarnings("unchecked") @JsonIgnore - public Optional cursor() { - return cursor; + public Optional v2QueryParams() { + return (Optional) v2QueryParams; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional params() { - return (Optional) params; + public Optional cursor() { + return cursor; } @SuppressWarnings("unchecked") @@ -72,29 +72,29 @@ public static Builder builder() { } - public V2RunQueryRequestBody withCursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); + public V2RunQueryRequestBody withV2QueryParams(V2QueryParams v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = Optional.ofNullable(v2QueryParams); return this; } - public V2RunQueryRequestBody withCursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; + public V2RunQueryRequestBody withV2QueryParams(Optional v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = v2QueryParams; return this; } - public V2RunQueryRequestBody withParams(V2QueryParams params) { - Utils.checkNotNull(params, "params"); - this.params = Optional.ofNullable(params); + public V2RunQueryRequestBody withCursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); return this; } - public V2RunQueryRequestBody withParams(Optional params) { - Utils.checkNotNull(params, "params"); - this.params = params; + public V2RunQueryRequestBody withCursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; return this; } @@ -121,31 +121,31 @@ public boolean equals(java.lang.Object o) { } V2RunQueryRequestBody other = (V2RunQueryRequestBody) o; return + Utils.enhancedDeepEquals(this.v2QueryParams, other.v2QueryParams) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && - Utils.enhancedDeepEquals(this.params, other.params) && Utils.enhancedDeepEquals(this.vars, other.vars); } @Override public int hashCode() { return Utils.enhancedHash( - cursor, params, vars); + v2QueryParams, cursor, vars); } @Override public String toString() { return Utils.toString(V2RunQueryRequestBody.class, + "v2QueryParams", v2QueryParams, "cursor", cursor, - "params", params, "vars", vars); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional cursor = Optional.empty(); + private Optional v2QueryParams = Optional.empty(); - private Optional params = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional> vars = Optional.empty(); @@ -154,28 +154,28 @@ private Builder() { } - public Builder cursor(String cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = Optional.ofNullable(cursor); + public Builder v2QueryParams(V2QueryParams v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = Optional.ofNullable(v2QueryParams); return this; } - public Builder cursor(Optional cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; + public Builder v2QueryParams(Optional v2QueryParams) { + Utils.checkNotNull(v2QueryParams, "v2QueryParams"); + this.v2QueryParams = v2QueryParams; return this; } - public Builder params(V2QueryParams params) { - Utils.checkNotNull(params, "params"); - this.params = Optional.ofNullable(params); + public Builder cursor(String cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = Optional.ofNullable(cursor); return this; } - public Builder params(Optional params) { - Utils.checkNotNull(params, "params"); - this.params = params; + public Builder cursor(Optional cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; return this; } @@ -195,7 +195,7 @@ public Builder vars(Optional> vars) { public V2RunQueryRequestBody build() { return new V2RunQueryRequestBody( - cursor, params, vars); + v2QueryParams, cursor, vars); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBuilder.java index f2800954f..c58e43b65 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2RunQuery; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2RunQueryRequestBuilder { private V2RunQueryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2RunQueryRequestBuilder request(V2RunQueryRequest request) { this.request = request; return this; } + + public V2RunQueryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2RunQueryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2RunQueryResponse call() { RequestOperation operation - = new V2RunQuery.Sync(sdkConfiguration, _headers); + = new V2RunQuery.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryResponseBody.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryResponseBody.java index 2708fc01f..7da60e513 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryResponseBody.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RunQueryResponseBody.java @@ -6,10 +6,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.formance.formance_sdk.models.shared.V2AccountsCursorResponse; -import com.formance.formance_sdk.models.shared.V2LogsCursorResponse; -import com.formance.formance_sdk.models.shared.V2TransactionsCursorResponse; -import com.formance.formance_sdk.models.shared.V2VolumesWithBalanceCursorResponse; +import com.formance.formance_sdk.models.ledger.V2AccountsCursorResponse; +import com.formance.formance_sdk.models.ledger.V2LogsCursorResponse; +import com.formance.formance_sdk.models.ledger.V2TransactionsCursorResponse; +import com.formance.formance_sdk.models.ledger.V2VolumesWithBalanceCursorResponse; import com.formance.formance_sdk.utils.OneOfDeserializer; import com.formance.formance_sdk.utils.TypedObject; import com.formance.formance_sdk.utils.Utils.JsonShape; @@ -57,10 +57,10 @@ public static V2RunQueryResponseBody of(V2VolumesWithBalanceCursorResponse value /** * Returns an instance of one of these types: *

    - *
  • {@code com.formance.formance_sdk.models.shared.V2TransactionsCursorResponse}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2AccountsCursorResponse}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2LogsCursorResponse}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2VolumesWithBalanceCursorResponse}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2TransactionsCursorResponse}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2AccountsCursorResponse}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2LogsCursorResponse}
  • + *
  • {@code com.formance.formance_sdk.models.ledger.V2VolumesWithBalanceCursorResponse}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowRequestBuilder.java index adf1a141f..4b8b918ff 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2RunWorkflow; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2RunWorkflowRequestBuilder { private V2RunWorkflowRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2RunWorkflowRequestBuilder request(V2RunWorkflowRequest request) { this.request = request; return this; } + + public V2RunWorkflowRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2RunWorkflowRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2RunWorkflowResponse call() { RequestOperation operation - = new V2RunWorkflow.Sync(sdkConfiguration, _headers); + = new V2RunWorkflow.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowResponse.java index cad042a90..2ce668856 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2RunWorkflowResponse.java @@ -35,14 +35,14 @@ public class V2RunWorkflowResponse implements Response { /** * The workflow instance */ - private Optional v2RunWorkflowResponse; + private Optional v2RunWorkflowResponse; @JsonCreator public V2RunWorkflowResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v2RunWorkflowResponse) { + Optional v2RunWorkflowResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v2RunWorkflowResponse() { - return (Optional) v2RunWorkflowResponse; + public Optional v2RunWorkflowResponse() { + return (Optional) v2RunWorkflowResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V2RunWorkflowResponse withRawResponse(HttpResponse rawRespon /** * The workflow instance */ - public V2RunWorkflowResponse withV2RunWorkflowResponse(com.formance.formance_sdk.models.shared.V2RunWorkflowResponse v2RunWorkflowResponse) { + public V2RunWorkflowResponse withV2RunWorkflowResponse(com.formance.formance_sdk.models.orchestration.V2RunWorkflowResponse v2RunWorkflowResponse) { Utils.checkNotNull(v2RunWorkflowResponse, "v2RunWorkflowResponse"); this.v2RunWorkflowResponse = Optional.ofNullable(v2RunWorkflowResponse); return this; @@ -139,7 +139,7 @@ public V2RunWorkflowResponse withV2RunWorkflowResponse(com.formance.formance_sdk /** * The workflow instance */ - public V2RunWorkflowResponse withV2RunWorkflowResponse(Optional v2RunWorkflowResponse) { + public V2RunWorkflowResponse withV2RunWorkflowResponse(Optional v2RunWorkflowResponse) { Utils.checkNotNull(v2RunWorkflowResponse, "v2RunWorkflowResponse"); this.v2RunWorkflowResponse = v2RunWorkflowResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v2RunWorkflowResponse = Optional.empty(); + private Optional v2RunWorkflowResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * The workflow instance */ - public Builder v2RunWorkflowResponse(com.formance.formance_sdk.models.shared.V2RunWorkflowResponse v2RunWorkflowResponse) { + public Builder v2RunWorkflowResponse(com.formance.formance_sdk.models.orchestration.V2RunWorkflowResponse v2RunWorkflowResponse) { Utils.checkNotNull(v2RunWorkflowResponse, "v2RunWorkflowResponse"); this.v2RunWorkflowResponse = Optional.ofNullable(v2RunWorkflowResponse); return this; @@ -235,7 +235,7 @@ public Builder v2RunWorkflowResponse(com.formance.formance_sdk.models.shared.V2R /** * The workflow instance */ - public Builder v2RunWorkflowResponse(Optional v2RunWorkflowResponse) { + public Builder v2RunWorkflowResponse(Optional v2RunWorkflowResponse) { Utils.checkNotNull(v2RunWorkflowResponse, "v2RunWorkflowResponse"); this.v2RunWorkflowResponse = v2RunWorkflowResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2SendEventRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2SendEventRequestBuilder.java index d19116e97..52bed21eb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2SendEventRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2SendEventRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2SendEvent; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2SendEventRequestBuilder { private V2SendEventRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2SendEventRequestBuilder request(V2SendEventRequest request) { this.request = request; return this; } + + public V2SendEventRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2SendEventRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2SendEventResponse call() { RequestOperation operation - = new V2SendEvent.Sync(sdkConfiguration, _headers); + = new V2SendEvent.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2StartPipelineRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2StartPipelineRequestBuilder.java index a7c26f181..59d335775 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2StartPipelineRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2StartPipelineRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2StartPipeline; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2StartPipelineRequestBuilder { private V2StartPipelineRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2StartPipelineRequestBuilder request(V2StartPipelineRequest request) { this.request = request; return this; } + + public V2StartPipelineRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2StartPipelineRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2StartPipelineResponse call() { RequestOperation operation - = new V2StartPipeline.Sync(sdkConfiguration, _headers); + = new V2StartPipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2StopPipelineRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2StopPipelineRequestBuilder.java index 8727426f4..2bcb20364 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2StopPipelineRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2StopPipelineRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2StopPipeline; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2StopPipelineRequestBuilder { private V2StopPipelineRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2StopPipelineRequestBuilder request(V2StopPipelineRequest request) { this.request = request; return this; } + + public V2StopPipelineRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2StopPipelineRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2StopPipelineResponse call() { RequestOperation operation - = new V2StopPipeline.Sync(sdkConfiguration, _headers); + = new V2StopPipeline.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequest.java index a33bb9336..c51e3f8d0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2CreateExporterRequest; +import com.formance.formance_sdk.models.ledger.V2ExporterConfiguration2; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -15,7 +15,7 @@ public class V2UpdateExporterRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private V2CreateExporterRequest v2CreateExporterRequest; + private V2ExporterConfiguration2 v2ExporterConfiguration; /** * The exporter id @@ -25,17 +25,17 @@ public class V2UpdateExporterRequest { @JsonCreator public V2UpdateExporterRequest( - V2CreateExporterRequest v2CreateExporterRequest, + V2ExporterConfiguration2 v2ExporterConfiguration, String exporterID) { - Utils.checkNotNull(v2CreateExporterRequest, "v2CreateExporterRequest"); + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); Utils.checkNotNull(exporterID, "exporterID"); - this.v2CreateExporterRequest = v2CreateExporterRequest; + this.v2ExporterConfiguration = v2ExporterConfiguration; this.exporterID = exporterID; } @JsonIgnore - public V2CreateExporterRequest v2CreateExporterRequest() { - return v2CreateExporterRequest; + public V2ExporterConfiguration2 v2ExporterConfiguration() { + return v2ExporterConfiguration; } /** @@ -51,9 +51,9 @@ public static Builder builder() { } - public V2UpdateExporterRequest withV2CreateExporterRequest(V2CreateExporterRequest v2CreateExporterRequest) { - Utils.checkNotNull(v2CreateExporterRequest, "v2CreateExporterRequest"); - this.v2CreateExporterRequest = v2CreateExporterRequest; + public V2UpdateExporterRequest withV2ExporterConfiguration(V2ExporterConfiguration2 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; return this; } @@ -76,27 +76,27 @@ public boolean equals(java.lang.Object o) { } V2UpdateExporterRequest other = (V2UpdateExporterRequest) o; return - Utils.enhancedDeepEquals(this.v2CreateExporterRequest, other.v2CreateExporterRequest) && + Utils.enhancedDeepEquals(this.v2ExporterConfiguration, other.v2ExporterConfiguration) && Utils.enhancedDeepEquals(this.exporterID, other.exporterID); } @Override public int hashCode() { return Utils.enhancedHash( - v2CreateExporterRequest, exporterID); + v2ExporterConfiguration, exporterID); } @Override public String toString() { return Utils.toString(V2UpdateExporterRequest.class, - "v2CreateExporterRequest", v2CreateExporterRequest, + "v2ExporterConfiguration", v2ExporterConfiguration, "exporterID", exporterID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private V2CreateExporterRequest v2CreateExporterRequest; + private V2ExporterConfiguration2 v2ExporterConfiguration; private String exporterID; @@ -105,9 +105,9 @@ private Builder() { } - public Builder v2CreateExporterRequest(V2CreateExporterRequest v2CreateExporterRequest) { - Utils.checkNotNull(v2CreateExporterRequest, "v2CreateExporterRequest"); - this.v2CreateExporterRequest = v2CreateExporterRequest; + public Builder v2ExporterConfiguration(V2ExporterConfiguration2 v2ExporterConfiguration) { + Utils.checkNotNull(v2ExporterConfiguration, "v2ExporterConfiguration"); + this.v2ExporterConfiguration = v2ExporterConfiguration; return this; } @@ -124,7 +124,7 @@ public Builder exporterID(String exporterID) { public V2UpdateExporterRequest build() { return new V2UpdateExporterRequest( - v2CreateExporterRequest, exporterID); + v2ExporterConfiguration, exporterID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequestBuilder.java index 8eb99ef1f..7be165816 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateExporterRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2UpdateExporter; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2UpdateExporterRequestBuilder { private V2UpdateExporterRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2UpdateExporterRequestBuilder request(V2UpdateExporterRequest request) { this.request = request; return this; } + + public V2UpdateExporterRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2UpdateExporterRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2UpdateExporterResponse call() { RequestOperation operation - = new V2UpdateExporter.Sync(sdkConfiguration, _headers); + = new V2UpdateExporter.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataRequestBuilder.java index 5cbe74d55..db2de4491 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V2UpdateLedgerMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V2UpdateLedgerMetadataRequestBuilder { private V2UpdateLedgerMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V2UpdateLedgerMetadataRequestBuilder request(V2UpdateLedgerMetadataReques this.request = request; return this; } + + public V2UpdateLedgerMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V2UpdateLedgerMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V2UpdateLedgerMetadataResponse call() { RequestOperation operation - = new V2UpdateLedgerMetadata.Sync(sdkConfiguration, _headers); + = new V2UpdateLedgerMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataResponse.java index 1df2da8c6..11635db9d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V2UpdateLedgerMetadataResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolRequestBuilder.java index d38e303e0..0b310cfa3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3AddAccountToPoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3AddAccountToPool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3AddAccountToPoolRequestBuilder { private V3AddAccountToPoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3AddAccountToPoolRequestBuilder request(V3AddAccountToPoolRequest reques this.request = request; return this; } + + public V3AddAccountToPoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3AddAccountToPoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3AddAccountToPoolResponse call() { RequestOperation operation - = new V3AddAccountToPool.Sync(sdkConfiguration, _headers); + = new V3AddAccountToPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3AddBankAccountToPaymentServiceUserRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3AddBankAccountToPaymentServiceUserRequestBuilder.java index 1f70eac33..f78c94c26 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3AddBankAccountToPaymentServiceUserRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3AddBankAccountToPaymentServiceUserRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3AddBankAccountToPaymentServiceUser; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3AddBankAccountToPaymentServiceUserRequestBuilder { private V3AddBankAccountToPaymentServiceUserRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3AddBankAccountToPaymentServiceUserRequestBuilder request(V3AddBankAccou this.request = request; return this; } + + public V3AddBankAccountToPaymentServiceUserRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3AddBankAccountToPaymentServiceUserRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3AddBankAccountToPaymentServiceUserResponse call() { RequestOperation operation - = new V3AddBankAccountToPaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3AddBankAccountToPaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationRequestBuilder.java index 141bfc6c6..ad7b82f4a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ApprovePaymentInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ApprovePaymentInitiationRequestBuilder { private V3ApprovePaymentInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ApprovePaymentInitiationRequestBuilder request(V3ApprovePaymentInitiati this.request = request; return this; } + + public V3ApprovePaymentInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ApprovePaymentInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ApprovePaymentInitiationResponse call() { RequestOperation operation - = new V3ApprovePaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3ApprovePaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationResponse.java index 7168abf50..a3d879d3d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ApprovePaymentInitiationResponse.java @@ -35,14 +35,14 @@ public class V3ApprovePaymentInitiationResponse implements Response { /** * Accepted */ - private Optional v3ApprovePaymentInitiationResponse; + private Optional v3ApprovePaymentInitiationResponse; @JsonCreator public V3ApprovePaymentInitiationResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3ApprovePaymentInitiationResponse) { + Optional v3ApprovePaymentInitiationResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ApprovePaymentInitiationResponse() { - return (Optional) v3ApprovePaymentInitiationResponse; + public Optional v3ApprovePaymentInitiationResponse() { + return (Optional) v3ApprovePaymentInitiationResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3ApprovePaymentInitiationResponse withRawResponse(HttpResponse v3ApprovePaymentInitiationResponse) { + public V3ApprovePaymentInitiationResponse withV3ApprovePaymentInitiationResponse(Optional v3ApprovePaymentInitiationResponse) { Utils.checkNotNull(v3ApprovePaymentInitiationResponse, "v3ApprovePaymentInitiationResponse"); this.v3ApprovePaymentInitiationResponse = v3ApprovePaymentInitiationResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3ApprovePaymentInitiationResponse = Optional.empty(); + private Optional v3ApprovePaymentInitiationResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3ApprovePaymentInitiationResponse(com.formance.formance_sdk.models.shared.V3ApprovePaymentInitiationResponse v3ApprovePaymentInitiationResponse) { + public Builder v3ApprovePaymentInitiationResponse(com.formance.formance_sdk.models.payments.V3ApprovePaymentInitiationResponse v3ApprovePaymentInitiationResponse) { Utils.checkNotNull(v3ApprovePaymentInitiationResponse, "v3ApprovePaymentInitiationResponse"); this.v3ApprovePaymentInitiationResponse = Optional.ofNullable(v3ApprovePaymentInitiationResponse); return this; @@ -235,7 +235,7 @@ public Builder v3ApprovePaymentInitiationResponse(com.formance.formance_sdk.mode /** * Accepted */ - public Builder v3ApprovePaymentInitiationResponse(Optional v3ApprovePaymentInitiationResponse) { + public Builder v3ApprovePaymentInitiationResponse(Optional v3ApprovePaymentInitiationResponse) { Utils.checkNotNull(v3ApprovePaymentInitiationResponse, "v3ApprovePaymentInitiationResponse"); this.v3ApprovePaymentInitiationResponse = v3ApprovePaymentInitiationResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountRequestBuilder.java index 556ce2972..7858e56e5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V3CreateAccountRequest; +import com.formance.formance_sdk.models.payments.V3CreateAccountRequest; import com.formance.formance_sdk.operations.V3CreateAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V3CreateAccountRequestBuilder { private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -33,11 +35,23 @@ public V3CreateAccountRequestBuilder request(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3CreateAccountResponse call() { RequestOperation, V3CreateAccountResponse> operation - = new V3CreateAccount.Sync(sdkConfiguration, _headers); + = new V3CreateAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountResponse.java index 3af87f770..92cf05de0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateAccountResponse.java @@ -35,14 +35,14 @@ public class V3CreateAccountResponse implements Response { /** * Created */ - private Optional v3CreateAccountResponse; + private Optional v3CreateAccountResponse; @JsonCreator public V3CreateAccountResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3CreateAccountResponse) { + Optional v3CreateAccountResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3CreateAccountResponse() { - return (Optional) v3CreateAccountResponse; + public Optional v3CreateAccountResponse() { + return (Optional) v3CreateAccountResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3CreateAccountResponse withRawResponse(HttpResponse rawResp /** * Created */ - public V3CreateAccountResponse withV3CreateAccountResponse(com.formance.formance_sdk.models.shared.V3CreateAccountResponse v3CreateAccountResponse) { + public V3CreateAccountResponse withV3CreateAccountResponse(com.formance.formance_sdk.models.payments.V3CreateAccountResponse v3CreateAccountResponse) { Utils.checkNotNull(v3CreateAccountResponse, "v3CreateAccountResponse"); this.v3CreateAccountResponse = Optional.ofNullable(v3CreateAccountResponse); return this; @@ -139,7 +139,7 @@ public V3CreateAccountResponse withV3CreateAccountResponse(com.formance.formance /** * Created */ - public V3CreateAccountResponse withV3CreateAccountResponse(Optional v3CreateAccountResponse) { + public V3CreateAccountResponse withV3CreateAccountResponse(Optional v3CreateAccountResponse) { Utils.checkNotNull(v3CreateAccountResponse, "v3CreateAccountResponse"); this.v3CreateAccountResponse = v3CreateAccountResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3CreateAccountResponse = Optional.empty(); + private Optional v3CreateAccountResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created */ - public Builder v3CreateAccountResponse(com.formance.formance_sdk.models.shared.V3CreateAccountResponse v3CreateAccountResponse) { + public Builder v3CreateAccountResponse(com.formance.formance_sdk.models.payments.V3CreateAccountResponse v3CreateAccountResponse) { Utils.checkNotNull(v3CreateAccountResponse, "v3CreateAccountResponse"); this.v3CreateAccountResponse = Optional.ofNullable(v3CreateAccountResponse); return this; @@ -235,7 +235,7 @@ public Builder v3CreateAccountResponse(com.formance.formance_sdk.models.shared.V /** * Created */ - public Builder v3CreateAccountResponse(Optional v3CreateAccountResponse) { + public Builder v3CreateAccountResponse(Optional v3CreateAccountResponse) { Utils.checkNotNull(v3CreateAccountResponse, "v3CreateAccountResponse"); this.v3CreateAccountResponse = v3CreateAccountResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountRequestBuilder.java index c4f7be134..5aa2c1db1 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V3CreateBankAccountRequest; +import com.formance.formance_sdk.models.payments.V3CreateBankAccountRequest; import com.formance.formance_sdk.operations.V3CreateBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V3CreateBankAccountRequestBuilder { private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -33,11 +35,23 @@ public V3CreateBankAccountRequestBuilder request(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3CreateBankAccountResponse call() { RequestOperation, V3CreateBankAccountResponse> operation - = new V3CreateBankAccount.Sync(sdkConfiguration, _headers); + = new V3CreateBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountResponse.java index 61c7e15aa..e96e26307 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateBankAccountResponse.java @@ -35,14 +35,14 @@ public class V3CreateBankAccountResponse implements Response { /** * Created */ - private Optional v3CreateBankAccountResponse; + private Optional v3CreateBankAccountResponse; @JsonCreator public V3CreateBankAccountResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3CreateBankAccountResponse) { + Optional v3CreateBankAccountResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3CreateBankAccountResponse() { - return (Optional) v3CreateBankAccountResponse; + public Optional v3CreateBankAccountResponse() { + return (Optional) v3CreateBankAccountResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3CreateBankAccountResponse withRawResponse(HttpResponse raw /** * Created */ - public V3CreateBankAccountResponse withV3CreateBankAccountResponse(com.formance.formance_sdk.models.shared.V3CreateBankAccountResponse v3CreateBankAccountResponse) { + public V3CreateBankAccountResponse withV3CreateBankAccountResponse(com.formance.formance_sdk.models.payments.V3CreateBankAccountResponse v3CreateBankAccountResponse) { Utils.checkNotNull(v3CreateBankAccountResponse, "v3CreateBankAccountResponse"); this.v3CreateBankAccountResponse = Optional.ofNullable(v3CreateBankAccountResponse); return this; @@ -139,7 +139,7 @@ public V3CreateBankAccountResponse withV3CreateBankAccountResponse(com.formance. /** * Created */ - public V3CreateBankAccountResponse withV3CreateBankAccountResponse(Optional v3CreateBankAccountResponse) { + public V3CreateBankAccountResponse withV3CreateBankAccountResponse(Optional v3CreateBankAccountResponse) { Utils.checkNotNull(v3CreateBankAccountResponse, "v3CreateBankAccountResponse"); this.v3CreateBankAccountResponse = v3CreateBankAccountResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3CreateBankAccountResponse = Optional.empty(); + private Optional v3CreateBankAccountResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created */ - public Builder v3CreateBankAccountResponse(com.formance.formance_sdk.models.shared.V3CreateBankAccountResponse v3CreateBankAccountResponse) { + public Builder v3CreateBankAccountResponse(com.formance.formance_sdk.models.payments.V3CreateBankAccountResponse v3CreateBankAccountResponse) { Utils.checkNotNull(v3CreateBankAccountResponse, "v3CreateBankAccountResponse"); this.v3CreateBankAccountResponse = Optional.ofNullable(v3CreateBankAccountResponse); return this; @@ -235,7 +235,7 @@ public Builder v3CreateBankAccountResponse(com.formance.formance_sdk.models.shar /** * Created */ - public Builder v3CreateBankAccountResponse(Optional v3CreateBankAccountResponse) { + public Builder v3CreateBankAccountResponse(Optional v3CreateBankAccountResponse) { Utils.checkNotNull(v3CreateBankAccountResponse, "v3CreateBankAccountResponse"); this.v3CreateBankAccountResponse = v3CreateBankAccountResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequest.java index acc4762cf..93b2c283a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserCreateLinkRequest; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserCreateLinkRequest; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequestBuilder.java index 5bba06946..684f4f591 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3CreateLinkForPaymentServiceUser; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3CreateLinkForPaymentServiceUserRequestBuilder { private V3CreateLinkForPaymentServiceUserRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3CreateLinkForPaymentServiceUserRequestBuilder request(V3CreateLinkForPa this.request = request; return this; } + + public V3CreateLinkForPaymentServiceUserRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3CreateLinkForPaymentServiceUserRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3CreateLinkForPaymentServiceUserResponse call() { RequestOperation operation - = new V3CreateLinkForPaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3CreateLinkForPaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserResponse.java index 32e2e8d6e..9216ee42c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreateLinkForPaymentServiceUserResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserCreateLinkResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserCreateLinkResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentRequestBuilder.java index 1f64e47da..ece4124b4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V3CreatePaymentRequest; +import com.formance.formance_sdk.models.payments.V3CreatePaymentRequest; import com.formance.formance_sdk.operations.V3CreatePayment; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V3CreatePaymentRequestBuilder { private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -33,11 +35,23 @@ public V3CreatePaymentRequestBuilder request(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3CreatePaymentResponse call() { RequestOperation, V3CreatePaymentResponse> operation - = new V3CreatePayment.Sync(sdkConfiguration, _headers); + = new V3CreatePayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentResponse.java index 7ccfadc7d..fcc924cab 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentResponse.java @@ -35,14 +35,14 @@ public class V3CreatePaymentResponse implements Response { /** * Created */ - private Optional v3CreatePaymentResponse; + private Optional v3CreatePaymentResponse; @JsonCreator public V3CreatePaymentResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3CreatePaymentResponse) { + Optional v3CreatePaymentResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3CreatePaymentResponse() { - return (Optional) v3CreatePaymentResponse; + public Optional v3CreatePaymentResponse() { + return (Optional) v3CreatePaymentResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3CreatePaymentResponse withRawResponse(HttpResponse rawResp /** * Created */ - public V3CreatePaymentResponse withV3CreatePaymentResponse(com.formance.formance_sdk.models.shared.V3CreatePaymentResponse v3CreatePaymentResponse) { + public V3CreatePaymentResponse withV3CreatePaymentResponse(com.formance.formance_sdk.models.payments.V3CreatePaymentResponse v3CreatePaymentResponse) { Utils.checkNotNull(v3CreatePaymentResponse, "v3CreatePaymentResponse"); this.v3CreatePaymentResponse = Optional.ofNullable(v3CreatePaymentResponse); return this; @@ -139,7 +139,7 @@ public V3CreatePaymentResponse withV3CreatePaymentResponse(com.formance.formance /** * Created */ - public V3CreatePaymentResponse withV3CreatePaymentResponse(Optional v3CreatePaymentResponse) { + public V3CreatePaymentResponse withV3CreatePaymentResponse(Optional v3CreatePaymentResponse) { Utils.checkNotNull(v3CreatePaymentResponse, "v3CreatePaymentResponse"); this.v3CreatePaymentResponse = v3CreatePaymentResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3CreatePaymentResponse = Optional.empty(); + private Optional v3CreatePaymentResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created */ - public Builder v3CreatePaymentResponse(com.formance.formance_sdk.models.shared.V3CreatePaymentResponse v3CreatePaymentResponse) { + public Builder v3CreatePaymentResponse(com.formance.formance_sdk.models.payments.V3CreatePaymentResponse v3CreatePaymentResponse) { Utils.checkNotNull(v3CreatePaymentResponse, "v3CreatePaymentResponse"); this.v3CreatePaymentResponse = Optional.ofNullable(v3CreatePaymentResponse); return this; @@ -235,7 +235,7 @@ public Builder v3CreatePaymentResponse(com.formance.formance_sdk.models.shared.V /** * Created */ - public Builder v3CreatePaymentResponse(Optional v3CreatePaymentResponse) { + public Builder v3CreatePaymentResponse(Optional v3CreatePaymentResponse) { Utils.checkNotNull(v3CreatePaymentResponse, "v3CreatePaymentResponse"); this.v3CreatePaymentResponse = v3CreatePaymentResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserRequestBuilder.java index c1b35da40..c444f7c2b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V3CreatePaymentServiceUserRequest; +import com.formance.formance_sdk.models.payments.V3CreatePaymentServiceUserRequest; import com.formance.formance_sdk.operations.V3CreatePaymentServiceUser; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V3CreatePaymentServiceUserRequestBuilder { private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -33,11 +35,23 @@ public V3CreatePaymentServiceUserRequestBuilder request(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3CreatePaymentServiceUserResponse call() { RequestOperation, V3CreatePaymentServiceUserResponse> operation - = new V3CreatePaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3CreatePaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserResponse.java index 8ebe30c8d..ede1639e3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePaymentServiceUserResponse.java @@ -35,14 +35,14 @@ public class V3CreatePaymentServiceUserResponse implements Response { /** * Created */ - private Optional v3CreatePaymentServiceUserResponse; + private Optional v3CreatePaymentServiceUserResponse; @JsonCreator public V3CreatePaymentServiceUserResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3CreatePaymentServiceUserResponse) { + Optional v3CreatePaymentServiceUserResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3CreatePaymentServiceUserResponse() { - return (Optional) v3CreatePaymentServiceUserResponse; + public Optional v3CreatePaymentServiceUserResponse() { + return (Optional) v3CreatePaymentServiceUserResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3CreatePaymentServiceUserResponse withRawResponse(HttpResponse v3CreatePaymentServiceUserResponse) { + public V3CreatePaymentServiceUserResponse withV3CreatePaymentServiceUserResponse(Optional v3CreatePaymentServiceUserResponse) { Utils.checkNotNull(v3CreatePaymentServiceUserResponse, "v3CreatePaymentServiceUserResponse"); this.v3CreatePaymentServiceUserResponse = v3CreatePaymentServiceUserResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3CreatePaymentServiceUserResponse = Optional.empty(); + private Optional v3CreatePaymentServiceUserResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created */ - public Builder v3CreatePaymentServiceUserResponse(com.formance.formance_sdk.models.shared.V3CreatePaymentServiceUserResponse v3CreatePaymentServiceUserResponse) { + public Builder v3CreatePaymentServiceUserResponse(com.formance.formance_sdk.models.payments.V3CreatePaymentServiceUserResponse v3CreatePaymentServiceUserResponse) { Utils.checkNotNull(v3CreatePaymentServiceUserResponse, "v3CreatePaymentServiceUserResponse"); this.v3CreatePaymentServiceUserResponse = Optional.ofNullable(v3CreatePaymentServiceUserResponse); return this; @@ -235,7 +235,7 @@ public Builder v3CreatePaymentServiceUserResponse(com.formance.formance_sdk.mode /** * Created */ - public Builder v3CreatePaymentServiceUserResponse(Optional v3CreatePaymentServiceUserResponse) { + public Builder v3CreatePaymentServiceUserResponse(Optional v3CreatePaymentServiceUserResponse) { Utils.checkNotNull(v3CreatePaymentServiceUserResponse, "v3CreatePaymentServiceUserResponse"); this.v3CreatePaymentServiceUserResponse = v3CreatePaymentServiceUserResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolRequestBuilder.java index a1301ef9b..196ae0324 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolRequestBuilder.java @@ -6,15 +6,17 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.models.shared.V3CreatePoolRequest; +import com.formance.formance_sdk.models.payments.V3CreatePoolRequest; import com.formance.formance_sdk.operations.V3CreatePool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; import java.util.Optional; public class V3CreatePoolRequestBuilder { private Optional request = Optional.empty(); + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -33,11 +35,23 @@ public V3CreatePoolRequestBuilder request(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3CreatePoolResponse call() { RequestOperation, V3CreatePoolResponse> operation - = new V3CreatePool.Sync(sdkConfiguration, _headers); + = new V3CreatePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolResponse.java index 896dedf5a..b5b574cca 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3CreatePoolResponse.java @@ -35,14 +35,14 @@ public class V3CreatePoolResponse implements Response { /** * Created */ - private Optional v3CreatePoolResponse; + private Optional v3CreatePoolResponse; @JsonCreator public V3CreatePoolResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3CreatePoolResponse) { + Optional v3CreatePoolResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3CreatePoolResponse() { - return (Optional) v3CreatePoolResponse; + public Optional v3CreatePoolResponse() { + return (Optional) v3CreatePoolResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3CreatePoolResponse withRawResponse(HttpResponse rawRespons /** * Created */ - public V3CreatePoolResponse withV3CreatePoolResponse(com.formance.formance_sdk.models.shared.V3CreatePoolResponse v3CreatePoolResponse) { + public V3CreatePoolResponse withV3CreatePoolResponse(com.formance.formance_sdk.models.payments.V3CreatePoolResponse v3CreatePoolResponse) { Utils.checkNotNull(v3CreatePoolResponse, "v3CreatePoolResponse"); this.v3CreatePoolResponse = Optional.ofNullable(v3CreatePoolResponse); return this; @@ -139,7 +139,7 @@ public V3CreatePoolResponse withV3CreatePoolResponse(com.formance.formance_sdk.m /** * Created */ - public V3CreatePoolResponse withV3CreatePoolResponse(Optional v3CreatePoolResponse) { + public V3CreatePoolResponse withV3CreatePoolResponse(Optional v3CreatePoolResponse) { Utils.checkNotNull(v3CreatePoolResponse, "v3CreatePoolResponse"); this.v3CreatePoolResponse = v3CreatePoolResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3CreatePoolResponse = Optional.empty(); + private Optional v3CreatePoolResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Created */ - public Builder v3CreatePoolResponse(com.formance.formance_sdk.models.shared.V3CreatePoolResponse v3CreatePoolResponse) { + public Builder v3CreatePoolResponse(com.formance.formance_sdk.models.payments.V3CreatePoolResponse v3CreatePoolResponse) { Utils.checkNotNull(v3CreatePoolResponse, "v3CreatePoolResponse"); this.v3CreatePoolResponse = Optional.ofNullable(v3CreatePoolResponse); return this; @@ -235,7 +235,7 @@ public Builder v3CreatePoolResponse(com.formance.formance_sdk.models.shared.V3Cr /** * Created */ - public Builder v3CreatePoolResponse(Optional v3CreatePoolResponse) { + public Builder v3CreatePoolResponse(Optional v3CreatePoolResponse) { Utils.checkNotNull(v3CreatePoolResponse, "v3CreatePoolResponse"); this.v3CreatePoolResponse = v3CreatePoolResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationRequestBuilder.java index 345972ebf..635e7c56b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3DeletePaymentInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3DeletePaymentInitiationRequestBuilder { private V3DeletePaymentInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3DeletePaymentInitiationRequestBuilder request(V3DeletePaymentInitiation this.request = request; return this; } + + public V3DeletePaymentInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3DeletePaymentInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3DeletePaymentInitiationResponse call() { RequestOperation operation - = new V3DeletePaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder.java index 2eda3f431..46900ba35 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3DeletePaymentServiceUserConnectionFromConnectorID; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder { private V3DeletePaymentServiceUserConnectionFromConnectorIDRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder request this.request = request; return this; } + + public V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3DeletePaymentServiceUserConnectionFromConnectorIDRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3DeletePaymentServiceUserConnectionFromConnectorIDResponse call() { RequestOperation operation - = new V3DeletePaymentServiceUserConnectionFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentServiceUserConnectionFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDResponse.java index 6f60fcf56..7a2c8ee1c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectionFromConnectorIDResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserDeleteConnectionResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserDeleteConnectionResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorRequestBuilder.java index 978fd13d2..a02841dcd 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3DeletePaymentServiceUserConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3DeletePaymentServiceUserConnectorRequestBuilder { private V3DeletePaymentServiceUserConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3DeletePaymentServiceUserConnectorRequestBuilder request(V3DeletePayment this.request = request; return this; } + + public V3DeletePaymentServiceUserConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3DeletePaymentServiceUserConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3DeletePaymentServiceUserConnectorResponse call() { RequestOperation operation - = new V3DeletePaymentServiceUserConnector.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentServiceUserConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorResponse.java index f76158081..8583af5d7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserConnectorResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserDeleteConnectorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserDeleteConnectorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserRequestBuilder.java index 9b7496cf2..a95296094 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3DeletePaymentServiceUser; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3DeletePaymentServiceUserRequestBuilder { private V3DeletePaymentServiceUserRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3DeletePaymentServiceUserRequestBuilder request(V3DeletePaymentServiceUs this.request = request; return this; } + + public V3DeletePaymentServiceUserRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3DeletePaymentServiceUserRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3DeletePaymentServiceUserResponse call() { RequestOperation operation - = new V3DeletePaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3DeletePaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserResponse.java index ac5c2f521..66a2e13e3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePaymentServiceUserResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserDeleteResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserDeleteResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolRequestBuilder.java index b08176d42..e60aa5820 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3DeletePoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3DeletePool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3DeletePoolRequestBuilder { private V3DeletePoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3DeletePoolRequestBuilder request(V3DeletePoolRequest request) { this.request = request; return this; } + + public V3DeletePoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3DeletePoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3DeletePoolResponse call() { RequestOperation operation - = new V3DeletePool.Sync(sdkConfiguration, _headers); + = new V3DeletePool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequest.java index 0c5867f39..6c2db8f66 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequest.java @@ -16,7 +16,7 @@ public class V3ForwardBankAccountRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3ForwardBankAccountRequest; + private Optional v3ForwardBankAccountRequest; /** * The bank account ID @@ -26,7 +26,7 @@ public class V3ForwardBankAccountRequest { @JsonCreator public V3ForwardBankAccountRequest( - Optional v3ForwardBankAccountRequest, + Optional v3ForwardBankAccountRequest, String bankAccountID) { Utils.checkNotNull(v3ForwardBankAccountRequest, "v3ForwardBankAccountRequest"); Utils.checkNotNull(bankAccountID, "bankAccountID"); @@ -41,8 +41,8 @@ public V3ForwardBankAccountRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ForwardBankAccountRequest() { - return (Optional) v3ForwardBankAccountRequest; + public Optional v3ForwardBankAccountRequest() { + return (Optional) v3ForwardBankAccountRequest; } /** @@ -58,14 +58,14 @@ public static Builder builder() { } - public V3ForwardBankAccountRequest withV3ForwardBankAccountRequest(com.formance.formance_sdk.models.shared.V3ForwardBankAccountRequest v3ForwardBankAccountRequest) { + public V3ForwardBankAccountRequest withV3ForwardBankAccountRequest(com.formance.formance_sdk.models.payments.V3ForwardBankAccountRequest v3ForwardBankAccountRequest) { Utils.checkNotNull(v3ForwardBankAccountRequest, "v3ForwardBankAccountRequest"); this.v3ForwardBankAccountRequest = Optional.ofNullable(v3ForwardBankAccountRequest); return this; } - public V3ForwardBankAccountRequest withV3ForwardBankAccountRequest(Optional v3ForwardBankAccountRequest) { + public V3ForwardBankAccountRequest withV3ForwardBankAccountRequest(Optional v3ForwardBankAccountRequest) { Utils.checkNotNull(v3ForwardBankAccountRequest, "v3ForwardBankAccountRequest"); this.v3ForwardBankAccountRequest = v3ForwardBankAccountRequest; return this; @@ -110,7 +110,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3ForwardBankAccountRequest = Optional.empty(); + private Optional v3ForwardBankAccountRequest = Optional.empty(); private String bankAccountID; @@ -119,13 +119,13 @@ private Builder() { } - public Builder v3ForwardBankAccountRequest(com.formance.formance_sdk.models.shared.V3ForwardBankAccountRequest v3ForwardBankAccountRequest) { + public Builder v3ForwardBankAccountRequest(com.formance.formance_sdk.models.payments.V3ForwardBankAccountRequest v3ForwardBankAccountRequest) { Utils.checkNotNull(v3ForwardBankAccountRequest, "v3ForwardBankAccountRequest"); this.v3ForwardBankAccountRequest = Optional.ofNullable(v3ForwardBankAccountRequest); return this; } - public Builder v3ForwardBankAccountRequest(Optional v3ForwardBankAccountRequest) { + public Builder v3ForwardBankAccountRequest(Optional v3ForwardBankAccountRequest) { Utils.checkNotNull(v3ForwardBankAccountRequest, "v3ForwardBankAccountRequest"); this.v3ForwardBankAccountRequest = v3ForwardBankAccountRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequestBuilder.java index f5ba6f03e..1cb2c18e0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ForwardBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ForwardBankAccountRequestBuilder { private V3ForwardBankAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ForwardBankAccountRequestBuilder request(V3ForwardBankAccountRequest re this.request = request; return this; } + + public V3ForwardBankAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ForwardBankAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ForwardBankAccountResponse call() { RequestOperation operation - = new V3ForwardBankAccount.Sync(sdkConfiguration, _headers); + = new V3ForwardBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountResponse.java index 01bd56757..9e30fb974 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardBankAccountResponse.java @@ -35,14 +35,14 @@ public class V3ForwardBankAccountResponse implements Response { /** * Accepted */ - private Optional v3ForwardBankAccountResponse; + private Optional v3ForwardBankAccountResponse; @JsonCreator public V3ForwardBankAccountResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3ForwardBankAccountResponse) { + Optional v3ForwardBankAccountResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ForwardBankAccountResponse() { - return (Optional) v3ForwardBankAccountResponse; + public Optional v3ForwardBankAccountResponse() { + return (Optional) v3ForwardBankAccountResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3ForwardBankAccountResponse withRawResponse(HttpResponse ra /** * Accepted */ - public V3ForwardBankAccountResponse withV3ForwardBankAccountResponse(com.formance.formance_sdk.models.shared.V3ForwardBankAccountResponse v3ForwardBankAccountResponse) { + public V3ForwardBankAccountResponse withV3ForwardBankAccountResponse(com.formance.formance_sdk.models.payments.V3ForwardBankAccountResponse v3ForwardBankAccountResponse) { Utils.checkNotNull(v3ForwardBankAccountResponse, "v3ForwardBankAccountResponse"); this.v3ForwardBankAccountResponse = Optional.ofNullable(v3ForwardBankAccountResponse); return this; @@ -139,7 +139,7 @@ public V3ForwardBankAccountResponse withV3ForwardBankAccountResponse(com.formanc /** * Accepted */ - public V3ForwardBankAccountResponse withV3ForwardBankAccountResponse(Optional v3ForwardBankAccountResponse) { + public V3ForwardBankAccountResponse withV3ForwardBankAccountResponse(Optional v3ForwardBankAccountResponse) { Utils.checkNotNull(v3ForwardBankAccountResponse, "v3ForwardBankAccountResponse"); this.v3ForwardBankAccountResponse = v3ForwardBankAccountResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3ForwardBankAccountResponse = Optional.empty(); + private Optional v3ForwardBankAccountResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3ForwardBankAccountResponse(com.formance.formance_sdk.models.shared.V3ForwardBankAccountResponse v3ForwardBankAccountResponse) { + public Builder v3ForwardBankAccountResponse(com.formance.formance_sdk.models.payments.V3ForwardBankAccountResponse v3ForwardBankAccountResponse) { Utils.checkNotNull(v3ForwardBankAccountResponse, "v3ForwardBankAccountResponse"); this.v3ForwardBankAccountResponse = Optional.ofNullable(v3ForwardBankAccountResponse); return this; @@ -235,7 +235,7 @@ public Builder v3ForwardBankAccountResponse(com.formance.formance_sdk.models.sha /** * Accepted */ - public Builder v3ForwardBankAccountResponse(Optional v3ForwardBankAccountResponse) { + public Builder v3ForwardBankAccountResponse(Optional v3ForwardBankAccountResponse) { Utils.checkNotNull(v3ForwardBankAccountResponse, "v3ForwardBankAccountResponse"); this.v3ForwardBankAccountResponse = v3ForwardBankAccountResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequest.java index 58b1d3e0b..3358ceb98 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequest.java @@ -16,7 +16,7 @@ public class V3ForwardPaymentServiceUserBankAccountRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3ForwardPaymentServiceUserBankAccountRequest; + private Optional v3ForwardPaymentServiceUserBankAccountRequest; /** * The bank account ID @@ -32,7 +32,7 @@ public class V3ForwardPaymentServiceUserBankAccountRequest { @JsonCreator public V3ForwardPaymentServiceUserBankAccountRequest( - Optional v3ForwardPaymentServiceUserBankAccountRequest, + Optional v3ForwardPaymentServiceUserBankAccountRequest, String bankAccountID, String paymentServiceUserID) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountRequest, "v3ForwardPaymentServiceUserBankAccountRequest"); @@ -51,8 +51,8 @@ public V3ForwardPaymentServiceUserBankAccountRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ForwardPaymentServiceUserBankAccountRequest() { - return (Optional) v3ForwardPaymentServiceUserBankAccountRequest; + public Optional v3ForwardPaymentServiceUserBankAccountRequest() { + return (Optional) v3ForwardPaymentServiceUserBankAccountRequest; } /** @@ -76,14 +76,14 @@ public static Builder builder() { } - public V3ForwardPaymentServiceUserBankAccountRequest withV3ForwardPaymentServiceUserBankAccountRequest(com.formance.formance_sdk.models.shared.V3ForwardPaymentServiceUserBankAccountRequest v3ForwardPaymentServiceUserBankAccountRequest) { + public V3ForwardPaymentServiceUserBankAccountRequest withV3ForwardPaymentServiceUserBankAccountRequest(com.formance.formance_sdk.models.payments.V3ForwardPaymentServiceUserBankAccountRequest v3ForwardPaymentServiceUserBankAccountRequest) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountRequest, "v3ForwardPaymentServiceUserBankAccountRequest"); this.v3ForwardPaymentServiceUserBankAccountRequest = Optional.ofNullable(v3ForwardPaymentServiceUserBankAccountRequest); return this; } - public V3ForwardPaymentServiceUserBankAccountRequest withV3ForwardPaymentServiceUserBankAccountRequest(Optional v3ForwardPaymentServiceUserBankAccountRequest) { + public V3ForwardPaymentServiceUserBankAccountRequest withV3ForwardPaymentServiceUserBankAccountRequest(Optional v3ForwardPaymentServiceUserBankAccountRequest) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountRequest, "v3ForwardPaymentServiceUserBankAccountRequest"); this.v3ForwardPaymentServiceUserBankAccountRequest = v3ForwardPaymentServiceUserBankAccountRequest; return this; @@ -139,7 +139,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3ForwardPaymentServiceUserBankAccountRequest = Optional.empty(); + private Optional v3ForwardPaymentServiceUserBankAccountRequest = Optional.empty(); private String bankAccountID; @@ -150,13 +150,13 @@ private Builder() { } - public Builder v3ForwardPaymentServiceUserBankAccountRequest(com.formance.formance_sdk.models.shared.V3ForwardPaymentServiceUserBankAccountRequest v3ForwardPaymentServiceUserBankAccountRequest) { + public Builder v3ForwardPaymentServiceUserBankAccountRequest(com.formance.formance_sdk.models.payments.V3ForwardPaymentServiceUserBankAccountRequest v3ForwardPaymentServiceUserBankAccountRequest) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountRequest, "v3ForwardPaymentServiceUserBankAccountRequest"); this.v3ForwardPaymentServiceUserBankAccountRequest = Optional.ofNullable(v3ForwardPaymentServiceUserBankAccountRequest); return this; } - public Builder v3ForwardPaymentServiceUserBankAccountRequest(Optional v3ForwardPaymentServiceUserBankAccountRequest) { + public Builder v3ForwardPaymentServiceUserBankAccountRequest(Optional v3ForwardPaymentServiceUserBankAccountRequest) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountRequest, "v3ForwardPaymentServiceUserBankAccountRequest"); this.v3ForwardPaymentServiceUserBankAccountRequest = v3ForwardPaymentServiceUserBankAccountRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequestBuilder.java index d2700f36a..4933549c0 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ForwardPaymentServiceUserBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ForwardPaymentServiceUserBankAccountRequestBuilder { private V3ForwardPaymentServiceUserBankAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ForwardPaymentServiceUserBankAccountRequestBuilder request(V3ForwardPay this.request = request; return this; } + + public V3ForwardPaymentServiceUserBankAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ForwardPaymentServiceUserBankAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ForwardPaymentServiceUserBankAccountResponse call() { RequestOperation operation - = new V3ForwardPaymentServiceUserBankAccount.Sync(sdkConfiguration, _headers); + = new V3ForwardPaymentServiceUserBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountResponse.java index 9559c39aa..1e84ecb31 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserBankAccountResponse.java @@ -35,14 +35,14 @@ public class V3ForwardPaymentServiceUserBankAccountResponse implements Response /** * Accepted */ - private Optional v3ForwardPaymentServiceUserBankAccountResponse; + private Optional v3ForwardPaymentServiceUserBankAccountResponse; @JsonCreator public V3ForwardPaymentServiceUserBankAccountResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3ForwardPaymentServiceUserBankAccountResponse) { + Optional v3ForwardPaymentServiceUserBankAccountResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ForwardPaymentServiceUserBankAccountResponse() { - return (Optional) v3ForwardPaymentServiceUserBankAccountResponse; + public Optional v3ForwardPaymentServiceUserBankAccountResponse() { + return (Optional) v3ForwardPaymentServiceUserBankAccountResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3ForwardPaymentServiceUserBankAccountResponse withRawResponse(HttpRespon /** * Accepted */ - public V3ForwardPaymentServiceUserBankAccountResponse withV3ForwardPaymentServiceUserBankAccountResponse(com.formance.formance_sdk.models.shared.V3ForwardPaymentServiceUserBankAccountResponse v3ForwardPaymentServiceUserBankAccountResponse) { + public V3ForwardPaymentServiceUserBankAccountResponse withV3ForwardPaymentServiceUserBankAccountResponse(com.formance.formance_sdk.models.payments.V3ForwardPaymentServiceUserBankAccountResponse v3ForwardPaymentServiceUserBankAccountResponse) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountResponse, "v3ForwardPaymentServiceUserBankAccountResponse"); this.v3ForwardPaymentServiceUserBankAccountResponse = Optional.ofNullable(v3ForwardPaymentServiceUserBankAccountResponse); return this; @@ -139,7 +139,7 @@ public V3ForwardPaymentServiceUserBankAccountResponse withV3ForwardPaymentServic /** * Accepted */ - public V3ForwardPaymentServiceUserBankAccountResponse withV3ForwardPaymentServiceUserBankAccountResponse(Optional v3ForwardPaymentServiceUserBankAccountResponse) { + public V3ForwardPaymentServiceUserBankAccountResponse withV3ForwardPaymentServiceUserBankAccountResponse(Optional v3ForwardPaymentServiceUserBankAccountResponse) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountResponse, "v3ForwardPaymentServiceUserBankAccountResponse"); this.v3ForwardPaymentServiceUserBankAccountResponse = v3ForwardPaymentServiceUserBankAccountResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3ForwardPaymentServiceUserBankAccountResponse = Optional.empty(); + private Optional v3ForwardPaymentServiceUserBankAccountResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3ForwardPaymentServiceUserBankAccountResponse(com.formance.formance_sdk.models.shared.V3ForwardPaymentServiceUserBankAccountResponse v3ForwardPaymentServiceUserBankAccountResponse) { + public Builder v3ForwardPaymentServiceUserBankAccountResponse(com.formance.formance_sdk.models.payments.V3ForwardPaymentServiceUserBankAccountResponse v3ForwardPaymentServiceUserBankAccountResponse) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountResponse, "v3ForwardPaymentServiceUserBankAccountResponse"); this.v3ForwardPaymentServiceUserBankAccountResponse = Optional.ofNullable(v3ForwardPaymentServiceUserBankAccountResponse); return this; @@ -235,7 +235,7 @@ public Builder v3ForwardPaymentServiceUserBankAccountResponse(com.formance.forma /** * Accepted */ - public Builder v3ForwardPaymentServiceUserBankAccountResponse(Optional v3ForwardPaymentServiceUserBankAccountResponse) { + public Builder v3ForwardPaymentServiceUserBankAccountResponse(Optional v3ForwardPaymentServiceUserBankAccountResponse) { Utils.checkNotNull(v3ForwardPaymentServiceUserBankAccountResponse, "v3ForwardPaymentServiceUserBankAccountResponse"); this.v3ForwardPaymentServiceUserBankAccountResponse = v3ForwardPaymentServiceUserBankAccountResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderRequestBuilder.java index 4d534bf1f..6039593cc 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ForwardPaymentServiceUserToProviderRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ForwardPaymentServiceUserToProvider; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ForwardPaymentServiceUserToProviderRequestBuilder { private V3ForwardPaymentServiceUserToProviderRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ForwardPaymentServiceUserToProviderRequestBuilder request(V3ForwardPaym this.request = request; return this; } + + public V3ForwardPaymentServiceUserToProviderRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ForwardPaymentServiceUserToProviderRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ForwardPaymentServiceUserToProviderResponse call() { RequestOperation operation - = new V3ForwardPaymentServiceUserToProvider.Sync(sdkConfiguration, _headers); + = new V3ForwardPaymentServiceUserToProvider.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesRequestBuilder.java index 7ea4dc442..ac1a7b207 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetAccountBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetAccountBalancesRequestBuilder { private V3GetAccountBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetAccountBalancesRequestBuilder request(V3GetAccountBalancesRequest re this.request = request; return this; } + + public V3GetAccountBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetAccountBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetAccountBalancesResponse call() { RequestOperation operation - = new V3GetAccountBalances.Sync(sdkConfiguration, _headers); + = new V3GetAccountBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesResponse.java index 13eba96e3..dff58e184 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountBalancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3BalancesCursorResponse; +import com.formance.formance_sdk.models.payments.V3BalancesCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountRequestBuilder.java index 5f6b6be4d..faa4975ef 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetAccountRequestBuilder { private V3GetAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetAccountRequestBuilder request(V3GetAccountRequest request) { this.request = request; return this; } + + public V3GetAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetAccountResponse call() { RequestOperation operation - = new V3GetAccount.Sync(sdkConfiguration, _headers); + = new V3GetAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountResponse.java index dea324220..0b4e2870b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetAccountResponse.java @@ -35,14 +35,14 @@ public class V3GetAccountResponse implements Response { /** * OK */ - private Optional v3GetAccountResponse; + private Optional v3GetAccountResponse; @JsonCreator public V3GetAccountResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetAccountResponse) { + Optional v3GetAccountResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetAccountResponse() { - return (Optional) v3GetAccountResponse; + public Optional v3GetAccountResponse() { + return (Optional) v3GetAccountResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetAccountResponse withRawResponse(HttpResponse rawRespons /** * OK */ - public V3GetAccountResponse withV3GetAccountResponse(com.formance.formance_sdk.models.shared.V3GetAccountResponse v3GetAccountResponse) { + public V3GetAccountResponse withV3GetAccountResponse(com.formance.formance_sdk.models.payments.V3GetAccountResponse v3GetAccountResponse) { Utils.checkNotNull(v3GetAccountResponse, "v3GetAccountResponse"); this.v3GetAccountResponse = Optional.ofNullable(v3GetAccountResponse); return this; @@ -139,7 +139,7 @@ public V3GetAccountResponse withV3GetAccountResponse(com.formance.formance_sdk.m /** * OK */ - public V3GetAccountResponse withV3GetAccountResponse(Optional v3GetAccountResponse) { + public V3GetAccountResponse withV3GetAccountResponse(Optional v3GetAccountResponse) { Utils.checkNotNull(v3GetAccountResponse, "v3GetAccountResponse"); this.v3GetAccountResponse = v3GetAccountResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetAccountResponse = Optional.empty(); + private Optional v3GetAccountResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetAccountResponse(com.formance.formance_sdk.models.shared.V3GetAccountResponse v3GetAccountResponse) { + public Builder v3GetAccountResponse(com.formance.formance_sdk.models.payments.V3GetAccountResponse v3GetAccountResponse) { Utils.checkNotNull(v3GetAccountResponse, "v3GetAccountResponse"); this.v3GetAccountResponse = Optional.ofNullable(v3GetAccountResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetAccountResponse(com.formance.formance_sdk.models.shared.V3Ge /** * OK */ - public Builder v3GetAccountResponse(Optional v3GetAccountResponse) { + public Builder v3GetAccountResponse(Optional v3GetAccountResponse) { Utils.checkNotNull(v3GetAccountResponse, "v3GetAccountResponse"); this.v3GetAccountResponse = v3GetAccountResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountRequestBuilder.java index 627ac4489..f21824cab 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetBankAccount; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetBankAccountRequestBuilder { private V3GetBankAccountRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetBankAccountRequestBuilder request(V3GetBankAccountRequest request) { this.request = request; return this; } + + public V3GetBankAccountRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetBankAccountRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetBankAccountResponse call() { RequestOperation operation - = new V3GetBankAccount.Sync(sdkConfiguration, _headers); + = new V3GetBankAccount.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountResponse.java index 97c99b32c..2ac82c685 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetBankAccountResponse.java @@ -35,14 +35,14 @@ public class V3GetBankAccountResponse implements Response { /** * OK */ - private Optional v3GetBankAccountResponse; + private Optional v3GetBankAccountResponse; @JsonCreator public V3GetBankAccountResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetBankAccountResponse) { + Optional v3GetBankAccountResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetBankAccountResponse() { - return (Optional) v3GetBankAccountResponse; + public Optional v3GetBankAccountResponse() { + return (Optional) v3GetBankAccountResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetBankAccountResponse withRawResponse(HttpResponse rawRes /** * OK */ - public V3GetBankAccountResponse withV3GetBankAccountResponse(com.formance.formance_sdk.models.shared.V3GetBankAccountResponse v3GetBankAccountResponse) { + public V3GetBankAccountResponse withV3GetBankAccountResponse(com.formance.formance_sdk.models.payments.V3GetBankAccountResponse v3GetBankAccountResponse) { Utils.checkNotNull(v3GetBankAccountResponse, "v3GetBankAccountResponse"); this.v3GetBankAccountResponse = Optional.ofNullable(v3GetBankAccountResponse); return this; @@ -139,7 +139,7 @@ public V3GetBankAccountResponse withV3GetBankAccountResponse(com.formance.forman /** * OK */ - public V3GetBankAccountResponse withV3GetBankAccountResponse(Optional v3GetBankAccountResponse) { + public V3GetBankAccountResponse withV3GetBankAccountResponse(Optional v3GetBankAccountResponse) { Utils.checkNotNull(v3GetBankAccountResponse, "v3GetBankAccountResponse"); this.v3GetBankAccountResponse = v3GetBankAccountResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetBankAccountResponse = Optional.empty(); + private Optional v3GetBankAccountResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetBankAccountResponse(com.formance.formance_sdk.models.shared.V3GetBankAccountResponse v3GetBankAccountResponse) { + public Builder v3GetBankAccountResponse(com.formance.formance_sdk.models.payments.V3GetBankAccountResponse v3GetBankAccountResponse) { Utils.checkNotNull(v3GetBankAccountResponse, "v3GetBankAccountResponse"); this.v3GetBankAccountResponse = Optional.ofNullable(v3GetBankAccountResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetBankAccountResponse(com.formance.formance_sdk.models.shared. /** * OK */ - public Builder v3GetBankAccountResponse(Optional v3GetBankAccountResponse) { + public Builder v3GetBankAccountResponse(Optional v3GetBankAccountResponse) { Utils.checkNotNull(v3GetBankAccountResponse, "v3GetBankAccountResponse"); this.v3GetBankAccountResponse = v3GetBankAccountResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigRequestBuilder.java index 442078025..7a9bdc697 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetConnectorConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetConnectorConfigRequestBuilder { private V3GetConnectorConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetConnectorConfigRequestBuilder request(V3GetConnectorConfigRequest re this.request = request; return this; } + + public V3GetConnectorConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetConnectorConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetConnectorConfigResponse call() { RequestOperation operation - = new V3GetConnectorConfig.Sync(sdkConfiguration, _headers); + = new V3GetConnectorConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigResponse.java index 6e66131c5..45cd4349d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorConfigResponse.java @@ -35,14 +35,14 @@ public class V3GetConnectorConfigResponse implements Response { /** * OK */ - private Optional v3GetConnectorConfigResponse; + private Optional v3GetConnectorConfigResponse; @JsonCreator public V3GetConnectorConfigResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetConnectorConfigResponse) { + Optional v3GetConnectorConfigResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetConnectorConfigResponse() { - return (Optional) v3GetConnectorConfigResponse; + public Optional v3GetConnectorConfigResponse() { + return (Optional) v3GetConnectorConfigResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetConnectorConfigResponse withRawResponse(HttpResponse ra /** * OK */ - public V3GetConnectorConfigResponse withV3GetConnectorConfigResponse(com.formance.formance_sdk.models.shared.V3GetConnectorConfigResponse v3GetConnectorConfigResponse) { + public V3GetConnectorConfigResponse withV3GetConnectorConfigResponse(com.formance.formance_sdk.models.payments.V3GetConnectorConfigResponse v3GetConnectorConfigResponse) { Utils.checkNotNull(v3GetConnectorConfigResponse, "v3GetConnectorConfigResponse"); this.v3GetConnectorConfigResponse = Optional.ofNullable(v3GetConnectorConfigResponse); return this; @@ -139,7 +139,7 @@ public V3GetConnectorConfigResponse withV3GetConnectorConfigResponse(com.formanc /** * OK */ - public V3GetConnectorConfigResponse withV3GetConnectorConfigResponse(Optional v3GetConnectorConfigResponse) { + public V3GetConnectorConfigResponse withV3GetConnectorConfigResponse(Optional v3GetConnectorConfigResponse) { Utils.checkNotNull(v3GetConnectorConfigResponse, "v3GetConnectorConfigResponse"); this.v3GetConnectorConfigResponse = v3GetConnectorConfigResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetConnectorConfigResponse = Optional.empty(); + private Optional v3GetConnectorConfigResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetConnectorConfigResponse(com.formance.formance_sdk.models.shared.V3GetConnectorConfigResponse v3GetConnectorConfigResponse) { + public Builder v3GetConnectorConfigResponse(com.formance.formance_sdk.models.payments.V3GetConnectorConfigResponse v3GetConnectorConfigResponse) { Utils.checkNotNull(v3GetConnectorConfigResponse, "v3GetConnectorConfigResponse"); this.v3GetConnectorConfigResponse = Optional.ofNullable(v3GetConnectorConfigResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetConnectorConfigResponse(com.formance.formance_sdk.models.sha /** * OK */ - public Builder v3GetConnectorConfigResponse(Optional v3GetConnectorConfigResponse) { + public Builder v3GetConnectorConfigResponse(Optional v3GetConnectorConfigResponse) { Utils.checkNotNull(v3GetConnectorConfigResponse, "v3GetConnectorConfigResponse"); this.v3GetConnectorConfigResponse = v3GetConnectorConfigResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleRequestBuilder.java index 37cdfe835..12f0f4304 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetConnectorSchedule; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetConnectorScheduleRequestBuilder { private V3GetConnectorScheduleRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetConnectorScheduleRequestBuilder request(V3GetConnectorScheduleReques this.request = request; return this; } + + public V3GetConnectorScheduleRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetConnectorScheduleRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetConnectorScheduleResponse call() { RequestOperation operation - = new V3GetConnectorSchedule.Sync(sdkConfiguration, _headers); + = new V3GetConnectorSchedule.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleResponse.java index 1d7d8bf20..a445fc1df 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetConnectorScheduleResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3ConnectorScheduleResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorScheduleResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationRequestBuilder.java index f531c63ed..97da52036 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPaymentInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPaymentInitiationRequestBuilder { private V3GetPaymentInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPaymentInitiationRequestBuilder request(V3GetPaymentInitiationReques this.request = request; return this; } + + public V3GetPaymentInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPaymentInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPaymentInitiationResponse call() { RequestOperation operation - = new V3GetPaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3GetPaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationResponse.java index c7b52e7da..9db799e8e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentInitiationResponse.java @@ -35,14 +35,14 @@ public class V3GetPaymentInitiationResponse implements Response { /** * OK */ - private Optional v3GetPaymentInitiationResponse; + private Optional v3GetPaymentInitiationResponse; @JsonCreator public V3GetPaymentInitiationResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetPaymentInitiationResponse) { + Optional v3GetPaymentInitiationResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetPaymentInitiationResponse() { - return (Optional) v3GetPaymentInitiationResponse; + public Optional v3GetPaymentInitiationResponse() { + return (Optional) v3GetPaymentInitiationResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetPaymentInitiationResponse withRawResponse(HttpResponse /** * OK */ - public V3GetPaymentInitiationResponse withV3GetPaymentInitiationResponse(com.formance.formance_sdk.models.shared.V3GetPaymentInitiationResponse v3GetPaymentInitiationResponse) { + public V3GetPaymentInitiationResponse withV3GetPaymentInitiationResponse(com.formance.formance_sdk.models.payments.V3GetPaymentInitiationResponse v3GetPaymentInitiationResponse) { Utils.checkNotNull(v3GetPaymentInitiationResponse, "v3GetPaymentInitiationResponse"); this.v3GetPaymentInitiationResponse = Optional.ofNullable(v3GetPaymentInitiationResponse); return this; @@ -139,7 +139,7 @@ public V3GetPaymentInitiationResponse withV3GetPaymentInitiationResponse(com.for /** * OK */ - public V3GetPaymentInitiationResponse withV3GetPaymentInitiationResponse(Optional v3GetPaymentInitiationResponse) { + public V3GetPaymentInitiationResponse withV3GetPaymentInitiationResponse(Optional v3GetPaymentInitiationResponse) { Utils.checkNotNull(v3GetPaymentInitiationResponse, "v3GetPaymentInitiationResponse"); this.v3GetPaymentInitiationResponse = v3GetPaymentInitiationResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetPaymentInitiationResponse = Optional.empty(); + private Optional v3GetPaymentInitiationResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetPaymentInitiationResponse(com.formance.formance_sdk.models.shared.V3GetPaymentInitiationResponse v3GetPaymentInitiationResponse) { + public Builder v3GetPaymentInitiationResponse(com.formance.formance_sdk.models.payments.V3GetPaymentInitiationResponse v3GetPaymentInitiationResponse) { Utils.checkNotNull(v3GetPaymentInitiationResponse, "v3GetPaymentInitiationResponse"); this.v3GetPaymentInitiationResponse = Optional.ofNullable(v3GetPaymentInitiationResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetPaymentInitiationResponse(com.formance.formance_sdk.models.s /** * OK */ - public Builder v3GetPaymentInitiationResponse(Optional v3GetPaymentInitiationResponse) { + public Builder v3GetPaymentInitiationResponse(Optional v3GetPaymentInitiationResponse) { Utils.checkNotNull(v3GetPaymentInitiationResponse, "v3GetPaymentInitiationResponse"); this.v3GetPaymentInitiationResponse = v3GetPaymentInitiationResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentRequestBuilder.java index 4dac5b5c2..82878792c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPayment; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPaymentRequestBuilder { private V3GetPaymentRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPaymentRequestBuilder request(V3GetPaymentRequest request) { this.request = request; return this; } + + public V3GetPaymentRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPaymentRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPaymentResponse call() { RequestOperation operation - = new V3GetPayment.Sync(sdkConfiguration, _headers); + = new V3GetPayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentResponse.java index 0ca3c9ddd..764997655 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentResponse.java @@ -35,14 +35,14 @@ public class V3GetPaymentResponse implements Response { /** * OK */ - private Optional v3GetPaymentResponse; + private Optional v3GetPaymentResponse; @JsonCreator public V3GetPaymentResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetPaymentResponse) { + Optional v3GetPaymentResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetPaymentResponse() { - return (Optional) v3GetPaymentResponse; + public Optional v3GetPaymentResponse() { + return (Optional) v3GetPaymentResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetPaymentResponse withRawResponse(HttpResponse rawRespons /** * OK */ - public V3GetPaymentResponse withV3GetPaymentResponse(com.formance.formance_sdk.models.shared.V3GetPaymentResponse v3GetPaymentResponse) { + public V3GetPaymentResponse withV3GetPaymentResponse(com.formance.formance_sdk.models.payments.V3GetPaymentResponse v3GetPaymentResponse) { Utils.checkNotNull(v3GetPaymentResponse, "v3GetPaymentResponse"); this.v3GetPaymentResponse = Optional.ofNullable(v3GetPaymentResponse); return this; @@ -139,7 +139,7 @@ public V3GetPaymentResponse withV3GetPaymentResponse(com.formance.formance_sdk.m /** * OK */ - public V3GetPaymentResponse withV3GetPaymentResponse(Optional v3GetPaymentResponse) { + public V3GetPaymentResponse withV3GetPaymentResponse(Optional v3GetPaymentResponse) { Utils.checkNotNull(v3GetPaymentResponse, "v3GetPaymentResponse"); this.v3GetPaymentResponse = v3GetPaymentResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetPaymentResponse = Optional.empty(); + private Optional v3GetPaymentResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetPaymentResponse(com.formance.formance_sdk.models.shared.V3GetPaymentResponse v3GetPaymentResponse) { + public Builder v3GetPaymentResponse(com.formance.formance_sdk.models.payments.V3GetPaymentResponse v3GetPaymentResponse) { Utils.checkNotNull(v3GetPaymentResponse, "v3GetPaymentResponse"); this.v3GetPaymentResponse = Optional.ofNullable(v3GetPaymentResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetPaymentResponse(com.formance.formance_sdk.models.shared.V3Ge /** * OK */ - public Builder v3GetPaymentResponse(Optional v3GetPaymentResponse) { + public Builder v3GetPaymentResponse(Optional v3GetPaymentResponse) { Utils.checkNotNull(v3GetPaymentResponse, "v3GetPaymentResponse"); this.v3GetPaymentResponse = v3GetPaymentResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder.java index e22203fcf..f6c8357da 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPaymentServiceUserLinkAttemptFromConnectorID; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder { private V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder request(V this.request = request; return this; } + + public V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse call() { RequestOperation operation - = new V3GetPaymentServiceUserLinkAttemptFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3GetPaymentServiceUserLinkAttemptFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse.java index 4848c329e..6798951c9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserLinkAttempt; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserLinkAttempt; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserRequestBuilder.java index 1a78bd392..8b5d309cf 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPaymentServiceUser; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPaymentServiceUserRequestBuilder { private V3GetPaymentServiceUserRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPaymentServiceUserRequestBuilder request(V3GetPaymentServiceUserRequ this.request = request; return this; } + + public V3GetPaymentServiceUserRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPaymentServiceUserRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPaymentServiceUserResponse call() { RequestOperation operation - = new V3GetPaymentServiceUser.Sync(sdkConfiguration, _headers); + = new V3GetPaymentServiceUser.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserResponse.java index 74145f4f0..50f08998f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPaymentServiceUserResponse.java @@ -35,14 +35,14 @@ public class V3GetPaymentServiceUserResponse implements Response { /** * OK */ - private Optional v3GetPaymentServiceUserResponse; + private Optional v3GetPaymentServiceUserResponse; @JsonCreator public V3GetPaymentServiceUserResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetPaymentServiceUserResponse) { + Optional v3GetPaymentServiceUserResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetPaymentServiceUserResponse() { - return (Optional) v3GetPaymentServiceUserResponse; + public Optional v3GetPaymentServiceUserResponse() { + return (Optional) v3GetPaymentServiceUserResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetPaymentServiceUserResponse withRawResponse(HttpResponse /** * OK */ - public V3GetPaymentServiceUserResponse withV3GetPaymentServiceUserResponse(com.formance.formance_sdk.models.shared.V3GetPaymentServiceUserResponse v3GetPaymentServiceUserResponse) { + public V3GetPaymentServiceUserResponse withV3GetPaymentServiceUserResponse(com.formance.formance_sdk.models.payments.V3GetPaymentServiceUserResponse v3GetPaymentServiceUserResponse) { Utils.checkNotNull(v3GetPaymentServiceUserResponse, "v3GetPaymentServiceUserResponse"); this.v3GetPaymentServiceUserResponse = Optional.ofNullable(v3GetPaymentServiceUserResponse); return this; @@ -139,7 +139,7 @@ public V3GetPaymentServiceUserResponse withV3GetPaymentServiceUserResponse(com.f /** * OK */ - public V3GetPaymentServiceUserResponse withV3GetPaymentServiceUserResponse(Optional v3GetPaymentServiceUserResponse) { + public V3GetPaymentServiceUserResponse withV3GetPaymentServiceUserResponse(Optional v3GetPaymentServiceUserResponse) { Utils.checkNotNull(v3GetPaymentServiceUserResponse, "v3GetPaymentServiceUserResponse"); this.v3GetPaymentServiceUserResponse = v3GetPaymentServiceUserResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetPaymentServiceUserResponse = Optional.empty(); + private Optional v3GetPaymentServiceUserResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetPaymentServiceUserResponse(com.formance.formance_sdk.models.shared.V3GetPaymentServiceUserResponse v3GetPaymentServiceUserResponse) { + public Builder v3GetPaymentServiceUserResponse(com.formance.formance_sdk.models.payments.V3GetPaymentServiceUserResponse v3GetPaymentServiceUserResponse) { Utils.checkNotNull(v3GetPaymentServiceUserResponse, "v3GetPaymentServiceUserResponse"); this.v3GetPaymentServiceUserResponse = Optional.ofNullable(v3GetPaymentServiceUserResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetPaymentServiceUserResponse(com.formance.formance_sdk.models. /** * OK */ - public Builder v3GetPaymentServiceUserResponse(Optional v3GetPaymentServiceUserResponse) { + public Builder v3GetPaymentServiceUserResponse(Optional v3GetPaymentServiceUserResponse) { Utils.checkNotNull(v3GetPaymentServiceUserResponse, "v3GetPaymentServiceUserResponse"); this.v3GetPaymentServiceUserResponse = v3GetPaymentServiceUserResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestRequestBuilder.java index 2d1475e5a..de8c49237 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPoolBalancesLatest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPoolBalancesLatestRequestBuilder { private V3GetPoolBalancesLatestRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPoolBalancesLatestRequestBuilder request(V3GetPoolBalancesLatestRequ this.request = request; return this; } + + public V3GetPoolBalancesLatestRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPoolBalancesLatestRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPoolBalancesLatestResponse call() { RequestOperation operation - = new V3GetPoolBalancesLatest.Sync(sdkConfiguration, _headers); + = new V3GetPoolBalancesLatest.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestResponse.java index dcce953d6..270609f5a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesLatestResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PoolBalancesResponse; +import com.formance.formance_sdk.models.payments.V3PoolBalancesResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesRequestBuilder.java index 4933b160a..a8264bb47 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPoolBalances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPoolBalancesRequestBuilder { private V3GetPoolBalancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPoolBalancesRequestBuilder request(V3GetPoolBalancesRequest request) this.request = request; return this; } + + public V3GetPoolBalancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPoolBalancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPoolBalancesResponse call() { RequestOperation operation - = new V3GetPoolBalances.Sync(sdkConfiguration, _headers); + = new V3GetPoolBalances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesResponse.java index b3c6e391e..fe799fc0c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolBalancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PoolBalancesResponse; +import com.formance.formance_sdk.models.payments.V3PoolBalancesResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolRequestBuilder.java index e263a0ee5..b8ba6a5cf 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetPool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetPoolRequestBuilder { private V3GetPoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetPoolRequestBuilder request(V3GetPoolRequest request) { this.request = request; return this; } + + public V3GetPoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetPoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetPoolResponse call() { RequestOperation operation - = new V3GetPool.Sync(sdkConfiguration, _headers); + = new V3GetPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolResponse.java index 89533060e..06dc4bdd3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetPoolResponse.java @@ -35,14 +35,14 @@ public class V3GetPoolResponse implements Response { /** * OK */ - private Optional v3GetPoolResponse; + private Optional v3GetPoolResponse; @JsonCreator public V3GetPoolResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetPoolResponse) { + Optional v3GetPoolResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetPoolResponse() { - return (Optional) v3GetPoolResponse; + public Optional v3GetPoolResponse() { + return (Optional) v3GetPoolResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetPoolResponse withRawResponse(HttpResponse rawResponse) /** * OK */ - public V3GetPoolResponse withV3GetPoolResponse(com.formance.formance_sdk.models.shared.V3GetPoolResponse v3GetPoolResponse) { + public V3GetPoolResponse withV3GetPoolResponse(com.formance.formance_sdk.models.payments.V3GetPoolResponse v3GetPoolResponse) { Utils.checkNotNull(v3GetPoolResponse, "v3GetPoolResponse"); this.v3GetPoolResponse = Optional.ofNullable(v3GetPoolResponse); return this; @@ -139,7 +139,7 @@ public V3GetPoolResponse withV3GetPoolResponse(com.formance.formance_sdk.models. /** * OK */ - public V3GetPoolResponse withV3GetPoolResponse(Optional v3GetPoolResponse) { + public V3GetPoolResponse withV3GetPoolResponse(Optional v3GetPoolResponse) { Utils.checkNotNull(v3GetPoolResponse, "v3GetPoolResponse"); this.v3GetPoolResponse = v3GetPoolResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetPoolResponse = Optional.empty(); + private Optional v3GetPoolResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetPoolResponse(com.formance.formance_sdk.models.shared.V3GetPoolResponse v3GetPoolResponse) { + public Builder v3GetPoolResponse(com.formance.formance_sdk.models.payments.V3GetPoolResponse v3GetPoolResponse) { Utils.checkNotNull(v3GetPoolResponse, "v3GetPoolResponse"); this.v3GetPoolResponse = Optional.ofNullable(v3GetPoolResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetPoolResponse(com.formance.formance_sdk.models.shared.V3GetPo /** * OK */ - public Builder v3GetPoolResponse(Optional v3GetPoolResponse) { + public Builder v3GetPoolResponse(Optional v3GetPoolResponse) { Utils.checkNotNull(v3GetPoolResponse, "v3GetPoolResponse"); this.v3GetPoolResponse = v3GetPoolResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskRequestBuilder.java index 99fc3e9dd..2eda36998 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3GetTask; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3GetTaskRequestBuilder { private V3GetTaskRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3GetTaskRequestBuilder request(V3GetTaskRequest request) { this.request = request; return this; } + + public V3GetTaskRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3GetTaskRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3GetTaskResponse call() { RequestOperation operation - = new V3GetTask.Sync(sdkConfiguration, _headers); + = new V3GetTask.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskResponse.java index 3cf9f3fb8..fc99b6019 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3GetTaskResponse.java @@ -35,14 +35,14 @@ public class V3GetTaskResponse implements Response { /** * OK */ - private Optional v3GetTaskResponse; + private Optional v3GetTaskResponse; @JsonCreator public V3GetTaskResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3GetTaskResponse) { + Optional v3GetTaskResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3GetTaskResponse() { - return (Optional) v3GetTaskResponse; + public Optional v3GetTaskResponse() { + return (Optional) v3GetTaskResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3GetTaskResponse withRawResponse(HttpResponse rawResponse) /** * OK */ - public V3GetTaskResponse withV3GetTaskResponse(com.formance.formance_sdk.models.shared.V3GetTaskResponse v3GetTaskResponse) { + public V3GetTaskResponse withV3GetTaskResponse(com.formance.formance_sdk.models.payments.V3GetTaskResponse v3GetTaskResponse) { Utils.checkNotNull(v3GetTaskResponse, "v3GetTaskResponse"); this.v3GetTaskResponse = Optional.ofNullable(v3GetTaskResponse); return this; @@ -139,7 +139,7 @@ public V3GetTaskResponse withV3GetTaskResponse(com.formance.formance_sdk.models. /** * OK */ - public V3GetTaskResponse withV3GetTaskResponse(Optional v3GetTaskResponse) { + public V3GetTaskResponse withV3GetTaskResponse(Optional v3GetTaskResponse) { Utils.checkNotNull(v3GetTaskResponse, "v3GetTaskResponse"); this.v3GetTaskResponse = v3GetTaskResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3GetTaskResponse = Optional.empty(); + private Optional v3GetTaskResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * OK */ - public Builder v3GetTaskResponse(com.formance.formance_sdk.models.shared.V3GetTaskResponse v3GetTaskResponse) { + public Builder v3GetTaskResponse(com.formance.formance_sdk.models.payments.V3GetTaskResponse v3GetTaskResponse) { Utils.checkNotNull(v3GetTaskResponse, "v3GetTaskResponse"); this.v3GetTaskResponse = Optional.ofNullable(v3GetTaskResponse); return this; @@ -235,7 +235,7 @@ public Builder v3GetTaskResponse(com.formance.formance_sdk.models.shared.V3GetTa /** * OK */ - public Builder v3GetTaskResponse(Optional v3GetTaskResponse) { + public Builder v3GetTaskResponse(Optional v3GetTaskResponse) { Utils.checkNotNull(v3GetTaskResponse, "v3GetTaskResponse"); this.v3GetTaskResponse = v3GetTaskResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequest.java index c23a29cc2..843692cc9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequest.java @@ -19,7 +19,7 @@ public class V3InitiatePaymentRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3InitiatePaymentRequest; + private Optional v3InitiatePaymentRequest; /** * If set to true, the request will not have to be validated. This is useful if we want to directly @@ -30,7 +30,7 @@ public class V3InitiatePaymentRequest { @JsonCreator public V3InitiatePaymentRequest( - Optional v3InitiatePaymentRequest, + Optional v3InitiatePaymentRequest, Optional noValidation) { Utils.checkNotNull(v3InitiatePaymentRequest, "v3InitiatePaymentRequest"); Utils.checkNotNull(noValidation, "noValidation"); @@ -44,8 +44,8 @@ public V3InitiatePaymentRequest() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3InitiatePaymentRequest() { - return (Optional) v3InitiatePaymentRequest; + public Optional v3InitiatePaymentRequest() { + return (Optional) v3InitiatePaymentRequest; } /** @@ -62,14 +62,14 @@ public static Builder builder() { } - public V3InitiatePaymentRequest withV3InitiatePaymentRequest(com.formance.formance_sdk.models.shared.V3InitiatePaymentRequest v3InitiatePaymentRequest) { + public V3InitiatePaymentRequest withV3InitiatePaymentRequest(com.formance.formance_sdk.models.payments.V3InitiatePaymentRequest v3InitiatePaymentRequest) { Utils.checkNotNull(v3InitiatePaymentRequest, "v3InitiatePaymentRequest"); this.v3InitiatePaymentRequest = Optional.ofNullable(v3InitiatePaymentRequest); return this; } - public V3InitiatePaymentRequest withV3InitiatePaymentRequest(Optional v3InitiatePaymentRequest) { + public V3InitiatePaymentRequest withV3InitiatePaymentRequest(Optional v3InitiatePaymentRequest) { Utils.checkNotNull(v3InitiatePaymentRequest, "v3InitiatePaymentRequest"); this.v3InitiatePaymentRequest = v3InitiatePaymentRequest; return this; @@ -126,7 +126,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3InitiatePaymentRequest = Optional.empty(); + private Optional v3InitiatePaymentRequest = Optional.empty(); private Optional noValidation; @@ -135,13 +135,13 @@ private Builder() { } - public Builder v3InitiatePaymentRequest(com.formance.formance_sdk.models.shared.V3InitiatePaymentRequest v3InitiatePaymentRequest) { + public Builder v3InitiatePaymentRequest(com.formance.formance_sdk.models.payments.V3InitiatePaymentRequest v3InitiatePaymentRequest) { Utils.checkNotNull(v3InitiatePaymentRequest, "v3InitiatePaymentRequest"); this.v3InitiatePaymentRequest = Optional.ofNullable(v3InitiatePaymentRequest); return this; } - public Builder v3InitiatePaymentRequest(Optional v3InitiatePaymentRequest) { + public Builder v3InitiatePaymentRequest(Optional v3InitiatePaymentRequest) { Utils.checkNotNull(v3InitiatePaymentRequest, "v3InitiatePaymentRequest"); this.v3InitiatePaymentRequest = v3InitiatePaymentRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequestBuilder.java index 85e7216c5..478ead229 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3InitiatePayment; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3InitiatePaymentRequestBuilder { private V3InitiatePaymentRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3InitiatePaymentRequestBuilder request(V3InitiatePaymentRequest request) this.request = request; return this; } + + public V3InitiatePaymentRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3InitiatePaymentRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3InitiatePaymentResponse call() { RequestOperation operation - = new V3InitiatePayment.Sync(sdkConfiguration, _headers); + = new V3InitiatePayment.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentResponse.java index 971e6d6f4..1501d9081 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3InitiatePaymentResponse.java @@ -35,14 +35,14 @@ public class V3InitiatePaymentResponse implements Response { /** * Accepted */ - private Optional v3InitiatePaymentResponse; + private Optional v3InitiatePaymentResponse; @JsonCreator public V3InitiatePaymentResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3InitiatePaymentResponse) { + Optional v3InitiatePaymentResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3InitiatePaymentResponse() { - return (Optional) v3InitiatePaymentResponse; + public Optional v3InitiatePaymentResponse() { + return (Optional) v3InitiatePaymentResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3InitiatePaymentResponse withRawResponse(HttpResponse rawRe /** * Accepted */ - public V3InitiatePaymentResponse withV3InitiatePaymentResponse(com.formance.formance_sdk.models.shared.V3InitiatePaymentResponse v3InitiatePaymentResponse) { + public V3InitiatePaymentResponse withV3InitiatePaymentResponse(com.formance.formance_sdk.models.payments.V3InitiatePaymentResponse v3InitiatePaymentResponse) { Utils.checkNotNull(v3InitiatePaymentResponse, "v3InitiatePaymentResponse"); this.v3InitiatePaymentResponse = Optional.ofNullable(v3InitiatePaymentResponse); return this; @@ -139,7 +139,7 @@ public V3InitiatePaymentResponse withV3InitiatePaymentResponse(com.formance.form /** * Accepted */ - public V3InitiatePaymentResponse withV3InitiatePaymentResponse(Optional v3InitiatePaymentResponse) { + public V3InitiatePaymentResponse withV3InitiatePaymentResponse(Optional v3InitiatePaymentResponse) { Utils.checkNotNull(v3InitiatePaymentResponse, "v3InitiatePaymentResponse"); this.v3InitiatePaymentResponse = v3InitiatePaymentResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3InitiatePaymentResponse = Optional.empty(); + private Optional v3InitiatePaymentResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3InitiatePaymentResponse(com.formance.formance_sdk.models.shared.V3InitiatePaymentResponse v3InitiatePaymentResponse) { + public Builder v3InitiatePaymentResponse(com.formance.formance_sdk.models.payments.V3InitiatePaymentResponse v3InitiatePaymentResponse) { Utils.checkNotNull(v3InitiatePaymentResponse, "v3InitiatePaymentResponse"); this.v3InitiatePaymentResponse = Optional.ofNullable(v3InitiatePaymentResponse); return this; @@ -235,7 +235,7 @@ public Builder v3InitiatePaymentResponse(com.formance.formance_sdk.models.shared /** * Accepted */ - public Builder v3InitiatePaymentResponse(Optional v3InitiatePaymentResponse) { + public Builder v3InitiatePaymentResponse(Optional v3InitiatePaymentResponse) { Utils.checkNotNull(v3InitiatePaymentResponse, "v3InitiatePaymentResponse"); this.v3InitiatePaymentResponse = v3InitiatePaymentResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequest.java index 08dce35d6..f80fc97a6 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequest.java @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; +import com.formance.formance_sdk.models.payments.V3ConnectorConfig; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -16,7 +17,7 @@ public class V3InstallConnectorRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3InstallConnectorRequest; + private Optional v3ConnectorConfig; /** * The connector to filter by @@ -26,11 +27,11 @@ public class V3InstallConnectorRequest { @JsonCreator public V3InstallConnectorRequest( - Optional v3InstallConnectorRequest, + Optional v3ConnectorConfig, String connector) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); Utils.checkNotNull(connector, "connector"); - this.v3InstallConnectorRequest = v3InstallConnectorRequest; + this.v3ConnectorConfig = v3ConnectorConfig; this.connector = connector; } @@ -41,8 +42,8 @@ public V3InstallConnectorRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3InstallConnectorRequest() { - return (Optional) v3InstallConnectorRequest; + public Optional v3ConnectorConfig() { + return (Optional) v3ConnectorConfig; } /** @@ -58,16 +59,16 @@ public static Builder builder() { } - public V3InstallConnectorRequest withV3InstallConnectorRequest(com.formance.formance_sdk.models.shared.V3InstallConnectorRequest v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = Optional.ofNullable(v3InstallConnectorRequest); + public V3InstallConnectorRequest withV3ConnectorConfig(V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = Optional.ofNullable(v3ConnectorConfig); return this; } - public V3InstallConnectorRequest withV3InstallConnectorRequest(Optional v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = v3InstallConnectorRequest; + public V3InstallConnectorRequest withV3ConnectorConfig(Optional v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; return this; } @@ -90,27 +91,27 @@ public boolean equals(java.lang.Object o) { } V3InstallConnectorRequest other = (V3InstallConnectorRequest) o; return - Utils.enhancedDeepEquals(this.v3InstallConnectorRequest, other.v3InstallConnectorRequest) && + Utils.enhancedDeepEquals(this.v3ConnectorConfig, other.v3ConnectorConfig) && Utils.enhancedDeepEquals(this.connector, other.connector); } @Override public int hashCode() { return Utils.enhancedHash( - v3InstallConnectorRequest, connector); + v3ConnectorConfig, connector); } @Override public String toString() { return Utils.toString(V3InstallConnectorRequest.class, - "v3InstallConnectorRequest", v3InstallConnectorRequest, + "v3ConnectorConfig", v3ConnectorConfig, "connector", connector); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3InstallConnectorRequest = Optional.empty(); + private Optional v3ConnectorConfig = Optional.empty(); private String connector; @@ -119,15 +120,15 @@ private Builder() { } - public Builder v3InstallConnectorRequest(com.formance.formance_sdk.models.shared.V3InstallConnectorRequest v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = Optional.ofNullable(v3InstallConnectorRequest); + public Builder v3ConnectorConfig(V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = Optional.ofNullable(v3ConnectorConfig); return this; } - public Builder v3InstallConnectorRequest(Optional v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = v3InstallConnectorRequest; + public Builder v3ConnectorConfig(Optional v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; return this; } @@ -144,7 +145,7 @@ public Builder connector(String connector) { public V3InstallConnectorRequest build() { return new V3InstallConnectorRequest( - v3InstallConnectorRequest, connector); + v3ConnectorConfig, connector); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequestBuilder.java index 57303e097..3619a4aec 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3InstallConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3InstallConnectorRequestBuilder { private V3InstallConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3InstallConnectorRequestBuilder request(V3InstallConnectorRequest reques this.request = request; return this; } + + public V3InstallConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3InstallConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3InstallConnectorResponse call() { RequestOperation operation - = new V3InstallConnector.Sync(sdkConfiguration, _headers); + = new V3InstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorResponse.java index 5633a9eb4..c2db70e1e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3InstallConnectorResponse.java @@ -35,14 +35,14 @@ public class V3InstallConnectorResponse implements Response { /** * Accepted */ - private Optional v3InstallConnectorResponse; + private Optional v3InstallConnectorResponse; @JsonCreator public V3InstallConnectorResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3InstallConnectorResponse) { + Optional v3InstallConnectorResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3InstallConnectorResponse() { - return (Optional) v3InstallConnectorResponse; + public Optional v3InstallConnectorResponse() { + return (Optional) v3InstallConnectorResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3InstallConnectorResponse withRawResponse(HttpResponse rawR /** * Accepted */ - public V3InstallConnectorResponse withV3InstallConnectorResponse(com.formance.formance_sdk.models.shared.V3InstallConnectorResponse v3InstallConnectorResponse) { + public V3InstallConnectorResponse withV3InstallConnectorResponse(com.formance.formance_sdk.models.payments.V3InstallConnectorResponse v3InstallConnectorResponse) { Utils.checkNotNull(v3InstallConnectorResponse, "v3InstallConnectorResponse"); this.v3InstallConnectorResponse = Optional.ofNullable(v3InstallConnectorResponse); return this; @@ -139,7 +139,7 @@ public V3InstallConnectorResponse withV3InstallConnectorResponse(com.formance.fo /** * Accepted */ - public V3InstallConnectorResponse withV3InstallConnectorResponse(Optional v3InstallConnectorResponse) { + public V3InstallConnectorResponse withV3InstallConnectorResponse(Optional v3InstallConnectorResponse) { Utils.checkNotNull(v3InstallConnectorResponse, "v3InstallConnectorResponse"); this.v3InstallConnectorResponse = v3InstallConnectorResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3InstallConnectorResponse = Optional.empty(); + private Optional v3InstallConnectorResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3InstallConnectorResponse(com.formance.formance_sdk.models.shared.V3InstallConnectorResponse v3InstallConnectorResponse) { + public Builder v3InstallConnectorResponse(com.formance.formance_sdk.models.payments.V3InstallConnectorResponse v3InstallConnectorResponse) { Utils.checkNotNull(v3InstallConnectorResponse, "v3InstallConnectorResponse"); this.v3InstallConnectorResponse = Optional.ofNullable(v3InstallConnectorResponse); return this; @@ -235,7 +235,7 @@ public Builder v3InstallConnectorResponse(com.formance.formance_sdk.models.share /** * Accepted */ - public Builder v3InstallConnectorResponse(Optional v3InstallConnectorResponse) { + public Builder v3InstallConnectorResponse(Optional v3InstallConnectorResponse) { Utils.checkNotNull(v3InstallConnectorResponse, "v3InstallConnectorResponse"); this.v3InstallConnectorResponse = v3InstallConnectorResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequest.java index ba48b9fc5..90b266099 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListAccountsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListAccountsRequest { @JsonCreator public V3ListAccountsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListAccountsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListAccountsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListAccountsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListAccountsRequest other = (V3ListAccountsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListAccountsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListAccountsRequest build() { return new V3ListAccountsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequestBuilder.java index 32bf2e646..2499edf0a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListAccounts; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListAccountsRequestBuilder { private V3ListAccountsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListAccountsRequestBuilder request(V3ListAccountsRequest request) { this.request = request; return this; } + + public V3ListAccountsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListAccountsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListAccountsResponse call() { RequestOperation operation - = new V3ListAccounts.Sync(sdkConfiguration, _headers); + = new V3ListAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsResponse.java index 0aa0a21c1..714e7d815 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListAccountsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3AccountsCursorResponse; +import com.formance.formance_sdk.models.payments.V3AccountsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequest.java index 9a6f4122a..2abfba458 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListBankAccountsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListBankAccountsRequest { @JsonCreator public V3ListBankAccountsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListBankAccountsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListBankAccountsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListBankAccountsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListBankAccountsRequest other = (V3ListBankAccountsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListBankAccountsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListBankAccountsRequest build() { return new V3ListBankAccountsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequestBuilder.java index e3ff6bfdc..6a664f374 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListBankAccounts; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListBankAccountsRequestBuilder { private V3ListBankAccountsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListBankAccountsRequestBuilder request(V3ListBankAccountsRequest reques this.request = request; return this; } + + public V3ListBankAccountsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListBankAccountsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListBankAccountsResponse call() { RequestOperation operation - = new V3ListBankAccounts.Sync(sdkConfiguration, _headers); + = new V3ListBankAccounts.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsResponse.java index dd2d18b41..0474c73ce 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListBankAccountsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3BankAccountsCursorResponse; +import com.formance.formance_sdk.models.payments.V3BankAccountsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsRequestBuilder.java index ddf08379f..74f1dee34 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsRequestBuilder.java @@ -8,20 +8,36 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.operations.V3ListConnectorConfigs; import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListConnectorConfigsRequestBuilder { + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public V3ListConnectorConfigsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public V3ListConnectorConfigsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListConnectorConfigsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListConnectorConfigsResponse call() { RequestlessOperation operation - = new V3ListConnectorConfigs.Sync(sdkConfiguration, _headers); + = new V3ListConnectorConfigs.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest()); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsResponse.java index b9cd637e0..d11e31f8b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorConfigsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3ConnectorConfigsResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorConfigsResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesRequestBuilder.java index 94b7dca85..aa28ee865 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListConnectorScheduleInstances; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListConnectorScheduleInstancesRequestBuilder { private V3ListConnectorScheduleInstancesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListConnectorScheduleInstancesRequestBuilder request(V3ListConnectorSch this.request = request; return this; } + + public V3ListConnectorScheduleInstancesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListConnectorScheduleInstancesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListConnectorScheduleInstancesResponse call() { RequestOperation operation - = new V3ListConnectorScheduleInstances.Sync(sdkConfiguration, _headers); + = new V3ListConnectorScheduleInstances.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesResponse.java index 420cf9345..9e2bee731 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorScheduleInstancesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3ConnectorScheduleInstancesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorScheduleInstancesCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequest.java index acac38bc6..69fe0d6aa 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListConnectorSchedulesRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * The connector ID */ @@ -37,12 +44,15 @@ public class V3ListConnectorSchedulesRequest { @JsonCreator public V3ListConnectorSchedulesRequest( + Optional> requestBody, String connectorID, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.connectorID = connectorID; this.cursor = cursor; this.pageSize = pageSize; @@ -50,7 +60,14 @@ public V3ListConnectorSchedulesRequest( public V3ListConnectorSchedulesRequest( String connectorID) { - this(connectorID, Optional.empty(), Optional.empty()); + this(Optional.empty(), connectorID, Optional.empty(), + Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -85,6 +102,19 @@ public static Builder builder() { } + public V3ListConnectorSchedulesRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListConnectorSchedulesRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * The connector ID */ @@ -148,6 +178,7 @@ public boolean equals(java.lang.Object o) { } V3ListConnectorSchedulesRequest other = (V3ListConnectorSchedulesRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); @@ -156,12 +187,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - connectorID, cursor, pageSize); + requestBody, connectorID, cursor, + pageSize); } @Override public String toString() { return Utils.toString(V3ListConnectorSchedulesRequest.class, + "requestBody", requestBody, "connectorID", connectorID, "cursor", cursor, "pageSize", pageSize); @@ -170,6 +203,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private String connectorID; private Optional cursor = Optional.empty(); @@ -181,6 +216,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * The connector ID */ @@ -237,7 +285,8 @@ public Builder pageSize(Optional pageSize) { public V3ListConnectorSchedulesRequest build() { return new V3ListConnectorSchedulesRequest( - connectorID, cursor, pageSize); + requestBody, connectorID, cursor, + pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequestBuilder.java index e4193df9e..3801b90df 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListConnectorSchedules; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListConnectorSchedulesRequestBuilder { private V3ListConnectorSchedulesRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListConnectorSchedulesRequestBuilder request(V3ListConnectorSchedulesRe this.request = request; return this; } + + public V3ListConnectorSchedulesRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListConnectorSchedulesRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListConnectorSchedulesResponse call() { RequestOperation operation - = new V3ListConnectorSchedules.Sync(sdkConfiguration, _headers); + = new V3ListConnectorSchedules.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesResponse.java index 5047042df..051fc07b9 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorSchedulesResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3ConnectorSchedulesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorSchedulesCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequest.java index c202fad06..af7a5ab27 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListConnectorsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListConnectorsRequest { @JsonCreator public V3ListConnectorsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListConnectorsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListConnectorsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListConnectorsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListConnectorsRequest other = (V3ListConnectorsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListConnectorsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListConnectorsRequest build() { return new V3ListConnectorsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequestBuilder.java index f22ee7b01..36760a9fe 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListConnectors; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListConnectorsRequestBuilder { private V3ListConnectorsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListConnectorsRequestBuilder request(V3ListConnectorsRequest request) { this.request = request; return this; } + + public V3ListConnectorsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListConnectorsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListConnectorsResponse call() { RequestOperation operation - = new V3ListConnectors.Sync(sdkConfiguration, _headers); + = new V3ListConnectors.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsResponse.java index ad5825568..8bcd7f5df 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListConnectorsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3ConnectorsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequest.java index e4535184e..daa0ff9f2 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentInitiationAdjustmentsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -37,12 +44,15 @@ public class V3ListPaymentInitiationAdjustmentsRequest { @JsonCreator public V3ListPaymentInitiationAdjustmentsRequest( + Optional> requestBody, Optional cursor, Optional pageSize, String paymentInitiationID) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(paymentInitiationID, "paymentInitiationID"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; this.paymentInitiationID = paymentInitiationID; @@ -50,7 +60,14 @@ public V3ListPaymentInitiationAdjustmentsRequest( public V3ListPaymentInitiationAdjustmentsRequest( String paymentInitiationID) { - this(Optional.empty(), Optional.empty(), paymentInitiationID); + this(Optional.empty(), Optional.empty(), Optional.empty(), + paymentInitiationID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -85,6 +102,19 @@ public static Builder builder() { } + public V3ListPaymentInitiationAdjustmentsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentInitiationAdjustmentsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -148,6 +178,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentInitiationAdjustmentsRequest other = (V3ListPaymentInitiationAdjustmentsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && Utils.enhancedDeepEquals(this.paymentInitiationID, other.paymentInitiationID); @@ -156,12 +187,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize, paymentInitiationID); + requestBody, cursor, pageSize, + paymentInitiationID); } @Override public String toString() { return Utils.toString(V3ListPaymentInitiationAdjustmentsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize, "paymentInitiationID", paymentInitiationID); @@ -170,6 +203,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -181,6 +216,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -237,7 +285,8 @@ public Builder paymentInitiationID(String paymentInitiationID) { public V3ListPaymentInitiationAdjustmentsRequest build() { return new V3ListPaymentInitiationAdjustmentsRequest( - cursor, pageSize, paymentInitiationID); + requestBody, cursor, pageSize, + paymentInitiationID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequestBuilder.java index 435cb7499..ce1986f29 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentInitiationAdjustments; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentInitiationAdjustmentsRequestBuilder { private V3ListPaymentInitiationAdjustmentsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentInitiationAdjustmentsRequestBuilder request(V3ListPaymentIni this.request = request; return this; } + + public V3ListPaymentInitiationAdjustmentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentInitiationAdjustmentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentInitiationAdjustmentsResponse call() { RequestOperation operation - = new V3ListPaymentInitiationAdjustments.Sync(sdkConfiguration, _headers); + = new V3ListPaymentInitiationAdjustments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsResponse.java index fe47a20ce..5daa61407 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationAdjustmentsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentInitiationAdjustmentsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationAdjustmentsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.java index fbdf833a0..e5719ff43 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentInitiationRelatedPaymentsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -37,12 +44,15 @@ public class V3ListPaymentInitiationRelatedPaymentsRequest { @JsonCreator public V3ListPaymentInitiationRelatedPaymentsRequest( + Optional> requestBody, Optional cursor, Optional pageSize, String paymentInitiationID) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(paymentInitiationID, "paymentInitiationID"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; this.paymentInitiationID = paymentInitiationID; @@ -50,7 +60,14 @@ public V3ListPaymentInitiationRelatedPaymentsRequest( public V3ListPaymentInitiationRelatedPaymentsRequest( String paymentInitiationID) { - this(Optional.empty(), Optional.empty(), paymentInitiationID); + this(Optional.empty(), Optional.empty(), Optional.empty(), + paymentInitiationID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -85,6 +102,19 @@ public static Builder builder() { } + public V3ListPaymentInitiationRelatedPaymentsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentInitiationRelatedPaymentsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -148,6 +178,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentInitiationRelatedPaymentsRequest other = (V3ListPaymentInitiationRelatedPaymentsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && Utils.enhancedDeepEquals(this.paymentInitiationID, other.paymentInitiationID); @@ -156,12 +187,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize, paymentInitiationID); + requestBody, cursor, pageSize, + paymentInitiationID); } @Override public String toString() { return Utils.toString(V3ListPaymentInitiationRelatedPaymentsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize, "paymentInitiationID", paymentInitiationID); @@ -170,6 +203,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -181,6 +216,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -237,7 +285,8 @@ public Builder paymentInitiationID(String paymentInitiationID) { public V3ListPaymentInitiationRelatedPaymentsRequest build() { return new V3ListPaymentInitiationRelatedPaymentsRequest( - cursor, pageSize, paymentInitiationID); + requestBody, cursor, pageSize, + paymentInitiationID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequestBuilder.java index 15e4580b6..7d14b33f1 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentInitiationRelatedPayments; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentInitiationRelatedPaymentsRequestBuilder { private V3ListPaymentInitiationRelatedPaymentsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentInitiationRelatedPaymentsRequestBuilder request(V3ListPaymen this.request = request; return this; } + + public V3ListPaymentInitiationRelatedPaymentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentInitiationRelatedPaymentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentInitiationRelatedPaymentsResponse call() { RequestOperation operation - = new V3ListPaymentInitiationRelatedPayments.Sync(sdkConfiguration, _headers); + = new V3ListPaymentInitiationRelatedPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsResponse.java index cae7f4867..67b8877ab 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationRelatedPaymentsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentInitiationRelatedPaymentsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationRelatedPaymentsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequest.java index 61c63605e..7177caf9e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentInitiationsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListPaymentInitiationsRequest { @JsonCreator public V3ListPaymentInitiationsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListPaymentInitiationsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListPaymentInitiationsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentInitiationsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentInitiationsRequest other = (V3ListPaymentInitiationsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListPaymentInitiationsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListPaymentInitiationsRequest build() { return new V3ListPaymentInitiationsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequestBuilder.java index 20a914c44..03edbba2b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentInitiations; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentInitiationsRequestBuilder { private V3ListPaymentInitiationsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentInitiationsRequestBuilder request(V3ListPaymentInitiationsRe this.request = request; return this; } + + public V3ListPaymentInitiationsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentInitiationsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentInitiationsResponse call() { RequestOperation operation - = new V3ListPaymentInitiations.Sync(sdkConfiguration, _headers); + = new V3ListPaymentInitiations.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsResponse.java index ad20fb503..0a246e9f5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentInitiationsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentInitiationsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.java index 7a88afe55..eefb51913 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUserConnectionsFromConnectorIDRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * The connector ID */ @@ -43,14 +50,17 @@ public class V3ListPaymentServiceUserConnectionsFromConnectorIDRequest { @JsonCreator public V3ListPaymentServiceUserConnectionsFromConnectorIDRequest( + Optional> requestBody, String connectorID, Optional cursor, Optional pageSize, String paymentServiceUserID) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(paymentServiceUserID, "paymentServiceUserID"); + this.requestBody = requestBody; this.connectorID = connectorID; this.cursor = cursor; this.pageSize = pageSize; @@ -60,8 +70,14 @@ public V3ListPaymentServiceUserConnectionsFromConnectorIDRequest( public V3ListPaymentServiceUserConnectionsFromConnectorIDRequest( String connectorID, String paymentServiceUserID) { - this(connectorID, Optional.empty(), Optional.empty(), - paymentServiceUserID); + this(Optional.empty(), connectorID, Optional.empty(), + Optional.empty(), paymentServiceUserID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -104,6 +120,19 @@ public static Builder builder() { } + public V3ListPaymentServiceUserConnectionsFromConnectorIDRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentServiceUserConnectionsFromConnectorIDRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * The connector ID */ @@ -176,6 +205,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentServiceUserConnectionsFromConnectorIDRequest other = (V3ListPaymentServiceUserConnectionsFromConnectorIDRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && @@ -185,13 +215,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - connectorID, cursor, pageSize, - paymentServiceUserID); + requestBody, connectorID, cursor, + pageSize, paymentServiceUserID); } @Override public String toString() { return Utils.toString(V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.class, + "requestBody", requestBody, "connectorID", connectorID, "cursor", cursor, "pageSize", pageSize, @@ -201,6 +232,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private String connectorID; private Optional cursor = Optional.empty(); @@ -214,6 +247,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * The connector ID */ @@ -280,8 +326,8 @@ public Builder paymentServiceUserID(String paymentServiceUserID) { public V3ListPaymentServiceUserConnectionsFromConnectorIDRequest build() { return new V3ListPaymentServiceUserConnectionsFromConnectorIDRequest( - connectorID, cursor, pageSize, - paymentServiceUserID); + requestBody, connectorID, cursor, + pageSize, paymentServiceUserID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder.java index 4e1cd6e81..039630e89 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentServiceUserConnectionsFromConnectorID; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder { private V3ListPaymentServiceUserConnectionsFromConnectorIDRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder request( this.request = request; return this; } + + public V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentServiceUserConnectionsFromConnectorIDRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentServiceUserConnectionsFromConnectorIDResponse call() { RequestOperation operation - = new V3ListPaymentServiceUserConnectionsFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUserConnectionsFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDResponse.java index 1d8737fe7..dab4b0e10 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsFromConnectorIDResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserConnectionsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserConnectionsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequest.java index 8e1ec0935..dcf12e9d3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUserConnectionsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -37,12 +44,15 @@ public class V3ListPaymentServiceUserConnectionsRequest { @JsonCreator public V3ListPaymentServiceUserConnectionsRequest( + Optional> requestBody, Optional cursor, Optional pageSize, String paymentServiceUserID) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(paymentServiceUserID, "paymentServiceUserID"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; this.paymentServiceUserID = paymentServiceUserID; @@ -50,7 +60,14 @@ public V3ListPaymentServiceUserConnectionsRequest( public V3ListPaymentServiceUserConnectionsRequest( String paymentServiceUserID) { - this(Optional.empty(), Optional.empty(), paymentServiceUserID); + this(Optional.empty(), Optional.empty(), Optional.empty(), + paymentServiceUserID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -85,6 +102,19 @@ public static Builder builder() { } + public V3ListPaymentServiceUserConnectionsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentServiceUserConnectionsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -148,6 +178,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentServiceUserConnectionsRequest other = (V3ListPaymentServiceUserConnectionsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && Utils.enhancedDeepEquals(this.paymentServiceUserID, other.paymentServiceUserID); @@ -156,12 +187,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize, paymentServiceUserID); + requestBody, cursor, pageSize, + paymentServiceUserID); } @Override public String toString() { return Utils.toString(V3ListPaymentServiceUserConnectionsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize, "paymentServiceUserID", paymentServiceUserID); @@ -170,6 +203,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -181,6 +216,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -237,7 +285,8 @@ public Builder paymentServiceUserID(String paymentServiceUserID) { public V3ListPaymentServiceUserConnectionsRequest build() { return new V3ListPaymentServiceUserConnectionsRequest( - cursor, pageSize, paymentServiceUserID); + requestBody, cursor, pageSize, + paymentServiceUserID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequestBuilder.java index 4c7a119b3..de26c2655 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentServiceUserConnections; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentServiceUserConnectionsRequestBuilder { private V3ListPaymentServiceUserConnectionsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentServiceUserConnectionsRequestBuilder request(V3ListPaymentSe this.request = request; return this; } + + public V3ListPaymentServiceUserConnectionsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentServiceUserConnectionsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentServiceUserConnectionsResponse call() { RequestOperation operation - = new V3ListPaymentServiceUserConnections.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUserConnections.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsResponse.java index 817c0bd91..942a02b29 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserConnectionsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserConnectionsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserConnectionsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.java index 8dcc24065..4db29274d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * The connector ID */ @@ -43,14 +50,17 @@ public class V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest { @JsonCreator public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest( + Optional> requestBody, String connectorID, Optional cursor, Optional pageSize, String paymentServiceUserID) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); Utils.checkNotNull(paymentServiceUserID, "paymentServiceUserID"); + this.requestBody = requestBody; this.connectorID = connectorID; this.cursor = cursor; this.pageSize = pageSize; @@ -60,8 +70,14 @@ public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest( public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest( String connectorID, String paymentServiceUserID) { - this(connectorID, Optional.empty(), Optional.empty(), - paymentServiceUserID); + this(Optional.empty(), connectorID, Optional.empty(), + Optional.empty(), paymentServiceUserID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -104,6 +120,19 @@ public static Builder builder() { } + public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * The connector ID */ @@ -176,6 +205,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest other = (V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && @@ -185,13 +215,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - connectorID, cursor, pageSize, - paymentServiceUserID); + requestBody, connectorID, cursor, + pageSize, paymentServiceUserID); } @Override public String toString() { return Utils.toString(V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.class, + "requestBody", requestBody, "connectorID", connectorID, "cursor", cursor, "pageSize", pageSize, @@ -201,6 +232,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private String connectorID; private Optional cursor = Optional.empty(); @@ -214,6 +247,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * The connector ID */ @@ -280,8 +326,8 @@ public Builder paymentServiceUserID(String paymentServiceUserID) { public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest build() { return new V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest( - connectorID, cursor, pageSize, - paymentServiceUserID); + requestBody, connectorID, cursor, + pageSize, paymentServiceUserID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder.java index 205ecfcbc..d10114222 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentServiceUserLinkAttemptsFromConnectorID; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder { private V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder request this.request = request; return this; } + + public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse call() { RequestOperation operation - = new V3ListPaymentServiceUserLinkAttemptsFromConnectorID.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUserLinkAttemptsFromConnectorID.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse.java index ed0721e2c..175f42772 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserLinkAttemptsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserLinkAttemptsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequest.java index cd4675bf0..5c4a53ba7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUsersRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListPaymentServiceUsersRequest { @JsonCreator public V3ListPaymentServiceUsersRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListPaymentServiceUsersRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListPaymentServiceUsersRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentServiceUsersRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentServiceUsersRequest other = (V3ListPaymentServiceUsersRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListPaymentServiceUsersRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListPaymentServiceUsersRequest build() { return new V3ListPaymentServiceUsersRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequestBuilder.java index 7ae37a84b..71a3741e4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPaymentServiceUsers; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentServiceUsersRequestBuilder { private V3ListPaymentServiceUsersRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentServiceUsersRequestBuilder request(V3ListPaymentServiceUsers this.request = request; return this; } + + public V3ListPaymentServiceUsersRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentServiceUsersRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentServiceUsersResponse call() { RequestOperation operation - = new V3ListPaymentServiceUsers.Sync(sdkConfiguration, _headers); + = new V3ListPaymentServiceUsers.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersResponse.java index a3d6febaa..03c0e39cb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentServiceUsersResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUsersCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUsersCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequest.java index d43aade6f..2da85950d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPaymentsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListPaymentsRequest { @JsonCreator public V3ListPaymentsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListPaymentsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListPaymentsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPaymentsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListPaymentsRequest other = (V3ListPaymentsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListPaymentsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListPaymentsRequest build() { return new V3ListPaymentsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequestBuilder.java index aec3a61cd..229da82a3 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPayments; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPaymentsRequestBuilder { private V3ListPaymentsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPaymentsRequestBuilder request(V3ListPaymentsRequest request) { this.request = request; return this; } + + public V3ListPaymentsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPaymentsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPaymentsResponse call() { RequestOperation operation - = new V3ListPayments.Sync(sdkConfiguration, _headers); + = new V3ListPayments.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsResponse.java index 39e0afb58..e33752649 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPaymentsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequest.java index 8da84b630..eea9cf0df 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequest.java @@ -8,12 +8,19 @@ import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Long; +import java.lang.Object; import java.lang.Override; import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; import java.util.Optional; public class V3ListPoolsRequest { + + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional> requestBody; + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -31,16 +38,25 @@ public class V3ListPoolsRequest { @JsonCreator public V3ListPoolsRequest( + Optional> requestBody, Optional cursor, Optional pageSize) { + Utils.checkNotNull(requestBody, "requestBody"); Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(pageSize, "pageSize"); + this.requestBody = requestBody; this.cursor = cursor; this.pageSize = pageSize; } public V3ListPoolsRequest() { - this(Optional.empty(), Optional.empty()); + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> requestBody() { + return (Optional>) requestBody; } /** @@ -67,6 +83,19 @@ public static Builder builder() { } + public V3ListPoolsRequest withRequestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + + public V3ListPoolsRequest withRequestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -121,6 +150,7 @@ public boolean equals(java.lang.Object o) { } V3ListPoolsRequest other = (V3ListPoolsRequest) o; return + Utils.enhancedDeepEquals(this.requestBody, other.requestBody) && Utils.enhancedDeepEquals(this.cursor, other.cursor) && Utils.enhancedDeepEquals(this.pageSize, other.pageSize); } @@ -128,12 +158,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - cursor, pageSize); + requestBody, cursor, pageSize); } @Override public String toString() { return Utils.toString(V3ListPoolsRequest.class, + "requestBody", requestBody, "cursor", cursor, "pageSize", pageSize); } @@ -141,6 +172,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional> requestBody = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional pageSize = Optional.empty(); @@ -150,6 +183,19 @@ private Builder() { } + public Builder requestBody(Map requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = Optional.ofNullable(requestBody); + return this; + } + + public Builder requestBody(Optional> requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + + /** * Parameter used in pagination requests. Set to the value of next for the next page of results. Set to * the value of previous for the previous page of results. @@ -196,7 +242,7 @@ public Builder pageSize(Optional pageSize) { public V3ListPoolsRequest build() { return new V3ListPoolsRequest( - cursor, pageSize); + requestBody, cursor, pageSize); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequestBuilder.java index 6ed0277b5..b93f5f63b 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ListPools; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ListPoolsRequestBuilder { private V3ListPoolsRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ListPoolsRequestBuilder request(V3ListPoolsRequest request) { this.request = request; return this; } + + public V3ListPoolsRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ListPoolsRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ListPoolsResponse call() { RequestOperation operation - = new V3ListPools.Sync(sdkConfiguration, _headers); + = new V3ListPools.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsResponse.java index 56f641483..40babc84a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ListPoolsResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PoolsCursorResponse; +import com.formance.formance_sdk.models.payments.V3PoolsCursorResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationRequestBuilder.java index 7a100a0c2..8b975c59d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3RejectPaymentInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3RejectPaymentInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3RejectPaymentInitiationRequestBuilder { private V3RejectPaymentInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3RejectPaymentInitiationRequestBuilder request(V3RejectPaymentInitiation this.request = request; return this; } + + public V3RejectPaymentInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3RejectPaymentInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3RejectPaymentInitiationResponse call() { RequestOperation operation - = new V3RejectPaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3RejectPaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3RemoveAccountFromPoolRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3RemoveAccountFromPoolRequestBuilder.java index 893a5ad8d..474ea9424 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3RemoveAccountFromPoolRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3RemoveAccountFromPoolRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3RemoveAccountFromPool; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3RemoveAccountFromPoolRequestBuilder { private V3RemoveAccountFromPoolRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3RemoveAccountFromPoolRequestBuilder request(V3RemoveAccountFromPoolRequ this.request = request; return this; } + + public V3RemoveAccountFromPoolRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3RemoveAccountFromPoolRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3RemoveAccountFromPoolResponse call() { RequestOperation operation - = new V3RemoveAccountFromPool.Sync(sdkConfiguration, _headers); + = new V3RemoveAccountFromPool.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorRequestBuilder.java index 31c71e86b..771992209 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ResetConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ResetConnectorRequestBuilder { private V3ResetConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ResetConnectorRequestBuilder request(V3ResetConnectorRequest request) { this.request = request; return this; } + + public V3ResetConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ResetConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ResetConnectorResponse call() { RequestOperation operation - = new V3ResetConnector.Sync(sdkConfiguration, _headers); + = new V3ResetConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorResponse.java index 3b70da41d..fcc5add9f 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ResetConnectorResponse.java @@ -35,14 +35,14 @@ public class V3ResetConnectorResponse implements Response { /** * Accepted */ - private Optional v3ResetConnectorResponse; + private Optional v3ResetConnectorResponse; @JsonCreator public V3ResetConnectorResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3ResetConnectorResponse) { + Optional v3ResetConnectorResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ResetConnectorResponse() { - return (Optional) v3ResetConnectorResponse; + public Optional v3ResetConnectorResponse() { + return (Optional) v3ResetConnectorResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3ResetConnectorResponse withRawResponse(HttpResponse rawRes /** * Accepted */ - public V3ResetConnectorResponse withV3ResetConnectorResponse(com.formance.formance_sdk.models.shared.V3ResetConnectorResponse v3ResetConnectorResponse) { + public V3ResetConnectorResponse withV3ResetConnectorResponse(com.formance.formance_sdk.models.payments.V3ResetConnectorResponse v3ResetConnectorResponse) { Utils.checkNotNull(v3ResetConnectorResponse, "v3ResetConnectorResponse"); this.v3ResetConnectorResponse = Optional.ofNullable(v3ResetConnectorResponse); return this; @@ -139,7 +139,7 @@ public V3ResetConnectorResponse withV3ResetConnectorResponse(com.formance.forman /** * Accepted */ - public V3ResetConnectorResponse withV3ResetConnectorResponse(Optional v3ResetConnectorResponse) { + public V3ResetConnectorResponse withV3ResetConnectorResponse(Optional v3ResetConnectorResponse) { Utils.checkNotNull(v3ResetConnectorResponse, "v3ResetConnectorResponse"); this.v3ResetConnectorResponse = v3ResetConnectorResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3ResetConnectorResponse = Optional.empty(); + private Optional v3ResetConnectorResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3ResetConnectorResponse(com.formance.formance_sdk.models.shared.V3ResetConnectorResponse v3ResetConnectorResponse) { + public Builder v3ResetConnectorResponse(com.formance.formance_sdk.models.payments.V3ResetConnectorResponse v3ResetConnectorResponse) { Utils.checkNotNull(v3ResetConnectorResponse, "v3ResetConnectorResponse"); this.v3ResetConnectorResponse = Optional.ofNullable(v3ResetConnectorResponse); return this; @@ -235,7 +235,7 @@ public Builder v3ResetConnectorResponse(com.formance.formance_sdk.models.shared. /** * Accepted */ - public Builder v3ResetConnectorResponse(Optional v3ResetConnectorResponse) { + public Builder v3ResetConnectorResponse(Optional v3ResetConnectorResponse) { Utils.checkNotNull(v3ResetConnectorResponse, "v3ResetConnectorResponse"); this.v3ResetConnectorResponse = v3ResetConnectorResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationRequestBuilder.java index 95a50e749..0ab0c0351 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3RetryPaymentInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3RetryPaymentInitiationRequestBuilder { private V3RetryPaymentInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3RetryPaymentInitiationRequestBuilder request(V3RetryPaymentInitiationRe this.request = request; return this; } + + public V3RetryPaymentInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3RetryPaymentInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3RetryPaymentInitiationResponse call() { RequestOperation operation - = new V3RetryPaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3RetryPaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationResponse.java index 52f226caf..ef2704ca4 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3RetryPaymentInitiationResponse.java @@ -35,14 +35,14 @@ public class V3RetryPaymentInitiationResponse implements Response { /** * Accepted */ - private Optional v3RetryPaymentInitiationResponse; + private Optional v3RetryPaymentInitiationResponse; @JsonCreator public V3RetryPaymentInitiationResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3RetryPaymentInitiationResponse) { + Optional v3RetryPaymentInitiationResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3RetryPaymentInitiationResponse() { - return (Optional) v3RetryPaymentInitiationResponse; + public Optional v3RetryPaymentInitiationResponse() { + return (Optional) v3RetryPaymentInitiationResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3RetryPaymentInitiationResponse withRawResponse(HttpResponse v3RetryPaymentInitiationResponse) { + public V3RetryPaymentInitiationResponse withV3RetryPaymentInitiationResponse(Optional v3RetryPaymentInitiationResponse) { Utils.checkNotNull(v3RetryPaymentInitiationResponse, "v3RetryPaymentInitiationResponse"); this.v3RetryPaymentInitiationResponse = v3RetryPaymentInitiationResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3RetryPaymentInitiationResponse = Optional.empty(); + private Optional v3RetryPaymentInitiationResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3RetryPaymentInitiationResponse(com.formance.formance_sdk.models.shared.V3RetryPaymentInitiationResponse v3RetryPaymentInitiationResponse) { + public Builder v3RetryPaymentInitiationResponse(com.formance.formance_sdk.models.payments.V3RetryPaymentInitiationResponse v3RetryPaymentInitiationResponse) { Utils.checkNotNull(v3RetryPaymentInitiationResponse, "v3RetryPaymentInitiationResponse"); this.v3RetryPaymentInitiationResponse = Optional.ofNullable(v3RetryPaymentInitiationResponse); return this; @@ -235,7 +235,7 @@ public Builder v3RetryPaymentInitiationResponse(com.formance.formance_sdk.models /** * Accepted */ - public Builder v3RetryPaymentInitiationResponse(Optional v3RetryPaymentInitiationResponse) { + public Builder v3RetryPaymentInitiationResponse(Optional v3RetryPaymentInitiationResponse) { Utils.checkNotNull(v3RetryPaymentInitiationResponse, "v3RetryPaymentInitiationResponse"); this.v3RetryPaymentInitiationResponse = v3RetryPaymentInitiationResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequest.java index ad1d7f10a..30343fb47 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequest.java @@ -16,7 +16,7 @@ public class V3ReversePaymentInitiationRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3ReversePaymentInitiationRequest; + private Optional v3ReversePaymentInitiationRequest; /** * The payment initiation ID @@ -26,7 +26,7 @@ public class V3ReversePaymentInitiationRequest { @JsonCreator public V3ReversePaymentInitiationRequest( - Optional v3ReversePaymentInitiationRequest, + Optional v3ReversePaymentInitiationRequest, String paymentInitiationID) { Utils.checkNotNull(v3ReversePaymentInitiationRequest, "v3ReversePaymentInitiationRequest"); Utils.checkNotNull(paymentInitiationID, "paymentInitiationID"); @@ -41,8 +41,8 @@ public V3ReversePaymentInitiationRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ReversePaymentInitiationRequest() { - return (Optional) v3ReversePaymentInitiationRequest; + public Optional v3ReversePaymentInitiationRequest() { + return (Optional) v3ReversePaymentInitiationRequest; } /** @@ -58,14 +58,14 @@ public static Builder builder() { } - public V3ReversePaymentInitiationRequest withV3ReversePaymentInitiationRequest(com.formance.formance_sdk.models.shared.V3ReversePaymentInitiationRequest v3ReversePaymentInitiationRequest) { + public V3ReversePaymentInitiationRequest withV3ReversePaymentInitiationRequest(com.formance.formance_sdk.models.payments.V3ReversePaymentInitiationRequest v3ReversePaymentInitiationRequest) { Utils.checkNotNull(v3ReversePaymentInitiationRequest, "v3ReversePaymentInitiationRequest"); this.v3ReversePaymentInitiationRequest = Optional.ofNullable(v3ReversePaymentInitiationRequest); return this; } - public V3ReversePaymentInitiationRequest withV3ReversePaymentInitiationRequest(Optional v3ReversePaymentInitiationRequest) { + public V3ReversePaymentInitiationRequest withV3ReversePaymentInitiationRequest(Optional v3ReversePaymentInitiationRequest) { Utils.checkNotNull(v3ReversePaymentInitiationRequest, "v3ReversePaymentInitiationRequest"); this.v3ReversePaymentInitiationRequest = v3ReversePaymentInitiationRequest; return this; @@ -110,7 +110,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3ReversePaymentInitiationRequest = Optional.empty(); + private Optional v3ReversePaymentInitiationRequest = Optional.empty(); private String paymentInitiationID; @@ -119,13 +119,13 @@ private Builder() { } - public Builder v3ReversePaymentInitiationRequest(com.formance.formance_sdk.models.shared.V3ReversePaymentInitiationRequest v3ReversePaymentInitiationRequest) { + public Builder v3ReversePaymentInitiationRequest(com.formance.formance_sdk.models.payments.V3ReversePaymentInitiationRequest v3ReversePaymentInitiationRequest) { Utils.checkNotNull(v3ReversePaymentInitiationRequest, "v3ReversePaymentInitiationRequest"); this.v3ReversePaymentInitiationRequest = Optional.ofNullable(v3ReversePaymentInitiationRequest); return this; } - public Builder v3ReversePaymentInitiationRequest(Optional v3ReversePaymentInitiationRequest) { + public Builder v3ReversePaymentInitiationRequest(Optional v3ReversePaymentInitiationRequest) { Utils.checkNotNull(v3ReversePaymentInitiationRequest, "v3ReversePaymentInitiationRequest"); this.v3ReversePaymentInitiationRequest = v3ReversePaymentInitiationRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequestBuilder.java index b8672554e..5c7e0fdc5 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3ReversePaymentInitiation; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3ReversePaymentInitiationRequestBuilder { private V3ReversePaymentInitiationRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3ReversePaymentInitiationRequestBuilder request(V3ReversePaymentInitiati this.request = request; return this; } + + public V3ReversePaymentInitiationRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3ReversePaymentInitiationRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3ReversePaymentInitiationResponse call() { RequestOperation operation - = new V3ReversePaymentInitiation.Sync(sdkConfiguration, _headers); + = new V3ReversePaymentInitiation.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationResponse.java index 5743632c8..229a2cf8d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3ReversePaymentInitiationResponse.java @@ -35,14 +35,14 @@ public class V3ReversePaymentInitiationResponse implements Response { /** * Accepted */ - private Optional v3ReversePaymentInitiationResponse; + private Optional v3ReversePaymentInitiationResponse; @JsonCreator public V3ReversePaymentInitiationResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3ReversePaymentInitiationResponse) { + Optional v3ReversePaymentInitiationResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3ReversePaymentInitiationResponse() { - return (Optional) v3ReversePaymentInitiationResponse; + public Optional v3ReversePaymentInitiationResponse() { + return (Optional) v3ReversePaymentInitiationResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3ReversePaymentInitiationResponse withRawResponse(HttpResponse v3ReversePaymentInitiationResponse) { + public V3ReversePaymentInitiationResponse withV3ReversePaymentInitiationResponse(Optional v3ReversePaymentInitiationResponse) { Utils.checkNotNull(v3ReversePaymentInitiationResponse, "v3ReversePaymentInitiationResponse"); this.v3ReversePaymentInitiationResponse = v3ReversePaymentInitiationResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3ReversePaymentInitiationResponse = Optional.empty(); + private Optional v3ReversePaymentInitiationResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3ReversePaymentInitiationResponse(com.formance.formance_sdk.models.shared.V3ReversePaymentInitiationResponse v3ReversePaymentInitiationResponse) { + public Builder v3ReversePaymentInitiationResponse(com.formance.formance_sdk.models.payments.V3ReversePaymentInitiationResponse v3ReversePaymentInitiationResponse) { Utils.checkNotNull(v3ReversePaymentInitiationResponse, "v3ReversePaymentInitiationResponse"); this.v3ReversePaymentInitiationResponse = Optional.ofNullable(v3ReversePaymentInitiationResponse); return this; @@ -235,7 +235,7 @@ public Builder v3ReversePaymentInitiationResponse(com.formance.formance_sdk.mode /** * Accepted */ - public Builder v3ReversePaymentInitiationResponse(Optional v3ReversePaymentInitiationResponse) { + public Builder v3ReversePaymentInitiationResponse(Optional v3ReversePaymentInitiationResponse) { Utils.checkNotNull(v3ReversePaymentInitiationResponse, "v3ReversePaymentInitiationResponse"); this.v3ReversePaymentInitiationResponse = v3ReversePaymentInitiationResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorRequestBuilder.java index 113473da1..5ab0423e7 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3UninstallConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3UninstallConnectorRequestBuilder { private V3UninstallConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3UninstallConnectorRequestBuilder request(V3UninstallConnectorRequest re this.request = request; return this; } + + public V3UninstallConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3UninstallConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3UninstallConnectorResponse call() { RequestOperation operation - = new V3UninstallConnector.Sync(sdkConfiguration, _headers); + = new V3UninstallConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorResponse.java index 94ccec286..1a6dd63ce 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UninstallConnectorResponse.java @@ -35,14 +35,14 @@ public class V3UninstallConnectorResponse implements Response { /** * Accepted */ - private Optional v3UninstallConnectorResponse; + private Optional v3UninstallConnectorResponse; @JsonCreator public V3UninstallConnectorResponse( String contentType, int statusCode, HttpResponse rawResponse, - Optional v3UninstallConnectorResponse) { + Optional v3UninstallConnectorResponse) { Utils.checkNotNull(contentType, "contentType"); Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(rawResponse, "rawResponse"); @@ -90,8 +90,8 @@ public HttpResponse rawResponse() { */ @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3UninstallConnectorResponse() { - return (Optional) v3UninstallConnectorResponse; + public Optional v3UninstallConnectorResponse() { + return (Optional) v3UninstallConnectorResponse; } public static Builder builder() { @@ -129,7 +129,7 @@ public V3UninstallConnectorResponse withRawResponse(HttpResponse ra /** * Accepted */ - public V3UninstallConnectorResponse withV3UninstallConnectorResponse(com.formance.formance_sdk.models.shared.V3UninstallConnectorResponse v3UninstallConnectorResponse) { + public V3UninstallConnectorResponse withV3UninstallConnectorResponse(com.formance.formance_sdk.models.payments.V3UninstallConnectorResponse v3UninstallConnectorResponse) { Utils.checkNotNull(v3UninstallConnectorResponse, "v3UninstallConnectorResponse"); this.v3UninstallConnectorResponse = Optional.ofNullable(v3UninstallConnectorResponse); return this; @@ -139,7 +139,7 @@ public V3UninstallConnectorResponse withV3UninstallConnectorResponse(com.formanc /** * Accepted */ - public V3UninstallConnectorResponse withV3UninstallConnectorResponse(Optional v3UninstallConnectorResponse) { + public V3UninstallConnectorResponse withV3UninstallConnectorResponse(Optional v3UninstallConnectorResponse) { Utils.checkNotNull(v3UninstallConnectorResponse, "v3UninstallConnectorResponse"); this.v3UninstallConnectorResponse = v3UninstallConnectorResponse; return this; @@ -186,7 +186,7 @@ public final static class Builder { private HttpResponse rawResponse; - private Optional v3UninstallConnectorResponse = Optional.empty(); + private Optional v3UninstallConnectorResponse = Optional.empty(); private Builder() { // force use of static builder() method @@ -226,7 +226,7 @@ public Builder rawResponse(HttpResponse rawResponse) { /** * Accepted */ - public Builder v3UninstallConnectorResponse(com.formance.formance_sdk.models.shared.V3UninstallConnectorResponse v3UninstallConnectorResponse) { + public Builder v3UninstallConnectorResponse(com.formance.formance_sdk.models.payments.V3UninstallConnectorResponse v3UninstallConnectorResponse) { Utils.checkNotNull(v3UninstallConnectorResponse, "v3UninstallConnectorResponse"); this.v3UninstallConnectorResponse = Optional.ofNullable(v3UninstallConnectorResponse); return this; @@ -235,7 +235,7 @@ public Builder v3UninstallConnectorResponse(com.formance.formance_sdk.models.sha /** * Accepted */ - public Builder v3UninstallConnectorResponse(Optional v3UninstallConnectorResponse) { + public Builder v3UninstallConnectorResponse(Optional v3UninstallConnectorResponse) { Utils.checkNotNull(v3UninstallConnectorResponse, "v3UninstallConnectorResponse"); this.v3UninstallConnectorResponse = v3UninstallConnectorResponse; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequest.java index deadaa155..8a3104cfb 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequest.java @@ -16,7 +16,7 @@ public class V3UpdateBankAccountMetadataRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3UpdateBankAccountMetadataRequest; + private Optional v3UpdateBankAccountMetadataRequest; /** * The bank account ID @@ -26,7 +26,7 @@ public class V3UpdateBankAccountMetadataRequest { @JsonCreator public V3UpdateBankAccountMetadataRequest( - Optional v3UpdateBankAccountMetadataRequest, + Optional v3UpdateBankAccountMetadataRequest, String bankAccountID) { Utils.checkNotNull(v3UpdateBankAccountMetadataRequest, "v3UpdateBankAccountMetadataRequest"); Utils.checkNotNull(bankAccountID, "bankAccountID"); @@ -41,8 +41,8 @@ public V3UpdateBankAccountMetadataRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3UpdateBankAccountMetadataRequest() { - return (Optional) v3UpdateBankAccountMetadataRequest; + public Optional v3UpdateBankAccountMetadataRequest() { + return (Optional) v3UpdateBankAccountMetadataRequest; } /** @@ -58,14 +58,14 @@ public static Builder builder() { } - public V3UpdateBankAccountMetadataRequest withV3UpdateBankAccountMetadataRequest(com.formance.formance_sdk.models.shared.V3UpdateBankAccountMetadataRequest v3UpdateBankAccountMetadataRequest) { + public V3UpdateBankAccountMetadataRequest withV3UpdateBankAccountMetadataRequest(com.formance.formance_sdk.models.payments.V3UpdateBankAccountMetadataRequest v3UpdateBankAccountMetadataRequest) { Utils.checkNotNull(v3UpdateBankAccountMetadataRequest, "v3UpdateBankAccountMetadataRequest"); this.v3UpdateBankAccountMetadataRequest = Optional.ofNullable(v3UpdateBankAccountMetadataRequest); return this; } - public V3UpdateBankAccountMetadataRequest withV3UpdateBankAccountMetadataRequest(Optional v3UpdateBankAccountMetadataRequest) { + public V3UpdateBankAccountMetadataRequest withV3UpdateBankAccountMetadataRequest(Optional v3UpdateBankAccountMetadataRequest) { Utils.checkNotNull(v3UpdateBankAccountMetadataRequest, "v3UpdateBankAccountMetadataRequest"); this.v3UpdateBankAccountMetadataRequest = v3UpdateBankAccountMetadataRequest; return this; @@ -110,7 +110,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3UpdateBankAccountMetadataRequest = Optional.empty(); + private Optional v3UpdateBankAccountMetadataRequest = Optional.empty(); private String bankAccountID; @@ -119,13 +119,13 @@ private Builder() { } - public Builder v3UpdateBankAccountMetadataRequest(com.formance.formance_sdk.models.shared.V3UpdateBankAccountMetadataRequest v3UpdateBankAccountMetadataRequest) { + public Builder v3UpdateBankAccountMetadataRequest(com.formance.formance_sdk.models.payments.V3UpdateBankAccountMetadataRequest v3UpdateBankAccountMetadataRequest) { Utils.checkNotNull(v3UpdateBankAccountMetadataRequest, "v3UpdateBankAccountMetadataRequest"); this.v3UpdateBankAccountMetadataRequest = Optional.ofNullable(v3UpdateBankAccountMetadataRequest); return this; } - public Builder v3UpdateBankAccountMetadataRequest(Optional v3UpdateBankAccountMetadataRequest) { + public Builder v3UpdateBankAccountMetadataRequest(Optional v3UpdateBankAccountMetadataRequest) { Utils.checkNotNull(v3UpdateBankAccountMetadataRequest, "v3UpdateBankAccountMetadataRequest"); this.v3UpdateBankAccountMetadataRequest = v3UpdateBankAccountMetadataRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequestBuilder.java index 85fe7b287..3994439df 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateBankAccountMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3UpdateBankAccountMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3UpdateBankAccountMetadataRequestBuilder { private V3UpdateBankAccountMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3UpdateBankAccountMetadataRequestBuilder request(V3UpdateBankAccountMeta this.request = request; return this; } + + public V3UpdateBankAccountMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3UpdateBankAccountMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3UpdateBankAccountMetadataResponse call() { RequestOperation operation - = new V3UpdateBankAccountMetadata.Sync(sdkConfiguration, _headers); + = new V3UpdateBankAccountMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequest.java index 830c41a58..2d138ff31 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3InstallConnectorRequest; +import com.formance.formance_sdk.models.payments.V3ConnectorConfig; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; @@ -17,7 +17,7 @@ public class V3UpdateConnectorConfigRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3InstallConnectorRequest; + private Optional v3ConnectorConfig; /** * The connector ID @@ -27,11 +27,11 @@ public class V3UpdateConnectorConfigRequest { @JsonCreator public V3UpdateConnectorConfigRequest( - Optional v3InstallConnectorRequest, + Optional v3ConnectorConfig, String connectorID) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); Utils.checkNotNull(connectorID, "connectorID"); - this.v3InstallConnectorRequest = v3InstallConnectorRequest; + this.v3ConnectorConfig = v3ConnectorConfig; this.connectorID = connectorID; } @@ -42,8 +42,8 @@ public V3UpdateConnectorConfigRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3InstallConnectorRequest() { - return (Optional) v3InstallConnectorRequest; + public Optional v3ConnectorConfig() { + return (Optional) v3ConnectorConfig; } /** @@ -59,16 +59,16 @@ public static Builder builder() { } - public V3UpdateConnectorConfigRequest withV3InstallConnectorRequest(V3InstallConnectorRequest v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = Optional.ofNullable(v3InstallConnectorRequest); + public V3UpdateConnectorConfigRequest withV3ConnectorConfig(V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = Optional.ofNullable(v3ConnectorConfig); return this; } - public V3UpdateConnectorConfigRequest withV3InstallConnectorRequest(Optional v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = v3InstallConnectorRequest; + public V3UpdateConnectorConfigRequest withV3ConnectorConfig(Optional v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; return this; } @@ -91,27 +91,27 @@ public boolean equals(java.lang.Object o) { } V3UpdateConnectorConfigRequest other = (V3UpdateConnectorConfigRequest) o; return - Utils.enhancedDeepEquals(this.v3InstallConnectorRequest, other.v3InstallConnectorRequest) && + Utils.enhancedDeepEquals(this.v3ConnectorConfig, other.v3ConnectorConfig) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID); } @Override public int hashCode() { return Utils.enhancedHash( - v3InstallConnectorRequest, connectorID); + v3ConnectorConfig, connectorID); } @Override public String toString() { return Utils.toString(V3UpdateConnectorConfigRequest.class, - "v3InstallConnectorRequest", v3InstallConnectorRequest, + "v3ConnectorConfig", v3ConnectorConfig, "connectorID", connectorID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3InstallConnectorRequest = Optional.empty(); + private Optional v3ConnectorConfig = Optional.empty(); private String connectorID; @@ -120,15 +120,15 @@ private Builder() { } - public Builder v3InstallConnectorRequest(V3InstallConnectorRequest v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = Optional.ofNullable(v3InstallConnectorRequest); + public Builder v3ConnectorConfig(V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = Optional.ofNullable(v3ConnectorConfig); return this; } - public Builder v3InstallConnectorRequest(Optional v3InstallConnectorRequest) { - Utils.checkNotNull(v3InstallConnectorRequest, "v3InstallConnectorRequest"); - this.v3InstallConnectorRequest = v3InstallConnectorRequest; + public Builder v3ConnectorConfig(Optional v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; return this; } @@ -145,7 +145,7 @@ public Builder connectorID(String connectorID) { public V3UpdateConnectorConfigRequest build() { return new V3UpdateConnectorConfigRequest( - v3InstallConnectorRequest, connectorID); + v3ConnectorConfig, connectorID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequestBuilder.java index 571bc8372..ab7a1c38d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateConnectorConfigRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3UpdateConnectorConfig; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3UpdateConnectorConfigRequestBuilder { private V3UpdateConnectorConfigRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3UpdateConnectorConfigRequestBuilder request(V3UpdateConnectorConfigRequ this.request = request; return this; } + + public V3UpdateConnectorConfigRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3UpdateConnectorConfigRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3UpdateConnectorConfigResponse call() { RequestOperation operation - = new V3UpdateConnectorConfig.Sync(sdkConfiguration, _headers); + = new V3UpdateConnectorConfig.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequest.java index 5dfb2fc97..11778a70e 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequest.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserUpdateLinkRequest; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserUpdateLinkRequest; import com.formance.formance_sdk.utils.SpeakeasyMetadata; import com.formance.formance_sdk.utils.Utils; import java.lang.Override; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder.java index 0eef4f061..4f3d9d230 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3UpdateLinkForPaymentServiceUserOnConnector; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder { private V3UpdateLinkForPaymentServiceUserOnConnectorRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder request(V3Upda this.request = request; return this; } + + public V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3UpdateLinkForPaymentServiceUserOnConnectorRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3UpdateLinkForPaymentServiceUserOnConnectorResponse call() { RequestOperation operation - = new V3UpdateLinkForPaymentServiceUserOnConnector.Sync(sdkConfiguration, _headers); + = new V3UpdateLinkForPaymentServiceUserOnConnector.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorResponse.java index 03615e288..bffd2c79c 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdateLinkForPaymentServiceUserOnConnectorResponse.java @@ -5,7 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserUpdateLinkResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserUpdateLinkResponse; import com.formance.formance_sdk.utils.Response; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequest.java index c1fe6f52e..3ca81ca12 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequest.java @@ -16,7 +16,7 @@ public class V3UpdatePaymentMetadataRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3UpdatePaymentMetadataRequest; + private Optional v3UpdatePaymentMetadataRequest; /** * The payment ID @@ -26,7 +26,7 @@ public class V3UpdatePaymentMetadataRequest { @JsonCreator public V3UpdatePaymentMetadataRequest( - Optional v3UpdatePaymentMetadataRequest, + Optional v3UpdatePaymentMetadataRequest, String paymentID) { Utils.checkNotNull(v3UpdatePaymentMetadataRequest, "v3UpdatePaymentMetadataRequest"); Utils.checkNotNull(paymentID, "paymentID"); @@ -41,8 +41,8 @@ public V3UpdatePaymentMetadataRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3UpdatePaymentMetadataRequest() { - return (Optional) v3UpdatePaymentMetadataRequest; + public Optional v3UpdatePaymentMetadataRequest() { + return (Optional) v3UpdatePaymentMetadataRequest; } /** @@ -58,14 +58,14 @@ public static Builder builder() { } - public V3UpdatePaymentMetadataRequest withV3UpdatePaymentMetadataRequest(com.formance.formance_sdk.models.shared.V3UpdatePaymentMetadataRequest v3UpdatePaymentMetadataRequest) { + public V3UpdatePaymentMetadataRequest withV3UpdatePaymentMetadataRequest(com.formance.formance_sdk.models.payments.V3UpdatePaymentMetadataRequest v3UpdatePaymentMetadataRequest) { Utils.checkNotNull(v3UpdatePaymentMetadataRequest, "v3UpdatePaymentMetadataRequest"); this.v3UpdatePaymentMetadataRequest = Optional.ofNullable(v3UpdatePaymentMetadataRequest); return this; } - public V3UpdatePaymentMetadataRequest withV3UpdatePaymentMetadataRequest(Optional v3UpdatePaymentMetadataRequest) { + public V3UpdatePaymentMetadataRequest withV3UpdatePaymentMetadataRequest(Optional v3UpdatePaymentMetadataRequest) { Utils.checkNotNull(v3UpdatePaymentMetadataRequest, "v3UpdatePaymentMetadataRequest"); this.v3UpdatePaymentMetadataRequest = v3UpdatePaymentMetadataRequest; return this; @@ -110,7 +110,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3UpdatePaymentMetadataRequest = Optional.empty(); + private Optional v3UpdatePaymentMetadataRequest = Optional.empty(); private String paymentID; @@ -119,13 +119,13 @@ private Builder() { } - public Builder v3UpdatePaymentMetadataRequest(com.formance.formance_sdk.models.shared.V3UpdatePaymentMetadataRequest v3UpdatePaymentMetadataRequest) { + public Builder v3UpdatePaymentMetadataRequest(com.formance.formance_sdk.models.payments.V3UpdatePaymentMetadataRequest v3UpdatePaymentMetadataRequest) { Utils.checkNotNull(v3UpdatePaymentMetadataRequest, "v3UpdatePaymentMetadataRequest"); this.v3UpdatePaymentMetadataRequest = Optional.ofNullable(v3UpdatePaymentMetadataRequest); return this; } - public Builder v3UpdatePaymentMetadataRequest(Optional v3UpdatePaymentMetadataRequest) { + public Builder v3UpdatePaymentMetadataRequest(Optional v3UpdatePaymentMetadataRequest) { Utils.checkNotNull(v3UpdatePaymentMetadataRequest, "v3UpdatePaymentMetadataRequest"); this.v3UpdatePaymentMetadataRequest = v3UpdatePaymentMetadataRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequestBuilder.java index 36cd8bbf2..07f7e29f1 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePaymentMetadataRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3UpdatePaymentMetadata; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3UpdatePaymentMetadataRequestBuilder { private V3UpdatePaymentMetadataRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3UpdatePaymentMetadataRequestBuilder request(V3UpdatePaymentMetadataRequ this.request = request; return this; } + + public V3UpdatePaymentMetadataRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3UpdatePaymentMetadataRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3UpdatePaymentMetadataResponse call() { RequestOperation operation - = new V3UpdatePaymentMetadata.Sync(sdkConfiguration, _headers); + = new V3UpdatePaymentMetadata.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequest.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequest.java index aaf43e214..4d2d9ec3d 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequest.java @@ -16,7 +16,7 @@ public class V3UpdatePoolQueryRequest { @SpeakeasyMetadata("request:mediaType=application/json") - private Optional v3UpdatePoolQueryRequest; + private Optional v3UpdatePoolQueryRequest; /** * The pool ID @@ -26,7 +26,7 @@ public class V3UpdatePoolQueryRequest { @JsonCreator public V3UpdatePoolQueryRequest( - Optional v3UpdatePoolQueryRequest, + Optional v3UpdatePoolQueryRequest, String poolID) { Utils.checkNotNull(v3UpdatePoolQueryRequest, "v3UpdatePoolQueryRequest"); Utils.checkNotNull(poolID, "poolID"); @@ -41,8 +41,8 @@ public V3UpdatePoolQueryRequest( @SuppressWarnings("unchecked") @JsonIgnore - public Optional v3UpdatePoolQueryRequest() { - return (Optional) v3UpdatePoolQueryRequest; + public Optional v3UpdatePoolQueryRequest() { + return (Optional) v3UpdatePoolQueryRequest; } /** @@ -58,14 +58,14 @@ public static Builder builder() { } - public V3UpdatePoolQueryRequest withV3UpdatePoolQueryRequest(com.formance.formance_sdk.models.shared.V3UpdatePoolQueryRequest v3UpdatePoolQueryRequest) { + public V3UpdatePoolQueryRequest withV3UpdatePoolQueryRequest(com.formance.formance_sdk.models.payments.V3UpdatePoolQueryRequest v3UpdatePoolQueryRequest) { Utils.checkNotNull(v3UpdatePoolQueryRequest, "v3UpdatePoolQueryRequest"); this.v3UpdatePoolQueryRequest = Optional.ofNullable(v3UpdatePoolQueryRequest); return this; } - public V3UpdatePoolQueryRequest withV3UpdatePoolQueryRequest(Optional v3UpdatePoolQueryRequest) { + public V3UpdatePoolQueryRequest withV3UpdatePoolQueryRequest(Optional v3UpdatePoolQueryRequest) { Utils.checkNotNull(v3UpdatePoolQueryRequest, "v3UpdatePoolQueryRequest"); this.v3UpdatePoolQueryRequest = v3UpdatePoolQueryRequest; return this; @@ -110,7 +110,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional v3UpdatePoolQueryRequest = Optional.empty(); + private Optional v3UpdatePoolQueryRequest = Optional.empty(); private String poolID; @@ -119,13 +119,13 @@ private Builder() { } - public Builder v3UpdatePoolQueryRequest(com.formance.formance_sdk.models.shared.V3UpdatePoolQueryRequest v3UpdatePoolQueryRequest) { + public Builder v3UpdatePoolQueryRequest(com.formance.formance_sdk.models.payments.V3UpdatePoolQueryRequest v3UpdatePoolQueryRequest) { Utils.checkNotNull(v3UpdatePoolQueryRequest, "v3UpdatePoolQueryRequest"); this.v3UpdatePoolQueryRequest = Optional.ofNullable(v3UpdatePoolQueryRequest); return this; } - public Builder v3UpdatePoolQueryRequest(Optional v3UpdatePoolQueryRequest) { + public Builder v3UpdatePoolQueryRequest(Optional v3UpdatePoolQueryRequest) { Utils.checkNotNull(v3UpdatePoolQueryRequest, "v3UpdatePoolQueryRequest"); this.v3UpdatePoolQueryRequest = v3UpdatePoolQueryRequest; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequestBuilder.java index ef304e1e2..eacb71657 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/V3UpdatePoolQueryRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.V3UpdatePoolQuery; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class V3UpdatePoolQueryRequestBuilder { private V3UpdatePoolQueryRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public V3UpdatePoolQueryRequestBuilder request(V3UpdatePoolQueryRequest request) this.request = request; return this; } + + public V3UpdatePoolQueryRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public V3UpdatePoolQueryRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public V3UpdatePoolQueryResponse call() { RequestOperation operation - = new V3UpdatePoolQuery.Sync(sdkConfiguration, _headers); + = new V3UpdatePoolQuery.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/VoidHoldRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/VoidHoldRequestBuilder.java index a4de953a2..b7679d43a 100644 --- a/src/main/java/com/formance/formance_sdk/models/operations/VoidHoldRequestBuilder.java +++ b/src/main/java/com/formance/formance_sdk/models/operations/VoidHoldRequestBuilder.java @@ -9,10 +9,13 @@ import com.formance.formance_sdk.operations.VoidHold; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Utils; +import java.lang.String; +import java.util.Optional; public class VoidHoldRequestBuilder { private VoidHoldRequest request; + private Optional serverURL = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -25,11 +28,23 @@ public VoidHoldRequestBuilder request(VoidHoldRequest request) { this.request = request; return this; } + + public VoidHoldRequestBuilder serverURL(String serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = Optional.of(serverURL); + return this; + } + + public VoidHoldRequestBuilder serverURL(Optional serverURL) { + Utils.checkNotNull(serverURL, "serverURL"); + this.serverURL = serverURL; + return this; + } public VoidHoldResponse call() { RequestOperation operation - = new VoidHold.Sync(sdkConfiguration, _headers); + = new VoidHold.Sync(sdkConfiguration, serverURL, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoRequestBuilder.java b/src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoRequestBuilder.java deleted file mode 100644 index 386e1fedb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoRequestBuilder.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; - -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.operations.WalletsgetServerInfo; -import com.formance.formance_sdk.utils.Headers; - -public class WalletsgetServerInfoRequestBuilder { - - private final SDKConfiguration sdkConfiguration; - private final Headers _headers = new Headers(); - - public WalletsgetServerInfoRequestBuilder(SDKConfiguration sdkConfiguration) { - this.sdkConfiguration = sdkConfiguration; - } - - public WalletsgetServerInfoResponse call() { - - RequestlessOperation operation - = new WalletsgetServerInfo.Sync(sdkConfiguration, _headers); - - return operation.handleResponse(operation.doRequest()); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoResponse.java deleted file mode 100644 index 4b2059261..000000000 --- a/src/main/java/com/formance/formance_sdk/models/operations/WalletsgetServerInfoResponse.java +++ /dev/null @@ -1,253 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.operations; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.Response; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Integer; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class WalletsgetServerInfoResponse implements Response { - /** - * HTTP response content type for this operation - */ - private String contentType; - - /** - * Server information - */ - private Optional serverInfo; - - /** - * HTTP response status code for this operation - */ - private int statusCode; - - /** - * Raw HTTP response; suitable for custom response parsing - */ - private HttpResponse rawResponse; - - @JsonCreator - public WalletsgetServerInfoResponse( - String contentType, - Optional serverInfo, - int statusCode, - HttpResponse rawResponse) { - Utils.checkNotNull(contentType, "contentType"); - Utils.checkNotNull(serverInfo, "serverInfo"); - Utils.checkNotNull(statusCode, "statusCode"); - Utils.checkNotNull(rawResponse, "rawResponse"); - this.contentType = contentType; - this.serverInfo = serverInfo; - this.statusCode = statusCode; - this.rawResponse = rawResponse; - } - - public WalletsgetServerInfoResponse( - String contentType, - int statusCode, - HttpResponse rawResponse) { - this(contentType, Optional.empty(), statusCode, - rawResponse); - } - - /** - * HTTP response content type for this operation - */ - @JsonIgnore - public String contentType() { - return contentType; - } - - /** - * Server information - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional serverInfo() { - return (Optional) serverInfo; - } - - /** - * HTTP response status code for this operation - */ - @JsonIgnore - public int statusCode() { - return statusCode; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - @JsonIgnore - public HttpResponse rawResponse() { - return rawResponse; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * HTTP response content type for this operation - */ - public WalletsgetServerInfoResponse withContentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - /** - * Server information - */ - public WalletsgetServerInfoResponse withServerInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - - /** - * Server information - */ - public WalletsgetServerInfoResponse withServerInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - /** - * HTTP response status code for this operation - */ - public WalletsgetServerInfoResponse withStatusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public WalletsgetServerInfoResponse withRawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletsgetServerInfoResponse other = (WalletsgetServerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.contentType, other.contentType) && - Utils.enhancedDeepEquals(this.serverInfo, other.serverInfo) && - Utils.enhancedDeepEquals(this.statusCode, other.statusCode) && - Utils.enhancedDeepEquals(this.rawResponse, other.rawResponse); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - contentType, serverInfo, statusCode, - rawResponse); - } - - @Override - public String toString() { - return Utils.toString(WalletsgetServerInfoResponse.class, - "contentType", contentType, - "serverInfo", serverInfo, - "statusCode", statusCode, - "rawResponse", rawResponse); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String contentType; - - private Optional serverInfo = Optional.empty(); - - private Integer statusCode; - - private HttpResponse rawResponse; - - private Builder() { - // force use of static builder() method - } - - - /** - * HTTP response content type for this operation - */ - public Builder contentType(String contentType) { - Utils.checkNotNull(contentType, "contentType"); - this.contentType = contentType; - return this; - } - - - /** - * Server information - */ - public Builder serverInfo(ServerInfo serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = Optional.ofNullable(serverInfo); - return this; - } - - /** - * Server information - */ - public Builder serverInfo(Optional serverInfo) { - Utils.checkNotNull(serverInfo, "serverInfo"); - this.serverInfo = serverInfo; - return this; - } - - - /** - * HTTP response status code for this operation - */ - public Builder statusCode(int statusCode) { - Utils.checkNotNull(statusCode, "statusCode"); - this.statusCode = statusCode; - return this; - } - - - /** - * Raw HTTP response; suitable for custom response parsing - */ - public Builder rawResponse(HttpResponse rawResponse) { - Utils.checkNotNull(rawResponse, "rawResponse"); - this.rawResponse = rawResponse; - return this; - } - - public WalletsgetServerInfoResponse build() { - - return new WalletsgetServerInfoResponse( - contentType, serverInfo, statusCode, - rawResponse); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Account.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Account.java new file mode 100644 index 000000000..66861e6fd --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Account.java @@ -0,0 +1,222 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class Account { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("volumes") + private Optional> volumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("effectiveVolumes") + private Optional> volumes1; + + + @JsonProperty("address") + private String address; + + + @JsonProperty("metadata") + private Map metadata; + + @JsonCreator + public Account( + @JsonProperty("volumes") Optional> volumes, + @JsonProperty("effectiveVolumes") Optional> volumes1, + @JsonProperty("address") String address, + @JsonProperty("metadata") Map metadata) { + Utils.checkNotNull(volumes, "volumes"); + Utils.checkNotNull(volumes1, "volumes1"); + Utils.checkNotNull(address, "address"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + this.volumes = volumes; + this.volumes1 = volumes1; + this.address = address; + this.metadata = metadata; + } + + public Account( + String address, + Map metadata) { + this(Optional.empty(), Optional.empty(), address, + metadata); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> volumes() { + return (Optional>) volumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> volumes1() { + return (Optional>) volumes1; + } + + @JsonIgnore + public String address() { + return address; + } + + @JsonIgnore + public Map metadata() { + return metadata; + } + + public static Builder builder() { + return new Builder(); + } + + + public Account withVolumes(Map volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = Optional.ofNullable(volumes); + return this; + } + + + public Account withVolumes(Optional> volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = volumes; + return this; + } + + public Account withVolumes1(Map volumes1) { + Utils.checkNotNull(volumes1, "volumes1"); + this.volumes1 = Optional.ofNullable(volumes1); + return this; + } + + + public Account withVolumes1(Optional> volumes1) { + Utils.checkNotNull(volumes1, "volumes1"); + this.volumes1 = volumes1; + return this; + } + + public Account withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + public Account withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Account other = (Account) o; + return + Utils.enhancedDeepEquals(this.volumes, other.volumes) && + Utils.enhancedDeepEquals(this.volumes1, other.volumes1) && + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.metadata, other.metadata); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + volumes, volumes1, address, + metadata); + } + + @Override + public String toString() { + return Utils.toString(Account.class, + "volumes", volumes, + "volumes1", volumes1, + "address", address, + "metadata", metadata); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> volumes = Optional.empty(); + + private Optional> volumes1 = Optional.empty(); + + private String address; + + private Map metadata; + + private Builder() { + // force use of static builder() method + } + + + public Builder volumes(Map volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = Optional.ofNullable(volumes); + return this; + } + + public Builder volumes(Optional> volumes) { + Utils.checkNotNull(volumes, "volumes"); + this.volumes = volumes; + return this; + } + + + public Builder volumes1(Map volumes1) { + Utils.checkNotNull(volumes1, "volumes1"); + this.volumes1 = Optional.ofNullable(volumes1); + return this; + } + + public Builder volumes1(Optional> volumes1) { + Utils.checkNotNull(volumes1, "volumes1"); + this.volumes1 = volumes1; + return this; + } + + + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Account build() { + + return new Account( + volumes, volumes1, address, + metadata); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/AccountResponse.java new file mode 100644 index 000000000..fa4dd49c0 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/AccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class AccountResponse { + + @JsonProperty("data") + private Account account; + + @JsonCreator + public AccountResponse( + @JsonProperty("data") Account account) { + Utils.checkNotNull(account, "account"); + this.account = account; + } + + @JsonIgnore + public Account account() { + return account; + } + + public static Builder builder() { + return new Builder(); + } + + + public AccountResponse withAccount(Account account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountResponse other = (AccountResponse) o; + return + Utils.enhancedDeepEquals(this.account, other.account); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + account); + } + + @Override + public String toString() { + return Utils.toString(AccountResponse.class, + "account", account); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Account account; + + private Builder() { + // force use of static builder() method + } + + + public Builder account(Account account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + public AccountResponse build() { + + return new AccountResponse( + account); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityAddAccountMetadata.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityAddAccountMetadata.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityAddAccountMetadata.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityAddAccountMetadata.java index f6e6c0596..ec55c5e2e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityAddAccountMetadata.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityAddAccountMetadata.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityConfirmHold.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityConfirmHold.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityConfirmHold.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityConfirmHold.java index 47a5c4c64..b2b4599d1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityConfirmHold.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityConfirmHold.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreateTransaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreateTransaction.java new file mode 100644 index 000000000..da765447b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreateTransaction.java @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class ActivityCreateTransaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional postTransaction; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ledger") + private Optional ledger; + + @JsonCreator + public ActivityCreateTransaction( + @JsonProperty("data") Optional postTransaction, + @JsonProperty("ledger") Optional ledger) { + Utils.checkNotNull(postTransaction, "postTransaction"); + Utils.checkNotNull(ledger, "ledger"); + this.postTransaction = postTransaction; + this.ledger = ledger; + } + + public ActivityCreateTransaction() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional postTransaction() { + return (Optional) postTransaction; + } + + @JsonIgnore + public Optional ledger() { + return ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + public ActivityCreateTransaction withPostTransaction(PostTransaction postTransaction) { + Utils.checkNotNull(postTransaction, "postTransaction"); + this.postTransaction = Optional.ofNullable(postTransaction); + return this; + } + + + public ActivityCreateTransaction withPostTransaction(Optional postTransaction) { + Utils.checkNotNull(postTransaction, "postTransaction"); + this.postTransaction = postTransaction; + return this; + } + + public ActivityCreateTransaction withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + + public ActivityCreateTransaction withLedger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivityCreateTransaction other = (ActivityCreateTransaction) o; + return + Utils.enhancedDeepEquals(this.postTransaction, other.postTransaction) && + Utils.enhancedDeepEquals(this.ledger, other.ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + postTransaction, ledger); + } + + @Override + public String toString() { + return Utils.toString(ActivityCreateTransaction.class, + "postTransaction", postTransaction, + "ledger", ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional postTransaction = Optional.empty(); + + private Optional ledger = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder postTransaction(PostTransaction postTransaction) { + Utils.checkNotNull(postTransaction, "postTransaction"); + this.postTransaction = Optional.ofNullable(postTransaction); + return this; + } + + public Builder postTransaction(Optional postTransaction) { + Utils.checkNotNull(postTransaction, "postTransaction"); + this.postTransaction = postTransaction; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + public Builder ledger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + public ActivityCreateTransaction build() { + + return new ActivityCreateTransaction( + postTransaction, ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreditWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreditWallet.java new file mode 100644 index 000000000..591b6b1a6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityCreditWallet.java @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class ActivityCreditWallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional creditWalletRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + @JsonCreator + public ActivityCreditWallet( + @JsonProperty("data") Optional creditWalletRequest, + @JsonProperty("id") Optional id) { + Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); + Utils.checkNotNull(id, "id"); + this.creditWalletRequest = creditWalletRequest; + this.id = id; + } + + public ActivityCreditWallet() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional creditWalletRequest() { + return (Optional) creditWalletRequest; + } + + @JsonIgnore + public Optional id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public ActivityCreditWallet withCreditWalletRequest(CreditWalletRequest creditWalletRequest) { + Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); + this.creditWalletRequest = Optional.ofNullable(creditWalletRequest); + return this; + } + + + public ActivityCreditWallet withCreditWalletRequest(Optional creditWalletRequest) { + Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); + this.creditWalletRequest = creditWalletRequest; + return this; + } + + public ActivityCreditWallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + + public ActivityCreditWallet withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivityCreditWallet other = (ActivityCreditWallet) o; + return + Utils.enhancedDeepEquals(this.creditWalletRequest, other.creditWalletRequest) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + creditWalletRequest, id); + } + + @Override + public String toString() { + return Utils.toString(ActivityCreditWallet.class, + "creditWalletRequest", creditWalletRequest, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional creditWalletRequest = Optional.empty(); + + private Optional id = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder creditWalletRequest(CreditWalletRequest creditWalletRequest) { + Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); + this.creditWalletRequest = Optional.ofNullable(creditWalletRequest); + return this; + } + + public Builder creditWalletRequest(Optional creditWalletRequest) { + Utils.checkNotNull(creditWalletRequest, "creditWalletRequest"); + this.creditWalletRequest = creditWalletRequest; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public Builder id(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public ActivityCreditWallet build() { + + return new ActivityCreditWallet( + creditWalletRequest, id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityDebitWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityDebitWallet.java new file mode 100644 index 000000000..a6bca0c39 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityDebitWallet.java @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class ActivityDebitWallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional debitWalletRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + @JsonCreator + public ActivityDebitWallet( + @JsonProperty("data") Optional debitWalletRequest, + @JsonProperty("id") Optional id) { + Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); + Utils.checkNotNull(id, "id"); + this.debitWalletRequest = debitWalletRequest; + this.id = id; + } + + public ActivityDebitWallet() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional debitWalletRequest() { + return (Optional) debitWalletRequest; + } + + @JsonIgnore + public Optional id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public ActivityDebitWallet withDebitWalletRequest(DebitWalletRequest debitWalletRequest) { + Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); + this.debitWalletRequest = Optional.ofNullable(debitWalletRequest); + return this; + } + + + public ActivityDebitWallet withDebitWalletRequest(Optional debitWalletRequest) { + Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); + this.debitWalletRequest = debitWalletRequest; + return this; + } + + public ActivityDebitWallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + + public ActivityDebitWallet withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivityDebitWallet other = (ActivityDebitWallet) o; + return + Utils.enhancedDeepEquals(this.debitWalletRequest, other.debitWalletRequest) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + debitWalletRequest, id); + } + + @Override + public String toString() { + return Utils.toString(ActivityDebitWallet.class, + "debitWalletRequest", debitWalletRequest, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional debitWalletRequest = Optional.empty(); + + private Optional id = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder debitWalletRequest(DebitWalletRequest debitWalletRequest) { + Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); + this.debitWalletRequest = Optional.ofNullable(debitWalletRequest); + return this; + } + + public Builder debitWalletRequest(Optional debitWalletRequest) { + Utils.checkNotNull(debitWalletRequest, "debitWalletRequest"); + this.debitWalletRequest = debitWalletRequest; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public Builder id(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public ActivityDebitWallet build() { + + return new ActivityDebitWallet( + debitWalletRequest, id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccount.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetAccount.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccount.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetAccount.java index 563610aef..a6b8d1f39 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPayment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetPayment.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPayment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetPayment.java index 1ecda12d0..79574e8cf 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPayment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetPayment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetWallet.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWallet.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetWallet.java index e8b23a0cd..c1af4acb4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWallet.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityGetWallet.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityListWallets.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityListWallets.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityListWallets.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityListWallets.java index 22364afc0..8247df631 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityListWallets.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityListWallets.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityRevertTransaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityRevertTransaction.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityRevertTransaction.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityRevertTransaction.java index 2978e97b5..c15670c5d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityRevertTransaction.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityRevertTransaction.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityVoidHold.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityVoidHold.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ActivityVoidHold.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ActivityVoidHold.java index 66030f271..d3b8711f4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityVoidHold.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ActivityVoidHold.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AssetHolder.java b/src/main/java/com/formance/formance_sdk/models/orchestration/AssetHolder.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/AssetHolder.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/AssetHolder.java index d771f5c47..ce9da039c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AssetHolder.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/AssetHolder.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Connector.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Connector.java new file mode 100644 index 000000000..c033cd1c7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Connector.java @@ -0,0 +1,41 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Connector { + STRIPE("STRIPE"), + DUMMY_PAY("DUMMY-PAY"), + WISE("WISE"), + MODULR("MODULR"), + CURRENCY_CLOUD("CURRENCY-CLOUD"), + BANKING_CIRCLE("BANKING-CIRCLE"), + MANGOPAY("MANGOPAY"), + MONEYCORP("MONEYCORP"); + + @JsonValue + private final String value; + + Connector(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Connector o: Connector.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/CreateTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/CreateTransactionResponse.java new file mode 100644 index 000000000..c2af33be3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/CreateTransactionResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class CreateTransactionResponse { + + @JsonProperty("data") + private Transaction transaction; + + @JsonCreator + public CreateTransactionResponse( + @JsonProperty("data") Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; + } + + @JsonIgnore + public Transaction transaction() { + return transaction; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateTransactionResponse withTransaction(Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTransactionResponse other = (CreateTransactionResponse) o; + return + Utils.enhancedDeepEquals(this.transaction, other.transaction); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + transaction); + } + + @Override + public String toString() { + return Utils.toString(CreateTransactionResponse.class, + "transaction", transaction); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Transaction transaction; + + private Builder() { + // force use of static builder() method + } + + + public Builder transaction(Transaction transaction) { + Utils.checkNotNull(transaction, "transaction"); + this.transaction = transaction; + return this; + } + + public CreateTransactionResponse build() { + + return new CreateTransactionResponse( + transaction); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/CreateTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/CreateTriggerResponse.java new file mode 100644 index 000000000..b723d3816 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/CreateTriggerResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class CreateTriggerResponse { + + @JsonProperty("data") + private TriggerData1 triggerData; + + @JsonCreator + public CreateTriggerResponse( + @JsonProperty("data") TriggerData1 triggerData) { + Utils.checkNotNull(triggerData, "triggerData"); + this.triggerData = triggerData; + } + + @JsonIgnore + public TriggerData1 triggerData() { + return triggerData; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateTriggerResponse withTriggerData(TriggerData1 triggerData) { + Utils.checkNotNull(triggerData, "triggerData"); + this.triggerData = triggerData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTriggerResponse other = (CreateTriggerResponse) o; + return + Utils.enhancedDeepEquals(this.triggerData, other.triggerData); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + triggerData); + } + + @Override + public String toString() { + return Utils.toString(CreateTriggerResponse.class, + "triggerData", triggerData); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TriggerData1 triggerData; + + private Builder() { + // force use of static builder() method + } + + + public Builder triggerData(TriggerData1 triggerData) { + Utils.checkNotNull(triggerData, "triggerData"); + this.triggerData = triggerData; + return this; + } + + public CreateTriggerResponse build() { + + return new CreateTriggerResponse( + triggerData); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/CreateWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/CreateWorkflowResponse.java new file mode 100644 index 000000000..585edfb65 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/CreateWorkflowResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class CreateWorkflowResponse { + + @JsonProperty("data") + private Workflow workflow; + + @JsonCreator + public CreateWorkflowResponse( + @JsonProperty("data") Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + } + + @JsonIgnore + public Workflow workflow() { + return workflow; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateWorkflowResponse withWorkflow(Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWorkflowResponse other = (CreateWorkflowResponse) o; + return + Utils.enhancedDeepEquals(this.workflow, other.workflow); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflow); + } + + @Override + public String toString() { + return Utils.toString(CreateWorkflowResponse.class, + "workflow", workflow); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Workflow workflow; + + private Builder() { + // force use of static builder() method + } + + + public Builder workflow(Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + return this; + } + + public CreateWorkflowResponse build() { + + return new CreateWorkflowResponse( + workflow); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/CreditWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/CreditWalletRequest.java new file mode 100644 index 000000000..e377ce4ee --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/CreditWalletRequest.java @@ -0,0 +1,322 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class CreditWalletRequest { + + @JsonProperty("amount") + private Monetary monetary; + + /** + * The balance to credit + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonProperty("sources") + private List sources; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public CreditWalletRequest( + @JsonProperty("amount") Monetary monetary, + @JsonProperty("balance") Optional balance, + @JsonProperty("metadata") Map metadata, + @JsonProperty("reference") Optional reference, + @JsonProperty("sources") List sources, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(monetary, "monetary"); + Utils.checkNotNull(balance, "balance"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(sources, "sources"); + Utils.checkNotNull(timestamp, "timestamp"); + this.monetary = monetary; + this.balance = balance; + this.metadata = metadata; + this.reference = reference; + this.sources = sources; + this.timestamp = timestamp; + } + + public CreditWalletRequest( + Monetary monetary, + Map metadata, + List sources) { + this(monetary, Optional.empty(), metadata, + Optional.empty(), sources, Optional.empty()); + } + + @JsonIgnore + public Monetary monetary() { + return monetary; + } + + /** + * The balance to credit + */ + @JsonIgnore + public Optional balance() { + return balance; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @JsonIgnore + public List sources() { + return sources; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreditWalletRequest withMonetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + /** + * The balance to credit + */ + public CreditWalletRequest withBalance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + /** + * The balance to credit + */ + public CreditWalletRequest withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public CreditWalletRequest withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public CreditWalletRequest withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public CreditWalletRequest withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public CreditWalletRequest withSources(List sources) { + Utils.checkNotNull(sources, "sources"); + this.sources = sources; + return this; + } + + public CreditWalletRequest withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public CreditWalletRequest withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditWalletRequest other = (CreditWalletRequest) o; + return + Utils.enhancedDeepEquals(this.monetary, other.monetary) && + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.sources, other.sources) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + monetary, balance, metadata, + reference, sources, timestamp); + } + + @Override + public String toString() { + return Utils.toString(CreditWalletRequest.class, + "monetary", monetary, + "balance", balance, + "metadata", metadata, + "reference", reference, + "sources", sources, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Monetary monetary; + + private Optional balance = Optional.empty(); + + private Map metadata; + + private Optional reference = Optional.empty(); + + private List sources; + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder monetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + + /** + * The balance to credit + */ + public Builder balance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + /** + * The balance to credit + */ + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder sources(List sources) { + Utils.checkNotNull(sources, "sources"); + this.sources = sources; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public CreditWalletRequest build() { + + return new CreditWalletRequest( + monetary, balance, metadata, + reference, sources, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletRequest.java new file mode 100644 index 000000000..6a6f9f5b7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletRequest.java @@ -0,0 +1,402 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class DebitWalletRequest { + + @JsonProperty("amount") + private Monetary monetary; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional subject; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balances") + private Optional> balances; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pending") + private Optional pending; + + /** + * cannot be used in conjunction with `pending` property + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public DebitWalletRequest( + @JsonProperty("amount") Monetary monetary, + @JsonProperty("destination") Optional subject, + @JsonProperty("balances") Optional> balances, + @JsonProperty("description") Optional description, + @JsonProperty("metadata") Map metadata, + @JsonProperty("pending") Optional pending, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(monetary, "monetary"); + Utils.checkNotNull(subject, "subject"); + Utils.checkNotNull(balances, "balances"); + Utils.checkNotNull(description, "description"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(pending, "pending"); + Utils.checkNotNull(timestamp, "timestamp"); + this.monetary = monetary; + this.subject = subject; + this.balances = balances; + this.description = description; + this.metadata = metadata; + this.pending = pending; + this.timestamp = timestamp; + } + + public DebitWalletRequest( + Monetary monetary, + Map metadata) { + this(monetary, Optional.empty(), Optional.empty(), + Optional.empty(), metadata, Optional.empty(), + Optional.empty()); + } + + @JsonIgnore + public Monetary monetary() { + return monetary; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional subject() { + return (Optional) subject; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> balances() { + return (Optional>) balances; + } + + @JsonIgnore + public Optional description() { + return description; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + @JsonIgnore + public Optional pending() { + return pending; + } + + /** + * cannot be used in conjunction with `pending` property + */ + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public DebitWalletRequest withMonetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + public DebitWalletRequest withSubject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + + public DebitWalletRequest withSubject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + public DebitWalletRequest withBalances(List balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = Optional.ofNullable(balances); + return this; + } + + + public DebitWalletRequest withBalances(Optional> balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + public DebitWalletRequest withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + public DebitWalletRequest withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public DebitWalletRequest withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public DebitWalletRequest withPending(boolean pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = Optional.ofNullable(pending); + return this; + } + + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public DebitWalletRequest withPending(Optional pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = pending; + return this; + } + + /** + * cannot be used in conjunction with `pending` property + */ + public DebitWalletRequest withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + /** + * cannot be used in conjunction with `pending` property + */ + public DebitWalletRequest withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DebitWalletRequest other = (DebitWalletRequest) o; + return + Utils.enhancedDeepEquals(this.monetary, other.monetary) && + Utils.enhancedDeepEquals(this.subject, other.subject) && + Utils.enhancedDeepEquals(this.balances, other.balances) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.pending, other.pending) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + monetary, subject, balances, + description, metadata, pending, + timestamp); + } + + @Override + public String toString() { + return Utils.toString(DebitWalletRequest.class, + "monetary", monetary, + "subject", subject, + "balances", balances, + "description", description, + "metadata", metadata, + "pending", pending, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Monetary monetary; + + private Optional subject = Optional.empty(); + + private Optional> balances = Optional.empty(); + + private Optional description = Optional.empty(); + + private Map metadata; + + private Optional pending = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder monetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + + public Builder subject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + public Builder subject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + + public Builder balances(List balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = Optional.ofNullable(balances); + return this; + } + + public Builder balances(Optional> balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public Builder pending(boolean pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = Optional.ofNullable(pending); + return this; + } + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public Builder pending(Optional pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = pending; + return this; + } + + + /** + * cannot be used in conjunction with `pending` property + */ + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + /** + * cannot be used in conjunction with `pending` property + */ + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public DebitWalletRequest build() { + + return new DebitWalletRequest( + monetary, subject, balances, + description, metadata, pending, + timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletResponse.java new file mode 100644 index 000000000..3a91a3203 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/DebitWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class DebitWalletResponse { + + @JsonProperty("data") + private Hold hold; + + @JsonCreator + public DebitWalletResponse( + @JsonProperty("data") Hold hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + } + + @JsonIgnore + public Hold hold() { + return hold; + } + + public static Builder builder() { + return new Builder(); + } + + + public DebitWalletResponse withHold(Hold hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DebitWalletResponse other = (DebitWalletResponse) o; + return + Utils.enhancedDeepEquals(this.hold, other.hold); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + hold); + } + + @Override + public String toString() { + return Utils.toString(DebitWalletResponse.class, + "hold", hold); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Hold hold; + + private Builder() { + // force use of static builder() method + } + + + public Builder hold(Hold hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + return this; + } + + public DebitWalletResponse build() { + + return new DebitWalletResponse( + hold); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/errors/Error.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Error.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/errors/Error.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/Error.java index 32a5a44b8..c84756885 100644 --- a/src/main/java/com/formance/formance_sdk/models/errors/Error.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Error.java @@ -1,11 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.errors; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.models.errors.SDKBaseError; import com.formance.formance_sdk.utils.Utils; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; diff --git a/src/main/java/com/formance/formance_sdk/models/errors/ErrorErrorCode.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ErrorErrorCode.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/errors/ErrorErrorCode.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ErrorErrorCode.java index d09a4131d..8a338e7c2 100644 --- a/src/main/java/com/formance/formance_sdk/models/errors/ErrorErrorCode.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ErrorErrorCode.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.errors; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Filter.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Filter.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Filter.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/Filter.java index ba7fedb7b..e104265b3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Filter.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Filter.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/GetWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWalletResponse.java new file mode 100644 index 000000000..6234ab956 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetWalletResponse { + + @JsonProperty("data") + private WalletWithBalances walletWithBalances; + + @JsonCreator + public GetWalletResponse( + @JsonProperty("data") WalletWithBalances walletWithBalances) { + Utils.checkNotNull(walletWithBalances, "walletWithBalances"); + this.walletWithBalances = walletWithBalances; + } + + @JsonIgnore + public WalletWithBalances walletWithBalances() { + return walletWithBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWalletResponse withWalletWithBalances(WalletWithBalances walletWithBalances) { + Utils.checkNotNull(walletWithBalances, "walletWithBalances"); + this.walletWithBalances = walletWithBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWalletResponse other = (GetWalletResponse) o; + return + Utils.enhancedDeepEquals(this.walletWithBalances, other.walletWithBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + walletWithBalances); + } + + @Override + public String toString() { + return Utils.toString(GetWalletResponse.class, + "walletWithBalances", walletWithBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WalletWithBalances walletWithBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder walletWithBalances(WalletWithBalances walletWithBalances) { + Utils.checkNotNull(walletWithBalances, "walletWithBalances"); + this.walletWithBalances = walletWithBalances; + return this; + } + + public GetWalletResponse build() { + + return new GetWalletResponse( + walletWithBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryResponse.java new file mode 100644 index 000000000..424dcf8af --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryResponse.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class GetWorkflowInstanceHistoryResponse { + + @JsonProperty("data") + private List workflowInstanceHistoryList; + + @JsonCreator + public GetWorkflowInstanceHistoryResponse( + @JsonProperty("data") List workflowInstanceHistoryList) { + Utils.checkNotNull(workflowInstanceHistoryList, "workflowInstanceHistoryList"); + this.workflowInstanceHistoryList = workflowInstanceHistoryList; + } + + @JsonIgnore + public List workflowInstanceHistoryList() { + return workflowInstanceHistoryList; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWorkflowInstanceHistoryResponse withWorkflowInstanceHistoryList(List workflowInstanceHistoryList) { + Utils.checkNotNull(workflowInstanceHistoryList, "workflowInstanceHistoryList"); + this.workflowInstanceHistoryList = workflowInstanceHistoryList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWorkflowInstanceHistoryResponse other = (GetWorkflowInstanceHistoryResponse) o; + return + Utils.enhancedDeepEquals(this.workflowInstanceHistoryList, other.workflowInstanceHistoryList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflowInstanceHistoryList); + } + + @Override + public String toString() { + return Utils.toString(GetWorkflowInstanceHistoryResponse.class, + "workflowInstanceHistoryList", workflowInstanceHistoryList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List workflowInstanceHistoryList; + + private Builder() { + // force use of static builder() method + } + + + public Builder workflowInstanceHistoryList(List workflowInstanceHistoryList) { + Utils.checkNotNull(workflowInstanceHistoryList, "workflowInstanceHistoryList"); + this.workflowInstanceHistoryList = workflowInstanceHistoryList; + return this; + } + + public GetWorkflowInstanceHistoryResponse build() { + + return new GetWorkflowInstanceHistoryResponse( + workflowInstanceHistoryList); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryStageResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryStageResponse.java new file mode 100644 index 000000000..b5be3f43b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceHistoryStageResponse.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class GetWorkflowInstanceHistoryStageResponse { + + @JsonProperty("data") + private List workflowInstanceHistoryStageList; + + @JsonCreator + public GetWorkflowInstanceHistoryStageResponse( + @JsonProperty("data") List workflowInstanceHistoryStageList) { + Utils.checkNotNull(workflowInstanceHistoryStageList, "workflowInstanceHistoryStageList"); + this.workflowInstanceHistoryStageList = workflowInstanceHistoryStageList; + } + + @JsonIgnore + public List workflowInstanceHistoryStageList() { + return workflowInstanceHistoryStageList; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWorkflowInstanceHistoryStageResponse withWorkflowInstanceHistoryStageList(List workflowInstanceHistoryStageList) { + Utils.checkNotNull(workflowInstanceHistoryStageList, "workflowInstanceHistoryStageList"); + this.workflowInstanceHistoryStageList = workflowInstanceHistoryStageList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWorkflowInstanceHistoryStageResponse other = (GetWorkflowInstanceHistoryStageResponse) o; + return + Utils.enhancedDeepEquals(this.workflowInstanceHistoryStageList, other.workflowInstanceHistoryStageList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflowInstanceHistoryStageList); + } + + @Override + public String toString() { + return Utils.toString(GetWorkflowInstanceHistoryStageResponse.class, + "workflowInstanceHistoryStageList", workflowInstanceHistoryStageList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List workflowInstanceHistoryStageList; + + private Builder() { + // force use of static builder() method + } + + + public Builder workflowInstanceHistoryStageList(List workflowInstanceHistoryStageList) { + Utils.checkNotNull(workflowInstanceHistoryStageList, "workflowInstanceHistoryStageList"); + this.workflowInstanceHistoryStageList = workflowInstanceHistoryStageList; + return this; + } + + public GetWorkflowInstanceHistoryStageResponse build() { + + return new GetWorkflowInstanceHistoryStageResponse( + workflowInstanceHistoryStageList); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceResponse.java new file mode 100644 index 000000000..b4fcd44cf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowInstanceResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetWorkflowInstanceResponse { + + @JsonProperty("data") + private WorkflowInstance workflowInstance; + + @JsonCreator + public GetWorkflowInstanceResponse( + @JsonProperty("data") WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + } + + @JsonIgnore + public WorkflowInstance workflowInstance() { + return workflowInstance; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWorkflowInstanceResponse withWorkflowInstance(WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWorkflowInstanceResponse other = (GetWorkflowInstanceResponse) o; + return + Utils.enhancedDeepEquals(this.workflowInstance, other.workflowInstance); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflowInstance); + } + + @Override + public String toString() { + return Utils.toString(GetWorkflowInstanceResponse.class, + "workflowInstance", workflowInstance); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WorkflowInstance workflowInstance; + + private Builder() { + // force use of static builder() method + } + + + public Builder workflowInstance(WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + return this; + } + + public GetWorkflowInstanceResponse build() { + + return new GetWorkflowInstanceResponse( + workflowInstance); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowResponse.java new file mode 100644 index 000000000..f7bdc9ec7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/GetWorkflowResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetWorkflowResponse { + + @JsonProperty("data") + private Workflow workflow; + + @JsonCreator + public GetWorkflowResponse( + @JsonProperty("data") Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + } + + @JsonIgnore + public Workflow workflow() { + return workflow; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWorkflowResponse withWorkflow(Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWorkflowResponse other = (GetWorkflowResponse) o; + return + Utils.enhancedDeepEquals(this.workflow, other.workflow); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflow); + } + + @Override + public String toString() { + return Utils.toString(GetWorkflowResponse.class, + "workflow", workflow); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Workflow workflow; + + private Builder() { + // force use of static builder() method + } + + + public Builder workflow(Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + return this; + } + + public GetWorkflowResponse build() { + + return new GetWorkflowResponse( + workflow); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Hold.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Hold.java new file mode 100644 index 000000000..d58ab03a2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Hold.java @@ -0,0 +1,271 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class Hold { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional subject; + + + @JsonProperty("description") + private String description; + + /** + * The unique ID of the hold. + */ + @JsonProperty("id") + private String id; + + /** + * Metadata associated with the hold. + */ + @JsonProperty("metadata") + private Map metadata; + + /** + * The ID of the wallet the hold is associated with. + */ + @JsonProperty("walletID") + private String walletID; + + @JsonCreator + public Hold( + @JsonProperty("destination") Optional subject, + @JsonProperty("description") String description, + @JsonProperty("id") String id, + @JsonProperty("metadata") Map metadata, + @JsonProperty("walletID") String walletID) { + Utils.checkNotNull(subject, "subject"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(id, "id"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(walletID, "walletID"); + this.subject = subject; + this.description = description; + this.id = id; + this.metadata = metadata; + this.walletID = walletID; + } + + public Hold( + String description, + String id, + Map metadata, + String walletID) { + this(Optional.empty(), description, id, + metadata, walletID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional subject() { + return (Optional) subject; + } + + @JsonIgnore + public String description() { + return description; + } + + /** + * The unique ID of the hold. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * Metadata associated with the hold. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + /** + * The ID of the wallet the hold is associated with. + */ + @JsonIgnore + public String walletID() { + return walletID; + } + + public static Builder builder() { + return new Builder(); + } + + + public Hold withSubject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + + public Hold withSubject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + public Hold withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + /** + * The unique ID of the hold. + */ + public Hold withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Metadata associated with the hold. + */ + public Hold withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * The ID of the wallet the hold is associated with. + */ + public Hold withWalletID(String walletID) { + Utils.checkNotNull(walletID, "walletID"); + this.walletID = walletID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Hold other = (Hold) o; + return + Utils.enhancedDeepEquals(this.subject, other.subject) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.walletID, other.walletID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + subject, description, id, + metadata, walletID); + } + + @Override + public String toString() { + return Utils.toString(Hold.class, + "subject", subject, + "description", description, + "id", id, + "metadata", metadata, + "walletID", walletID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional subject = Optional.empty(); + + private String description; + + private String id; + + private Map metadata; + + private String walletID; + + private Builder() { + // force use of static builder() method + } + + + public Builder subject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + public Builder subject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + /** + * The unique ID of the hold. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * Metadata associated with the hold. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * The ID of the wallet the hold is associated with. + */ + public Builder walletID(String walletID) { + Utils.checkNotNull(walletID, "walletID"); + this.walletID = walletID; + return this; + } + + public Hold build() { + + return new Hold( + subject, description, id, + metadata, walletID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/LedgerAccountSubject.java b/src/main/java/com/formance/formance_sdk/models/orchestration/LedgerAccountSubject.java new file mode 100644 index 000000000..569aafd14 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/LedgerAccountSubject.java @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class LedgerAccountSubject { + + @JsonProperty("identifier") + private String identifier; + + + @JsonProperty("type") + private String type; + + @JsonCreator + public LedgerAccountSubject( + @JsonProperty("identifier") String identifier, + @JsonProperty("type") String type) { + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(type, "type"); + this.identifier = identifier; + this.type = type; + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerAccountSubject withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public LedgerAccountSubject withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerAccountSubject other = (LedgerAccountSubject) o; + return + Utils.enhancedDeepEquals(this.identifier, other.identifier) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + identifier, type); + } + + @Override + public String toString() { + return Utils.toString(LedgerAccountSubject.class, + "identifier", identifier, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String identifier; + + private String type; + + private Builder() { + // force use of static builder() method + } + + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public LedgerAccountSubject build() { + + return new LedgerAccountSubject( + identifier, type); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListRunsResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ListRunsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ListRunsResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ListRunsResponse.java index 1629524ff..a64c8a2a3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListRunsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ListRunsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListTriggersOccurrencesResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersOccurrencesResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ListTriggersOccurrencesResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersOccurrencesResponse.java index 6bb4c9128..8f88d3d41 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListTriggersOccurrencesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersOccurrencesResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListTriggersResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersResponse.java similarity index 83% rename from src/main/java/com/formance/formance_sdk/models/shared/ListTriggersResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersResponse.java index 820537f2c..e278c2977 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListTriggersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ListTriggersResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -15,17 +15,17 @@ public class ListTriggersResponse { @JsonProperty("data") - private List data; + private List data; @JsonCreator public ListTriggersResponse( - @JsonProperty("data") List data) { + @JsonProperty("data") List data) { Utils.checkNotNull(data, "data"); this.data = data; } @JsonIgnore - public List data() { + public List data() { return data; } @@ -34,7 +34,7 @@ public static Builder builder() { } - public ListTriggersResponse withData(List data) { + public ListTriggersResponse withData(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -68,14 +68,14 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List data; + private List data; private Builder() { // force use of static builder() method } - public Builder data(List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponse.java new file mode 100644 index 000000000..cecac324e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ListWalletsResponse { + + @JsonProperty("cursor") + private ListWalletsResponseCursor cursor; + + @JsonCreator + public ListWalletsResponse( + @JsonProperty("cursor") ListWalletsResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + } + + @JsonIgnore + public ListWalletsResponseCursor cursor() { + return cursor; + } + + public static Builder builder() { + return new Builder(); + } + + + public ListWalletsResponse withCursor(ListWalletsResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWalletsResponse other = (ListWalletsResponse) o; + return + Utils.enhancedDeepEquals(this.cursor, other.cursor); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursor); + } + + @Override + public String toString() { + return Utils.toString(ListWalletsResponse.class, + "cursor", cursor); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ListWalletsResponseCursor cursor; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursor(ListWalletsResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + public ListWalletsResponse build() { + + return new ListWalletsResponse( + cursor); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponseCursor.java new file mode 100644 index 000000000..4e36a3a84 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ListWalletsResponseCursor.java @@ -0,0 +1,263 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class ListWalletsResponseCursor { + + @JsonProperty("data") + private List data; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasMore") + private Optional hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public ListWalletsResponseCursor( + @JsonProperty("data") List data, + @JsonProperty("hasMore") Optional hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public ListWalletsResponseCursor( + List data, + long pageSize) { + this(data, Optional.empty(), Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public Optional hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public ListWalletsResponseCursor withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public ListWalletsResponseCursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + + public ListWalletsResponseCursor withHasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public ListWalletsResponseCursor withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public ListWalletsResponseCursor withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public ListWalletsResponseCursor withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public ListWalletsResponseCursor withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public ListWalletsResponseCursor withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWalletsResponseCursor other = (ListWalletsResponseCursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(ListWalletsResponseCursor.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Optional hasMore = Optional.empty(); + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + public Builder hasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public ListWalletsResponseCursor build() { + + return new ListWalletsResponseCursor( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListWorkflowsResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ListWorkflowsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ListWorkflowsResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/ListWorkflowsResponse.java index dc4492516..d5e719fc7 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListWorkflowsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ListWorkflowsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Monetary.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Monetary.java new file mode 100644 index 000000000..ac172fbdd --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Monetary.java @@ -0,0 +1,158 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class Monetary { + /** + * The amount of the monetary value. + */ + @JsonProperty("amount") + private BigInteger amount; + + /** + * The asset of the monetary value. + */ + @JsonProperty("asset") + private String asset; + + @JsonCreator + public Monetary( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + this.amount = amount; + this.asset = asset; + } + + /** + * The amount of the monetary value. + */ + @JsonIgnore + public BigInteger amount() { + return amount; + } + + /** + * The asset of the monetary value. + */ + @JsonIgnore + public String asset() { + return asset; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The amount of the monetary value. + */ + public Monetary withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + /** + * The amount of the monetary value. + */ + public Monetary withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + /** + * The asset of the monetary value. + */ + public Monetary withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Monetary other = (Monetary) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset); + } + + @Override + public String toString() { + return Utils.toString(Monetary.class, + "amount", amount, + "asset", asset); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private Builder() { + // force use of static builder() method + } + + + /** + * The amount of the monetary value. + */ + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + /** + * The amount of the monetary value. + */ + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + /** + * The asset of the monetary value. + */ + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Monetary build() { + + return new Monetary( + amount, asset); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Payment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Payment.java new file mode 100644 index 000000000..f4317116e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Payment.java @@ -0,0 +1,586 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Optional; + + +public class Payment { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("provider") + private Optional connector; + + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional paymentMetadata; + + + @JsonProperty("status") + private PaymentStatus paymentStatus; + + + @JsonProperty("adjustments") + private List adjustments; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("destinationAccountID") + private String destinationAccountID; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("initialAmount") + private BigInteger initialAmount; + + + @JsonInclude(Include.ALWAYS) + @JsonProperty("raw") + private Optional raw; + + + @JsonProperty("reference") + private String reference; + + + @JsonProperty("scheme") + private PaymentScheme scheme; + + + @JsonProperty("sourceAccountID") + private String sourceAccountID; + + + @JsonProperty("type") + private PaymentType type; + + @JsonCreator + public Payment( + @JsonProperty("provider") Optional connector, + @JsonProperty("metadata") Optional paymentMetadata, + @JsonProperty("status") PaymentStatus paymentStatus, + @JsonProperty("adjustments") List adjustments, + @JsonProperty("asset") String asset, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("destinationAccountID") String destinationAccountID, + @JsonProperty("id") String id, + @JsonProperty("initialAmount") BigInteger initialAmount, + @JsonProperty("raw") Optional raw, + @JsonProperty("reference") String reference, + @JsonProperty("scheme") PaymentScheme scheme, + @JsonProperty("sourceAccountID") String sourceAccountID, + @JsonProperty("type") PaymentType type) { + Utils.checkNotNull(connector, "connector"); + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + Utils.checkNotNull(paymentStatus, "paymentStatus"); + Utils.checkNotNull(adjustments, "adjustments"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(destinationAccountID, "destinationAccountID"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(initialAmount, "initialAmount"); + Utils.checkNotNull(raw, "raw"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(scheme, "scheme"); + Utils.checkNotNull(sourceAccountID, "sourceAccountID"); + Utils.checkNotNull(type, "type"); + this.connector = connector; + this.paymentMetadata = paymentMetadata; + this.paymentStatus = paymentStatus; + this.adjustments = adjustments; + this.asset = asset; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.destinationAccountID = destinationAccountID; + this.id = id; + this.initialAmount = initialAmount; + this.raw = raw; + this.reference = reference; + this.scheme = scheme; + this.sourceAccountID = sourceAccountID; + this.type = type; + } + + public Payment( + PaymentStatus paymentStatus, + List adjustments, + String asset, + String connectorID, + OffsetDateTime createdAt, + String destinationAccountID, + String id, + BigInteger initialAmount, + String reference, + PaymentScheme scheme, + String sourceAccountID, + PaymentType type) { + this(Optional.empty(), Optional.empty(), paymentStatus, + adjustments, asset, connectorID, + createdAt, destinationAccountID, id, + initialAmount, Optional.empty(), reference, + scheme, sourceAccountID, type); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional connector() { + return (Optional) connector; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional paymentMetadata() { + return (Optional) paymentMetadata; + } + + @JsonIgnore + public PaymentStatus paymentStatus() { + return paymentStatus; + } + + @JsonIgnore + public List adjustments() { + return adjustments; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String destinationAccountID() { + return destinationAccountID; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public BigInteger initialAmount() { + return initialAmount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional raw() { + return (Optional) raw; + } + + @JsonIgnore + public String reference() { + return reference; + } + + @JsonIgnore + public PaymentScheme scheme() { + return scheme; + } + + @JsonIgnore + public String sourceAccountID() { + return sourceAccountID; + } + + @JsonIgnore + public PaymentType type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + public Payment withConnector(Connector connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = Optional.ofNullable(connector); + return this; + } + + + public Payment withConnector(Optional connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = connector; + return this; + } + + public Payment withPaymentMetadata(PaymentMetadata paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = Optional.ofNullable(paymentMetadata); + return this; + } + + + public Payment withPaymentMetadata(Optional paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = paymentMetadata; + return this; + } + + public Payment withPaymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + public Payment withAdjustments(List adjustments) { + Utils.checkNotNull(adjustments, "adjustments"); + this.adjustments = adjustments; + return this; + } + + public Payment withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Payment withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public Payment withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public Payment withDestinationAccountID(String destinationAccountID) { + Utils.checkNotNull(destinationAccountID, "destinationAccountID"); + this.destinationAccountID = destinationAccountID; + return this; + } + + public Payment withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Payment withInitialAmount(long initialAmount) { + this.initialAmount = BigInteger.valueOf(initialAmount); + return this; + } + + public Payment withInitialAmount(BigInteger initialAmount) { + Utils.checkNotNull(initialAmount, "initialAmount"); + this.initialAmount = initialAmount; + return this; + } + + public Payment withRaw(PaymentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = Optional.ofNullable(raw); + return this; + } + + + public Payment withRaw(Optional raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public Payment withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Payment withScheme(PaymentScheme scheme) { + Utils.checkNotNull(scheme, "scheme"); + this.scheme = scheme; + return this; + } + + public Payment withSourceAccountID(String sourceAccountID) { + Utils.checkNotNull(sourceAccountID, "sourceAccountID"); + this.sourceAccountID = sourceAccountID; + return this; + } + + public Payment withType(PaymentType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Payment other = (Payment) o; + return + Utils.enhancedDeepEquals(this.connector, other.connector) && + Utils.enhancedDeepEquals(this.paymentMetadata, other.paymentMetadata) && + Utils.enhancedDeepEquals(this.paymentStatus, other.paymentStatus) && + Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && + Utils.enhancedDeepEquals(this.raw, other.raw) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.scheme, other.scheme) && + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connector, paymentMetadata, paymentStatus, + adjustments, asset, connectorID, + createdAt, destinationAccountID, id, + initialAmount, raw, reference, + scheme, sourceAccountID, type); + } + + @Override + public String toString() { + return Utils.toString(Payment.class, + "connector", connector, + "paymentMetadata", paymentMetadata, + "paymentStatus", paymentStatus, + "adjustments", adjustments, + "asset", asset, + "connectorID", connectorID, + "createdAt", createdAt, + "destinationAccountID", destinationAccountID, + "id", id, + "initialAmount", initialAmount, + "raw", raw, + "reference", reference, + "scheme", scheme, + "sourceAccountID", sourceAccountID, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional connector = Optional.empty(); + + private Optional paymentMetadata = Optional.empty(); + + private PaymentStatus paymentStatus; + + private List adjustments; + + private String asset; + + private String connectorID; + + private OffsetDateTime createdAt; + + private String destinationAccountID; + + private String id; + + private BigInteger initialAmount; + + private Optional raw = Optional.empty(); + + private String reference; + + private PaymentScheme scheme; + + private String sourceAccountID; + + private PaymentType type; + + private Builder() { + // force use of static builder() method + } + + + public Builder connector(Connector connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = Optional.ofNullable(connector); + return this; + } + + public Builder connector(Optional connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = connector; + return this; + } + + + public Builder paymentMetadata(PaymentMetadata paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = Optional.ofNullable(paymentMetadata); + return this; + } + + public Builder paymentMetadata(Optional paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = paymentMetadata; + return this; + } + + + public Builder paymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + + public Builder adjustments(List adjustments) { + Utils.checkNotNull(adjustments, "adjustments"); + this.adjustments = adjustments; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder destinationAccountID(String destinationAccountID) { + Utils.checkNotNull(destinationAccountID, "destinationAccountID"); + this.destinationAccountID = destinationAccountID; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder initialAmount(long initialAmount) { + this.initialAmount = BigInteger.valueOf(initialAmount); + return this; + } + + public Builder initialAmount(BigInteger initialAmount) { + Utils.checkNotNull(initialAmount, "initialAmount"); + this.initialAmount = initialAmount; + return this; + } + + + public Builder raw(PaymentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = Optional.ofNullable(raw); + return this; + } + + public Builder raw(Optional raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder scheme(PaymentScheme scheme) { + Utils.checkNotNull(scheme, "scheme"); + this.scheme = scheme; + return this; + } + + + public Builder sourceAccountID(String sourceAccountID) { + Utils.checkNotNull(sourceAccountID, "sourceAccountID"); + this.sourceAccountID = sourceAccountID; + return this; + } + + + public Builder type(PaymentType type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public Payment build() { + + return new Payment( + connector, paymentMetadata, paymentStatus, + adjustments, asset, connectorID, + createdAt, destinationAccountID, id, + initialAmount, raw, reference, + scheme, sourceAccountID, type); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustment.java new file mode 100644 index 000000000..84452584d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustment.java @@ -0,0 +1,221 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; +import java.time.OffsetDateTime; + + +public class PaymentAdjustment { + + @JsonProperty("status") + private PaymentStatus paymentStatus; + + + @JsonProperty("absolute") + private boolean absolute; + + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("date") + private OffsetDateTime date; + + + @JsonProperty("raw") + private PaymentAdjustmentRaw raw; + + @JsonCreator + public PaymentAdjustment( + @JsonProperty("status") PaymentStatus paymentStatus, + @JsonProperty("absolute") boolean absolute, + @JsonProperty("amount") BigInteger amount, + @JsonProperty("date") OffsetDateTime date, + @JsonProperty("raw") PaymentAdjustmentRaw raw) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + Utils.checkNotNull(absolute, "absolute"); + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(date, "date"); + Utils.checkNotNull(raw, "raw"); + this.paymentStatus = paymentStatus; + this.absolute = absolute; + this.amount = amount; + this.date = date; + this.raw = raw; + } + + @JsonIgnore + public PaymentStatus paymentStatus() { + return paymentStatus; + } + + @JsonIgnore + public boolean absolute() { + return absolute; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public OffsetDateTime date() { + return date; + } + + @JsonIgnore + public PaymentAdjustmentRaw raw() { + return raw; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentAdjustment withPaymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + public PaymentAdjustment withAbsolute(boolean absolute) { + Utils.checkNotNull(absolute, "absolute"); + this.absolute = absolute; + return this; + } + + public PaymentAdjustment withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public PaymentAdjustment withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public PaymentAdjustment withDate(OffsetDateTime date) { + Utils.checkNotNull(date, "date"); + this.date = date; + return this; + } + + public PaymentAdjustment withRaw(PaymentAdjustmentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAdjustment other = (PaymentAdjustment) o; + return + Utils.enhancedDeepEquals(this.paymentStatus, other.paymentStatus) && + Utils.enhancedDeepEquals(this.absolute, other.absolute) && + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.date, other.date) && + Utils.enhancedDeepEquals(this.raw, other.raw); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + paymentStatus, absolute, amount, + date, raw); + } + + @Override + public String toString() { + return Utils.toString(PaymentAdjustment.class, + "paymentStatus", paymentStatus, + "absolute", absolute, + "amount", amount, + "date", date, + "raw", raw); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PaymentStatus paymentStatus; + + private Boolean absolute; + + private BigInteger amount; + + private OffsetDateTime date; + + private PaymentAdjustmentRaw raw; + + private Builder() { + // force use of static builder() method + } + + + public Builder paymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + + public Builder absolute(boolean absolute) { + Utils.checkNotNull(absolute, "absolute"); + this.absolute = absolute; + return this; + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder date(OffsetDateTime date) { + Utils.checkNotNull(date, "date"); + this.date = date; + return this; + } + + + public Builder raw(PaymentAdjustmentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public PaymentAdjustment build() { + + return new PaymentAdjustment( + paymentStatus, absolute, amount, + date, raw); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustmentRaw.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustmentRaw.java new file mode 100644 index 000000000..f7f8800bf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentAdjustmentRaw.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PaymentAdjustmentRaw { + @JsonCreator + public PaymentAdjustmentRaw() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(PaymentAdjustmentRaw.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public PaymentAdjustmentRaw build() { + + return new PaymentAdjustmentRaw( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentMetadata.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentMetadata.java new file mode 100644 index 000000000..e5adfea7d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentMetadata.java @@ -0,0 +1,111 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class PaymentMetadata { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("key") + private Optional key; + + @JsonCreator + public PaymentMetadata( + @JsonProperty("key") Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + } + + public PaymentMetadata() { + this(Optional.empty()); + } + + @JsonIgnore + public Optional key() { + return key; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentMetadata withKey(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + + public PaymentMetadata withKey(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentMetadata other = (PaymentMetadata) o; + return + Utils.enhancedDeepEquals(this.key, other.key); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + key); + } + + @Override + public String toString() { + return Utils.toString(PaymentMetadata.class, + "key", key); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional key = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder key(String key) { + Utils.checkNotNull(key, "key"); + this.key = Optional.ofNullable(key); + return this; + } + + public Builder key(Optional key) { + Utils.checkNotNull(key, "key"); + this.key = key; + return this; + } + + public PaymentMetadata build() { + + return new PaymentMetadata( + key); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentRaw.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentRaw.java new file mode 100644 index 000000000..d575f5d45 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentRaw.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PaymentRaw { + @JsonCreator + public PaymentRaw() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(PaymentRaw.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public PaymentRaw build() { + + return new PaymentRaw( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentResponse.java new file mode 100644 index 000000000..50ec4cc39 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PaymentResponse { + + @JsonProperty("data") + private Payment payment; + + @JsonCreator + public PaymentResponse( + @JsonProperty("data") Payment payment) { + Utils.checkNotNull(payment, "payment"); + this.payment = payment; + } + + @JsonIgnore + public Payment payment() { + return payment; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentResponse withPayment(Payment payment) { + Utils.checkNotNull(payment, "payment"); + this.payment = payment; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentResponse other = (PaymentResponse) o; + return + Utils.enhancedDeepEquals(this.payment, other.payment); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + payment); + } + + @Override + public String toString() { + return Utils.toString(PaymentResponse.class, + "payment", payment); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Payment payment; + + private Builder() { + // force use of static builder() method + } + + + public Builder payment(Payment payment) { + Utils.checkNotNull(payment, "payment"); + this.payment = payment; + return this; + } + + public PaymentResponse build() { + + return new PaymentResponse( + payment); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentScheme.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentScheme.java new file mode 100644 index 000000000..9bc76e724 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentScheme.java @@ -0,0 +1,51 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum PaymentScheme { + VISA("visa"), + MASTERCARD("mastercard"), + AMEX("amex"), + DINERS("diners"), + DISCOVER("discover"), + JCB("jcb"), + UNIONPAY("unionpay"), + SEPA_DEBIT("sepa debit"), + SEPA_CREDIT("sepa credit"), + SEPA("sepa"), + APPLE_PAY("apple pay"), + GOOGLE_PAY("google pay"), + A2A("a2a"), + ACH_DEBIT("ach debit"), + ACH("ach"), + RTP("rtp"), + UNKNOWN("unknown"), + OTHER("other"); + + @JsonValue + private final String value; + + PaymentScheme(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PaymentScheme o: PaymentScheme.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentStatus.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentStatus.java new file mode 100644 index 000000000..cb1ae7e0f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentStatus.java @@ -0,0 +1,39 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum PaymentStatus { + PENDING("PENDING"), + ACTIVE("ACTIVE"), + TERMINATED("TERMINATED"), + FAILED("FAILED"), + SUCCEEDED("SUCCEEDED"), + CANCELLED("CANCELLED"); + + @JsonValue + private final String value; + + PaymentStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PaymentStatus o: PaymentStatus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentType.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentType.java new file mode 100644 index 000000000..40de7b083 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PaymentType.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum PaymentType { + PAY_IN("PAY-IN"), + PAYOUT("PAYOUT"), + TRANSFER("TRANSFER"), + OTHER("OTHER"); + + @JsonValue + private final String value; + + PaymentType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PaymentType o: PaymentType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PostTransaction.java new file mode 100644 index 000000000..d8bf5de12 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PostTransaction.java @@ -0,0 +1,280 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class PostTransaction { + + @JsonProperty("metadata") + private Map metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postings") + private Optional> postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("script") + private Optional script; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public PostTransaction( + @JsonProperty("metadata") Map metadata, + @JsonProperty("postings") Optional> postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("script") Optional script, + @JsonProperty("timestamp") Optional timestamp) { + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(script, "script"); + Utils.checkNotNull(timestamp, "timestamp"); + this.metadata = metadata; + this.postings = postings; + this.reference = reference; + this.script = script; + this.timestamp = timestamp; + } + + public PostTransaction( + Map metadata) { + this(metadata, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Map metadata() { + return metadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> postings() { + return (Optional>) postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional script() { + return (Optional) script; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public PostTransaction withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public PostTransaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + + public PostTransaction withPostings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public PostTransaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public PostTransaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public PostTransaction withScript(PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + + public PostTransaction withScript(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + public PostTransaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public PostTransaction withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostTransaction other = (PostTransaction) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.script, other.script) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, postings, reference, + script, timestamp); + } + + @Override + public String toString() { + return Utils.toString(PostTransaction.class, + "metadata", metadata, + "postings", postings, + "reference", reference, + "script", script, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map metadata; + + private Optional> postings = Optional.empty(); + + private Optional reference = Optional.empty(); + + private Optional script = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + public Builder postings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder script(PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + public Builder script(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public PostTransaction build() { + + return new PostTransaction( + metadata, postings, reference, + script, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/orchestration/PostTransactionScript.java new file mode 100644 index 000000000..329ce0b8d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/PostTransactionScript.java @@ -0,0 +1,145 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class PostTransactionScript { + + @JsonProperty("plain") + private String plain; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + @JsonCreator + public PostTransactionScript( + @JsonProperty("plain") String plain, + @JsonProperty("vars") Optional> vars) { + Utils.checkNotNull(plain, "plain"); + Utils.checkNotNull(vars, "vars"); + this.plain = plain; + this.vars = vars; + } + + public PostTransactionScript( + String plain) { + this(plain, Optional.empty()); + } + + @JsonIgnore + public String plain() { + return plain; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + public static Builder builder() { + return new Builder(); + } + + + public PostTransactionScript withPlain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + public PostTransactionScript withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public PostTransactionScript withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostTransactionScript other = (PostTransactionScript) o; + return + Utils.enhancedDeepEquals(this.plain, other.plain) && + Utils.enhancedDeepEquals(this.vars, other.vars); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + plain, vars); + } + + @Override + public String toString() { + return Utils.toString(PostTransactionScript.class, + "plain", plain, + "vars", vars); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String plain; + + private Optional> vars = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder plain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public PostTransactionScript build() { + + return new PostTransactionScript( + plain, vars); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Posting.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Posting.java new file mode 100644 index 000000000..60fa77843 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Posting.java @@ -0,0 +1,190 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class Posting { + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("destination") + private String destination; + + + @JsonProperty("source") + private String source; + + @JsonCreator + public Posting( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset, + @JsonProperty("destination") String destination, + @JsonProperty("source") String source) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(source, "source"); + this.amount = amount; + this.asset = asset; + this.destination = destination; + this.source = source; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String destination() { + return destination; + } + + @JsonIgnore + public String source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + public Posting withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Posting withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public Posting withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Posting withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + public Posting withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Posting other = (Posting) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, destination, + source); + } + + @Override + public String toString() { + return Utils.toString(Posting.class, + "amount", amount, + "asset", asset, + "destination", destination, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private String destination; + + private String source; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public Posting build() { + + return new Posting( + amount, asset, destination, + source); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ReadTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ReadTriggerResponse.java new file mode 100644 index 000000000..334d4b8bf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ReadTriggerResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ReadTriggerResponse { + + @JsonProperty("data") + private TriggerData1 triggerData; + + @JsonCreator + public ReadTriggerResponse( + @JsonProperty("data") TriggerData1 triggerData) { + Utils.checkNotNull(triggerData, "triggerData"); + this.triggerData = triggerData; + } + + @JsonIgnore + public TriggerData1 triggerData() { + return triggerData; + } + + public static Builder builder() { + return new Builder(); + } + + + public ReadTriggerResponse withTriggerData(TriggerData1 triggerData) { + Utils.checkNotNull(triggerData, "triggerData"); + this.triggerData = triggerData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReadTriggerResponse other = (ReadTriggerResponse) o; + return + Utils.enhancedDeepEquals(this.triggerData, other.triggerData); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + triggerData); + } + + @Override + public String toString() { + return Utils.toString(ReadTriggerResponse.class, + "triggerData", triggerData); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TriggerData1 triggerData; + + private Builder() { + // force use of static builder() method + } + + + public Builder triggerData(TriggerData1 triggerData) { + Utils.checkNotNull(triggerData, "triggerData"); + this.triggerData = triggerData; + return this; + } + + public ReadTriggerResponse build() { + + return new ReadTriggerResponse( + triggerData); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/RunWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/RunWorkflowResponse.java new file mode 100644 index 000000000..2c525ece6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/RunWorkflowResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class RunWorkflowResponse { + + @JsonProperty("data") + private WorkflowInstance workflowInstance; + + @JsonCreator + public RunWorkflowResponse( + @JsonProperty("data") WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + } + + @JsonIgnore + public WorkflowInstance workflowInstance() { + return workflowInstance; + } + + public static Builder builder() { + return new Builder(); + } + + + public RunWorkflowResponse withWorkflowInstance(WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RunWorkflowResponse other = (RunWorkflowResponse) o; + return + Utils.enhancedDeepEquals(this.workflowInstance, other.workflowInstance); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflowInstance); + } + + @Override + public String toString() { + return Utils.toString(RunWorkflowResponse.class, + "workflowInstance", workflowInstance); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WorkflowInstance workflowInstance; + + private Builder() { + // force use of static builder() method + } + + + public Builder workflowInstance(WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + return this; + } + + public RunWorkflowResponse build() { + + return new RunWorkflowResponse( + workflowInstance); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/orchestration/ServerInfo.java new file mode 100644 index 000000000..c2f2442d0 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/ServerInfo.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ServerInfo { + + @JsonProperty("version") + private String version; + + @JsonCreator + public ServerInfo( + @JsonProperty("version") String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + } + + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public ServerInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerInfo other = (ServerInfo) o; + return + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + version); + } + + @Override + public String toString() { + return Utils.toString(ServerInfo.class, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String version; + + private Builder() { + // force use of static builder() method + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public ServerInfo build() { + + return new ServerInfo( + version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Stage.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Stage.java similarity index 89% rename from src/main/java/com/formance/formance_sdk/models/shared/Stage.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/Stage.java index 60f84f974..8be4b0943 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Stage.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Stage.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; @@ -48,10 +48,10 @@ public static Stage of(Update value) { /** * Returns an instance of one of these types: *

    - *
  • {@code com.formance.formance_sdk.models.shared.StageSend}
  • - *
  • {@code com.formance.formance_sdk.models.shared.StageDelay}
  • - *
  • {@code com.formance.formance_sdk.models.shared.StageWaitEvent}
  • - *
  • {@code com.formance.formance_sdk.models.shared.Update}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.StageSend}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.StageDelay}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.StageWaitEvent}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.Update}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageDelay.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageDelay.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/StageDelay.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/StageDelay.java index 9e2652871..5b151e647 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageDelay.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageDelay.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StageSend.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSend.java new file mode 100644 index 000000000..d0162b944 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSend.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + + +public class StageSend { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional monetary; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional stageSendDestination; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional stageSendSource; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public StageSend( + @JsonProperty("amount") Optional monetary, + @JsonProperty("destination") Optional stageSendDestination, + @JsonProperty("source") Optional stageSendSource, + @JsonProperty("metadata") Optional> metadata, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(monetary, "monetary"); + Utils.checkNotNull(stageSendDestination, "stageSendDestination"); + Utils.checkNotNull(stageSendSource, "stageSendSource"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(timestamp, "timestamp"); + this.monetary = monetary; + this.stageSendDestination = stageSendDestination; + this.stageSendSource = stageSendSource; + this.metadata = metadata; + this.timestamp = timestamp; + } + + public StageSend() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional monetary() { + return (Optional) monetary; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendDestination() { + return (Optional) stageSendDestination; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendSource() { + return (Optional) stageSendSource; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public StageSend withMonetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = Optional.ofNullable(monetary); + return this; + } + + + public StageSend withMonetary(Optional monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + public StageSend withStageSendDestination(StageSendDestination stageSendDestination) { + Utils.checkNotNull(stageSendDestination, "stageSendDestination"); + this.stageSendDestination = Optional.ofNullable(stageSendDestination); + return this; + } + + + public StageSend withStageSendDestination(Optional stageSendDestination) { + Utils.checkNotNull(stageSendDestination, "stageSendDestination"); + this.stageSendDestination = stageSendDestination; + return this; + } + + public StageSend withStageSendSource(StageSendSource stageSendSource) { + Utils.checkNotNull(stageSendSource, "stageSendSource"); + this.stageSendSource = Optional.ofNullable(stageSendSource); + return this; + } + + + public StageSend withStageSendSource(Optional stageSendSource) { + Utils.checkNotNull(stageSendSource, "stageSendSource"); + this.stageSendSource = stageSendSource; + return this; + } + + public StageSend withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + public StageSend withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public StageSend withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public StageSend withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StageSend other = (StageSend) o; + return + Utils.enhancedDeepEquals(this.monetary, other.monetary) && + Utils.enhancedDeepEquals(this.stageSendDestination, other.stageSendDestination) && + Utils.enhancedDeepEquals(this.stageSendSource, other.stageSendSource) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + monetary, stageSendDestination, stageSendSource, + metadata, timestamp); + } + + @Override + public String toString() { + return Utils.toString(StageSend.class, + "monetary", monetary, + "stageSendDestination", stageSendDestination, + "stageSendSource", stageSendSource, + "metadata", metadata, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional monetary = Optional.empty(); + + private Optional stageSendDestination = Optional.empty(); + + private Optional stageSendSource = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder monetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = Optional.ofNullable(monetary); + return this; + } + + public Builder monetary(Optional monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + + public Builder stageSendDestination(StageSendDestination stageSendDestination) { + Utils.checkNotNull(stageSendDestination, "stageSendDestination"); + this.stageSendDestination = Optional.ofNullable(stageSendDestination); + return this; + } + + public Builder stageSendDestination(Optional stageSendDestination) { + Utils.checkNotNull(stageSendDestination, "stageSendDestination"); + this.stageSendDestination = stageSendDestination; + return this; + } + + + public Builder stageSendSource(StageSendSource stageSendSource) { + Utils.checkNotNull(stageSendSource, "stageSendSource"); + this.stageSendSource = Optional.ofNullable(stageSendSource); + return this; + } + + public Builder stageSendSource(Optional stageSendSource) { + Utils.checkNotNull(stageSendSource, "stageSendSource"); + this.stageSendSource = stageSendSource; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public StageSend build() { + + return new StageSend( + monetary, stageSendDestination, stageSendSource, + metadata, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestination.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestination.java new file mode 100644 index 000000000..0f710d9d2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestination.java @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class StageSendDestination { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("payment") + private Optional stageSendDestinationPayment; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("account") + private Optional stageSendSourceAccount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("wallet") + private Optional stageSendSourceWallet; + + @JsonCreator + public StageSendDestination( + @JsonProperty("payment") Optional stageSendDestinationPayment, + @JsonProperty("account") Optional stageSendSourceAccount, + @JsonProperty("wallet") Optional stageSendSourceWallet) { + Utils.checkNotNull(stageSendDestinationPayment, "stageSendDestinationPayment"); + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendDestinationPayment = stageSendDestinationPayment; + this.stageSendSourceAccount = stageSendSourceAccount; + this.stageSendSourceWallet = stageSendSourceWallet; + } + + public StageSendDestination() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendDestinationPayment() { + return (Optional) stageSendDestinationPayment; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendSourceAccount() { + return (Optional) stageSendSourceAccount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendSourceWallet() { + return (Optional) stageSendSourceWallet; + } + + public static Builder builder() { + return new Builder(); + } + + + public StageSendDestination withStageSendDestinationPayment(StageSendDestinationPayment stageSendDestinationPayment) { + Utils.checkNotNull(stageSendDestinationPayment, "stageSendDestinationPayment"); + this.stageSendDestinationPayment = Optional.ofNullable(stageSendDestinationPayment); + return this; + } + + + public StageSendDestination withStageSendDestinationPayment(Optional stageSendDestinationPayment) { + Utils.checkNotNull(stageSendDestinationPayment, "stageSendDestinationPayment"); + this.stageSendDestinationPayment = stageSendDestinationPayment; + return this; + } + + public StageSendDestination withStageSendSourceAccount(StageSendSourceAccount stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = Optional.ofNullable(stageSendSourceAccount); + return this; + } + + + public StageSendDestination withStageSendSourceAccount(Optional stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = stageSendSourceAccount; + return this; + } + + public StageSendDestination withStageSendSourceWallet(StageSendSourceWallet stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = Optional.ofNullable(stageSendSourceWallet); + return this; + } + + + public StageSendDestination withStageSendSourceWallet(Optional stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = stageSendSourceWallet; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StageSendDestination other = (StageSendDestination) o; + return + Utils.enhancedDeepEquals(this.stageSendDestinationPayment, other.stageSendDestinationPayment) && + Utils.enhancedDeepEquals(this.stageSendSourceAccount, other.stageSendSourceAccount) && + Utils.enhancedDeepEquals(this.stageSendSourceWallet, other.stageSendSourceWallet); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + stageSendDestinationPayment, stageSendSourceAccount, stageSendSourceWallet); + } + + @Override + public String toString() { + return Utils.toString(StageSendDestination.class, + "stageSendDestinationPayment", stageSendDestinationPayment, + "stageSendSourceAccount", stageSendSourceAccount, + "stageSendSourceWallet", stageSendSourceWallet); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional stageSendDestinationPayment = Optional.empty(); + + private Optional stageSendSourceAccount = Optional.empty(); + + private Optional stageSendSourceWallet = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder stageSendDestinationPayment(StageSendDestinationPayment stageSendDestinationPayment) { + Utils.checkNotNull(stageSendDestinationPayment, "stageSendDestinationPayment"); + this.stageSendDestinationPayment = Optional.ofNullable(stageSendDestinationPayment); + return this; + } + + public Builder stageSendDestinationPayment(Optional stageSendDestinationPayment) { + Utils.checkNotNull(stageSendDestinationPayment, "stageSendDestinationPayment"); + this.stageSendDestinationPayment = stageSendDestinationPayment; + return this; + } + + + public Builder stageSendSourceAccount(StageSendSourceAccount stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = Optional.ofNullable(stageSendSourceAccount); + return this; + } + + public Builder stageSendSourceAccount(Optional stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = stageSendSourceAccount; + return this; + } + + + public Builder stageSendSourceWallet(StageSendSourceWallet stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = Optional.ofNullable(stageSendSourceWallet); + return this; + } + + public Builder stageSendSourceWallet(Optional stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = stageSendSourceWallet; + return this; + } + + public StageSendDestination build() { + + return new StageSendDestination( + stageSendDestinationPayment, stageSendSourceAccount, stageSendSourceWallet); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationPayment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestinationPayment.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationPayment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestinationPayment.java index 42b4f55c2..22d5ac0c0 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationPayment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendDestinationPayment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSource.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSource.java new file mode 100644 index 000000000..3a55843fb --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSource.java @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class StageSendSource { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("account") + private Optional stageSendSourceAccount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("payment") + private Optional stageSendSourcePayment; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("wallet") + private Optional stageSendSourceWallet; + + @JsonCreator + public StageSendSource( + @JsonProperty("account") Optional stageSendSourceAccount, + @JsonProperty("payment") Optional stageSendSourcePayment, + @JsonProperty("wallet") Optional stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + Utils.checkNotNull(stageSendSourcePayment, "stageSendSourcePayment"); + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceAccount = stageSendSourceAccount; + this.stageSendSourcePayment = stageSendSourcePayment; + this.stageSendSourceWallet = stageSendSourceWallet; + } + + public StageSendSource() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendSourceAccount() { + return (Optional) stageSendSourceAccount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendSourcePayment() { + return (Optional) stageSendSourcePayment; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stageSendSourceWallet() { + return (Optional) stageSendSourceWallet; + } + + public static Builder builder() { + return new Builder(); + } + + + public StageSendSource withStageSendSourceAccount(StageSendSourceAccount stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = Optional.ofNullable(stageSendSourceAccount); + return this; + } + + + public StageSendSource withStageSendSourceAccount(Optional stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = stageSendSourceAccount; + return this; + } + + public StageSendSource withStageSendSourcePayment(StageSendSourcePayment stageSendSourcePayment) { + Utils.checkNotNull(stageSendSourcePayment, "stageSendSourcePayment"); + this.stageSendSourcePayment = Optional.ofNullable(stageSendSourcePayment); + return this; + } + + + public StageSendSource withStageSendSourcePayment(Optional stageSendSourcePayment) { + Utils.checkNotNull(stageSendSourcePayment, "stageSendSourcePayment"); + this.stageSendSourcePayment = stageSendSourcePayment; + return this; + } + + public StageSendSource withStageSendSourceWallet(StageSendSourceWallet stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = Optional.ofNullable(stageSendSourceWallet); + return this; + } + + + public StageSendSource withStageSendSourceWallet(Optional stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = stageSendSourceWallet; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StageSendSource other = (StageSendSource) o; + return + Utils.enhancedDeepEquals(this.stageSendSourceAccount, other.stageSendSourceAccount) && + Utils.enhancedDeepEquals(this.stageSendSourcePayment, other.stageSendSourcePayment) && + Utils.enhancedDeepEquals(this.stageSendSourceWallet, other.stageSendSourceWallet); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + stageSendSourceAccount, stageSendSourcePayment, stageSendSourceWallet); + } + + @Override + public String toString() { + return Utils.toString(StageSendSource.class, + "stageSendSourceAccount", stageSendSourceAccount, + "stageSendSourcePayment", stageSendSourcePayment, + "stageSendSourceWallet", stageSendSourceWallet); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional stageSendSourceAccount = Optional.empty(); + + private Optional stageSendSourcePayment = Optional.empty(); + + private Optional stageSendSourceWallet = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder stageSendSourceAccount(StageSendSourceAccount stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = Optional.ofNullable(stageSendSourceAccount); + return this; + } + + public Builder stageSendSourceAccount(Optional stageSendSourceAccount) { + Utils.checkNotNull(stageSendSourceAccount, "stageSendSourceAccount"); + this.stageSendSourceAccount = stageSendSourceAccount; + return this; + } + + + public Builder stageSendSourcePayment(StageSendSourcePayment stageSendSourcePayment) { + Utils.checkNotNull(stageSendSourcePayment, "stageSendSourcePayment"); + this.stageSendSourcePayment = Optional.ofNullable(stageSendSourcePayment); + return this; + } + + public Builder stageSendSourcePayment(Optional stageSendSourcePayment) { + Utils.checkNotNull(stageSendSourcePayment, "stageSendSourcePayment"); + this.stageSendSourcePayment = stageSendSourcePayment; + return this; + } + + + public Builder stageSendSourceWallet(StageSendSourceWallet stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = Optional.ofNullable(stageSendSourceWallet); + return this; + } + + public Builder stageSendSourceWallet(Optional stageSendSourceWallet) { + Utils.checkNotNull(stageSendSourceWallet, "stageSendSourceWallet"); + this.stageSendSourceWallet = stageSendSourceWallet; + return this; + } + + public StageSendSource build() { + + return new StageSendSource( + stageSendSourceAccount, stageSendSourcePayment, stageSendSourceWallet); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceAccount.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceAccount.java new file mode 100644 index 000000000..882131880 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceAccount.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class StageSendSourceAccount { + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ledger") + private Optional ledger; + + @JsonCreator + public StageSendSourceAccount( + @JsonProperty("id") String id, + @JsonProperty("ledger") Optional ledger) { + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + this.id = id; + this.ledger = ledger; + } + + public StageSendSourceAccount( + String id) { + this(id, Optional.empty()); + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public Optional ledger() { + return ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + public StageSendSourceAccount withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public StageSendSourceAccount withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + + public StageSendSourceAccount withLedger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StageSendSourceAccount other = (StageSendSourceAccount) o; + return + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + id, ledger); + } + + @Override + public String toString() { + return Utils.toString(StageSendSourceAccount.class, + "id", id, + "ledger", ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String id; + + private Optional ledger = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + public Builder ledger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + public StageSendSourceAccount build() { + + return new StageSendSourceAccount( + id, ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSendSourcePayment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourcePayment.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/StageSendSourcePayment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourcePayment.java index f68fb929b..f4954a93e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSendSourcePayment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourcePayment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceWallet.java new file mode 100644 index 000000000..e8ec92c0e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageSendSourceWallet.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class StageSendSourceWallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("id") + private String id; + + @JsonCreator + public StageSendSourceWallet( + @JsonProperty("balance") Optional balance, + @JsonProperty("id") String id) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(id, "id"); + this.balance = balance; + this.id = id; + } + + public StageSendSourceWallet( + String id) { + this(Optional.empty(), id); + } + + @JsonIgnore + public Optional balance() { + return balance; + } + + @JsonIgnore + public String id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public StageSendSourceWallet withBalance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + public StageSendSourceWallet withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public StageSendSourceWallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StageSendSourceWallet other = (StageSendSourceWallet) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, id); + } + + @Override + public String toString() { + return Utils.toString(StageSendSourceWallet.class, + "balance", balance, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private String id; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public StageSendSourceWallet build() { + + return new StageSendSourceWallet( + balance, id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageStatus.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageStatus.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/StageStatus.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/StageStatus.java index 2a9bf47c5..dc6868304 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageStatus.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageStatus.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageWaitEvent.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StageWaitEvent.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/StageWaitEvent.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/StageWaitEvent.java index a985c7946..5451f03e4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageWaitEvent.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StageWaitEvent.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequest.java new file mode 100644 index 000000000..1c88391d8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequest.java @@ -0,0 +1,378 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.utils.LazySingletonValue; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Optional; + + +public class StripeTransferRequest { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional amount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("asset") + private Optional asset; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("connectorID") + private Optional connectorID; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional destination; + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("waitingValidation") + private Optional waitingValidation; + + @JsonCreator + public StripeTransferRequest( + @JsonProperty("amount") Optional amount, + @JsonProperty("asset") Optional asset, + @JsonProperty("connectorID") Optional connectorID, + @JsonProperty("destination") Optional destination, + @JsonProperty("metadata") Optional metadata, + @JsonProperty("waitingValidation") Optional waitingValidation) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.amount = amount; + this.asset = asset; + this.connectorID = connectorID; + this.destination = destination; + this.metadata = metadata; + this.waitingValidation = waitingValidation; + } + + public StripeTransferRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional amount() { + return (Optional) amount; + } + + @JsonIgnore + public Optional asset() { + return asset; + } + + @JsonIgnore + public Optional connectorID() { + return connectorID; + } + + @JsonIgnore + public Optional destination() { + return destination; + } + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional metadata() { + return (Optional) metadata; + } + + @JsonIgnore + public Optional waitingValidation() { + return waitingValidation; + } + + public static Builder builder() { + return new Builder(); + } + + + public StripeTransferRequest withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public StripeTransferRequest withAmount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + + public StripeTransferRequest withAmount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public StripeTransferRequest withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + + public StripeTransferRequest withAsset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public StripeTransferRequest withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = Optional.ofNullable(connectorID); + return this; + } + + + public StripeTransferRequest withConnectorID(Optional connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public StripeTransferRequest withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = Optional.ofNullable(destination); + return this; + } + + + public StripeTransferRequest withDestination(Optional destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public StripeTransferRequest withMetadata(StripeTransferRequestMetadata metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public StripeTransferRequest withMetadata(Optional metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public StripeTransferRequest withWaitingValidation(boolean waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = Optional.ofNullable(waitingValidation); + return this; + } + + + public StripeTransferRequest withWaitingValidation(Optional waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = waitingValidation; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StripeTransferRequest other = (StripeTransferRequest) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.waitingValidation, other.waitingValidation); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, connectorID, + destination, metadata, waitingValidation); + } + + @Override + public String toString() { + return Utils.toString(StripeTransferRequest.class, + "amount", amount, + "asset", asset, + "connectorID", connectorID, + "destination", destination, + "metadata", metadata, + "waitingValidation", waitingValidation); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional amount = Optional.empty(); + + private Optional asset = Optional.empty(); + + private Optional connectorID = Optional.empty(); + + private Optional destination = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional waitingValidation; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public Builder amount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + public Builder amount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + public Builder asset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = Optional.ofNullable(connectorID); + return this; + } + + public Builder connectorID(Optional connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = Optional.ofNullable(destination); + return this; + } + + public Builder destination(Optional destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public Builder metadata(StripeTransferRequestMetadata metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public Builder metadata(Optional metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder waitingValidation(boolean waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = Optional.ofNullable(waitingValidation); + return this; + } + + public Builder waitingValidation(Optional waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = waitingValidation; + return this; + } + + public StripeTransferRequest build() { + if (waitingValidation == null) { + waitingValidation = _SINGLETON_VALUE_WaitingValidation.value(); + } + + return new StripeTransferRequest( + amount, asset, connectorID, + destination, metadata, waitingValidation); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_WaitingValidation = + new LazySingletonValue<>( + "waitingValidation", + "false", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequestMetadata.java b/src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequestMetadata.java new file mode 100644 index 000000000..4a8b2ec14 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/StripeTransferRequestMetadata.java @@ -0,0 +1,63 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * StripeTransferRequestMetadata + * + *

A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ +public class StripeTransferRequestMetadata { + @JsonCreator + public StripeTransferRequestMetadata() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(StripeTransferRequestMetadata.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public StripeTransferRequestMetadata build() { + + return new StripeTransferRequestMetadata( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Subject.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Subject.java new file mode 100644 index 000000000..596469ff1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Subject.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = Subject._Deserializer.class) +public class Subject { + + @JsonValue + private final TypedObject value; + + private Subject(TypedObject value) { + this.value = value; + } + + public static Subject of(LedgerAccountSubject value) { + Utils.checkNotNull(value, "value"); + return new Subject(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static Subject of(WalletSubject value) { + Utils.checkNotNull(value, "value"); + return new Subject(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *

    + *
  • {@code com.formance.formance_sdk.models.orchestration.LedgerAccountSubject}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.WalletSubject}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Subject other = (Subject) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(Subject.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(Subject.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Transaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Transaction.java new file mode 100644 index 000000000..8b5507577 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Transaction.java @@ -0,0 +1,280 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class Transaction { + + @JsonProperty("metadata") + private Map metadata; + + + @JsonProperty("id") + private BigInteger id; + + + @JsonProperty("postings") + private List postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonProperty("reverted") + private boolean reverted; + + + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + @JsonCreator + public Transaction( + @JsonProperty("metadata") Map metadata, + @JsonProperty("id") BigInteger id, + @JsonProperty("postings") List postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("reverted") boolean reverted, + @JsonProperty("timestamp") OffsetDateTime timestamp) { + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(reverted, "reverted"); + Utils.checkNotNull(timestamp, "timestamp"); + this.metadata = metadata; + this.id = id; + this.postings = postings; + this.reference = reference; + this.reverted = reverted; + this.timestamp = timestamp; + } + + public Transaction( + Map metadata, + BigInteger id, + List postings, + boolean reverted, + OffsetDateTime timestamp) { + this(metadata, id, postings, + Optional.empty(), reverted, timestamp); + } + + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public BigInteger id() { + return id; + } + + @JsonIgnore + public List postings() { + return postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @JsonIgnore + public boolean reverted() { + return reverted; + } + + @JsonIgnore + public OffsetDateTime timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public Transaction withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Transaction withId(long id) { + this.id = BigInteger.valueOf(id); + return this; + } + + public Transaction withId(BigInteger id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Transaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public Transaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public Transaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Transaction withReverted(boolean reverted) { + Utils.checkNotNull(reverted, "reverted"); + this.reverted = reverted; + return this; + } + + public Transaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Transaction other = (Transaction) o; + return + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.reverted, other.reverted) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + metadata, id, postings, + reference, reverted, timestamp); + } + + @Override + public String toString() { + return Utils.toString(Transaction.class, + "metadata", metadata, + "id", id, + "postings", postings, + "reference", reference, + "reverted", reverted, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map metadata; + + private BigInteger id; + + private List postings; + + private Optional reference = Optional.empty(); + + private Boolean reverted; + + private OffsetDateTime timestamp; + + private Builder() { + // force use of static builder() method + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder id(long id) { + this.id = BigInteger.valueOf(id); + return this; + } + + public Builder id(BigInteger id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder reverted(boolean reverted) { + Utils.checkNotNull(reverted, "reverted"); + this.reverted = reverted; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public Transaction build() { + + return new Transaction( + metadata, id, postings, + reference, reverted, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData1.java b/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData1.java new file mode 100644 index 000000000..166f25511 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData1.java @@ -0,0 +1,371 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + + +public class TriggerData1 { + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("event") + private String event; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filter") + private Optional filter; + + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + private Optional version; + + + @JsonProperty("workflowID") + private String workflowID; + + @JsonCreator + public TriggerData1( + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("event") String event, + @JsonProperty("filter") Optional filter, + @JsonProperty("id") String id, + @JsonProperty("name") Optional name, + @JsonProperty("vars") Optional> vars, + @JsonProperty("version") Optional version, + @JsonProperty("workflowID") String workflowID) { + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(event, "event"); + Utils.checkNotNull(filter, "filter"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(vars, "vars"); + Utils.checkNotNull(version, "version"); + Utils.checkNotNull(workflowID, "workflowID"); + this.createdAt = createdAt; + this.event = event; + this.filter = filter; + this.id = id; + this.name = name; + this.vars = vars; + this.version = version; + this.workflowID = workflowID; + } + + public TriggerData1( + OffsetDateTime createdAt, + String event, + String id, + String workflowID) { + this(createdAt, event, Optional.empty(), + id, Optional.empty(), Optional.empty(), + Optional.empty(), workflowID); + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String event() { + return event; + } + + @JsonIgnore + public Optional filter() { + return filter; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public Optional name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + @JsonIgnore + public Optional version() { + return version; + } + + @JsonIgnore + public String workflowID() { + return workflowID; + } + + public static Builder builder() { + return new Builder(); + } + + + public TriggerData1 withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public TriggerData1 withEvent(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + public TriggerData1 withFilter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + + public TriggerData1 withFilter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + public TriggerData1 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public TriggerData1 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + public TriggerData1 withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public TriggerData1 withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public TriggerData1 withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public TriggerData1 withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + + public TriggerData1 withVersion(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public TriggerData1 withWorkflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TriggerData1 other = (TriggerData1) o; + return + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.event, other.event) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.vars, other.vars) && + Utils.enhancedDeepEquals(this.version, other.version) && + Utils.enhancedDeepEquals(this.workflowID, other.workflowID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + createdAt, event, filter, + id, name, vars, + version, workflowID); + } + + @Override + public String toString() { + return Utils.toString(TriggerData1.class, + "createdAt", createdAt, + "event", event, + "filter", filter, + "id", id, + "name", name, + "vars", vars, + "version", version, + "workflowID", workflowID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private OffsetDateTime createdAt; + + private String event; + + private Optional filter = Optional.empty(); + + private String id; + + private Optional name = Optional.empty(); + + private Optional> vars = Optional.empty(); + + private Optional version = Optional.empty(); + + private String workflowID; + + private Builder() { + // force use of static builder() method + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder event(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + + public Builder filter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + public Builder filter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + public Builder version(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + + public Builder workflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + public TriggerData1 build() { + + return new TriggerData1( + createdAt, event, filter, + id, name, vars, + version, workflowID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData2.java b/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData2.java new file mode 100644 index 000000000..c62da13d4 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerData2.java @@ -0,0 +1,307 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class TriggerData2 { + + @JsonProperty("event") + private String event; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filter") + private Optional filter; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + private Optional version; + + + @JsonProperty("workflowID") + private String workflowID; + + @JsonCreator + public TriggerData2( + @JsonProperty("event") String event, + @JsonProperty("filter") Optional filter, + @JsonProperty("name") Optional name, + @JsonProperty("vars") Optional> vars, + @JsonProperty("version") Optional version, + @JsonProperty("workflowID") String workflowID) { + Utils.checkNotNull(event, "event"); + Utils.checkNotNull(filter, "filter"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(vars, "vars"); + Utils.checkNotNull(version, "version"); + Utils.checkNotNull(workflowID, "workflowID"); + this.event = event; + this.filter = filter; + this.name = name; + this.vars = vars; + this.version = version; + this.workflowID = workflowID; + } + + public TriggerData2( + String event, + String workflowID) { + this(event, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), workflowID); + } + + @JsonIgnore + public String event() { + return event; + } + + @JsonIgnore + public Optional filter() { + return filter; + } + + @JsonIgnore + public Optional name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + @JsonIgnore + public Optional version() { + return version; + } + + @JsonIgnore + public String workflowID() { + return workflowID; + } + + public static Builder builder() { + return new Builder(); + } + + + public TriggerData2 withEvent(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + public TriggerData2 withFilter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + + public TriggerData2 withFilter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + public TriggerData2 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + public TriggerData2 withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public TriggerData2 withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public TriggerData2 withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public TriggerData2 withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + + public TriggerData2 withVersion(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public TriggerData2 withWorkflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TriggerData2 other = (TriggerData2) o; + return + Utils.enhancedDeepEquals(this.event, other.event) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.vars, other.vars) && + Utils.enhancedDeepEquals(this.version, other.version) && + Utils.enhancedDeepEquals(this.workflowID, other.workflowID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + event, filter, name, + vars, version, workflowID); + } + + @Override + public String toString() { + return Utils.toString(TriggerData2.class, + "event", event, + "filter", filter, + "name", name, + "vars", vars, + "version", version, + "workflowID", workflowID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String event; + + private Optional filter = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional> vars = Optional.empty(); + + private Optional version = Optional.empty(); + + private String workflowID; + + private Builder() { + // force use of static builder() method + } + + + public Builder event(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + + public Builder filter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + public Builder filter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + public Builder version(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + + public Builder workflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + public TriggerData2 build() { + + return new TriggerData2( + event, filter, name, + vars, version, workflowID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TriggerOccurrence.java b/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerOccurrence.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/TriggerOccurrence.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/TriggerOccurrence.java index e5116a1c1..2fe3de7f9 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TriggerOccurrence.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/TriggerOccurrence.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,11 @@ public class TriggerOccurrence { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("workflowInstance") + private Optional workflowInstance; + + @JsonProperty("date") private OffsetDateTime date; @@ -37,35 +42,30 @@ public class TriggerOccurrence { private String triggerID; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("workflowInstance") - private Optional workflowInstance; - - @JsonInclude(Include.NON_ABSENT) @JsonProperty("workflowInstanceID") private Optional workflowInstanceID; @JsonCreator public TriggerOccurrence( + @JsonProperty("workflowInstance") Optional workflowInstance, @JsonProperty("date") OffsetDateTime date, @JsonProperty("error") Optional error, @JsonProperty("event") Map event, @JsonProperty("triggerID") String triggerID, - @JsonProperty("workflowInstance") Optional workflowInstance, @JsonProperty("workflowInstanceID") Optional workflowInstanceID) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(error, "error"); event = Utils.emptyMapIfNull(event); Utils.checkNotNull(event, "event"); Utils.checkNotNull(triggerID, "triggerID"); - Utils.checkNotNull(workflowInstance, "workflowInstance"); Utils.checkNotNull(workflowInstanceID, "workflowInstanceID"); + this.workflowInstance = workflowInstance; this.date = date; this.error = error; this.event = event; this.triggerID = triggerID; - this.workflowInstance = workflowInstance; this.workflowInstanceID = workflowInstanceID; } @@ -73,8 +73,14 @@ public TriggerOccurrence( OffsetDateTime date, Map event, String triggerID) { - this(date, Optional.empty(), event, - triggerID, Optional.empty(), Optional.empty()); + this(Optional.empty(), date, Optional.empty(), + event, triggerID, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workflowInstance() { + return (Optional) workflowInstance; } @JsonIgnore @@ -97,12 +103,6 @@ public String triggerID() { return triggerID; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional workflowInstance() { - return (Optional) workflowInstance; - } - @JsonIgnore public Optional workflowInstanceID() { return workflowInstanceID; @@ -113,6 +113,19 @@ public static Builder builder() { } + public TriggerOccurrence withWorkflowInstance(WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = Optional.ofNullable(workflowInstance); + return this; + } + + + public TriggerOccurrence withWorkflowInstance(Optional workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + return this; + } + public TriggerOccurrence withDate(OffsetDateTime date) { Utils.checkNotNull(date, "date"); this.date = date; @@ -144,19 +157,6 @@ public TriggerOccurrence withTriggerID(String triggerID) { return this; } - public TriggerOccurrence withWorkflowInstance(WorkflowInstance workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = Optional.ofNullable(workflowInstance); - return this; - } - - - public TriggerOccurrence withWorkflowInstance(Optional workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = workflowInstance; - return this; - } - public TriggerOccurrence withWorkflowInstanceID(String workflowInstanceID) { Utils.checkNotNull(workflowInstanceID, "workflowInstanceID"); this.workflowInstanceID = Optional.ofNullable(workflowInstanceID); @@ -180,35 +180,37 @@ public boolean equals(java.lang.Object o) { } TriggerOccurrence other = (TriggerOccurrence) o; return + Utils.enhancedDeepEquals(this.workflowInstance, other.workflowInstance) && Utils.enhancedDeepEquals(this.date, other.date) && Utils.enhancedDeepEquals(this.error, other.error) && Utils.enhancedDeepEquals(this.event, other.event) && Utils.enhancedDeepEquals(this.triggerID, other.triggerID) && - Utils.enhancedDeepEquals(this.workflowInstance, other.workflowInstance) && Utils.enhancedDeepEquals(this.workflowInstanceID, other.workflowInstanceID); } @Override public int hashCode() { return Utils.enhancedHash( - date, error, event, - triggerID, workflowInstance, workflowInstanceID); + workflowInstance, date, error, + event, triggerID, workflowInstanceID); } @Override public String toString() { return Utils.toString(TriggerOccurrence.class, + "workflowInstance", workflowInstance, "date", date, "error", error, "event", event, "triggerID", triggerID, - "workflowInstance", workflowInstance, "workflowInstanceID", workflowInstanceID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional workflowInstance = Optional.empty(); + private OffsetDateTime date; private Optional error = Optional.empty(); @@ -217,8 +219,6 @@ public final static class Builder { private String triggerID; - private Optional workflowInstance = Optional.empty(); - private Optional workflowInstanceID = Optional.empty(); private Builder() { @@ -226,6 +226,19 @@ private Builder() { } + public Builder workflowInstance(WorkflowInstance workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = Optional.ofNullable(workflowInstance); + return this; + } + + public Builder workflowInstance(Optional workflowInstance) { + Utils.checkNotNull(workflowInstance, "workflowInstance"); + this.workflowInstance = workflowInstance; + return this; + } + + public Builder date(OffsetDateTime date) { Utils.checkNotNull(date, "date"); this.date = date; @@ -260,19 +273,6 @@ public Builder triggerID(String triggerID) { } - public Builder workflowInstance(WorkflowInstance workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = Optional.ofNullable(workflowInstance); - return this; - } - - public Builder workflowInstance(Optional workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = workflowInstance; - return this; - } - - public Builder workflowInstanceID(String workflowInstanceID) { Utils.checkNotNull(workflowInstanceID, "workflowInstanceID"); this.workflowInstanceID = Optional.ofNullable(workflowInstanceID); @@ -288,8 +288,8 @@ public Builder workflowInstanceID(Optional workflowInstanceID) { public TriggerOccurrence build() { return new TriggerOccurrence( - date, error, event, - triggerID, workflowInstance, workflowInstanceID); + workflowInstance, date, error, + event, triggerID, workflowInstanceID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Update.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Update.java new file mode 100644 index 000000000..c0dea1f80 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Update.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class Update { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("account") + private Optional updateAccount; + + @JsonCreator + public Update( + @JsonProperty("account") Optional updateAccount) { + Utils.checkNotNull(updateAccount, "updateAccount"); + this.updateAccount = updateAccount; + } + + public Update() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional updateAccount() { + return (Optional) updateAccount; + } + + public static Builder builder() { + return new Builder(); + } + + + public Update withUpdateAccount(UpdateAccount updateAccount) { + Utils.checkNotNull(updateAccount, "updateAccount"); + this.updateAccount = Optional.ofNullable(updateAccount); + return this; + } + + + public Update withUpdateAccount(Optional updateAccount) { + Utils.checkNotNull(updateAccount, "updateAccount"); + this.updateAccount = updateAccount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Update other = (Update) o; + return + Utils.enhancedDeepEquals(this.updateAccount, other.updateAccount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + updateAccount); + } + + @Override + public String toString() { + return Utils.toString(Update.class, + "updateAccount", updateAccount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional updateAccount = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder updateAccount(UpdateAccount updateAccount) { + Utils.checkNotNull(updateAccount, "updateAccount"); + this.updateAccount = Optional.ofNullable(updateAccount); + return this; + } + + public Builder updateAccount(Optional updateAccount) { + Utils.checkNotNull(updateAccount, "updateAccount"); + this.updateAccount = updateAccount; + return this; + } + + public Update build() { + + return new Update( + updateAccount); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UpdateAccount.java b/src/main/java/com/formance/formance_sdk/models/orchestration/UpdateAccount.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/UpdateAccount.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/UpdateAccount.java index 6b7789e22..d99a80673 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/UpdateAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/UpdateAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Account.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Account.java new file mode 100644 index 000000000..68759e7af --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Account.java @@ -0,0 +1,222 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V2Account { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("volumes") + private Optional> v2Volumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("effectiveVolumes") + private Optional> v2Volumes1; + + + @JsonProperty("address") + private String address; + + + @JsonProperty("metadata") + private Map metadata; + + @JsonCreator + public V2Account( + @JsonProperty("volumes") Optional> v2Volumes, + @JsonProperty("effectiveVolumes") Optional> v2Volumes1, + @JsonProperty("address") String address, + @JsonProperty("metadata") Map metadata) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + Utils.checkNotNull(address, "address"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + this.v2Volumes = v2Volumes; + this.v2Volumes1 = v2Volumes1; + this.address = address; + this.metadata = metadata; + } + + public V2Account( + String address, + Map metadata) { + this(Optional.empty(), Optional.empty(), address, + metadata); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2Volumes() { + return (Optional>) v2Volumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v2Volumes1() { + return (Optional>) v2Volumes1; + } + + @JsonIgnore + public String address() { + return address; + } + + @JsonIgnore + public Map metadata() { + return metadata; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Account withV2Volumes(Map v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = Optional.ofNullable(v2Volumes); + return this; + } + + + public V2Account withV2Volumes(Optional> v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = v2Volumes; + return this; + } + + public V2Account withV2Volumes1(Map v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = Optional.ofNullable(v2Volumes1); + return this; + } + + + public V2Account withV2Volumes1(Optional> v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = v2Volumes1; + return this; + } + + public V2Account withAddress(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + public V2Account withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Account other = (V2Account) o; + return + Utils.enhancedDeepEquals(this.v2Volumes, other.v2Volumes) && + Utils.enhancedDeepEquals(this.v2Volumes1, other.v2Volumes1) && + Utils.enhancedDeepEquals(this.address, other.address) && + Utils.enhancedDeepEquals(this.metadata, other.metadata); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Volumes, v2Volumes1, address, + metadata); + } + + @Override + public String toString() { + return Utils.toString(V2Account.class, + "v2Volumes", v2Volumes, + "v2Volumes1", v2Volumes1, + "address", address, + "metadata", metadata); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> v2Volumes = Optional.empty(); + + private Optional> v2Volumes1 = Optional.empty(); + + private String address; + + private Map metadata; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Volumes(Map v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = Optional.ofNullable(v2Volumes); + return this; + } + + public Builder v2Volumes(Optional> v2Volumes) { + Utils.checkNotNull(v2Volumes, "v2Volumes"); + this.v2Volumes = v2Volumes; + return this; + } + + + public Builder v2Volumes1(Map v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = Optional.ofNullable(v2Volumes1); + return this; + } + + public Builder v2Volumes1(Optional> v2Volumes1) { + Utils.checkNotNull(v2Volumes1, "v2Volumes1"); + this.v2Volumes1 = v2Volumes1; + return this; + } + + + public Builder address(String address) { + Utils.checkNotNull(address, "address"); + this.address = address; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public V2Account build() { + + return new V2Account( + v2Volumes, v2Volumes1, address, + metadata); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2AccountResponse.java new file mode 100644 index 000000000..f1b7f6781 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2AccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2AccountResponse { + + @JsonProperty("data") + private V2Account v2Account; + + @JsonCreator + public V2AccountResponse( + @JsonProperty("data") V2Account v2Account) { + Utils.checkNotNull(v2Account, "v2Account"); + this.v2Account = v2Account; + } + + @JsonIgnore + public V2Account v2Account() { + return v2Account; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2AccountResponse withV2Account(V2Account v2Account) { + Utils.checkNotNull(v2Account, "v2Account"); + this.v2Account = v2Account; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2AccountResponse other = (V2AccountResponse) o; + return + Utils.enhancedDeepEquals(this.v2Account, other.v2Account); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Account); + } + + @Override + public String toString() { + return Utils.toString(V2AccountResponse.class, + "v2Account", v2Account); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Account v2Account; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Account(V2Account v2Account) { + Utils.checkNotNull(v2Account, "v2Account"); + this.v2Account = v2Account; + return this; + } + + public V2AccountResponse build() { + + return new V2AccountResponse( + v2Account); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityAddAccountMetadata.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityAddAccountMetadata.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityAddAccountMetadata.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityAddAccountMetadata.java index bcbc191dd..24c7445eb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityAddAccountMetadata.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityAddAccountMetadata.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityConfirmHold.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityConfirmHold.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityConfirmHold.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityConfirmHold.java index c98457001..dd5b807e5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityConfirmHold.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityConfirmHold.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreateTransaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreateTransaction.java new file mode 100644 index 000000000..8eb6a752f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreateTransaction.java @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2ActivityCreateTransaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional v2PostTransaction; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ledger") + private Optional ledger; + + @JsonCreator + public V2ActivityCreateTransaction( + @JsonProperty("data") Optional v2PostTransaction, + @JsonProperty("ledger") Optional ledger) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + Utils.checkNotNull(ledger, "ledger"); + this.v2PostTransaction = v2PostTransaction; + this.ledger = ledger; + } + + public V2ActivityCreateTransaction() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2PostTransaction() { + return (Optional) v2PostTransaction; + } + + @JsonIgnore + public Optional ledger() { + return ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ActivityCreateTransaction withV2PostTransaction(V2PostTransaction v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = Optional.ofNullable(v2PostTransaction); + return this; + } + + + public V2ActivityCreateTransaction withV2PostTransaction(Optional v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = v2PostTransaction; + return this; + } + + public V2ActivityCreateTransaction withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + + public V2ActivityCreateTransaction withLedger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ActivityCreateTransaction other = (V2ActivityCreateTransaction) o; + return + Utils.enhancedDeepEquals(this.v2PostTransaction, other.v2PostTransaction) && + Utils.enhancedDeepEquals(this.ledger, other.ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2PostTransaction, ledger); + } + + @Override + public String toString() { + return Utils.toString(V2ActivityCreateTransaction.class, + "v2PostTransaction", v2PostTransaction, + "ledger", ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2PostTransaction = Optional.empty(); + + private Optional ledger = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2PostTransaction(V2PostTransaction v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = Optional.ofNullable(v2PostTransaction); + return this; + } + + public Builder v2PostTransaction(Optional v2PostTransaction) { + Utils.checkNotNull(v2PostTransaction, "v2PostTransaction"); + this.v2PostTransaction = v2PostTransaction; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + public Builder ledger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + public V2ActivityCreateTransaction build() { + + return new V2ActivityCreateTransaction( + v2PostTransaction, ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreditWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreditWallet.java new file mode 100644 index 000000000..5fa8ca45c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityCreditWallet.java @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2ActivityCreditWallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional v2CreditWalletRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + @JsonCreator + public V2ActivityCreditWallet( + @JsonProperty("data") Optional v2CreditWalletRequest, + @JsonProperty("id") Optional id) { + Utils.checkNotNull(v2CreditWalletRequest, "v2CreditWalletRequest"); + Utils.checkNotNull(id, "id"); + this.v2CreditWalletRequest = v2CreditWalletRequest; + this.id = id; + } + + public V2ActivityCreditWallet() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2CreditWalletRequest() { + return (Optional) v2CreditWalletRequest; + } + + @JsonIgnore + public Optional id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ActivityCreditWallet withV2CreditWalletRequest(V2CreditWalletRequest v2CreditWalletRequest) { + Utils.checkNotNull(v2CreditWalletRequest, "v2CreditWalletRequest"); + this.v2CreditWalletRequest = Optional.ofNullable(v2CreditWalletRequest); + return this; + } + + + public V2ActivityCreditWallet withV2CreditWalletRequest(Optional v2CreditWalletRequest) { + Utils.checkNotNull(v2CreditWalletRequest, "v2CreditWalletRequest"); + this.v2CreditWalletRequest = v2CreditWalletRequest; + return this; + } + + public V2ActivityCreditWallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + + public V2ActivityCreditWallet withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ActivityCreditWallet other = (V2ActivityCreditWallet) o; + return + Utils.enhancedDeepEquals(this.v2CreditWalletRequest, other.v2CreditWalletRequest) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2CreditWalletRequest, id); + } + + @Override + public String toString() { + return Utils.toString(V2ActivityCreditWallet.class, + "v2CreditWalletRequest", v2CreditWalletRequest, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2CreditWalletRequest = Optional.empty(); + + private Optional id = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2CreditWalletRequest(V2CreditWalletRequest v2CreditWalletRequest) { + Utils.checkNotNull(v2CreditWalletRequest, "v2CreditWalletRequest"); + this.v2CreditWalletRequest = Optional.ofNullable(v2CreditWalletRequest); + return this; + } + + public Builder v2CreditWalletRequest(Optional v2CreditWalletRequest) { + Utils.checkNotNull(v2CreditWalletRequest, "v2CreditWalletRequest"); + this.v2CreditWalletRequest = v2CreditWalletRequest; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public Builder id(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2ActivityCreditWallet build() { + + return new V2ActivityCreditWallet( + v2CreditWalletRequest, id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityDebitWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityDebitWallet.java new file mode 100644 index 000000000..23804318b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityDebitWallet.java @@ -0,0 +1,156 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2ActivityDebitWallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional v2DebitWalletRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("id") + private Optional id; + + @JsonCreator + public V2ActivityDebitWallet( + @JsonProperty("data") Optional v2DebitWalletRequest, + @JsonProperty("id") Optional id) { + Utils.checkNotNull(v2DebitWalletRequest, "v2DebitWalletRequest"); + Utils.checkNotNull(id, "id"); + this.v2DebitWalletRequest = v2DebitWalletRequest; + this.id = id; + } + + public V2ActivityDebitWallet() { + this(Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2DebitWalletRequest() { + return (Optional) v2DebitWalletRequest; + } + + @JsonIgnore + public Optional id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ActivityDebitWallet withV2DebitWalletRequest(V2DebitWalletRequest v2DebitWalletRequest) { + Utils.checkNotNull(v2DebitWalletRequest, "v2DebitWalletRequest"); + this.v2DebitWalletRequest = Optional.ofNullable(v2DebitWalletRequest); + return this; + } + + + public V2ActivityDebitWallet withV2DebitWalletRequest(Optional v2DebitWalletRequest) { + Utils.checkNotNull(v2DebitWalletRequest, "v2DebitWalletRequest"); + this.v2DebitWalletRequest = v2DebitWalletRequest; + return this; + } + + public V2ActivityDebitWallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + + public V2ActivityDebitWallet withId(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ActivityDebitWallet other = (V2ActivityDebitWallet) o; + return + Utils.enhancedDeepEquals(this.v2DebitWalletRequest, other.v2DebitWalletRequest) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2DebitWalletRequest, id); + } + + @Override + public String toString() { + return Utils.toString(V2ActivityDebitWallet.class, + "v2DebitWalletRequest", v2DebitWalletRequest, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2DebitWalletRequest = Optional.empty(); + + private Optional id = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2DebitWalletRequest(V2DebitWalletRequest v2DebitWalletRequest) { + Utils.checkNotNull(v2DebitWalletRequest, "v2DebitWalletRequest"); + this.v2DebitWalletRequest = Optional.ofNullable(v2DebitWalletRequest); + return this; + } + + public Builder v2DebitWalletRequest(Optional v2DebitWalletRequest) { + Utils.checkNotNull(v2DebitWalletRequest, "v2DebitWalletRequest"); + this.v2DebitWalletRequest = v2DebitWalletRequest; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = Optional.ofNullable(id); + return this; + } + + public Builder id(Optional id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2ActivityDebitWallet build() { + + return new V2ActivityDebitWallet( + v2DebitWalletRequest, id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccount.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetAccount.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccount.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetAccount.java index 160c80a27..5bea32523 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPayment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetPayment.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPayment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetPayment.java index 9b81962f9..5dcf04a8b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPayment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetPayment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetWallet.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWallet.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetWallet.java index 12ccfd7ad..d6bac2fdb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWallet.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityGetWallet.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityListWallets.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityListWallets.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityListWallets.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityListWallets.java index 4f36760b2..230323177 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityListWallets.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityListWallets.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityVoidHold.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityVoidHold.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ActivityVoidHold.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityVoidHold.java index 5af0f545c..c8aafea2a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityVoidHold.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ActivityVoidHold.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2AssetHolder.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2AssetHolder.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2AssetHolder.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2AssetHolder.java index e0df6da8d..958cbeefe 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2AssetHolder.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2AssetHolder.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Connector.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Connector.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Connector.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Connector.java index aa3898716..839a8e746 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Connector.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Connector.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTransactionResponse.java new file mode 100644 index 000000000..16fc04413 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTransactionResponse.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class V2CreateTransactionResponse { + + @JsonProperty("data") + private List data; + + @JsonCreator + public V2CreateTransactionResponse( + @JsonProperty("data") List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + } + + @JsonIgnore + public List data() { + return data; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2CreateTransactionResponse withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2CreateTransactionResponse other = (V2CreateTransactionResponse) o; + return + Utils.enhancedDeepEquals(this.data, other.data); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data); + } + + @Override + public String toString() { + return Utils.toString(V2CreateTransactionResponse.class, + "data", data); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public V2CreateTransactionResponse build() { + + return new V2CreateTransactionResponse( + data); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTriggerResponse.java new file mode 100644 index 000000000..625d06fe4 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateTriggerResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2CreateTriggerResponse { + + @JsonProperty("data") + private V2TriggerData1 v2TriggerData; + + @JsonCreator + public V2CreateTriggerResponse( + @JsonProperty("data") V2TriggerData1 v2TriggerData) { + Utils.checkNotNull(v2TriggerData, "v2TriggerData"); + this.v2TriggerData = v2TriggerData; + } + + @JsonIgnore + public V2TriggerData1 v2TriggerData() { + return v2TriggerData; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2CreateTriggerResponse withV2TriggerData(V2TriggerData1 v2TriggerData) { + Utils.checkNotNull(v2TriggerData, "v2TriggerData"); + this.v2TriggerData = v2TriggerData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2CreateTriggerResponse other = (V2CreateTriggerResponse) o; + return + Utils.enhancedDeepEquals(this.v2TriggerData, other.v2TriggerData); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2TriggerData); + } + + @Override + public String toString() { + return Utils.toString(V2CreateTriggerResponse.class, + "v2TriggerData", v2TriggerData); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2TriggerData1 v2TriggerData; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2TriggerData(V2TriggerData1 v2TriggerData) { + Utils.checkNotNull(v2TriggerData, "v2TriggerData"); + this.v2TriggerData = v2TriggerData; + return this; + } + + public V2CreateTriggerResponse build() { + + return new V2CreateTriggerResponse( + v2TriggerData); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateWorkflowResponse.java new file mode 100644 index 000000000..1fcb45ebb --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreateWorkflowResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2CreateWorkflowResponse { + + @JsonProperty("data") + private V2Workflow v2Workflow; + + @JsonCreator + public V2CreateWorkflowResponse( + @JsonProperty("data") V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + } + + @JsonIgnore + public V2Workflow v2Workflow() { + return v2Workflow; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2CreateWorkflowResponse withV2Workflow(V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2CreateWorkflowResponse other = (V2CreateWorkflowResponse) o; + return + Utils.enhancedDeepEquals(this.v2Workflow, other.v2Workflow); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Workflow); + } + + @Override + public String toString() { + return Utils.toString(V2CreateWorkflowResponse.class, + "v2Workflow", v2Workflow); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Workflow v2Workflow; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Workflow(V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + return this; + } + + public V2CreateWorkflowResponse build() { + + return new V2CreateWorkflowResponse( + v2Workflow); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreditWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreditWalletRequest.java similarity index 89% rename from src/main/java/com/formance/formance_sdk/models/shared/V2CreditWalletRequest.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2CreditWalletRequest.java index 926335221..0fa31c024 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreditWalletRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2CreditWalletRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,7 +20,7 @@ public class V2CreditWalletRequest { @JsonProperty("amount") - private V2Monetary amount; + private V2Monetary v2Monetary; /** * The balance to credit @@ -51,20 +51,20 @@ public class V2CreditWalletRequest { @JsonCreator public V2CreditWalletRequest( - @JsonProperty("amount") V2Monetary amount, + @JsonProperty("amount") V2Monetary v2Monetary, @JsonProperty("balance") Optional balance, @JsonProperty("metadata") Map metadata, @JsonProperty("reference") Optional reference, @JsonProperty("sources") List sources, @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(v2Monetary, "v2Monetary"); Utils.checkNotNull(balance, "balance"); metadata = Utils.emptyMapIfNull(metadata); Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(sources, "sources"); Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; + this.v2Monetary = v2Monetary; this.balance = balance; this.metadata = metadata; this.reference = reference; @@ -73,16 +73,16 @@ public V2CreditWalletRequest( } public V2CreditWalletRequest( - V2Monetary amount, + V2Monetary v2Monetary, Map metadata, List sources) { - this(amount, Optional.empty(), metadata, + this(v2Monetary, Optional.empty(), metadata, Optional.empty(), sources, Optional.empty()); } @JsonIgnore - public V2Monetary amount() { - return amount; + public V2Monetary v2Monetary() { + return v2Monetary; } /** @@ -121,9 +121,9 @@ public static Builder builder() { } - public V2CreditWalletRequest withAmount(V2Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; + public V2CreditWalletRequest withV2Monetary(V2Monetary v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = v2Monetary; return this; } @@ -197,7 +197,7 @@ public boolean equals(java.lang.Object o) { } V2CreditWalletRequest other = (V2CreditWalletRequest) o; return - Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.v2Monetary, other.v2Monetary) && Utils.enhancedDeepEquals(this.balance, other.balance) && Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.reference, other.reference) && @@ -208,14 +208,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - amount, balance, metadata, + v2Monetary, balance, metadata, reference, sources, timestamp); } @Override public String toString() { return Utils.toString(V2CreditWalletRequest.class, - "amount", amount, + "v2Monetary", v2Monetary, "balance", balance, "metadata", metadata, "reference", reference, @@ -226,7 +226,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private V2Monetary amount; + private V2Monetary v2Monetary; private Optional balance = Optional.empty(); @@ -243,9 +243,9 @@ private Builder() { } - public Builder amount(V2Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; + public Builder v2Monetary(V2Monetary v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = v2Monetary; return this; } @@ -314,7 +314,7 @@ public Builder timestamp(Optional timestamp) { public V2CreditWalletRequest build() { return new V2CreditWalletRequest( - amount, balance, metadata, + v2Monetary, balance, metadata, reference, sources, timestamp); } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Cursor.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Cursor.java new file mode 100644 index 000000000..0960e6237 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Cursor.java @@ -0,0 +1,263 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class V2Cursor { + + @JsonProperty("data") + private List data; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasMore") + private Optional hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public V2Cursor( + @JsonProperty("data") List data, + @JsonProperty("hasMore") Optional hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public V2Cursor( + List data, + long pageSize) { + this(data, Optional.empty(), Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public Optional hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Cursor withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public V2Cursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + + public V2Cursor withHasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public V2Cursor withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public V2Cursor withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public V2Cursor withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public V2Cursor withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public V2Cursor withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Cursor other = (V2Cursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(V2Cursor.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Optional hasMore = Optional.empty(); + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + public Builder hasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public V2Cursor build() { + + return new V2Cursor( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2DebitWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletRequest.java similarity index 82% rename from src/main/java/com/formance/formance_sdk/models/shared/V2DebitWalletRequest.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletRequest.java index 1c6756c8a..5d1ea75f3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2DebitWalletRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -22,7 +22,12 @@ public class V2DebitWalletRequest { @JsonProperty("amount") - private V2Monetary amount; + private V2Monetary v2Monetary; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional v2Subject; @JsonInclude(Include.NON_ABSENT) @@ -34,11 +39,6 @@ public class V2DebitWalletRequest { @JsonProperty("description") private Optional description; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - /** * Metadata associated with the wallet. */ @@ -61,41 +61,47 @@ public class V2DebitWalletRequest { @JsonCreator public V2DebitWalletRequest( - @JsonProperty("amount") V2Monetary amount, + @JsonProperty("amount") V2Monetary v2Monetary, + @JsonProperty("destination") Optional v2Subject, @JsonProperty("balances") Optional> balances, @JsonProperty("description") Optional description, - @JsonProperty("destination") Optional destination, @JsonProperty("metadata") Map metadata, @JsonProperty("pending") Optional pending, @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(v2Monetary, "v2Monetary"); + Utils.checkNotNull(v2Subject, "v2Subject"); Utils.checkNotNull(balances, "balances"); Utils.checkNotNull(description, "description"); - Utils.checkNotNull(destination, "destination"); metadata = Utils.emptyMapIfNull(metadata); Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(pending, "pending"); Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; + this.v2Monetary = v2Monetary; + this.v2Subject = v2Subject; this.balances = balances; this.description = description; - this.destination = destination; this.metadata = metadata; this.pending = pending; this.timestamp = timestamp; } public V2DebitWalletRequest( - V2Monetary amount, + V2Monetary v2Monetary, Map metadata) { - this(amount, Optional.empty(), Optional.empty(), + this(v2Monetary, Optional.empty(), Optional.empty(), Optional.empty(), metadata, Optional.empty(), Optional.empty()); } @JsonIgnore - public V2Monetary amount() { - return amount; + public V2Monetary v2Monetary() { + return v2Monetary; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2Subject() { + return (Optional) v2Subject; } @SuppressWarnings("unchecked") @@ -109,12 +115,6 @@ public Optional description() { return description; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - /** * Metadata associated with the wallet. */ @@ -144,9 +144,22 @@ public static Builder builder() { } - public V2DebitWalletRequest withAmount(V2Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; + public V2DebitWalletRequest withV2Monetary(V2Monetary v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = v2Monetary; + return this; + } + + public V2DebitWalletRequest withV2Subject(V2Subject v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = Optional.ofNullable(v2Subject); + return this; + } + + + public V2DebitWalletRequest withV2Subject(Optional v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = v2Subject; return this; } @@ -176,19 +189,6 @@ public V2DebitWalletRequest withDescription(Optional description) { return this; } - public V2DebitWalletRequest withDestination(V2Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public V2DebitWalletRequest withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - /** * Metadata associated with the wallet. */ @@ -246,10 +246,10 @@ public boolean equals(java.lang.Object o) { } V2DebitWalletRequest other = (V2DebitWalletRequest) o; return - Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.v2Monetary, other.v2Monetary) && + Utils.enhancedDeepEquals(this.v2Subject, other.v2Subject) && Utils.enhancedDeepEquals(this.balances, other.balances) && Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.destination, other.destination) && Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.pending, other.pending) && Utils.enhancedDeepEquals(this.timestamp, other.timestamp); @@ -258,18 +258,18 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - amount, balances, description, - destination, metadata, pending, + v2Monetary, v2Subject, balances, + description, metadata, pending, timestamp); } @Override public String toString() { return Utils.toString(V2DebitWalletRequest.class, - "amount", amount, + "v2Monetary", v2Monetary, + "v2Subject", v2Subject, "balances", balances, "description", description, - "destination", destination, "metadata", metadata, "pending", pending, "timestamp", timestamp); @@ -278,14 +278,14 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private V2Monetary amount; + private V2Monetary v2Monetary; + + private Optional v2Subject = Optional.empty(); private Optional> balances = Optional.empty(); private Optional description = Optional.empty(); - private Optional destination = Optional.empty(); - private Map metadata; private Optional pending = Optional.empty(); @@ -297,9 +297,22 @@ private Builder() { } - public Builder amount(V2Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; + public Builder v2Monetary(V2Monetary v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = v2Monetary; + return this; + } + + + public Builder v2Subject(V2Subject v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = Optional.ofNullable(v2Subject); + return this; + } + + public Builder v2Subject(Optional v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = v2Subject; return this; } @@ -330,19 +343,6 @@ public Builder description(Optional description) { } - public Builder destination(V2Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** * Metadata associated with the wallet. */ @@ -393,8 +393,8 @@ public Builder timestamp(Optional timestamp) { public V2DebitWalletRequest build() { return new V2DebitWalletRequest( - amount, balances, description, - destination, metadata, pending, + v2Monetary, v2Subject, balances, + description, metadata, pending, timestamp); } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletResponse.java new file mode 100644 index 000000000..fb48f3b6f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2DebitWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2DebitWalletResponse { + + @JsonProperty("data") + private V2Hold v2Hold; + + @JsonCreator + public V2DebitWalletResponse( + @JsonProperty("data") V2Hold v2Hold) { + Utils.checkNotNull(v2Hold, "v2Hold"); + this.v2Hold = v2Hold; + } + + @JsonIgnore + public V2Hold v2Hold() { + return v2Hold; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2DebitWalletResponse withV2Hold(V2Hold v2Hold) { + Utils.checkNotNull(v2Hold, "v2Hold"); + this.v2Hold = v2Hold; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2DebitWalletResponse other = (V2DebitWalletResponse) o; + return + Utils.enhancedDeepEquals(this.v2Hold, other.v2Hold); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Hold); + } + + @Override + public String toString() { + return Utils.toString(V2DebitWalletResponse.class, + "v2Hold", v2Hold); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Hold v2Hold; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Hold(V2Hold v2Hold) { + Utils.checkNotNull(v2Hold, "v2Hold"); + this.v2Hold = v2Hold; + return this; + } + + public V2DebitWalletResponse build() { + + return new V2DebitWalletResponse( + v2Hold); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/errors/V2Error.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Error.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/errors/V2Error.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Error.java index 97b65de22..c645c23a7 100644 --- a/src/main/java/com/formance/formance_sdk/models/errors/V2Error.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Error.java @@ -1,11 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.errors; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.models.errors.SDKBaseError; import com.formance.formance_sdk.utils.Utils; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; diff --git a/src/main/java/com/formance/formance_sdk/models/errors/V2ErrorErrorCode.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ErrorErrorCode.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/errors/V2ErrorErrorCode.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ErrorErrorCode.java index 4e1ae12ab..00a2d44cb 100644 --- a/src/main/java/com/formance/formance_sdk/models/errors/V2ErrorErrorCode.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ErrorErrorCode.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.errors; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWalletResponse.java new file mode 100644 index 000000000..7ea26be7d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2GetWalletResponse { + + @JsonProperty("data") + private V2WalletWithBalances v2WalletWithBalances; + + @JsonCreator + public V2GetWalletResponse( + @JsonProperty("data") V2WalletWithBalances v2WalletWithBalances) { + Utils.checkNotNull(v2WalletWithBalances, "v2WalletWithBalances"); + this.v2WalletWithBalances = v2WalletWithBalances; + } + + @JsonIgnore + public V2WalletWithBalances v2WalletWithBalances() { + return v2WalletWithBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetWalletResponse withV2WalletWithBalances(V2WalletWithBalances v2WalletWithBalances) { + Utils.checkNotNull(v2WalletWithBalances, "v2WalletWithBalances"); + this.v2WalletWithBalances = v2WalletWithBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetWalletResponse other = (V2GetWalletResponse) o; + return + Utils.enhancedDeepEquals(this.v2WalletWithBalances, other.v2WalletWithBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2WalletWithBalances); + } + + @Override + public String toString() { + return Utils.toString(V2GetWalletResponse.class, + "v2WalletWithBalances", v2WalletWithBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2WalletWithBalances v2WalletWithBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2WalletWithBalances(V2WalletWithBalances v2WalletWithBalances) { + Utils.checkNotNull(v2WalletWithBalances, "v2WalletWithBalances"); + this.v2WalletWithBalances = v2WalletWithBalances; + return this; + } + + public V2GetWalletResponse build() { + + return new V2GetWalletResponse( + v2WalletWithBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryResponse.java new file mode 100644 index 000000000..c53033ea8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryResponse.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class V2GetWorkflowInstanceHistoryResponse { + + @JsonProperty("data") + private List v2WorkflowInstanceHistoryList; + + @JsonCreator + public V2GetWorkflowInstanceHistoryResponse( + @JsonProperty("data") List v2WorkflowInstanceHistoryList) { + Utils.checkNotNull(v2WorkflowInstanceHistoryList, "v2WorkflowInstanceHistoryList"); + this.v2WorkflowInstanceHistoryList = v2WorkflowInstanceHistoryList; + } + + @JsonIgnore + public List v2WorkflowInstanceHistoryList() { + return v2WorkflowInstanceHistoryList; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetWorkflowInstanceHistoryResponse withV2WorkflowInstanceHistoryList(List v2WorkflowInstanceHistoryList) { + Utils.checkNotNull(v2WorkflowInstanceHistoryList, "v2WorkflowInstanceHistoryList"); + this.v2WorkflowInstanceHistoryList = v2WorkflowInstanceHistoryList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetWorkflowInstanceHistoryResponse other = (V2GetWorkflowInstanceHistoryResponse) o; + return + Utils.enhancedDeepEquals(this.v2WorkflowInstanceHistoryList, other.v2WorkflowInstanceHistoryList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2WorkflowInstanceHistoryList); + } + + @Override + public String toString() { + return Utils.toString(V2GetWorkflowInstanceHistoryResponse.class, + "v2WorkflowInstanceHistoryList", v2WorkflowInstanceHistoryList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List v2WorkflowInstanceHistoryList; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2WorkflowInstanceHistoryList(List v2WorkflowInstanceHistoryList) { + Utils.checkNotNull(v2WorkflowInstanceHistoryList, "v2WorkflowInstanceHistoryList"); + this.v2WorkflowInstanceHistoryList = v2WorkflowInstanceHistoryList; + return this; + } + + public V2GetWorkflowInstanceHistoryResponse build() { + + return new V2GetWorkflowInstanceHistoryResponse( + v2WorkflowInstanceHistoryList); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.java new file mode 100644 index 000000000..cc08936d5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceHistoryStageResponse.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class V2GetWorkflowInstanceHistoryStageResponse { + + @JsonProperty("data") + private List v2WorkflowInstanceHistoryStageList; + + @JsonCreator + public V2GetWorkflowInstanceHistoryStageResponse( + @JsonProperty("data") List v2WorkflowInstanceHistoryStageList) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageList, "v2WorkflowInstanceHistoryStageList"); + this.v2WorkflowInstanceHistoryStageList = v2WorkflowInstanceHistoryStageList; + } + + @JsonIgnore + public List v2WorkflowInstanceHistoryStageList() { + return v2WorkflowInstanceHistoryStageList; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetWorkflowInstanceHistoryStageResponse withV2WorkflowInstanceHistoryStageList(List v2WorkflowInstanceHistoryStageList) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageList, "v2WorkflowInstanceHistoryStageList"); + this.v2WorkflowInstanceHistoryStageList = v2WorkflowInstanceHistoryStageList; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetWorkflowInstanceHistoryStageResponse other = (V2GetWorkflowInstanceHistoryStageResponse) o; + return + Utils.enhancedDeepEquals(this.v2WorkflowInstanceHistoryStageList, other.v2WorkflowInstanceHistoryStageList); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2WorkflowInstanceHistoryStageList); + } + + @Override + public String toString() { + return Utils.toString(V2GetWorkflowInstanceHistoryStageResponse.class, + "v2WorkflowInstanceHistoryStageList", v2WorkflowInstanceHistoryStageList); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List v2WorkflowInstanceHistoryStageList; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2WorkflowInstanceHistoryStageList(List v2WorkflowInstanceHistoryStageList) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageList, "v2WorkflowInstanceHistoryStageList"); + this.v2WorkflowInstanceHistoryStageList = v2WorkflowInstanceHistoryStageList; + return this; + } + + public V2GetWorkflowInstanceHistoryStageResponse build() { + + return new V2GetWorkflowInstanceHistoryStageResponse( + v2WorkflowInstanceHistoryStageList); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceResponse.java new file mode 100644 index 000000000..c3c7385ba --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowInstanceResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2GetWorkflowInstanceResponse { + + @JsonProperty("data") + private V2WorkflowInstance v2WorkflowInstance; + + @JsonCreator + public V2GetWorkflowInstanceResponse( + @JsonProperty("data") V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + } + + @JsonIgnore + public V2WorkflowInstance v2WorkflowInstance() { + return v2WorkflowInstance; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetWorkflowInstanceResponse withV2WorkflowInstance(V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetWorkflowInstanceResponse other = (V2GetWorkflowInstanceResponse) o; + return + Utils.enhancedDeepEquals(this.v2WorkflowInstance, other.v2WorkflowInstance); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2WorkflowInstance); + } + + @Override + public String toString() { + return Utils.toString(V2GetWorkflowInstanceResponse.class, + "v2WorkflowInstance", v2WorkflowInstance); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2WorkflowInstance v2WorkflowInstance; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2WorkflowInstance(V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + return this; + } + + public V2GetWorkflowInstanceResponse build() { + + return new V2GetWorkflowInstanceResponse( + v2WorkflowInstance); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowResponse.java new file mode 100644 index 000000000..d961bf76c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2GetWorkflowResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2GetWorkflowResponse { + + @JsonProperty("data") + private V2Workflow v2Workflow; + + @JsonCreator + public V2GetWorkflowResponse( + @JsonProperty("data") V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + } + + @JsonIgnore + public V2Workflow v2Workflow() { + return v2Workflow; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2GetWorkflowResponse withV2Workflow(V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2GetWorkflowResponse other = (V2GetWorkflowResponse) o; + return + Utils.enhancedDeepEquals(this.v2Workflow, other.v2Workflow); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Workflow); + } + + @Override + public String toString() { + return Utils.toString(V2GetWorkflowResponse.class, + "v2Workflow", v2Workflow); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Workflow v2Workflow; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Workflow(V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + return this; + } + + public V2GetWorkflowResponse build() { + + return new V2GetWorkflowResponse( + v2Workflow); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Hold.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Hold.java similarity index 80% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Hold.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Hold.java index 6d8df3292..a5c199082 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Hold.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Hold.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,13 +18,13 @@ public class V2Hold { - @JsonProperty("description") - private String description; - - @JsonInclude(Include.NON_ABSENT) @JsonProperty("destination") - private Optional destination; + private Optional v2Subject; + + + @JsonProperty("description") + private String description; /** * The unique ID of the hold. @@ -46,19 +46,19 @@ public class V2Hold { @JsonCreator public V2Hold( + @JsonProperty("destination") Optional v2Subject, @JsonProperty("description") String description, - @JsonProperty("destination") Optional destination, @JsonProperty("id") String id, @JsonProperty("metadata") Map metadata, @JsonProperty("walletID") String walletID) { + Utils.checkNotNull(v2Subject, "v2Subject"); Utils.checkNotNull(description, "description"); - Utils.checkNotNull(destination, "destination"); Utils.checkNotNull(id, "id"); metadata = Utils.emptyMapIfNull(metadata); Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(walletID, "walletID"); + this.v2Subject = v2Subject; this.description = description; - this.destination = destination; this.id = id; this.metadata = metadata; this.walletID = walletID; @@ -69,19 +69,19 @@ public V2Hold( String id, Map metadata, String walletID) { - this(description, Optional.empty(), id, + this(Optional.empty(), description, id, metadata, walletID); } + @SuppressWarnings("unchecked") @JsonIgnore - public String description() { - return description; + public Optional v2Subject() { + return (Optional) v2Subject; } - @SuppressWarnings("unchecked") @JsonIgnore - public Optional destination() { - return (Optional) destination; + public String description() { + return description; } /** @@ -113,22 +113,22 @@ public static Builder builder() { } - public V2Hold withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; + public V2Hold withV2Subject(V2Subject v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = Optional.ofNullable(v2Subject); return this; } - public V2Hold withDestination(V2Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); + + public V2Hold withV2Subject(Optional v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = v2Subject; return this; } - - public V2Hold withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; + public V2Hold withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; return this; } @@ -169,8 +169,8 @@ public boolean equals(java.lang.Object o) { } V2Hold other = (V2Hold) o; return + Utils.enhancedDeepEquals(this.v2Subject, other.v2Subject) && Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.destination, other.destination) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.walletID, other.walletID); @@ -179,15 +179,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - description, destination, id, + v2Subject, description, id, metadata, walletID); } @Override public String toString() { return Utils.toString(V2Hold.class, + "v2Subject", v2Subject, "description", description, - "destination", destination, "id", id, "metadata", metadata, "walletID", walletID); @@ -196,9 +196,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private String description; + private Optional v2Subject = Optional.empty(); - private Optional destination = Optional.empty(); + private String description; private String id; @@ -211,22 +211,22 @@ private Builder() { } - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; + public Builder v2Subject(V2Subject v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = Optional.ofNullable(v2Subject); return this; } - - public Builder destination(V2Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); + public Builder v2Subject(Optional v2Subject) { + Utils.checkNotNull(v2Subject, "v2Subject"); + this.v2Subject = v2Subject; return this; } - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; return this; } @@ -263,7 +263,7 @@ public Builder walletID(String walletID) { public V2Hold build() { return new V2Hold( - description, destination, id, + v2Subject, description, id, metadata, walletID); } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerAccountSubject.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2LedgerAccountSubject.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V2LedgerAccountSubject.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2LedgerAccountSubject.java index 30e70cbfa..7e291e091 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerAccountSubject.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2LedgerAccountSubject.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -11,7 +11,7 @@ import java.lang.String; -public class V2LedgerAccountSubject implements V2Subject { +public class V2LedgerAccountSubject { @JsonProperty("identifier") private String identifier; @@ -36,9 +36,8 @@ public String identifier() { } @JsonIgnore - @Override public String type() { - return Utils.discriminatorToString(type); + return type; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponse.java index 2abec7fce..1579e18ff 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponseCursor.java index 2005d1150..30b4ad516 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListRunsResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListRunsResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponse.java index e0b626ba6..7a99341db 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponseCursor.java index 728b2b49f..04cfadf93 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersOccurrencesResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersOccurrencesResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponse.java index 7e1931ad9..c52d4905b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponseCursor.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponseCursor.java index 4c61a42aa..a00a44e6c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListTriggersResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListTriggersResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,7 +20,7 @@ public class V2ListTriggersResponseCursor { @JsonProperty("data") - private List data; + private List data; @JsonProperty("hasMore") @@ -42,7 +42,7 @@ public class V2ListTriggersResponseCursor { @JsonCreator public V2ListTriggersResponseCursor( - @JsonProperty("data") List data, + @JsonProperty("data") List data, @JsonProperty("hasMore") boolean hasMore, @JsonProperty("next") Optional next, @JsonProperty("pageSize") long pageSize, @@ -60,7 +60,7 @@ public V2ListTriggersResponseCursor( } public V2ListTriggersResponseCursor( - List data, + List data, boolean hasMore, long pageSize) { this(data, hasMore, Optional.empty(), @@ -68,7 +68,7 @@ public V2ListTriggersResponseCursor( } @JsonIgnore - public List data() { + public List data() { return data; } @@ -97,7 +97,7 @@ public static Builder builder() { } - public V2ListTriggersResponseCursor withData(List data) { + public V2ListTriggersResponseCursor withData(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -178,7 +178,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List data; + private List data; private Boolean hasMore; @@ -193,7 +193,7 @@ private Builder() { } - public Builder data(List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWalletsResponse.java new file mode 100644 index 000000000..b81fa7638 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWalletsResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2ListWalletsResponse { + + @JsonProperty("cursor") + private V2Cursor v2Cursor; + + @JsonCreator + public V2ListWalletsResponse( + @JsonProperty("cursor") V2Cursor v2Cursor) { + Utils.checkNotNull(v2Cursor, "v2Cursor"); + this.v2Cursor = v2Cursor; + } + + @JsonIgnore + public V2Cursor v2Cursor() { + return v2Cursor; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ListWalletsResponse withV2Cursor(V2Cursor v2Cursor) { + Utils.checkNotNull(v2Cursor, "v2Cursor"); + this.v2Cursor = v2Cursor; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ListWalletsResponse other = (V2ListWalletsResponse) o; + return + Utils.enhancedDeepEquals(this.v2Cursor, other.v2Cursor); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Cursor); + } + + @Override + public String toString() { + return Utils.toString(V2ListWalletsResponse.class, + "v2Cursor", v2Cursor); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Cursor v2Cursor; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Cursor(V2Cursor v2Cursor) { + Utils.checkNotNull(v2Cursor, "v2Cursor"); + this.v2Cursor = v2Cursor; + return this; + } + + public V2ListWalletsResponse build() { + + return new V2ListWalletsResponse( + v2Cursor); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponse.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponse.java index f64a6eb88..c390f100a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponseCursor.java index 29f91651a..96efda854 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWorkflowsResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ListWorkflowsResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Monetary.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Monetary.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Monetary.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Monetary.java index b0a298941..e94a3a82b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Monetary.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Monetary.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Payment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Payment.java similarity index 76% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Payment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Payment.java index 2e2550efa..ea9a64768 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Payment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Payment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,20 @@ public class V2Payment { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("provider") + private Optional v2Connector; + + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional v2PaymentMetadata; + + + @JsonProperty("status") + private V2PaymentStatus v2PaymentStatus; + + @JsonProperty("adjustments") private List adjustments; @@ -48,16 +62,6 @@ public class V2Payment { private BigInteger initialAmount; - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("provider") - private Optional provider; - - @JsonInclude(Include.ALWAYS) @JsonProperty("raw") private Optional raw; @@ -75,15 +79,14 @@ public class V2Payment { private String sourceAccountID; - @JsonProperty("status") - private V2PaymentStatus status; - - @JsonProperty("type") private V2PaymentType type; @JsonCreator public V2Payment( + @JsonProperty("provider") Optional v2Connector, + @JsonProperty("metadata") Optional v2PaymentMetadata, + @JsonProperty("status") V2PaymentStatus v2PaymentStatus, @JsonProperty("adjustments") List adjustments, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @@ -91,14 +94,14 @@ public V2Payment( @JsonProperty("destinationAccountID") String destinationAccountID, @JsonProperty("id") String id, @JsonProperty("initialAmount") BigInteger initialAmount, - @JsonProperty("metadata") Optional metadata, - @JsonProperty("provider") Optional provider, @JsonProperty("raw") Optional raw, @JsonProperty("reference") String reference, @JsonProperty("scheme") V2PaymentScheme scheme, @JsonProperty("sourceAccountID") String sourceAccountID, - @JsonProperty("status") V2PaymentStatus status, @JsonProperty("type") V2PaymentType type) { + Utils.checkNotNull(v2Connector, "v2Connector"); + Utils.checkNotNull(v2PaymentMetadata, "v2PaymentMetadata"); + Utils.checkNotNull(v2PaymentStatus, "v2PaymentStatus"); Utils.checkNotNull(adjustments, "adjustments"); Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(connectorID, "connectorID"); @@ -106,14 +109,14 @@ public V2Payment( Utils.checkNotNull(destinationAccountID, "destinationAccountID"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(initialAmount, "initialAmount"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(provider, "provider"); Utils.checkNotNull(raw, "raw"); Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(scheme, "scheme"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); Utils.checkNotNull(type, "type"); + this.v2Connector = v2Connector; + this.v2PaymentMetadata = v2PaymentMetadata; + this.v2PaymentStatus = v2PaymentStatus; this.adjustments = adjustments; this.asset = asset; this.connectorID = connectorID; @@ -121,17 +124,15 @@ public V2Payment( this.destinationAccountID = destinationAccountID; this.id = id; this.initialAmount = initialAmount; - this.metadata = metadata; - this.provider = provider; this.raw = raw; this.reference = reference; this.scheme = scheme; this.sourceAccountID = sourceAccountID; - this.status = status; this.type = type; } public V2Payment( + V2PaymentStatus v2PaymentStatus, List adjustments, String asset, String connectorID, @@ -142,13 +143,29 @@ public V2Payment( String reference, V2PaymentScheme scheme, String sourceAccountID, - V2PaymentStatus status, V2PaymentType type) { - this(adjustments, asset, connectorID, + this(Optional.empty(), Optional.empty(), v2PaymentStatus, + adjustments, asset, connectorID, createdAt, destinationAccountID, id, - initialAmount, Optional.empty(), Optional.empty(), - Optional.empty(), reference, scheme, - sourceAccountID, status, type); + initialAmount, Optional.empty(), reference, + scheme, sourceAccountID, type); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2Connector() { + return (Optional) v2Connector; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2PaymentMetadata() { + return (Optional) v2PaymentMetadata; + } + + @JsonIgnore + public V2PaymentStatus v2PaymentStatus() { + return v2PaymentStatus; } @JsonIgnore @@ -186,18 +203,6 @@ public BigInteger initialAmount() { return initialAmount; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional metadata() { - return (Optional) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional provider() { - return (Optional) provider; - } - @SuppressWarnings("unchecked") @JsonIgnore public Optional raw() { @@ -219,11 +224,6 @@ public String sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public V2PaymentStatus status() { - return status; - } - @JsonIgnore public V2PaymentType type() { return type; @@ -234,6 +234,38 @@ public static Builder builder() { } + public V2Payment withV2Connector(V2Connector v2Connector) { + Utils.checkNotNull(v2Connector, "v2Connector"); + this.v2Connector = Optional.ofNullable(v2Connector); + return this; + } + + + public V2Payment withV2Connector(Optional v2Connector) { + Utils.checkNotNull(v2Connector, "v2Connector"); + this.v2Connector = v2Connector; + return this; + } + + public V2Payment withV2PaymentMetadata(V2PaymentMetadata v2PaymentMetadata) { + Utils.checkNotNull(v2PaymentMetadata, "v2PaymentMetadata"); + this.v2PaymentMetadata = Optional.ofNullable(v2PaymentMetadata); + return this; + } + + + public V2Payment withV2PaymentMetadata(Optional v2PaymentMetadata) { + Utils.checkNotNull(v2PaymentMetadata, "v2PaymentMetadata"); + this.v2PaymentMetadata = v2PaymentMetadata; + return this; + } + + public V2Payment withV2PaymentStatus(V2PaymentStatus v2PaymentStatus) { + Utils.checkNotNull(v2PaymentStatus, "v2PaymentStatus"); + this.v2PaymentStatus = v2PaymentStatus; + return this; + } + public V2Payment withAdjustments(List adjustments) { Utils.checkNotNull(adjustments, "adjustments"); this.adjustments = adjustments; @@ -281,32 +313,6 @@ public V2Payment withInitialAmount(BigInteger initialAmount) { return this; } - public V2Payment withMetadata(V2PaymentMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V2Payment withMetadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2Payment withProvider(V2Connector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - - public V2Payment withProvider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - public V2Payment withRaw(V2PaymentRaw raw) { Utils.checkNotNull(raw, "raw"); this.raw = Optional.ofNullable(raw); @@ -338,12 +344,6 @@ public V2Payment withSourceAccountID(String sourceAccountID) { return this; } - public V2Payment withStatus(V2PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - public V2Payment withType(V2PaymentType type) { Utils.checkNotNull(type, "type"); this.type = type; @@ -360,6 +360,9 @@ public boolean equals(java.lang.Object o) { } V2Payment other = (V2Payment) o; return + Utils.enhancedDeepEquals(this.v2Connector, other.v2Connector) && + Utils.enhancedDeepEquals(this.v2PaymentMetadata, other.v2PaymentMetadata) && + Utils.enhancedDeepEquals(this.v2PaymentStatus, other.v2PaymentStatus) && Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && Utils.enhancedDeepEquals(this.asset, other.asset) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && @@ -367,29 +370,29 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.provider, other.provider) && Utils.enhancedDeepEquals(this.raw, other.raw) && Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.scheme, other.scheme) && Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { return Utils.enhancedHash( + v2Connector, v2PaymentMetadata, v2PaymentStatus, adjustments, asset, connectorID, createdAt, destinationAccountID, id, - initialAmount, metadata, provider, - raw, reference, scheme, - sourceAccountID, status, type); + initialAmount, raw, reference, + scheme, sourceAccountID, type); } @Override public String toString() { return Utils.toString(V2Payment.class, + "v2Connector", v2Connector, + "v2PaymentMetadata", v2PaymentMetadata, + "v2PaymentStatus", v2PaymentStatus, "adjustments", adjustments, "asset", asset, "connectorID", connectorID, @@ -397,19 +400,22 @@ public String toString() { "destinationAccountID", destinationAccountID, "id", id, "initialAmount", initialAmount, - "metadata", metadata, - "provider", provider, "raw", raw, "reference", reference, "scheme", scheme, "sourceAccountID", sourceAccountID, - "status", status, "type", type); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional v2Connector = Optional.empty(); + + private Optional v2PaymentMetadata = Optional.empty(); + + private V2PaymentStatus v2PaymentStatus; + private List adjustments; private String asset; @@ -424,10 +430,6 @@ public final static class Builder { private BigInteger initialAmount; - private Optional metadata = Optional.empty(); - - private Optional provider = Optional.empty(); - private Optional raw = Optional.empty(); private String reference; @@ -436,8 +438,6 @@ public final static class Builder { private String sourceAccountID; - private V2PaymentStatus status; - private V2PaymentType type; private Builder() { @@ -445,6 +445,39 @@ private Builder() { } + public Builder v2Connector(V2Connector v2Connector) { + Utils.checkNotNull(v2Connector, "v2Connector"); + this.v2Connector = Optional.ofNullable(v2Connector); + return this; + } + + public Builder v2Connector(Optional v2Connector) { + Utils.checkNotNull(v2Connector, "v2Connector"); + this.v2Connector = v2Connector; + return this; + } + + + public Builder v2PaymentMetadata(V2PaymentMetadata v2PaymentMetadata) { + Utils.checkNotNull(v2PaymentMetadata, "v2PaymentMetadata"); + this.v2PaymentMetadata = Optional.ofNullable(v2PaymentMetadata); + return this; + } + + public Builder v2PaymentMetadata(Optional v2PaymentMetadata) { + Utils.checkNotNull(v2PaymentMetadata, "v2PaymentMetadata"); + this.v2PaymentMetadata = v2PaymentMetadata; + return this; + } + + + public Builder v2PaymentStatus(V2PaymentStatus v2PaymentStatus) { + Utils.checkNotNull(v2PaymentStatus, "v2PaymentStatus"); + this.v2PaymentStatus = v2PaymentStatus; + return this; + } + + public Builder adjustments(List adjustments) { Utils.checkNotNull(adjustments, "adjustments"); this.adjustments = adjustments; @@ -499,32 +532,6 @@ public Builder initialAmount(BigInteger initialAmount) { } - public Builder metadata(V2PaymentMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder provider(V2Connector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - public Builder provider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - public Builder raw(V2PaymentRaw raw) { Utils.checkNotNull(raw, "raw"); this.raw = Optional.ofNullable(raw); @@ -559,13 +566,6 @@ public Builder sourceAccountID(String sourceAccountID) { } - public Builder status(V2PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder type(V2PaymentType type) { Utils.checkNotNull(type, "type"); this.type = type; @@ -575,11 +575,11 @@ public Builder type(V2PaymentType type) { public V2Payment build() { return new V2Payment( + v2Connector, v2PaymentMetadata, v2PaymentStatus, adjustments, asset, connectorID, createdAt, destinationAccountID, id, - initialAmount, metadata, provider, - raw, reference, scheme, - sourceAccountID, status, type); + initialAmount, raw, reference, + scheme, sourceAccountID, type); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustment.java similarity index 78% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustment.java index eb2839006..ef1d1c32a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,6 +16,10 @@ public class V2PaymentAdjustment { + @JsonProperty("status") + private V2PaymentStatus v2PaymentStatus; + + @JsonProperty("absolute") private boolean absolute; @@ -31,27 +35,28 @@ public class V2PaymentAdjustment { @JsonProperty("raw") private V2PaymentAdjustmentRaw raw; - - @JsonProperty("status") - private V2PaymentStatus status; - @JsonCreator public V2PaymentAdjustment( + @JsonProperty("status") V2PaymentStatus v2PaymentStatus, @JsonProperty("absolute") boolean absolute, @JsonProperty("amount") BigInteger amount, @JsonProperty("date") OffsetDateTime date, - @JsonProperty("raw") V2PaymentAdjustmentRaw raw, - @JsonProperty("status") V2PaymentStatus status) { + @JsonProperty("raw") V2PaymentAdjustmentRaw raw) { + Utils.checkNotNull(v2PaymentStatus, "v2PaymentStatus"); Utils.checkNotNull(absolute, "absolute"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(status, "status"); + this.v2PaymentStatus = v2PaymentStatus; this.absolute = absolute; this.amount = amount; this.date = date; this.raw = raw; - this.status = status; + } + + @JsonIgnore + public V2PaymentStatus v2PaymentStatus() { + return v2PaymentStatus; } @JsonIgnore @@ -74,16 +79,17 @@ public V2PaymentAdjustmentRaw raw() { return raw; } - @JsonIgnore - public V2PaymentStatus status() { - return status; - } - public static Builder builder() { return new Builder(); } + public V2PaymentAdjustment withV2PaymentStatus(V2PaymentStatus v2PaymentStatus) { + Utils.checkNotNull(v2PaymentStatus, "v2PaymentStatus"); + this.v2PaymentStatus = v2PaymentStatus; + return this; + } + public V2PaymentAdjustment withAbsolute(boolean absolute) { Utils.checkNotNull(absolute, "absolute"); this.absolute = absolute; @@ -113,12 +119,6 @@ public V2PaymentAdjustment withRaw(V2PaymentAdjustmentRaw raw) { return this; } - public V2PaymentAdjustment withStatus(V2PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -129,33 +129,35 @@ public boolean equals(java.lang.Object o) { } V2PaymentAdjustment other = (V2PaymentAdjustment) o; return + Utils.enhancedDeepEquals(this.v2PaymentStatus, other.v2PaymentStatus) && Utils.enhancedDeepEquals(this.absolute, other.absolute) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.date, other.date) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.status, other.status); + Utils.enhancedDeepEquals(this.raw, other.raw); } @Override public int hashCode() { return Utils.enhancedHash( - absolute, amount, date, - raw, status); + v2PaymentStatus, absolute, amount, + date, raw); } @Override public String toString() { return Utils.toString(V2PaymentAdjustment.class, + "v2PaymentStatus", v2PaymentStatus, "absolute", absolute, "amount", amount, "date", date, - "raw", raw, - "status", status); + "raw", raw); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private V2PaymentStatus v2PaymentStatus; + private Boolean absolute; private BigInteger amount; @@ -164,13 +166,18 @@ public final static class Builder { private V2PaymentAdjustmentRaw raw; - private V2PaymentStatus status; - private Builder() { // force use of static builder() method } + public Builder v2PaymentStatus(V2PaymentStatus v2PaymentStatus) { + Utils.checkNotNull(v2PaymentStatus, "v2PaymentStatus"); + this.v2PaymentStatus = v2PaymentStatus; + return this; + } + + public Builder absolute(boolean absolute) { Utils.checkNotNull(absolute, "absolute"); this.absolute = absolute; @@ -203,18 +210,11 @@ public Builder raw(V2PaymentAdjustmentRaw raw) { return this; } - - public Builder status(V2PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - public V2PaymentAdjustment build() { return new V2PaymentAdjustment( - absolute, amount, date, - raw, status); + v2PaymentStatus, absolute, amount, + date, raw); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustmentRaw.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustmentRaw.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustmentRaw.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustmentRaw.java index 6426fb914..4d2c725de 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentAdjustmentRaw.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentAdjustmentRaw.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentMetadata.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentMetadata.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentMetadata.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentMetadata.java index 435a26a7d..01cc7f451 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentMetadata.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentMetadata.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentRaw.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentRaw.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentRaw.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentRaw.java index e0eb01066..069b709af 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentRaw.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentRaw.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentResponse.java new file mode 100644 index 000000000..f99bc0ba8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2PaymentResponse { + + @JsonProperty("data") + private V2Payment v2Payment; + + @JsonCreator + public V2PaymentResponse( + @JsonProperty("data") V2Payment v2Payment) { + Utils.checkNotNull(v2Payment, "v2Payment"); + this.v2Payment = v2Payment; + } + + @JsonIgnore + public V2Payment v2Payment() { + return v2Payment; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PaymentResponse withV2Payment(V2Payment v2Payment) { + Utils.checkNotNull(v2Payment, "v2Payment"); + this.v2Payment = v2Payment; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PaymentResponse other = (V2PaymentResponse) o; + return + Utils.enhancedDeepEquals(this.v2Payment, other.v2Payment); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Payment); + } + + @Override + public String toString() { + return Utils.toString(V2PaymentResponse.class, + "v2Payment", v2Payment); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2Payment v2Payment; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Payment(V2Payment v2Payment) { + Utils.checkNotNull(v2Payment, "v2Payment"); + this.v2Payment = v2Payment; + return this; + } + + public V2PaymentResponse build() { + + return new V2PaymentResponse( + v2Payment); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentScheme.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentScheme.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentScheme.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentScheme.java index 83277d801..97d83b06a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentScheme.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentScheme.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentStatus.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentStatus.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentStatus.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentStatus.java index c4e0ffc15..f7ec4b080 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentStatus.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentStatus.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentType.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentType.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V2PaymentType.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentType.java index 535f8ccd1..a361f9ede 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PaymentType.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PaymentType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransaction.java new file mode 100644 index 000000000..d98072daf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransaction.java @@ -0,0 +1,280 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class V2PostTransaction { + + @JsonProperty("metadata") + private Map v2Metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postings") + private Optional> postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("script") + private Optional script; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public V2PostTransaction( + @JsonProperty("metadata") Map v2Metadata, + @JsonProperty("postings") Optional> postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("script") Optional script, + @JsonProperty("timestamp") Optional timestamp) { + v2Metadata = Utils.emptyMapIfNull(v2Metadata); + Utils.checkNotNull(v2Metadata, "v2Metadata"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(script, "script"); + Utils.checkNotNull(timestamp, "timestamp"); + this.v2Metadata = v2Metadata; + this.postings = postings; + this.reference = reference; + this.script = script; + this.timestamp = timestamp; + } + + public V2PostTransaction( + Map v2Metadata) { + this(v2Metadata, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Map v2Metadata() { + return v2Metadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> postings() { + return (Optional>) postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional script() { + return (Optional) script; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PostTransaction withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public V2PostTransaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + + public V2PostTransaction withPostings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public V2PostTransaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public V2PostTransaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V2PostTransaction withScript(V2PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + + public V2PostTransaction withScript(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + public V2PostTransaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public V2PostTransaction withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PostTransaction other = (V2PostTransaction) o; + return + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.script, other.script) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Metadata, postings, reference, + script, timestamp); + } + + @Override + public String toString() { + return Utils.toString(V2PostTransaction.class, + "v2Metadata", v2Metadata, + "postings", postings, + "reference", reference, + "script", script, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map v2Metadata; + + private Optional> postings = Optional.empty(); + + private Optional reference = Optional.empty(); + + private Optional script = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = Optional.ofNullable(postings); + return this; + } + + public Builder postings(Optional> postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder script(V2PostTransactionScript script) { + Utils.checkNotNull(script, "script"); + this.script = Optional.ofNullable(script); + return this; + } + + public Builder script(Optional script) { + Utils.checkNotNull(script, "script"); + this.script = script; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public V2PostTransaction build() { + + return new V2PostTransaction( + v2Metadata, postings, reference, + script, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransactionScript.java new file mode 100644 index 000000000..0f42196ce --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2PostTransactionScript.java @@ -0,0 +1,145 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V2PostTransactionScript { + + @JsonProperty("plain") + private String plain; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + @JsonCreator + public V2PostTransactionScript( + @JsonProperty("plain") String plain, + @JsonProperty("vars") Optional> vars) { + Utils.checkNotNull(plain, "plain"); + Utils.checkNotNull(vars, "vars"); + this.plain = plain; + this.vars = vars; + } + + public V2PostTransactionScript( + String plain) { + this(plain, Optional.empty()); + } + + @JsonIgnore + public String plain() { + return plain; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2PostTransactionScript withPlain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + public V2PostTransactionScript withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public V2PostTransactionScript withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2PostTransactionScript other = (V2PostTransactionScript) o; + return + Utils.enhancedDeepEquals(this.plain, other.plain) && + Utils.enhancedDeepEquals(this.vars, other.vars); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + plain, vars); + } + + @Override + public String toString() { + return Utils.toString(V2PostTransactionScript.class, + "plain", plain, + "vars", vars); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String plain; + + private Optional> vars = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder plain(String plain) { + Utils.checkNotNull(plain, "plain"); + this.plain = plain; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public V2PostTransactionScript build() { + + return new V2PostTransactionScript( + plain, vars); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Posting.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Posting.java new file mode 100644 index 000000000..984771bf5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Posting.java @@ -0,0 +1,190 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class V2Posting { + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("destination") + private String destination; + + + @JsonProperty("source") + private String source; + + @JsonCreator + public V2Posting( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset, + @JsonProperty("destination") String destination, + @JsonProperty("source") String source) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(source, "source"); + this.amount = amount; + this.asset = asset; + this.destination = destination; + this.source = source; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String destination() { + return destination; + } + + @JsonIgnore + public String source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Posting withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public V2Posting withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public V2Posting withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public V2Posting withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + public V2Posting withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Posting other = (V2Posting) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, destination, + source); + } + + @Override + public String toString() { + return Utils.toString(V2Posting.class, + "amount", amount, + "asset", asset, + "destination", destination, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private String destination; + + private String source; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public V2Posting build() { + + return new V2Posting( + amount, asset, destination, + source); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2ReadTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ReadTriggerResponse.java new file mode 100644 index 000000000..01a7855ea --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ReadTriggerResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2ReadTriggerResponse { + + @JsonProperty("data") + private V2TriggerData1 v2TriggerData; + + @JsonCreator + public V2ReadTriggerResponse( + @JsonProperty("data") V2TriggerData1 v2TriggerData) { + Utils.checkNotNull(v2TriggerData, "v2TriggerData"); + this.v2TriggerData = v2TriggerData; + } + + @JsonIgnore + public V2TriggerData1 v2TriggerData() { + return v2TriggerData; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2ReadTriggerResponse withV2TriggerData(V2TriggerData1 v2TriggerData) { + Utils.checkNotNull(v2TriggerData, "v2TriggerData"); + this.v2TriggerData = v2TriggerData; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2ReadTriggerResponse other = (V2ReadTriggerResponse) o; + return + Utils.enhancedDeepEquals(this.v2TriggerData, other.v2TriggerData); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2TriggerData); + } + + @Override + public String toString() { + return Utils.toString(V2ReadTriggerResponse.class, + "v2TriggerData", v2TriggerData); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2TriggerData1 v2TriggerData; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2TriggerData(V2TriggerData1 v2TriggerData) { + Utils.checkNotNull(v2TriggerData, "v2TriggerData"); + this.v2TriggerData = v2TriggerData; + return this; + } + + public V2ReadTriggerResponse build() { + + return new V2ReadTriggerResponse( + v2TriggerData); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2RunWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2RunWorkflowResponse.java new file mode 100644 index 000000000..30b08f2e9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2RunWorkflowResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2RunWorkflowResponse { + + @JsonProperty("data") + private V2WorkflowInstance v2WorkflowInstance; + + @JsonCreator + public V2RunWorkflowResponse( + @JsonProperty("data") V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + } + + @JsonIgnore + public V2WorkflowInstance v2WorkflowInstance() { + return v2WorkflowInstance; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2RunWorkflowResponse withV2WorkflowInstance(V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2RunWorkflowResponse other = (V2RunWorkflowResponse) o; + return + Utils.enhancedDeepEquals(this.v2WorkflowInstance, other.v2WorkflowInstance); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2WorkflowInstance); + } + + @Override + public String toString() { + return Utils.toString(V2RunWorkflowResponse.class, + "v2WorkflowInstance", v2WorkflowInstance); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2WorkflowInstance v2WorkflowInstance; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2WorkflowInstance(V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + return this; + } + + public V2RunWorkflowResponse build() { + + return new V2RunWorkflowResponse( + v2WorkflowInstance); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ServerInfo.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2ServerInfo.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2ServerInfo.java index 48b44f101..a413c13bb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ServerInfo.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2ServerInfo.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Stage.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Stage.java similarity index 89% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Stage.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Stage.java index 8ce124524..031e488a5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Stage.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Stage.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonValue; import com.fasterxml.jackson.core.type.TypeReference; @@ -48,10 +48,10 @@ public static V2Stage of(V2Update value) { /** * Returns an instance of one of these types: *
    - *
  • {@code com.formance.formance_sdk.models.shared.V2StageSend}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2StageDelay}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2StageWaitEvent}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2Update}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.V2StageSend}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.V2StageDelay}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.V2StageWaitEvent}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.V2Update}
  • *
* *

Use {@code instanceof} to determine what type is returned. For example: diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageDelay.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageDelay.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2StageDelay.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2StageDelay.java index 83035c48f..79eeaa507 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageDelay.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageDelay.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSend.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSend.java new file mode 100644 index 000000000..c1631f288 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSend.java @@ -0,0 +1,293 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + + +public class V2StageSend { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional v2Monetary; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional v2StageSendDestination; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("source") + private Optional v2StageSendSource; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public V2StageSend( + @JsonProperty("amount") Optional v2Monetary, + @JsonProperty("destination") Optional v2StageSendDestination, + @JsonProperty("source") Optional v2StageSendSource, + @JsonProperty("metadata") Optional> metadata, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + Utils.checkNotNull(v2StageSendDestination, "v2StageSendDestination"); + Utils.checkNotNull(v2StageSendSource, "v2StageSendSource"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(timestamp, "timestamp"); + this.v2Monetary = v2Monetary; + this.v2StageSendDestination = v2StageSendDestination; + this.v2StageSendSource = v2StageSendSource; + this.metadata = metadata; + this.timestamp = timestamp; + } + + public V2StageSend() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2Monetary() { + return (Optional) v2Monetary; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendDestination() { + return (Optional) v2StageSendDestination; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendSource() { + return (Optional) v2StageSendSource; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> metadata() { + return (Optional>) metadata; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StageSend withV2Monetary(V2Monetary v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = Optional.ofNullable(v2Monetary); + return this; + } + + + public V2StageSend withV2Monetary(Optional v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = v2Monetary; + return this; + } + + public V2StageSend withV2StageSendDestination(V2StageSendDestination v2StageSendDestination) { + Utils.checkNotNull(v2StageSendDestination, "v2StageSendDestination"); + this.v2StageSendDestination = Optional.ofNullable(v2StageSendDestination); + return this; + } + + + public V2StageSend withV2StageSendDestination(Optional v2StageSendDestination) { + Utils.checkNotNull(v2StageSendDestination, "v2StageSendDestination"); + this.v2StageSendDestination = v2StageSendDestination; + return this; + } + + public V2StageSend withV2StageSendSource(V2StageSendSource v2StageSendSource) { + Utils.checkNotNull(v2StageSendSource, "v2StageSendSource"); + this.v2StageSendSource = Optional.ofNullable(v2StageSendSource); + return this; + } + + + public V2StageSend withV2StageSendSource(Optional v2StageSendSource) { + Utils.checkNotNull(v2StageSendSource, "v2StageSendSource"); + this.v2StageSendSource = v2StageSendSource; + return this; + } + + public V2StageSend withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + public V2StageSend withMetadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public V2StageSend withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public V2StageSend withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StageSend other = (V2StageSend) o; + return + Utils.enhancedDeepEquals(this.v2Monetary, other.v2Monetary) && + Utils.enhancedDeepEquals(this.v2StageSendDestination, other.v2StageSendDestination) && + Utils.enhancedDeepEquals(this.v2StageSendSource, other.v2StageSendSource) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Monetary, v2StageSendDestination, v2StageSendSource, + metadata, timestamp); + } + + @Override + public String toString() { + return Utils.toString(V2StageSend.class, + "v2Monetary", v2Monetary, + "v2StageSendDestination", v2StageSendDestination, + "v2StageSendSource", v2StageSendSource, + "metadata", metadata, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2Monetary = Optional.empty(); + + private Optional v2StageSendDestination = Optional.empty(); + + private Optional v2StageSendSource = Optional.empty(); + + private Optional> metadata = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Monetary(V2Monetary v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = Optional.ofNullable(v2Monetary); + return this; + } + + public Builder v2Monetary(Optional v2Monetary) { + Utils.checkNotNull(v2Monetary, "v2Monetary"); + this.v2Monetary = v2Monetary; + return this; + } + + + public Builder v2StageSendDestination(V2StageSendDestination v2StageSendDestination) { + Utils.checkNotNull(v2StageSendDestination, "v2StageSendDestination"); + this.v2StageSendDestination = Optional.ofNullable(v2StageSendDestination); + return this; + } + + public Builder v2StageSendDestination(Optional v2StageSendDestination) { + Utils.checkNotNull(v2StageSendDestination, "v2StageSendDestination"); + this.v2StageSendDestination = v2StageSendDestination; + return this; + } + + + public Builder v2StageSendSource(V2StageSendSource v2StageSendSource) { + Utils.checkNotNull(v2StageSendSource, "v2StageSendSource"); + this.v2StageSendSource = Optional.ofNullable(v2StageSendSource); + return this; + } + + public Builder v2StageSendSource(Optional v2StageSendSource) { + Utils.checkNotNull(v2StageSendSource, "v2StageSendSource"); + this.v2StageSendSource = v2StageSendSource; + return this; + } + + + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + public Builder metadata(Optional> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public V2StageSend build() { + + return new V2StageSend( + v2Monetary, v2StageSendDestination, v2StageSendSource, + metadata, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestination.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestination.java new file mode 100644 index 000000000..69f3c39aa --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestination.java @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2StageSendDestination { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("payment") + private Optional v2StageSendDestinationPayment; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("account") + private Optional v2StageSendSourceAccount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("wallet") + private Optional v2StageSendSourceWallet; + + @JsonCreator + public V2StageSendDestination( + @JsonProperty("payment") Optional v2StageSendDestinationPayment, + @JsonProperty("account") Optional v2StageSendSourceAccount, + @JsonProperty("wallet") Optional v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendDestinationPayment, "v2StageSendDestinationPayment"); + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendDestinationPayment = v2StageSendDestinationPayment; + this.v2StageSendSourceAccount = v2StageSendSourceAccount; + this.v2StageSendSourceWallet = v2StageSendSourceWallet; + } + + public V2StageSendDestination() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendDestinationPayment() { + return (Optional) v2StageSendDestinationPayment; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendSourceAccount() { + return (Optional) v2StageSendSourceAccount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendSourceWallet() { + return (Optional) v2StageSendSourceWallet; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StageSendDestination withV2StageSendDestinationPayment(V2StageSendDestinationPayment v2StageSendDestinationPayment) { + Utils.checkNotNull(v2StageSendDestinationPayment, "v2StageSendDestinationPayment"); + this.v2StageSendDestinationPayment = Optional.ofNullable(v2StageSendDestinationPayment); + return this; + } + + + public V2StageSendDestination withV2StageSendDestinationPayment(Optional v2StageSendDestinationPayment) { + Utils.checkNotNull(v2StageSendDestinationPayment, "v2StageSendDestinationPayment"); + this.v2StageSendDestinationPayment = v2StageSendDestinationPayment; + return this; + } + + public V2StageSendDestination withV2StageSendSourceAccount(V2StageSendSourceAccount v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = Optional.ofNullable(v2StageSendSourceAccount); + return this; + } + + + public V2StageSendDestination withV2StageSendSourceAccount(Optional v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = v2StageSendSourceAccount; + return this; + } + + public V2StageSendDestination withV2StageSendSourceWallet(V2StageSendSourceWallet v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = Optional.ofNullable(v2StageSendSourceWallet); + return this; + } + + + public V2StageSendDestination withV2StageSendSourceWallet(Optional v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = v2StageSendSourceWallet; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StageSendDestination other = (V2StageSendDestination) o; + return + Utils.enhancedDeepEquals(this.v2StageSendDestinationPayment, other.v2StageSendDestinationPayment) && + Utils.enhancedDeepEquals(this.v2StageSendSourceAccount, other.v2StageSendSourceAccount) && + Utils.enhancedDeepEquals(this.v2StageSendSourceWallet, other.v2StageSendSourceWallet); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2StageSendDestinationPayment, v2StageSendSourceAccount, v2StageSendSourceWallet); + } + + @Override + public String toString() { + return Utils.toString(V2StageSendDestination.class, + "v2StageSendDestinationPayment", v2StageSendDestinationPayment, + "v2StageSendSourceAccount", v2StageSendSourceAccount, + "v2StageSendSourceWallet", v2StageSendSourceWallet); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2StageSendDestinationPayment = Optional.empty(); + + private Optional v2StageSendSourceAccount = Optional.empty(); + + private Optional v2StageSendSourceWallet = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2StageSendDestinationPayment(V2StageSendDestinationPayment v2StageSendDestinationPayment) { + Utils.checkNotNull(v2StageSendDestinationPayment, "v2StageSendDestinationPayment"); + this.v2StageSendDestinationPayment = Optional.ofNullable(v2StageSendDestinationPayment); + return this; + } + + public Builder v2StageSendDestinationPayment(Optional v2StageSendDestinationPayment) { + Utils.checkNotNull(v2StageSendDestinationPayment, "v2StageSendDestinationPayment"); + this.v2StageSendDestinationPayment = v2StageSendDestinationPayment; + return this; + } + + + public Builder v2StageSendSourceAccount(V2StageSendSourceAccount v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = Optional.ofNullable(v2StageSendSourceAccount); + return this; + } + + public Builder v2StageSendSourceAccount(Optional v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = v2StageSendSourceAccount; + return this; + } + + + public Builder v2StageSendSourceWallet(V2StageSendSourceWallet v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = Optional.ofNullable(v2StageSendSourceWallet); + return this; + } + + public Builder v2StageSendSourceWallet(Optional v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = v2StageSendSourceWallet; + return this; + } + + public V2StageSendDestination build() { + + return new V2StageSendDestination( + v2StageSendDestinationPayment, v2StageSendSourceAccount, v2StageSendSourceWallet); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationPayment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestinationPayment.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationPayment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestinationPayment.java index 7638e0813..0f81dab4e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationPayment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendDestinationPayment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSource.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSource.java new file mode 100644 index 000000000..d599124d6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSource.java @@ -0,0 +1,201 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2StageSendSource { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("account") + private Optional v2StageSendSourceAccount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("payment") + private Optional v2StageSendSourcePayment; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("wallet") + private Optional v2StageSendSourceWallet; + + @JsonCreator + public V2StageSendSource( + @JsonProperty("account") Optional v2StageSendSourceAccount, + @JsonProperty("payment") Optional v2StageSendSourcePayment, + @JsonProperty("wallet") Optional v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + Utils.checkNotNull(v2StageSendSourcePayment, "v2StageSendSourcePayment"); + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceAccount = v2StageSendSourceAccount; + this.v2StageSendSourcePayment = v2StageSendSourcePayment; + this.v2StageSendSourceWallet = v2StageSendSourceWallet; + } + + public V2StageSendSource() { + this(Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendSourceAccount() { + return (Optional) v2StageSendSourceAccount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendSourcePayment() { + return (Optional) v2StageSendSourcePayment; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StageSendSourceWallet() { + return (Optional) v2StageSendSourceWallet; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StageSendSource withV2StageSendSourceAccount(V2StageSendSourceAccount v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = Optional.ofNullable(v2StageSendSourceAccount); + return this; + } + + + public V2StageSendSource withV2StageSendSourceAccount(Optional v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = v2StageSendSourceAccount; + return this; + } + + public V2StageSendSource withV2StageSendSourcePayment(V2StageSendSourcePayment v2StageSendSourcePayment) { + Utils.checkNotNull(v2StageSendSourcePayment, "v2StageSendSourcePayment"); + this.v2StageSendSourcePayment = Optional.ofNullable(v2StageSendSourcePayment); + return this; + } + + + public V2StageSendSource withV2StageSendSourcePayment(Optional v2StageSendSourcePayment) { + Utils.checkNotNull(v2StageSendSourcePayment, "v2StageSendSourcePayment"); + this.v2StageSendSourcePayment = v2StageSendSourcePayment; + return this; + } + + public V2StageSendSource withV2StageSendSourceWallet(V2StageSendSourceWallet v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = Optional.ofNullable(v2StageSendSourceWallet); + return this; + } + + + public V2StageSendSource withV2StageSendSourceWallet(Optional v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = v2StageSendSourceWallet; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StageSendSource other = (V2StageSendSource) o; + return + Utils.enhancedDeepEquals(this.v2StageSendSourceAccount, other.v2StageSendSourceAccount) && + Utils.enhancedDeepEquals(this.v2StageSendSourcePayment, other.v2StageSendSourcePayment) && + Utils.enhancedDeepEquals(this.v2StageSendSourceWallet, other.v2StageSendSourceWallet); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2StageSendSourceAccount, v2StageSendSourcePayment, v2StageSendSourceWallet); + } + + @Override + public String toString() { + return Utils.toString(V2StageSendSource.class, + "v2StageSendSourceAccount", v2StageSendSourceAccount, + "v2StageSendSourcePayment", v2StageSendSourcePayment, + "v2StageSendSourceWallet", v2StageSendSourceWallet); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2StageSendSourceAccount = Optional.empty(); + + private Optional v2StageSendSourcePayment = Optional.empty(); + + private Optional v2StageSendSourceWallet = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2StageSendSourceAccount(V2StageSendSourceAccount v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = Optional.ofNullable(v2StageSendSourceAccount); + return this; + } + + public Builder v2StageSendSourceAccount(Optional v2StageSendSourceAccount) { + Utils.checkNotNull(v2StageSendSourceAccount, "v2StageSendSourceAccount"); + this.v2StageSendSourceAccount = v2StageSendSourceAccount; + return this; + } + + + public Builder v2StageSendSourcePayment(V2StageSendSourcePayment v2StageSendSourcePayment) { + Utils.checkNotNull(v2StageSendSourcePayment, "v2StageSendSourcePayment"); + this.v2StageSendSourcePayment = Optional.ofNullable(v2StageSendSourcePayment); + return this; + } + + public Builder v2StageSendSourcePayment(Optional v2StageSendSourcePayment) { + Utils.checkNotNull(v2StageSendSourcePayment, "v2StageSendSourcePayment"); + this.v2StageSendSourcePayment = v2StageSendSourcePayment; + return this; + } + + + public Builder v2StageSendSourceWallet(V2StageSendSourceWallet v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = Optional.ofNullable(v2StageSendSourceWallet); + return this; + } + + public Builder v2StageSendSourceWallet(Optional v2StageSendSourceWallet) { + Utils.checkNotNull(v2StageSendSourceWallet, "v2StageSendSourceWallet"); + this.v2StageSendSourceWallet = v2StageSendSourceWallet; + return this; + } + + public V2StageSendSource build() { + + return new V2StageSendSource( + v2StageSendSourceAccount, v2StageSendSourcePayment, v2StageSendSourceWallet); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceAccount.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceAccount.java new file mode 100644 index 000000000..14537342f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceAccount.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class V2StageSendSourceAccount { + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ledger") + private Optional ledger; + + @JsonCreator + public V2StageSendSourceAccount( + @JsonProperty("id") String id, + @JsonProperty("ledger") Optional ledger) { + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + this.id = id; + this.ledger = ledger; + } + + public V2StageSendSourceAccount( + String id) { + this(id, Optional.empty()); + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public Optional ledger() { + return ledger; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StageSendSourceAccount withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2StageSendSourceAccount withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + + public V2StageSendSourceAccount withLedger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StageSendSourceAccount other = (V2StageSendSourceAccount) o; + return + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + id, ledger); + } + + @Override + public String toString() { + return Utils.toString(V2StageSendSourceAccount.class, + "id", id, + "ledger", ledger); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String id; + + private Optional ledger = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + public Builder ledger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + public V2StageSendSourceAccount build() { + + return new V2StageSendSourceAccount( + id, ledger); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSourcePayment.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourcePayment.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSourcePayment.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourcePayment.java index 59511fc1f..161586c55 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSourcePayment.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourcePayment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceWallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceWallet.java new file mode 100644 index 000000000..5c91b6273 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageSendSourceWallet.java @@ -0,0 +1,141 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class V2StageSendSourceWallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("id") + private String id; + + @JsonCreator + public V2StageSendSourceWallet( + @JsonProperty("balance") Optional balance, + @JsonProperty("id") String id) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(id, "id"); + this.balance = balance; + this.id = id; + } + + public V2StageSendSourceWallet( + String id) { + this(Optional.empty(), id); + } + + @JsonIgnore + public Optional balance() { + return balance; + } + + @JsonIgnore + public String id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StageSendSourceWallet withBalance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + public V2StageSendSourceWallet withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public V2StageSendSourceWallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StageSendSourceWallet other = (V2StageSendSourceWallet) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, id); + } + + @Override + public String toString() { + return Utils.toString(V2StageSendSourceWallet.class, + "balance", balance, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private String id; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2StageSendSourceWallet build() { + + return new V2StageSendSourceWallet( + balance, id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageStatus.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageStatus.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2StageStatus.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2StageStatus.java index 0ba1a7195..749730501 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageStatus.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageStatus.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageWaitEvent.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageWaitEvent.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V2StageWaitEvent.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2StageWaitEvent.java index ac49df1bf..5c1fffce5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageWaitEvent.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StageWaitEvent.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequest.java new file mode 100644 index 000000000..a024d0f32 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequest.java @@ -0,0 +1,378 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.utils.LazySingletonValue; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Optional; + + +public class V2StripeTransferRequest { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional amount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("asset") + private Optional asset; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("connectorID") + private Optional connectorID; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional destination; + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private Optional metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("waitingValidation") + private Optional waitingValidation; + + @JsonCreator + public V2StripeTransferRequest( + @JsonProperty("amount") Optional amount, + @JsonProperty("asset") Optional asset, + @JsonProperty("connectorID") Optional connectorID, + @JsonProperty("destination") Optional destination, + @JsonProperty("metadata") Optional metadata, + @JsonProperty("waitingValidation") Optional waitingValidation) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.amount = amount; + this.asset = asset; + this.connectorID = connectorID; + this.destination = destination; + this.metadata = metadata; + this.waitingValidation = waitingValidation; + } + + public V2StripeTransferRequest() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional amount() { + return (Optional) amount; + } + + @JsonIgnore + public Optional asset() { + return asset; + } + + @JsonIgnore + public Optional connectorID() { + return connectorID; + } + + @JsonIgnore + public Optional destination() { + return destination; + } + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional metadata() { + return (Optional) metadata; + } + + @JsonIgnore + public Optional waitingValidation() { + return waitingValidation; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2StripeTransferRequest withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public V2StripeTransferRequest withAmount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + + public V2StripeTransferRequest withAmount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public V2StripeTransferRequest withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + + public V2StripeTransferRequest withAsset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public V2StripeTransferRequest withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = Optional.ofNullable(connectorID); + return this; + } + + + public V2StripeTransferRequest withConnectorID(Optional connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public V2StripeTransferRequest withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = Optional.ofNullable(destination); + return this; + } + + + public V2StripeTransferRequest withDestination(Optional destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public V2StripeTransferRequest withMetadata(V2StripeTransferRequestMetadata metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public V2StripeTransferRequest withMetadata(Optional metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public V2StripeTransferRequest withWaitingValidation(boolean waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = Optional.ofNullable(waitingValidation); + return this; + } + + + public V2StripeTransferRequest withWaitingValidation(Optional waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = waitingValidation; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2StripeTransferRequest other = (V2StripeTransferRequest) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.waitingValidation, other.waitingValidation); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, connectorID, + destination, metadata, waitingValidation); + } + + @Override + public String toString() { + return Utils.toString(V2StripeTransferRequest.class, + "amount", amount, + "asset", asset, + "connectorID", connectorID, + "destination", destination, + "metadata", metadata, + "waitingValidation", waitingValidation); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional amount = Optional.empty(); + + private Optional asset = Optional.empty(); + + private Optional connectorID = Optional.empty(); + + private Optional destination = Optional.empty(); + + private Optional metadata = Optional.empty(); + + private Optional waitingValidation; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public Builder amount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + public Builder amount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + public Builder asset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = Optional.ofNullable(connectorID); + return this; + } + + public Builder connectorID(Optional connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = Optional.ofNullable(destination); + return this; + } + + public Builder destination(Optional destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public Builder metadata(V2StripeTransferRequestMetadata metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = Optional.ofNullable(metadata); + return this; + } + + /** + * A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ + public Builder metadata(Optional metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder waitingValidation(boolean waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = Optional.ofNullable(waitingValidation); + return this; + } + + public Builder waitingValidation(Optional waitingValidation) { + Utils.checkNotNull(waitingValidation, "waitingValidation"); + this.waitingValidation = waitingValidation; + return this; + } + + public V2StripeTransferRequest build() { + if (waitingValidation == null) { + waitingValidation = _SINGLETON_VALUE_WaitingValidation.value(); + } + + return new V2StripeTransferRequest( + amount, asset, connectorID, + destination, metadata, waitingValidation); + } + + + private static final LazySingletonValue> _SINGLETON_VALUE_WaitingValidation = + new LazySingletonValue<>( + "waitingValidation", + "false", + new TypeReference>() {}); + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequestMetadata.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequestMetadata.java new file mode 100644 index 000000000..9f8a3aeea --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2StripeTransferRequestMetadata.java @@ -0,0 +1,63 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * V2StripeTransferRequestMetadata + * + *

A set of key/value pairs that you can attach to a transfer object. + * It can be useful for storing additional information about the transfer in a structured format. + */ +public class V2StripeTransferRequestMetadata { + @JsonCreator + public V2StripeTransferRequestMetadata() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(V2StripeTransferRequestMetadata.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public V2StripeTransferRequestMetadata build() { + + return new V2StripeTransferRequestMetadata( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Subject.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Subject.java new file mode 100644 index 000000000..400d0aa2c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Subject.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = V2Subject._Deserializer.class) +public class V2Subject { + + @JsonValue + private final TypedObject value; + + private V2Subject(TypedObject value) { + this.value = value; + } + + public static V2Subject of(V2LedgerAccountSubject value) { + Utils.checkNotNull(value, "value"); + return new V2Subject(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V2Subject of(V2WalletSubject value) { + Utils.checkNotNull(value, "value"); + return new V2Subject(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *

    + *
  • {@code com.formance.formance_sdk.models.orchestration.V2LedgerAccountSubject}
  • + *
  • {@code com.formance.formance_sdk.models.orchestration.V2WalletSubject}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Subject other = (V2Subject) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(V2Subject.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(V2Subject.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2TestTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TestTriggerResponse.java new file mode 100644 index 000000000..682738036 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TestTriggerResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2TestTriggerResponse { + + @JsonProperty("data") + private V2TriggerTest v2TriggerTest; + + @JsonCreator + public V2TestTriggerResponse( + @JsonProperty("data") V2TriggerTest v2TriggerTest) { + Utils.checkNotNull(v2TriggerTest, "v2TriggerTest"); + this.v2TriggerTest = v2TriggerTest; + } + + @JsonIgnore + public V2TriggerTest v2TriggerTest() { + return v2TriggerTest; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2TestTriggerResponse withV2TriggerTest(V2TriggerTest v2TriggerTest) { + Utils.checkNotNull(v2TriggerTest, "v2TriggerTest"); + this.v2TriggerTest = v2TriggerTest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2TestTriggerResponse other = (V2TestTriggerResponse) o; + return + Utils.enhancedDeepEquals(this.v2TriggerTest, other.v2TriggerTest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2TriggerTest); + } + + @Override + public String toString() { + return Utils.toString(V2TestTriggerResponse.class, + "v2TriggerTest", v2TriggerTest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2TriggerTest v2TriggerTest; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2TriggerTest(V2TriggerTest v2TriggerTest) { + Utils.checkNotNull(v2TriggerTest, "v2TriggerTest"); + this.v2TriggerTest = v2TriggerTest; + return this; + } + + public V2TestTriggerResponse build() { + + return new V2TestTriggerResponse( + v2TriggerTest); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Transaction.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Transaction.java new file mode 100644 index 000000000..72925cbb6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Transaction.java @@ -0,0 +1,249 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class V2Transaction { + + @JsonProperty("metadata") + private Map v2Metadata; + + + @JsonProperty("postings") + private List postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + + @JsonProperty("txid") + private BigInteger txid; + + @JsonCreator + public V2Transaction( + @JsonProperty("metadata") Map v2Metadata, + @JsonProperty("postings") List postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("timestamp") OffsetDateTime timestamp, + @JsonProperty("txid") BigInteger txid) { + v2Metadata = Utils.emptyMapIfNull(v2Metadata); + Utils.checkNotNull(v2Metadata, "v2Metadata"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(timestamp, "timestamp"); + Utils.checkNotNull(txid, "txid"); + this.v2Metadata = v2Metadata; + this.postings = postings; + this.reference = reference; + this.timestamp = timestamp; + this.txid = txid; + } + + public V2Transaction( + Map v2Metadata, + List postings, + OffsetDateTime timestamp, + BigInteger txid) { + this(v2Metadata, postings, Optional.empty(), + timestamp, txid); + } + + @JsonIgnore + public Map v2Metadata() { + return v2Metadata; + } + + @JsonIgnore + public List postings() { + return postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @JsonIgnore + public OffsetDateTime timestamp() { + return timestamp; + } + + @JsonIgnore + public BigInteger txid() { + return txid; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Transaction withV2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + public V2Transaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public V2Transaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public V2Transaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V2Transaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public V2Transaction withTxid(long txid) { + this.txid = BigInteger.valueOf(txid); + return this; + } + + public V2Transaction withTxid(BigInteger txid) { + Utils.checkNotNull(txid, "txid"); + this.txid = txid; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Transaction other = (V2Transaction) o; + return + Utils.enhancedDeepEquals(this.v2Metadata, other.v2Metadata) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && + Utils.enhancedDeepEquals(this.txid, other.txid); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2Metadata, postings, reference, + timestamp, txid); + } + + @Override + public String toString() { + return Utils.toString(V2Transaction.class, + "v2Metadata", v2Metadata, + "postings", postings, + "reference", reference, + "timestamp", timestamp, + "txid", txid); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map v2Metadata; + + private List postings; + + private Optional reference = Optional.empty(); + + private OffsetDateTime timestamp; + + private BigInteger txid; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2Metadata(Map v2Metadata) { + Utils.checkNotNull(v2Metadata, "v2Metadata"); + this.v2Metadata = v2Metadata; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + + public Builder txid(long txid) { + this.txid = BigInteger.valueOf(txid); + return this; + } + + public Builder txid(BigInteger txid) { + Utils.checkNotNull(txid, "txid"); + this.txid = txid; + return this; + } + + public V2Transaction build() { + + return new V2Transaction( + v2Metadata, postings, reference, + timestamp, txid); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData1.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData1.java new file mode 100644 index 000000000..c965b886f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData1.java @@ -0,0 +1,371 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + + +public class V2TriggerData1 { + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("event") + private String event; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filter") + private Optional filter; + + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + private Optional version; + + + @JsonProperty("workflowID") + private String workflowID; + + @JsonCreator + public V2TriggerData1( + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("event") String event, + @JsonProperty("filter") Optional filter, + @JsonProperty("id") String id, + @JsonProperty("name") Optional name, + @JsonProperty("vars") Optional> vars, + @JsonProperty("version") Optional version, + @JsonProperty("workflowID") String workflowID) { + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(event, "event"); + Utils.checkNotNull(filter, "filter"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(vars, "vars"); + Utils.checkNotNull(version, "version"); + Utils.checkNotNull(workflowID, "workflowID"); + this.createdAt = createdAt; + this.event = event; + this.filter = filter; + this.id = id; + this.name = name; + this.vars = vars; + this.version = version; + this.workflowID = workflowID; + } + + public V2TriggerData1( + OffsetDateTime createdAt, + String event, + String id, + String workflowID) { + this(createdAt, event, Optional.empty(), + id, Optional.empty(), Optional.empty(), + Optional.empty(), workflowID); + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String event() { + return event; + } + + @JsonIgnore + public Optional filter() { + return filter; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public Optional name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + @JsonIgnore + public Optional version() { + return version; + } + + @JsonIgnore + public String workflowID() { + return workflowID; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2TriggerData1 withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V2TriggerData1 withEvent(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + public V2TriggerData1 withFilter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + + public V2TriggerData1 withFilter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + public V2TriggerData1 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V2TriggerData1 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + public V2TriggerData1 withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V2TriggerData1 withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public V2TriggerData1 withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public V2TriggerData1 withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + + public V2TriggerData1 withVersion(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public V2TriggerData1 withWorkflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2TriggerData1 other = (V2TriggerData1) o; + return + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.event, other.event) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.vars, other.vars) && + Utils.enhancedDeepEquals(this.version, other.version) && + Utils.enhancedDeepEquals(this.workflowID, other.workflowID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + createdAt, event, filter, + id, name, vars, + version, workflowID); + } + + @Override + public String toString() { + return Utils.toString(V2TriggerData1.class, + "createdAt", createdAt, + "event", event, + "filter", filter, + "id", id, + "name", name, + "vars", vars, + "version", version, + "workflowID", workflowID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private OffsetDateTime createdAt; + + private String event; + + private Optional filter = Optional.empty(); + + private String id; + + private Optional name = Optional.empty(); + + private Optional> vars = Optional.empty(); + + private Optional version = Optional.empty(); + + private String workflowID; + + private Builder() { + // force use of static builder() method + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder event(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + + public Builder filter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + public Builder filter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + public Builder version(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + + public Builder workflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + public V2TriggerData1 build() { + + return new V2TriggerData1( + createdAt, event, filter, + id, name, vars, + version, workflowID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData2.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData2.java new file mode 100644 index 000000000..0b04e04c8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerData2.java @@ -0,0 +1,307 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V2TriggerData2 { + + @JsonProperty("event") + private String event; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("filter") + private Optional filter; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("vars") + private Optional> vars; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + private Optional version; + + + @JsonProperty("workflowID") + private String workflowID; + + @JsonCreator + public V2TriggerData2( + @JsonProperty("event") String event, + @JsonProperty("filter") Optional filter, + @JsonProperty("name") Optional name, + @JsonProperty("vars") Optional> vars, + @JsonProperty("version") Optional version, + @JsonProperty("workflowID") String workflowID) { + Utils.checkNotNull(event, "event"); + Utils.checkNotNull(filter, "filter"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(vars, "vars"); + Utils.checkNotNull(version, "version"); + Utils.checkNotNull(workflowID, "workflowID"); + this.event = event; + this.filter = filter; + this.name = name; + this.vars = vars; + this.version = version; + this.workflowID = workflowID; + } + + public V2TriggerData2( + String event, + String workflowID) { + this(event, Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), workflowID); + } + + @JsonIgnore + public String event() { + return event; + } + + @JsonIgnore + public Optional filter() { + return filter; + } + + @JsonIgnore + public Optional name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> vars() { + return (Optional>) vars; + } + + @JsonIgnore + public Optional version() { + return version; + } + + @JsonIgnore + public String workflowID() { + return workflowID; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2TriggerData2 withEvent(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + public V2TriggerData2 withFilter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + + public V2TriggerData2 withFilter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + public V2TriggerData2 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + public V2TriggerData2 withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V2TriggerData2 withVars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + + public V2TriggerData2 withVars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + public V2TriggerData2 withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + + public V2TriggerData2 withVersion(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public V2TriggerData2 withWorkflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2TriggerData2 other = (V2TriggerData2) o; + return + Utils.enhancedDeepEquals(this.event, other.event) && + Utils.enhancedDeepEquals(this.filter, other.filter) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.vars, other.vars) && + Utils.enhancedDeepEquals(this.version, other.version) && + Utils.enhancedDeepEquals(this.workflowID, other.workflowID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + event, filter, name, + vars, version, workflowID); + } + + @Override + public String toString() { + return Utils.toString(V2TriggerData2.class, + "event", event, + "filter", filter, + "name", name, + "vars", vars, + "version", version, + "workflowID", workflowID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String event; + + private Optional filter = Optional.empty(); + + private Optional name = Optional.empty(); + + private Optional> vars = Optional.empty(); + + private Optional version = Optional.empty(); + + private String workflowID; + + private Builder() { + // force use of static builder() method + } + + + public Builder event(String event) { + Utils.checkNotNull(event, "event"); + this.event = event; + return this; + } + + + public Builder filter(String filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = Optional.ofNullable(filter); + return this; + } + + public Builder filter(Optional filter) { + Utils.checkNotNull(filter, "filter"); + this.filter = filter; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder vars(Map vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = Optional.ofNullable(vars); + return this; + } + + public Builder vars(Optional> vars) { + Utils.checkNotNull(vars, "vars"); + this.vars = vars; + return this; + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + public Builder version(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + + public Builder workflowID(String workflowID) { + Utils.checkNotNull(workflowID, "workflowID"); + this.workflowID = workflowID; + return this; + } + + public V2TriggerData2 build() { + + return new V2TriggerData2( + event, filter, name, + vars, version, workflowID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerOccurrence.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerOccurrence.java similarity index 79% rename from src/main/java/com/formance/formance_sdk/models/shared/V2TriggerOccurrence.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerOccurrence.java index ca82f60b9..87174a7d7 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerOccurrence.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerOccurrence.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,11 @@ public class V2TriggerOccurrence { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("workflowInstance") + private Optional v2WorkflowInstance; + + @JsonProperty("date") private OffsetDateTime date; @@ -37,35 +42,30 @@ public class V2TriggerOccurrence { private String triggerID; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("workflowInstance") - private Optional workflowInstance; - - @JsonInclude(Include.NON_ABSENT) @JsonProperty("workflowInstanceID") private Optional workflowInstanceID; @JsonCreator public V2TriggerOccurrence( + @JsonProperty("workflowInstance") Optional v2WorkflowInstance, @JsonProperty("date") OffsetDateTime date, @JsonProperty("error") Optional error, @JsonProperty("event") Map event, @JsonProperty("triggerID") String triggerID, - @JsonProperty("workflowInstance") Optional workflowInstance, @JsonProperty("workflowInstanceID") Optional workflowInstanceID) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); Utils.checkNotNull(date, "date"); Utils.checkNotNull(error, "error"); event = Utils.emptyMapIfNull(event); Utils.checkNotNull(event, "event"); Utils.checkNotNull(triggerID, "triggerID"); - Utils.checkNotNull(workflowInstance, "workflowInstance"); Utils.checkNotNull(workflowInstanceID, "workflowInstanceID"); + this.v2WorkflowInstance = v2WorkflowInstance; this.date = date; this.error = error; this.event = event; this.triggerID = triggerID; - this.workflowInstance = workflowInstance; this.workflowInstanceID = workflowInstanceID; } @@ -73,8 +73,14 @@ public V2TriggerOccurrence( OffsetDateTime date, Map event, String triggerID) { - this(date, Optional.empty(), event, - triggerID, Optional.empty(), Optional.empty()); + this(Optional.empty(), date, Optional.empty(), + event, triggerID, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2WorkflowInstance() { + return (Optional) v2WorkflowInstance; } @JsonIgnore @@ -97,12 +103,6 @@ public String triggerID() { return triggerID; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional workflowInstance() { - return (Optional) workflowInstance; - } - @JsonIgnore public Optional workflowInstanceID() { return workflowInstanceID; @@ -113,6 +113,19 @@ public static Builder builder() { } + public V2TriggerOccurrence withV2WorkflowInstance(V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = Optional.ofNullable(v2WorkflowInstance); + return this; + } + + + public V2TriggerOccurrence withV2WorkflowInstance(Optional v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + return this; + } + public V2TriggerOccurrence withDate(OffsetDateTime date) { Utils.checkNotNull(date, "date"); this.date = date; @@ -144,19 +157,6 @@ public V2TriggerOccurrence withTriggerID(String triggerID) { return this; } - public V2TriggerOccurrence withWorkflowInstance(V2WorkflowInstance workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = Optional.ofNullable(workflowInstance); - return this; - } - - - public V2TriggerOccurrence withWorkflowInstance(Optional workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = workflowInstance; - return this; - } - public V2TriggerOccurrence withWorkflowInstanceID(String workflowInstanceID) { Utils.checkNotNull(workflowInstanceID, "workflowInstanceID"); this.workflowInstanceID = Optional.ofNullable(workflowInstanceID); @@ -180,35 +180,37 @@ public boolean equals(java.lang.Object o) { } V2TriggerOccurrence other = (V2TriggerOccurrence) o; return + Utils.enhancedDeepEquals(this.v2WorkflowInstance, other.v2WorkflowInstance) && Utils.enhancedDeepEquals(this.date, other.date) && Utils.enhancedDeepEquals(this.error, other.error) && Utils.enhancedDeepEquals(this.event, other.event) && Utils.enhancedDeepEquals(this.triggerID, other.triggerID) && - Utils.enhancedDeepEquals(this.workflowInstance, other.workflowInstance) && Utils.enhancedDeepEquals(this.workflowInstanceID, other.workflowInstanceID); } @Override public int hashCode() { return Utils.enhancedHash( - date, error, event, - triggerID, workflowInstance, workflowInstanceID); + v2WorkflowInstance, date, error, + event, triggerID, workflowInstanceID); } @Override public String toString() { return Utils.toString(V2TriggerOccurrence.class, + "v2WorkflowInstance", v2WorkflowInstance, "date", date, "error", error, "event", event, "triggerID", triggerID, - "workflowInstance", workflowInstance, "workflowInstanceID", workflowInstanceID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional v2WorkflowInstance = Optional.empty(); + private OffsetDateTime date; private Optional error = Optional.empty(); @@ -217,8 +219,6 @@ public final static class Builder { private String triggerID; - private Optional workflowInstance = Optional.empty(); - private Optional workflowInstanceID = Optional.empty(); private Builder() { @@ -226,6 +226,19 @@ private Builder() { } + public Builder v2WorkflowInstance(V2WorkflowInstance v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = Optional.ofNullable(v2WorkflowInstance); + return this; + } + + public Builder v2WorkflowInstance(Optional v2WorkflowInstance) { + Utils.checkNotNull(v2WorkflowInstance, "v2WorkflowInstance"); + this.v2WorkflowInstance = v2WorkflowInstance; + return this; + } + + public Builder date(OffsetDateTime date) { Utils.checkNotNull(date, "date"); this.date = date; @@ -260,19 +273,6 @@ public Builder triggerID(String triggerID) { } - public Builder workflowInstance(V2WorkflowInstance workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = Optional.ofNullable(workflowInstance); - return this; - } - - public Builder workflowInstance(Optional workflowInstance) { - Utils.checkNotNull(workflowInstance, "workflowInstance"); - this.workflowInstance = workflowInstance; - return this; - } - - public Builder workflowInstanceID(String workflowInstanceID) { Utils.checkNotNull(workflowInstanceID, "workflowInstanceID"); this.workflowInstanceID = Optional.ofNullable(workflowInstanceID); @@ -288,8 +288,8 @@ public Builder workflowInstanceID(Optional workflowInstanceID) { public V2TriggerOccurrence build() { return new V2TriggerOccurrence( - date, error, event, - triggerID, workflowInstance, workflowInstanceID); + v2WorkflowInstance, date, error, + event, triggerID, workflowInstanceID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerTest.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerTest.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2TriggerTest.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerTest.java index 1bb010aba..97c5b9ee4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerTest.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2TriggerTest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Update.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Update.java new file mode 100644 index 000000000..1b62e24ce --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Update.java @@ -0,0 +1,113 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2Update { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("account") + private Optional v2UpdateAccount; + + @JsonCreator + public V2Update( + @JsonProperty("account") Optional v2UpdateAccount) { + Utils.checkNotNull(v2UpdateAccount, "v2UpdateAccount"); + this.v2UpdateAccount = v2UpdateAccount; + } + + public V2Update() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2UpdateAccount() { + return (Optional) v2UpdateAccount; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Update withV2UpdateAccount(V2UpdateAccount v2UpdateAccount) { + Utils.checkNotNull(v2UpdateAccount, "v2UpdateAccount"); + this.v2UpdateAccount = Optional.ofNullable(v2UpdateAccount); + return this; + } + + + public V2Update withV2UpdateAccount(Optional v2UpdateAccount) { + Utils.checkNotNull(v2UpdateAccount, "v2UpdateAccount"); + this.v2UpdateAccount = v2UpdateAccount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Update other = (V2Update) o; + return + Utils.enhancedDeepEquals(this.v2UpdateAccount, other.v2UpdateAccount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2UpdateAccount); + } + + @Override + public String toString() { + return Utils.toString(V2Update.class, + "v2UpdateAccount", v2UpdateAccount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2UpdateAccount = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2UpdateAccount(V2UpdateAccount v2UpdateAccount) { + Utils.checkNotNull(v2UpdateAccount, "v2UpdateAccount"); + this.v2UpdateAccount = Optional.ofNullable(v2UpdateAccount); + return this; + } + + public Builder v2UpdateAccount(Optional v2UpdateAccount) { + Utils.checkNotNull(v2UpdateAccount, "v2UpdateAccount"); + this.v2UpdateAccount = v2UpdateAccount; + return this; + } + + public V2Update build() { + + return new V2Update( + v2UpdateAccount); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2UpdateAccount.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2UpdateAccount.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V2UpdateAccount.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2UpdateAccount.java index 6e2ec5192..af4b712fd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2UpdateAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2UpdateAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2Volume.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Volume.java new file mode 100644 index 000000000..eb077f484 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Volume.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Optional; + + +public class V2Volume { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("input") + private BigInteger input; + + + @JsonProperty("output") + private BigInteger output; + + @JsonCreator + public V2Volume( + @JsonProperty("balance") Optional balance, + @JsonProperty("input") BigInteger input, + @JsonProperty("output") BigInteger output) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(output, "output"); + this.balance = balance; + this.input = input; + this.output = output; + } + + public V2Volume( + BigInteger input, + BigInteger output) { + this(Optional.empty(), input, output); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional balance() { + return (Optional) balance; + } + + @JsonIgnore + public BigInteger input() { + return input; + } + + @JsonIgnore + public BigInteger output() { + return output; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2Volume withBalance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public V2Volume withBalance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + + public V2Volume withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public V2Volume withInput(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public V2Volume withInput(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + public V2Volume withOutput(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public V2Volume withOutput(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2Volume other = (V2Volume) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.output, other.output); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, input, output); + } + + @Override + public String toString() { + return Utils.toString(V2Volume.class, + "balance", balance, + "input", input, + "output", output); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private BigInteger input; + + private BigInteger output; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder input(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Builder input(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + public Builder output(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Builder output(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + public V2Volume build() { + + return new V2Volume( + balance, input, output); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Wallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Wallet.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Wallet.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Wallet.java index b6317e881..a0ebf0014 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Wallet.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Wallet.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WalletSubject.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletSubject.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/V2WalletSubject.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletSubject.java index aa3fee95a..668ad66f1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WalletSubject.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletSubject.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -14,7 +14,7 @@ import java.util.Optional; -public class V2WalletSubject implements V2Subject { +public class V2WalletSubject { @JsonInclude(Include.NON_ABSENT) @JsonProperty("balance") @@ -58,9 +58,8 @@ public String identifier() { } @JsonIgnore - @Override public String type() { - return Utils.discriminatorToString(type); + return type; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalances.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalances.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalances.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalances.java index 2ecb08982..d94f53010 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalances.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalances.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalancesBalances.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalancesBalances.java new file mode 100644 index 000000000..31e2992ac --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WalletWithBalancesBalances.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V2WalletWithBalancesBalances { + + @JsonProperty("main") + private V2AssetHolder v2AssetHolder; + + @JsonCreator + public V2WalletWithBalancesBalances( + @JsonProperty("main") V2AssetHolder v2AssetHolder) { + Utils.checkNotNull(v2AssetHolder, "v2AssetHolder"); + this.v2AssetHolder = v2AssetHolder; + } + + @JsonIgnore + public V2AssetHolder v2AssetHolder() { + return v2AssetHolder; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2WalletWithBalancesBalances withV2AssetHolder(V2AssetHolder v2AssetHolder) { + Utils.checkNotNull(v2AssetHolder, "v2AssetHolder"); + this.v2AssetHolder = v2AssetHolder; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2WalletWithBalancesBalances other = (V2WalletWithBalancesBalances) o; + return + Utils.enhancedDeepEquals(this.v2AssetHolder, other.v2AssetHolder); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2AssetHolder); + } + + @Override + public String toString() { + return Utils.toString(V2WalletWithBalancesBalances.class, + "v2AssetHolder", v2AssetHolder); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2AssetHolder v2AssetHolder; + + private Builder() { + // force use of static builder() method + } + + + public Builder v2AssetHolder(V2AssetHolder v2AssetHolder) { + Utils.checkNotNull(v2AssetHolder, "v2AssetHolder"); + this.v2AssetHolder = v2AssetHolder; + return this; + } + + public V2WalletWithBalancesBalances build() { + + return new V2WalletWithBalancesBalances( + v2AssetHolder); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Workflow.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Workflow.java similarity index 77% rename from src/main/java/com/formance/formance_sdk/models/shared/V2Workflow.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2Workflow.java index 47310173b..eb8e01760 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Workflow.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2Workflow.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -15,7 +15,7 @@ public class V2Workflow { @JsonProperty("config") - private V2CreateWorkflowRequest config; + private V2WorkflowConfig v2WorkflowConfig; @JsonProperty("createdAt") @@ -31,23 +31,23 @@ public class V2Workflow { @JsonCreator public V2Workflow( - @JsonProperty("config") V2CreateWorkflowRequest config, + @JsonProperty("config") V2WorkflowConfig v2WorkflowConfig, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("id") String id, @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(config, "config"); + Utils.checkNotNull(v2WorkflowConfig, "v2WorkflowConfig"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(updatedAt, "updatedAt"); - this.config = config; + this.v2WorkflowConfig = v2WorkflowConfig; this.createdAt = createdAt; this.id = id; this.updatedAt = updatedAt; } @JsonIgnore - public V2CreateWorkflowRequest config() { - return config; + public V2WorkflowConfig v2WorkflowConfig() { + return v2WorkflowConfig; } @JsonIgnore @@ -70,9 +70,9 @@ public static Builder builder() { } - public V2Workflow withConfig(V2CreateWorkflowRequest config) { - Utils.checkNotNull(config, "config"); - this.config = config; + public V2Workflow withV2WorkflowConfig(V2WorkflowConfig v2WorkflowConfig) { + Utils.checkNotNull(v2WorkflowConfig, "v2WorkflowConfig"); + this.v2WorkflowConfig = v2WorkflowConfig; return this; } @@ -104,7 +104,7 @@ public boolean equals(java.lang.Object o) { } V2Workflow other = (V2Workflow) o; return - Utils.enhancedDeepEquals(this.config, other.config) && + Utils.enhancedDeepEquals(this.v2WorkflowConfig, other.v2WorkflowConfig) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); @@ -113,14 +113,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - config, createdAt, id, + v2WorkflowConfig, createdAt, id, updatedAt); } @Override public String toString() { return Utils.toString(V2Workflow.class, - "config", config, + "v2WorkflowConfig", v2WorkflowConfig, "createdAt", createdAt, "id", id, "updatedAt", updatedAt); @@ -129,7 +129,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private V2CreateWorkflowRequest config; + private V2WorkflowConfig v2WorkflowConfig; private OffsetDateTime createdAt; @@ -142,9 +142,9 @@ private Builder() { } - public Builder config(V2CreateWorkflowRequest config) { - Utils.checkNotNull(config, "config"); - this.config = config; + public Builder v2WorkflowConfig(V2WorkflowConfig v2WorkflowConfig) { + Utils.checkNotNull(v2WorkflowConfig, "v2WorkflowConfig"); + this.v2WorkflowConfig = v2WorkflowConfig; return this; } @@ -172,7 +172,7 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public V2Workflow build() { return new V2Workflow( - config, createdAt, id, + v2WorkflowConfig, createdAt, id, updatedAt); } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowConfig.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowConfig.java new file mode 100644 index 000000000..10336afc5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowConfig.java @@ -0,0 +1,144 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class V2WorkflowConfig { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + + @JsonProperty("stages") + private List> stages; + + @JsonCreator + public V2WorkflowConfig( + @JsonProperty("name") Optional name, + @JsonProperty("stages") List> stages) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(stages, "stages"); + this.name = name; + this.stages = stages; + } + + public V2WorkflowConfig( + List> stages) { + this(Optional.empty(), stages); + } + + @JsonIgnore + public Optional name() { + return name; + } + + @JsonIgnore + public List> stages() { + return stages; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2WorkflowConfig withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + public V2WorkflowConfig withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V2WorkflowConfig withStages(List> stages) { + Utils.checkNotNull(stages, "stages"); + this.stages = stages; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2WorkflowConfig other = (V2WorkflowConfig) o; + return + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.stages, other.stages); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name, stages); + } + + @Override + public String toString() { + return Utils.toString(V2WorkflowConfig.class, + "name", name, + "stages", stages); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private List> stages; + + private Builder() { + // force use of static builder() method + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder stages(List> stages) { + Utils.checkNotNull(stages, "stages"); + this.stages = stages; + return this; + } + + public V2WorkflowConfig build() { + + return new V2WorkflowConfig( + name, stages); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstance.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstance.java similarity index 85% rename from src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstance.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstance.java index a9b5d7076..585bc6844 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstance.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,11 @@ public class V2WorkflowInstance { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("workflow") + private Optional v2Workflow; + + @JsonProperty("createdAt") private OffsetDateTime createdAt; @@ -51,16 +56,12 @@ public class V2WorkflowInstance { private OffsetDateTime updatedAt; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("workflow") - private Optional workflow; - - @JsonProperty("workflowID") private String workflowID; @JsonCreator public V2WorkflowInstance( + @JsonProperty("workflow") Optional v2Workflow, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("error") Optional error, @JsonProperty("id") String id, @@ -68,8 +69,8 @@ public V2WorkflowInstance( @JsonProperty("terminated") boolean terminated, @JsonProperty("terminatedAt") Optional terminatedAt, @JsonProperty("updatedAt") OffsetDateTime updatedAt, - @JsonProperty("workflow") Optional workflow, @JsonProperty("workflowID") String workflowID) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(error, "error"); Utils.checkNotNull(id, "id"); @@ -77,8 +78,8 @@ public V2WorkflowInstance( Utils.checkNotNull(terminated, "terminated"); Utils.checkNotNull(terminatedAt, "terminatedAt"); Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(workflow, "workflow"); Utils.checkNotNull(workflowID, "workflowID"); + this.v2Workflow = v2Workflow; this.createdAt = createdAt; this.error = error; this.id = id; @@ -86,7 +87,6 @@ public V2WorkflowInstance( this.terminated = terminated; this.terminatedAt = terminatedAt; this.updatedAt = updatedAt; - this.workflow = workflow; this.workflowID = workflowID; } @@ -96,9 +96,15 @@ public V2WorkflowInstance( boolean terminated, OffsetDateTime updatedAt, String workflowID) { - this(createdAt, Optional.empty(), id, - Optional.empty(), terminated, Optional.empty(), - updatedAt, Optional.empty(), workflowID); + this(Optional.empty(), createdAt, Optional.empty(), + id, Optional.empty(), terminated, + Optional.empty(), updatedAt, workflowID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2Workflow() { + return (Optional) v2Workflow; } @JsonIgnore @@ -137,12 +143,6 @@ public OffsetDateTime updatedAt() { return updatedAt; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional workflow() { - return (Optional) workflow; - } - @JsonIgnore public String workflowID() { return workflowID; @@ -153,6 +153,19 @@ public static Builder builder() { } + public V2WorkflowInstance withV2Workflow(V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = Optional.ofNullable(v2Workflow); + return this; + } + + + public V2WorkflowInstance withV2Workflow(Optional v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + return this; + } + public V2WorkflowInstance withCreatedAt(OffsetDateTime createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; @@ -216,19 +229,6 @@ public V2WorkflowInstance withUpdatedAt(OffsetDateTime updatedAt) { return this; } - public V2WorkflowInstance withWorkflow(V2Workflow workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = Optional.ofNullable(workflow); - return this; - } - - - public V2WorkflowInstance withWorkflow(Optional workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = workflow; - return this; - } - public V2WorkflowInstance withWorkflowID(String workflowID) { Utils.checkNotNull(workflowID, "workflowID"); this.workflowID = workflowID; @@ -245,6 +245,7 @@ public boolean equals(java.lang.Object o) { } V2WorkflowInstance other = (V2WorkflowInstance) o; return + Utils.enhancedDeepEquals(this.v2Workflow, other.v2Workflow) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.error, other.error) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -252,21 +253,21 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.terminated, other.terminated) && Utils.enhancedDeepEquals(this.terminatedAt, other.terminatedAt) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) && - Utils.enhancedDeepEquals(this.workflow, other.workflow) && Utils.enhancedDeepEquals(this.workflowID, other.workflowID); } @Override public int hashCode() { return Utils.enhancedHash( - createdAt, error, id, - status, terminated, terminatedAt, - updatedAt, workflow, workflowID); + v2Workflow, createdAt, error, + id, status, terminated, + terminatedAt, updatedAt, workflowID); } @Override public String toString() { return Utils.toString(V2WorkflowInstance.class, + "v2Workflow", v2Workflow, "createdAt", createdAt, "error", error, "id", id, @@ -274,13 +275,14 @@ public String toString() { "terminated", terminated, "terminatedAt", terminatedAt, "updatedAt", updatedAt, - "workflow", workflow, "workflowID", workflowID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional v2Workflow = Optional.empty(); + private OffsetDateTime createdAt; private Optional error = Optional.empty(); @@ -295,8 +297,6 @@ public final static class Builder { private OffsetDateTime updatedAt; - private Optional workflow = Optional.empty(); - private String workflowID; private Builder() { @@ -304,6 +304,19 @@ private Builder() { } + public Builder v2Workflow(V2Workflow v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = Optional.ofNullable(v2Workflow); + return this; + } + + public Builder v2Workflow(Optional v2Workflow) { + Utils.checkNotNull(v2Workflow, "v2Workflow"); + this.v2Workflow = v2Workflow; + return this; + } + + public Builder createdAt(OffsetDateTime createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; @@ -371,19 +384,6 @@ public Builder updatedAt(OffsetDateTime updatedAt) { } - public Builder workflow(V2Workflow workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = Optional.ofNullable(workflow); - return this; - } - - public Builder workflow(Optional workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = workflow; - return this; - } - - public Builder workflowID(String workflowID) { Utils.checkNotNull(workflowID, "workflowID"); this.workflowID = workflowID; @@ -393,9 +393,9 @@ public Builder workflowID(String workflowID) { public V2WorkflowInstance build() { return new V2WorkflowInstance( - createdAt, error, id, - status, terminated, terminatedAt, - updatedAt, workflow, workflowID); + v2Workflow, createdAt, error, + id, status, terminated, + terminatedAt, updatedAt, workflowID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistory.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistory.java similarity index 89% rename from src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistory.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistory.java index e77b37e4d..c76070b30 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistory.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistory.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,15 +18,15 @@ public class V2WorkflowInstanceHistory { + @JsonProperty("input") + private V2Stage v2Stage; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("error") private Optional error; - @JsonProperty("input") - private V2Stage input; - - @JsonProperty("name") private String name; @@ -45,20 +45,20 @@ public class V2WorkflowInstanceHistory { @JsonCreator public V2WorkflowInstanceHistory( + @JsonProperty("input") V2Stage v2Stage, @JsonProperty("error") Optional error, - @JsonProperty("input") V2Stage input, @JsonProperty("name") String name, @JsonProperty("startedAt") OffsetDateTime startedAt, @JsonProperty("terminated") boolean terminated, @JsonProperty("terminatedAt") Optional terminatedAt) { + Utils.checkNotNull(v2Stage, "v2Stage"); Utils.checkNotNull(error, "error"); - Utils.checkNotNull(input, "input"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(startedAt, "startedAt"); Utils.checkNotNull(terminated, "terminated"); Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.v2Stage = v2Stage; this.error = error; - this.input = input; this.name = name; this.startedAt = startedAt; this.terminated = terminated; @@ -66,22 +66,22 @@ public V2WorkflowInstanceHistory( } public V2WorkflowInstanceHistory( - V2Stage input, + V2Stage v2Stage, String name, OffsetDateTime startedAt, boolean terminated) { - this(Optional.empty(), input, name, + this(v2Stage, Optional.empty(), name, startedAt, terminated, Optional.empty()); } @JsonIgnore - public Optional error() { - return error; + public V2Stage v2Stage() { + return v2Stage; } @JsonIgnore - public V2Stage input() { - return input; + public Optional error() { + return error; } @JsonIgnore @@ -109,6 +109,12 @@ public static Builder builder() { } + public V2WorkflowInstanceHistory withV2Stage(V2Stage v2Stage) { + Utils.checkNotNull(v2Stage, "v2Stage"); + this.v2Stage = v2Stage; + return this; + } + public V2WorkflowInstanceHistory withError(String error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); @@ -122,12 +128,6 @@ public V2WorkflowInstanceHistory withError(Optional error) { return this; } - public V2WorkflowInstanceHistory withInput(V2Stage input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - public V2WorkflowInstanceHistory withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -169,8 +169,8 @@ public boolean equals(java.lang.Object o) { } V2WorkflowInstanceHistory other = (V2WorkflowInstanceHistory) o; return + Utils.enhancedDeepEquals(this.v2Stage, other.v2Stage) && Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.input, other.input) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.startedAt, other.startedAt) && Utils.enhancedDeepEquals(this.terminated, other.terminated) && @@ -180,15 +180,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - error, input, name, + v2Stage, error, name, startedAt, terminated, terminatedAt); } @Override public String toString() { return Utils.toString(V2WorkflowInstanceHistory.class, + "v2Stage", v2Stage, "error", error, - "input", input, "name", name, "startedAt", startedAt, "terminated", terminated, @@ -198,9 +198,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional error = Optional.empty(); + private V2Stage v2Stage; - private V2Stage input; + private Optional error = Optional.empty(); private String name; @@ -215,6 +215,13 @@ private Builder() { } + public Builder v2Stage(V2Stage v2Stage) { + Utils.checkNotNull(v2Stage, "v2Stage"); + this.v2Stage = v2Stage; + return this; + } + + public Builder error(String error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); @@ -228,13 +235,6 @@ public Builder error(Optional error) { } - public Builder input(V2Stage input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -271,7 +271,7 @@ public Builder terminatedAt(Optional terminatedAt) { public V2WorkflowInstanceHistory build() { return new V2WorkflowInstanceHistory( - error, input, name, + v2Stage, error, name, startedAt, terminated, terminatedAt); } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStage.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStage.java new file mode 100644 index 000000000..ded6c8e6a --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStage.java @@ -0,0 +1,447 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class V2WorkflowInstanceHistoryStage { + + @JsonProperty("input") + private V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("output") + private Optional v2WorkflowInstanceHistoryStageOutput; + + + @JsonProperty("attempt") + private long attempt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private Optional error; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lastFailure") + private Optional lastFailure; + + + @JsonProperty("name") + private String name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("nextExecution") + private Optional nextExecution; + + + @JsonProperty("startedAt") + private OffsetDateTime startedAt; + + + @JsonProperty("terminated") + private boolean terminated; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("terminatedAt") + private Optional terminatedAt; + + @JsonCreator + public V2WorkflowInstanceHistoryStage( + @JsonProperty("input") V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput, + @JsonProperty("output") Optional v2WorkflowInstanceHistoryStageOutput, + @JsonProperty("attempt") long attempt, + @JsonProperty("error") Optional error, + @JsonProperty("lastFailure") Optional lastFailure, + @JsonProperty("name") String name, + @JsonProperty("nextExecution") Optional nextExecution, + @JsonProperty("startedAt") OffsetDateTime startedAt, + @JsonProperty("terminated") boolean terminated, + @JsonProperty("terminatedAt") Optional terminatedAt) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageInput, "v2WorkflowInstanceHistoryStageInput"); + Utils.checkNotNull(v2WorkflowInstanceHistoryStageOutput, "v2WorkflowInstanceHistoryStageOutput"); + Utils.checkNotNull(attempt, "attempt"); + Utils.checkNotNull(error, "error"); + Utils.checkNotNull(lastFailure, "lastFailure"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(nextExecution, "nextExecution"); + Utils.checkNotNull(startedAt, "startedAt"); + Utils.checkNotNull(terminated, "terminated"); + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.v2WorkflowInstanceHistoryStageInput = v2WorkflowInstanceHistoryStageInput; + this.v2WorkflowInstanceHistoryStageOutput = v2WorkflowInstanceHistoryStageOutput; + this.attempt = attempt; + this.error = error; + this.lastFailure = lastFailure; + this.name = name; + this.nextExecution = nextExecution; + this.startedAt = startedAt; + this.terminated = terminated; + this.terminatedAt = terminatedAt; + } + + public V2WorkflowInstanceHistoryStage( + V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput, + long attempt, + String name, + OffsetDateTime startedAt, + boolean terminated) { + this(v2WorkflowInstanceHistoryStageInput, Optional.empty(), attempt, + Optional.empty(), Optional.empty(), name, + Optional.empty(), startedAt, terminated, + Optional.empty()); + } + + @JsonIgnore + public V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput() { + return v2WorkflowInstanceHistoryStageInput; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2WorkflowInstanceHistoryStageOutput() { + return (Optional) v2WorkflowInstanceHistoryStageOutput; + } + + @JsonIgnore + public long attempt() { + return attempt; + } + + @JsonIgnore + public Optional error() { + return error; + } + + @JsonIgnore + public Optional lastFailure() { + return lastFailure; + } + + @JsonIgnore + public String name() { + return name; + } + + @JsonIgnore + public Optional nextExecution() { + return nextExecution; + } + + @JsonIgnore + public OffsetDateTime startedAt() { + return startedAt; + } + + @JsonIgnore + public boolean terminated() { + return terminated; + } + + @JsonIgnore + public Optional terminatedAt() { + return terminatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2WorkflowInstanceHistoryStage withV2WorkflowInstanceHistoryStageInput(V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageInput, "v2WorkflowInstanceHistoryStageInput"); + this.v2WorkflowInstanceHistoryStageInput = v2WorkflowInstanceHistoryStageInput; + return this; + } + + public V2WorkflowInstanceHistoryStage withV2WorkflowInstanceHistoryStageOutput(V2WorkflowInstanceHistoryStageOutput v2WorkflowInstanceHistoryStageOutput) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageOutput, "v2WorkflowInstanceHistoryStageOutput"); + this.v2WorkflowInstanceHistoryStageOutput = Optional.ofNullable(v2WorkflowInstanceHistoryStageOutput); + return this; + } + + + public V2WorkflowInstanceHistoryStage withV2WorkflowInstanceHistoryStageOutput(Optional v2WorkflowInstanceHistoryStageOutput) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageOutput, "v2WorkflowInstanceHistoryStageOutput"); + this.v2WorkflowInstanceHistoryStageOutput = v2WorkflowInstanceHistoryStageOutput; + return this; + } + + public V2WorkflowInstanceHistoryStage withAttempt(long attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + return this; + } + + public V2WorkflowInstanceHistoryStage withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + + public V2WorkflowInstanceHistoryStage withError(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public V2WorkflowInstanceHistoryStage withLastFailure(String lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = Optional.ofNullable(lastFailure); + return this; + } + + + public V2WorkflowInstanceHistoryStage withLastFailure(Optional lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = lastFailure; + return this; + } + + public V2WorkflowInstanceHistoryStage withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V2WorkflowInstanceHistoryStage withNextExecution(OffsetDateTime nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = Optional.ofNullable(nextExecution); + return this; + } + + + public V2WorkflowInstanceHistoryStage withNextExecution(Optional nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = nextExecution; + return this; + } + + public V2WorkflowInstanceHistoryStage withStartedAt(OffsetDateTime startedAt) { + Utils.checkNotNull(startedAt, "startedAt"); + this.startedAt = startedAt; + return this; + } + + public V2WorkflowInstanceHistoryStage withTerminated(boolean terminated) { + Utils.checkNotNull(terminated, "terminated"); + this.terminated = terminated; + return this; + } + + public V2WorkflowInstanceHistoryStage withTerminatedAt(OffsetDateTime terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = Optional.ofNullable(terminatedAt); + return this; + } + + + public V2WorkflowInstanceHistoryStage withTerminatedAt(Optional terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = terminatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2WorkflowInstanceHistoryStage other = (V2WorkflowInstanceHistoryStage) o; + return + Utils.enhancedDeepEquals(this.v2WorkflowInstanceHistoryStageInput, other.v2WorkflowInstanceHistoryStageInput) && + Utils.enhancedDeepEquals(this.v2WorkflowInstanceHistoryStageOutput, other.v2WorkflowInstanceHistoryStageOutput) && + Utils.enhancedDeepEquals(this.attempt, other.attempt) && + Utils.enhancedDeepEquals(this.error, other.error) && + Utils.enhancedDeepEquals(this.lastFailure, other.lastFailure) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.nextExecution, other.nextExecution) && + Utils.enhancedDeepEquals(this.startedAt, other.startedAt) && + Utils.enhancedDeepEquals(this.terminated, other.terminated) && + Utils.enhancedDeepEquals(this.terminatedAt, other.terminatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2WorkflowInstanceHistoryStageInput, v2WorkflowInstanceHistoryStageOutput, attempt, + error, lastFailure, name, + nextExecution, startedAt, terminated, + terminatedAt); + } + + @Override + public String toString() { + return Utils.toString(V2WorkflowInstanceHistoryStage.class, + "v2WorkflowInstanceHistoryStageInput", v2WorkflowInstanceHistoryStageInput, + "v2WorkflowInstanceHistoryStageOutput", v2WorkflowInstanceHistoryStageOutput, + "attempt", attempt, + "error", error, + "lastFailure", lastFailure, + "name", name, + "nextExecution", nextExecution, + "startedAt", startedAt, + "terminated", terminated, + "terminatedAt", terminatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput; + + private Optional v2WorkflowInstanceHistoryStageOutput = Optional.empty(); + + private Long attempt; + + private Optional error = Optional.empty(); + + private Optional lastFailure = Optional.empty(); + + private String name; + + private Optional nextExecution = Optional.empty(); + + private OffsetDateTime startedAt; + + private Boolean terminated; + + private Optional terminatedAt = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2WorkflowInstanceHistoryStageInput(V2WorkflowInstanceHistoryStageInput v2WorkflowInstanceHistoryStageInput) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageInput, "v2WorkflowInstanceHistoryStageInput"); + this.v2WorkflowInstanceHistoryStageInput = v2WorkflowInstanceHistoryStageInput; + return this; + } + + + public Builder v2WorkflowInstanceHistoryStageOutput(V2WorkflowInstanceHistoryStageOutput v2WorkflowInstanceHistoryStageOutput) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageOutput, "v2WorkflowInstanceHistoryStageOutput"); + this.v2WorkflowInstanceHistoryStageOutput = Optional.ofNullable(v2WorkflowInstanceHistoryStageOutput); + return this; + } + + public Builder v2WorkflowInstanceHistoryStageOutput(Optional v2WorkflowInstanceHistoryStageOutput) { + Utils.checkNotNull(v2WorkflowInstanceHistoryStageOutput, "v2WorkflowInstanceHistoryStageOutput"); + this.v2WorkflowInstanceHistoryStageOutput = v2WorkflowInstanceHistoryStageOutput; + return this; + } + + + public Builder attempt(long attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + public Builder error(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + + public Builder lastFailure(String lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = Optional.ofNullable(lastFailure); + return this; + } + + public Builder lastFailure(Optional lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = lastFailure; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder nextExecution(OffsetDateTime nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = Optional.ofNullable(nextExecution); + return this; + } + + public Builder nextExecution(Optional nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = nextExecution; + return this; + } + + + public Builder startedAt(OffsetDateTime startedAt) { + Utils.checkNotNull(startedAt, "startedAt"); + this.startedAt = startedAt; + return this; + } + + + public Builder terminated(boolean terminated) { + Utils.checkNotNull(terminated, "terminated"); + this.terminated = terminated; + return this; + } + + + public Builder terminatedAt(OffsetDateTime terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = Optional.ofNullable(terminatedAt); + return this; + } + + public Builder terminatedAt(Optional terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = terminatedAt; + return this; + } + + public V2WorkflowInstanceHistoryStage build() { + + return new V2WorkflowInstanceHistoryStage( + v2WorkflowInstanceHistoryStageInput, v2WorkflowInstanceHistoryStageOutput, attempt, + error, lastFailure, name, + nextExecution, startedAt, terminated, + terminatedAt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageInput.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageInput.java new file mode 100644 index 000000000..302d9218b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageInput.java @@ -0,0 +1,562 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2WorkflowInstanceHistoryStageInput { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("AddAccountMetadata") + private Optional v2ActivityAddAccountMetadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ConfirmHold") + private Optional v2ActivityConfirmHold; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("CreateTransaction") + private Optional v2ActivityCreateTransaction; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("CreditWallet") + private Optional v2ActivityCreditWallet; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("DebitWallet") + private Optional v2ActivityDebitWallet; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetAccount") + private Optional v2ActivityGetAccount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetPayment") + private Optional v2ActivityGetPayment; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetWallet") + private Optional v2ActivityGetWallet; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ListWallets") + private Optional v2ActivityListWallets; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("VoidHold") + private Optional v2ActivityVoidHold; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("StripeTransfer") + private Optional v2StripeTransferRequest; + + @JsonCreator + public V2WorkflowInstanceHistoryStageInput( + @JsonProperty("AddAccountMetadata") Optional v2ActivityAddAccountMetadata, + @JsonProperty("ConfirmHold") Optional v2ActivityConfirmHold, + @JsonProperty("CreateTransaction") Optional v2ActivityCreateTransaction, + @JsonProperty("CreditWallet") Optional v2ActivityCreditWallet, + @JsonProperty("DebitWallet") Optional v2ActivityDebitWallet, + @JsonProperty("GetAccount") Optional v2ActivityGetAccount, + @JsonProperty("GetPayment") Optional v2ActivityGetPayment, + @JsonProperty("GetWallet") Optional v2ActivityGetWallet, + @JsonProperty("ListWallets") Optional v2ActivityListWallets, + @JsonProperty("VoidHold") Optional v2ActivityVoidHold, + @JsonProperty("StripeTransfer") Optional v2StripeTransferRequest) { + Utils.checkNotNull(v2ActivityAddAccountMetadata, "v2ActivityAddAccountMetadata"); + Utils.checkNotNull(v2ActivityConfirmHold, "v2ActivityConfirmHold"); + Utils.checkNotNull(v2ActivityCreateTransaction, "v2ActivityCreateTransaction"); + Utils.checkNotNull(v2ActivityCreditWallet, "v2ActivityCreditWallet"); + Utils.checkNotNull(v2ActivityDebitWallet, "v2ActivityDebitWallet"); + Utils.checkNotNull(v2ActivityGetAccount, "v2ActivityGetAccount"); + Utils.checkNotNull(v2ActivityGetPayment, "v2ActivityGetPayment"); + Utils.checkNotNull(v2ActivityGetWallet, "v2ActivityGetWallet"); + Utils.checkNotNull(v2ActivityListWallets, "v2ActivityListWallets"); + Utils.checkNotNull(v2ActivityVoidHold, "v2ActivityVoidHold"); + Utils.checkNotNull(v2StripeTransferRequest, "v2StripeTransferRequest"); + this.v2ActivityAddAccountMetadata = v2ActivityAddAccountMetadata; + this.v2ActivityConfirmHold = v2ActivityConfirmHold; + this.v2ActivityCreateTransaction = v2ActivityCreateTransaction; + this.v2ActivityCreditWallet = v2ActivityCreditWallet; + this.v2ActivityDebitWallet = v2ActivityDebitWallet; + this.v2ActivityGetAccount = v2ActivityGetAccount; + this.v2ActivityGetPayment = v2ActivityGetPayment; + this.v2ActivityGetWallet = v2ActivityGetWallet; + this.v2ActivityListWallets = v2ActivityListWallets; + this.v2ActivityVoidHold = v2ActivityVoidHold; + this.v2StripeTransferRequest = v2StripeTransferRequest; + } + + public V2WorkflowInstanceHistoryStageInput() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityAddAccountMetadata() { + return (Optional) v2ActivityAddAccountMetadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityConfirmHold() { + return (Optional) v2ActivityConfirmHold; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityCreateTransaction() { + return (Optional) v2ActivityCreateTransaction; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityCreditWallet() { + return (Optional) v2ActivityCreditWallet; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityDebitWallet() { + return (Optional) v2ActivityDebitWallet; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityGetAccount() { + return (Optional) v2ActivityGetAccount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityGetPayment() { + return (Optional) v2ActivityGetPayment; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityGetWallet() { + return (Optional) v2ActivityGetWallet; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityListWallets() { + return (Optional) v2ActivityListWallets; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ActivityVoidHold() { + return (Optional) v2ActivityVoidHold; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2StripeTransferRequest() { + return (Optional) v2StripeTransferRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityAddAccountMetadata(V2ActivityAddAccountMetadata v2ActivityAddAccountMetadata) { + Utils.checkNotNull(v2ActivityAddAccountMetadata, "v2ActivityAddAccountMetadata"); + this.v2ActivityAddAccountMetadata = Optional.ofNullable(v2ActivityAddAccountMetadata); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityAddAccountMetadata(Optional v2ActivityAddAccountMetadata) { + Utils.checkNotNull(v2ActivityAddAccountMetadata, "v2ActivityAddAccountMetadata"); + this.v2ActivityAddAccountMetadata = v2ActivityAddAccountMetadata; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityConfirmHold(V2ActivityConfirmHold v2ActivityConfirmHold) { + Utils.checkNotNull(v2ActivityConfirmHold, "v2ActivityConfirmHold"); + this.v2ActivityConfirmHold = Optional.ofNullable(v2ActivityConfirmHold); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityConfirmHold(Optional v2ActivityConfirmHold) { + Utils.checkNotNull(v2ActivityConfirmHold, "v2ActivityConfirmHold"); + this.v2ActivityConfirmHold = v2ActivityConfirmHold; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityCreateTransaction(V2ActivityCreateTransaction v2ActivityCreateTransaction) { + Utils.checkNotNull(v2ActivityCreateTransaction, "v2ActivityCreateTransaction"); + this.v2ActivityCreateTransaction = Optional.ofNullable(v2ActivityCreateTransaction); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityCreateTransaction(Optional v2ActivityCreateTransaction) { + Utils.checkNotNull(v2ActivityCreateTransaction, "v2ActivityCreateTransaction"); + this.v2ActivityCreateTransaction = v2ActivityCreateTransaction; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityCreditWallet(V2ActivityCreditWallet v2ActivityCreditWallet) { + Utils.checkNotNull(v2ActivityCreditWallet, "v2ActivityCreditWallet"); + this.v2ActivityCreditWallet = Optional.ofNullable(v2ActivityCreditWallet); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityCreditWallet(Optional v2ActivityCreditWallet) { + Utils.checkNotNull(v2ActivityCreditWallet, "v2ActivityCreditWallet"); + this.v2ActivityCreditWallet = v2ActivityCreditWallet; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityDebitWallet(V2ActivityDebitWallet v2ActivityDebitWallet) { + Utils.checkNotNull(v2ActivityDebitWallet, "v2ActivityDebitWallet"); + this.v2ActivityDebitWallet = Optional.ofNullable(v2ActivityDebitWallet); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityDebitWallet(Optional v2ActivityDebitWallet) { + Utils.checkNotNull(v2ActivityDebitWallet, "v2ActivityDebitWallet"); + this.v2ActivityDebitWallet = v2ActivityDebitWallet; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityGetAccount(V2ActivityGetAccount v2ActivityGetAccount) { + Utils.checkNotNull(v2ActivityGetAccount, "v2ActivityGetAccount"); + this.v2ActivityGetAccount = Optional.ofNullable(v2ActivityGetAccount); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityGetAccount(Optional v2ActivityGetAccount) { + Utils.checkNotNull(v2ActivityGetAccount, "v2ActivityGetAccount"); + this.v2ActivityGetAccount = v2ActivityGetAccount; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityGetPayment(V2ActivityGetPayment v2ActivityGetPayment) { + Utils.checkNotNull(v2ActivityGetPayment, "v2ActivityGetPayment"); + this.v2ActivityGetPayment = Optional.ofNullable(v2ActivityGetPayment); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityGetPayment(Optional v2ActivityGetPayment) { + Utils.checkNotNull(v2ActivityGetPayment, "v2ActivityGetPayment"); + this.v2ActivityGetPayment = v2ActivityGetPayment; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityGetWallet(V2ActivityGetWallet v2ActivityGetWallet) { + Utils.checkNotNull(v2ActivityGetWallet, "v2ActivityGetWallet"); + this.v2ActivityGetWallet = Optional.ofNullable(v2ActivityGetWallet); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityGetWallet(Optional v2ActivityGetWallet) { + Utils.checkNotNull(v2ActivityGetWallet, "v2ActivityGetWallet"); + this.v2ActivityGetWallet = v2ActivityGetWallet; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityListWallets(V2ActivityListWallets v2ActivityListWallets) { + Utils.checkNotNull(v2ActivityListWallets, "v2ActivityListWallets"); + this.v2ActivityListWallets = Optional.ofNullable(v2ActivityListWallets); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityListWallets(Optional v2ActivityListWallets) { + Utils.checkNotNull(v2ActivityListWallets, "v2ActivityListWallets"); + this.v2ActivityListWallets = v2ActivityListWallets; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2ActivityVoidHold(V2ActivityVoidHold v2ActivityVoidHold) { + Utils.checkNotNull(v2ActivityVoidHold, "v2ActivityVoidHold"); + this.v2ActivityVoidHold = Optional.ofNullable(v2ActivityVoidHold); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2ActivityVoidHold(Optional v2ActivityVoidHold) { + Utils.checkNotNull(v2ActivityVoidHold, "v2ActivityVoidHold"); + this.v2ActivityVoidHold = v2ActivityVoidHold; + return this; + } + + public V2WorkflowInstanceHistoryStageInput withV2StripeTransferRequest(V2StripeTransferRequest v2StripeTransferRequest) { + Utils.checkNotNull(v2StripeTransferRequest, "v2StripeTransferRequest"); + this.v2StripeTransferRequest = Optional.ofNullable(v2StripeTransferRequest); + return this; + } + + + public V2WorkflowInstanceHistoryStageInput withV2StripeTransferRequest(Optional v2StripeTransferRequest) { + Utils.checkNotNull(v2StripeTransferRequest, "v2StripeTransferRequest"); + this.v2StripeTransferRequest = v2StripeTransferRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2WorkflowInstanceHistoryStageInput other = (V2WorkflowInstanceHistoryStageInput) o; + return + Utils.enhancedDeepEquals(this.v2ActivityAddAccountMetadata, other.v2ActivityAddAccountMetadata) && + Utils.enhancedDeepEquals(this.v2ActivityConfirmHold, other.v2ActivityConfirmHold) && + Utils.enhancedDeepEquals(this.v2ActivityCreateTransaction, other.v2ActivityCreateTransaction) && + Utils.enhancedDeepEquals(this.v2ActivityCreditWallet, other.v2ActivityCreditWallet) && + Utils.enhancedDeepEquals(this.v2ActivityDebitWallet, other.v2ActivityDebitWallet) && + Utils.enhancedDeepEquals(this.v2ActivityGetAccount, other.v2ActivityGetAccount) && + Utils.enhancedDeepEquals(this.v2ActivityGetPayment, other.v2ActivityGetPayment) && + Utils.enhancedDeepEquals(this.v2ActivityGetWallet, other.v2ActivityGetWallet) && + Utils.enhancedDeepEquals(this.v2ActivityListWallets, other.v2ActivityListWallets) && + Utils.enhancedDeepEquals(this.v2ActivityVoidHold, other.v2ActivityVoidHold) && + Utils.enhancedDeepEquals(this.v2StripeTransferRequest, other.v2StripeTransferRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2ActivityAddAccountMetadata, v2ActivityConfirmHold, v2ActivityCreateTransaction, + v2ActivityCreditWallet, v2ActivityDebitWallet, v2ActivityGetAccount, + v2ActivityGetPayment, v2ActivityGetWallet, v2ActivityListWallets, + v2ActivityVoidHold, v2StripeTransferRequest); + } + + @Override + public String toString() { + return Utils.toString(V2WorkflowInstanceHistoryStageInput.class, + "v2ActivityAddAccountMetadata", v2ActivityAddAccountMetadata, + "v2ActivityConfirmHold", v2ActivityConfirmHold, + "v2ActivityCreateTransaction", v2ActivityCreateTransaction, + "v2ActivityCreditWallet", v2ActivityCreditWallet, + "v2ActivityDebitWallet", v2ActivityDebitWallet, + "v2ActivityGetAccount", v2ActivityGetAccount, + "v2ActivityGetPayment", v2ActivityGetPayment, + "v2ActivityGetWallet", v2ActivityGetWallet, + "v2ActivityListWallets", v2ActivityListWallets, + "v2ActivityVoidHold", v2ActivityVoidHold, + "v2StripeTransferRequest", v2StripeTransferRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2ActivityAddAccountMetadata = Optional.empty(); + + private Optional v2ActivityConfirmHold = Optional.empty(); + + private Optional v2ActivityCreateTransaction = Optional.empty(); + + private Optional v2ActivityCreditWallet = Optional.empty(); + + private Optional v2ActivityDebitWallet = Optional.empty(); + + private Optional v2ActivityGetAccount = Optional.empty(); + + private Optional v2ActivityGetPayment = Optional.empty(); + + private Optional v2ActivityGetWallet = Optional.empty(); + + private Optional v2ActivityListWallets = Optional.empty(); + + private Optional v2ActivityVoidHold = Optional.empty(); + + private Optional v2StripeTransferRequest = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2ActivityAddAccountMetadata(V2ActivityAddAccountMetadata v2ActivityAddAccountMetadata) { + Utils.checkNotNull(v2ActivityAddAccountMetadata, "v2ActivityAddAccountMetadata"); + this.v2ActivityAddAccountMetadata = Optional.ofNullable(v2ActivityAddAccountMetadata); + return this; + } + + public Builder v2ActivityAddAccountMetadata(Optional v2ActivityAddAccountMetadata) { + Utils.checkNotNull(v2ActivityAddAccountMetadata, "v2ActivityAddAccountMetadata"); + this.v2ActivityAddAccountMetadata = v2ActivityAddAccountMetadata; + return this; + } + + + public Builder v2ActivityConfirmHold(V2ActivityConfirmHold v2ActivityConfirmHold) { + Utils.checkNotNull(v2ActivityConfirmHold, "v2ActivityConfirmHold"); + this.v2ActivityConfirmHold = Optional.ofNullable(v2ActivityConfirmHold); + return this; + } + + public Builder v2ActivityConfirmHold(Optional v2ActivityConfirmHold) { + Utils.checkNotNull(v2ActivityConfirmHold, "v2ActivityConfirmHold"); + this.v2ActivityConfirmHold = v2ActivityConfirmHold; + return this; + } + + + public Builder v2ActivityCreateTransaction(V2ActivityCreateTransaction v2ActivityCreateTransaction) { + Utils.checkNotNull(v2ActivityCreateTransaction, "v2ActivityCreateTransaction"); + this.v2ActivityCreateTransaction = Optional.ofNullable(v2ActivityCreateTransaction); + return this; + } + + public Builder v2ActivityCreateTransaction(Optional v2ActivityCreateTransaction) { + Utils.checkNotNull(v2ActivityCreateTransaction, "v2ActivityCreateTransaction"); + this.v2ActivityCreateTransaction = v2ActivityCreateTransaction; + return this; + } + + + public Builder v2ActivityCreditWallet(V2ActivityCreditWallet v2ActivityCreditWallet) { + Utils.checkNotNull(v2ActivityCreditWallet, "v2ActivityCreditWallet"); + this.v2ActivityCreditWallet = Optional.ofNullable(v2ActivityCreditWallet); + return this; + } + + public Builder v2ActivityCreditWallet(Optional v2ActivityCreditWallet) { + Utils.checkNotNull(v2ActivityCreditWallet, "v2ActivityCreditWallet"); + this.v2ActivityCreditWallet = v2ActivityCreditWallet; + return this; + } + + + public Builder v2ActivityDebitWallet(V2ActivityDebitWallet v2ActivityDebitWallet) { + Utils.checkNotNull(v2ActivityDebitWallet, "v2ActivityDebitWallet"); + this.v2ActivityDebitWallet = Optional.ofNullable(v2ActivityDebitWallet); + return this; + } + + public Builder v2ActivityDebitWallet(Optional v2ActivityDebitWallet) { + Utils.checkNotNull(v2ActivityDebitWallet, "v2ActivityDebitWallet"); + this.v2ActivityDebitWallet = v2ActivityDebitWallet; + return this; + } + + + public Builder v2ActivityGetAccount(V2ActivityGetAccount v2ActivityGetAccount) { + Utils.checkNotNull(v2ActivityGetAccount, "v2ActivityGetAccount"); + this.v2ActivityGetAccount = Optional.ofNullable(v2ActivityGetAccount); + return this; + } + + public Builder v2ActivityGetAccount(Optional v2ActivityGetAccount) { + Utils.checkNotNull(v2ActivityGetAccount, "v2ActivityGetAccount"); + this.v2ActivityGetAccount = v2ActivityGetAccount; + return this; + } + + + public Builder v2ActivityGetPayment(V2ActivityGetPayment v2ActivityGetPayment) { + Utils.checkNotNull(v2ActivityGetPayment, "v2ActivityGetPayment"); + this.v2ActivityGetPayment = Optional.ofNullable(v2ActivityGetPayment); + return this; + } + + public Builder v2ActivityGetPayment(Optional v2ActivityGetPayment) { + Utils.checkNotNull(v2ActivityGetPayment, "v2ActivityGetPayment"); + this.v2ActivityGetPayment = v2ActivityGetPayment; + return this; + } + + + public Builder v2ActivityGetWallet(V2ActivityGetWallet v2ActivityGetWallet) { + Utils.checkNotNull(v2ActivityGetWallet, "v2ActivityGetWallet"); + this.v2ActivityGetWallet = Optional.ofNullable(v2ActivityGetWallet); + return this; + } + + public Builder v2ActivityGetWallet(Optional v2ActivityGetWallet) { + Utils.checkNotNull(v2ActivityGetWallet, "v2ActivityGetWallet"); + this.v2ActivityGetWallet = v2ActivityGetWallet; + return this; + } + + + public Builder v2ActivityListWallets(V2ActivityListWallets v2ActivityListWallets) { + Utils.checkNotNull(v2ActivityListWallets, "v2ActivityListWallets"); + this.v2ActivityListWallets = Optional.ofNullable(v2ActivityListWallets); + return this; + } + + public Builder v2ActivityListWallets(Optional v2ActivityListWallets) { + Utils.checkNotNull(v2ActivityListWallets, "v2ActivityListWallets"); + this.v2ActivityListWallets = v2ActivityListWallets; + return this; + } + + + public Builder v2ActivityVoidHold(V2ActivityVoidHold v2ActivityVoidHold) { + Utils.checkNotNull(v2ActivityVoidHold, "v2ActivityVoidHold"); + this.v2ActivityVoidHold = Optional.ofNullable(v2ActivityVoidHold); + return this; + } + + public Builder v2ActivityVoidHold(Optional v2ActivityVoidHold) { + Utils.checkNotNull(v2ActivityVoidHold, "v2ActivityVoidHold"); + this.v2ActivityVoidHold = v2ActivityVoidHold; + return this; + } + + + public Builder v2StripeTransferRequest(V2StripeTransferRequest v2StripeTransferRequest) { + Utils.checkNotNull(v2StripeTransferRequest, "v2StripeTransferRequest"); + this.v2StripeTransferRequest = Optional.ofNullable(v2StripeTransferRequest); + return this; + } + + public Builder v2StripeTransferRequest(Optional v2StripeTransferRequest) { + Utils.checkNotNull(v2StripeTransferRequest, "v2StripeTransferRequest"); + this.v2StripeTransferRequest = v2StripeTransferRequest; + return this; + } + + public V2WorkflowInstanceHistoryStageInput build() { + + return new V2WorkflowInstanceHistoryStageInput( + v2ActivityAddAccountMetadata, v2ActivityConfirmHold, v2ActivityCreateTransaction, + v2ActivityCreditWallet, v2ActivityDebitWallet, v2ActivityGetAccount, + v2ActivityGetPayment, v2ActivityGetWallet, v2ActivityListWallets, + v2ActivityVoidHold, v2StripeTransferRequest); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageOutput.java b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageOutput.java new file mode 100644 index 000000000..e623ab71b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/V2WorkflowInstanceHistoryStageOutput.java @@ -0,0 +1,336 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class V2WorkflowInstanceHistoryStageOutput { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetAccount") + private Optional v2AccountResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("CreateTransaction") + private Optional v2CreateTransactionResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("DebitWallet") + private Optional v2DebitWalletResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetWallet") + private Optional v2GetWalletResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ListWallets") + private Optional v2ListWalletsResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetPayment") + private Optional v2PaymentResponse; + + @JsonCreator + public V2WorkflowInstanceHistoryStageOutput( + @JsonProperty("GetAccount") Optional v2AccountResponse, + @JsonProperty("CreateTransaction") Optional v2CreateTransactionResponse, + @JsonProperty("DebitWallet") Optional v2DebitWalletResponse, + @JsonProperty("GetWallet") Optional v2GetWalletResponse, + @JsonProperty("ListWallets") Optional v2ListWalletsResponse, + @JsonProperty("GetPayment") Optional v2PaymentResponse) { + Utils.checkNotNull(v2AccountResponse, "v2AccountResponse"); + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + Utils.checkNotNull(v2DebitWalletResponse, "v2DebitWalletResponse"); + Utils.checkNotNull(v2GetWalletResponse, "v2GetWalletResponse"); + Utils.checkNotNull(v2ListWalletsResponse, "v2ListWalletsResponse"); + Utils.checkNotNull(v2PaymentResponse, "v2PaymentResponse"); + this.v2AccountResponse = v2AccountResponse; + this.v2CreateTransactionResponse = v2CreateTransactionResponse; + this.v2DebitWalletResponse = v2DebitWalletResponse; + this.v2GetWalletResponse = v2GetWalletResponse; + this.v2ListWalletsResponse = v2ListWalletsResponse; + this.v2PaymentResponse = v2PaymentResponse; + } + + public V2WorkflowInstanceHistoryStageOutput() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2AccountResponse() { + return (Optional) v2AccountResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2CreateTransactionResponse() { + return (Optional) v2CreateTransactionResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2DebitWalletResponse() { + return (Optional) v2DebitWalletResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2GetWalletResponse() { + return (Optional) v2GetWalletResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2ListWalletsResponse() { + return (Optional) v2ListWalletsResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v2PaymentResponse() { + return (Optional) v2PaymentResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + public V2WorkflowInstanceHistoryStageOutput withV2AccountResponse(V2AccountResponse v2AccountResponse) { + Utils.checkNotNull(v2AccountResponse, "v2AccountResponse"); + this.v2AccountResponse = Optional.ofNullable(v2AccountResponse); + return this; + } + + + public V2WorkflowInstanceHistoryStageOutput withV2AccountResponse(Optional v2AccountResponse) { + Utils.checkNotNull(v2AccountResponse, "v2AccountResponse"); + this.v2AccountResponse = v2AccountResponse; + return this; + } + + public V2WorkflowInstanceHistoryStageOutput withV2CreateTransactionResponse(V2CreateTransactionResponse v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = Optional.ofNullable(v2CreateTransactionResponse); + return this; + } + + + public V2WorkflowInstanceHistoryStageOutput withV2CreateTransactionResponse(Optional v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = v2CreateTransactionResponse; + return this; + } + + public V2WorkflowInstanceHistoryStageOutput withV2DebitWalletResponse(V2DebitWalletResponse v2DebitWalletResponse) { + Utils.checkNotNull(v2DebitWalletResponse, "v2DebitWalletResponse"); + this.v2DebitWalletResponse = Optional.ofNullable(v2DebitWalletResponse); + return this; + } + + + public V2WorkflowInstanceHistoryStageOutput withV2DebitWalletResponse(Optional v2DebitWalletResponse) { + Utils.checkNotNull(v2DebitWalletResponse, "v2DebitWalletResponse"); + this.v2DebitWalletResponse = v2DebitWalletResponse; + return this; + } + + public V2WorkflowInstanceHistoryStageOutput withV2GetWalletResponse(V2GetWalletResponse v2GetWalletResponse) { + Utils.checkNotNull(v2GetWalletResponse, "v2GetWalletResponse"); + this.v2GetWalletResponse = Optional.ofNullable(v2GetWalletResponse); + return this; + } + + + public V2WorkflowInstanceHistoryStageOutput withV2GetWalletResponse(Optional v2GetWalletResponse) { + Utils.checkNotNull(v2GetWalletResponse, "v2GetWalletResponse"); + this.v2GetWalletResponse = v2GetWalletResponse; + return this; + } + + public V2WorkflowInstanceHistoryStageOutput withV2ListWalletsResponse(V2ListWalletsResponse v2ListWalletsResponse) { + Utils.checkNotNull(v2ListWalletsResponse, "v2ListWalletsResponse"); + this.v2ListWalletsResponse = Optional.ofNullable(v2ListWalletsResponse); + return this; + } + + + public V2WorkflowInstanceHistoryStageOutput withV2ListWalletsResponse(Optional v2ListWalletsResponse) { + Utils.checkNotNull(v2ListWalletsResponse, "v2ListWalletsResponse"); + this.v2ListWalletsResponse = v2ListWalletsResponse; + return this; + } + + public V2WorkflowInstanceHistoryStageOutput withV2PaymentResponse(V2PaymentResponse v2PaymentResponse) { + Utils.checkNotNull(v2PaymentResponse, "v2PaymentResponse"); + this.v2PaymentResponse = Optional.ofNullable(v2PaymentResponse); + return this; + } + + + public V2WorkflowInstanceHistoryStageOutput withV2PaymentResponse(Optional v2PaymentResponse) { + Utils.checkNotNull(v2PaymentResponse, "v2PaymentResponse"); + this.v2PaymentResponse = v2PaymentResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V2WorkflowInstanceHistoryStageOutput other = (V2WorkflowInstanceHistoryStageOutput) o; + return + Utils.enhancedDeepEquals(this.v2AccountResponse, other.v2AccountResponse) && + Utils.enhancedDeepEquals(this.v2CreateTransactionResponse, other.v2CreateTransactionResponse) && + Utils.enhancedDeepEquals(this.v2DebitWalletResponse, other.v2DebitWalletResponse) && + Utils.enhancedDeepEquals(this.v2GetWalletResponse, other.v2GetWalletResponse) && + Utils.enhancedDeepEquals(this.v2ListWalletsResponse, other.v2ListWalletsResponse) && + Utils.enhancedDeepEquals(this.v2PaymentResponse, other.v2PaymentResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v2AccountResponse, v2CreateTransactionResponse, v2DebitWalletResponse, + v2GetWalletResponse, v2ListWalletsResponse, v2PaymentResponse); + } + + @Override + public String toString() { + return Utils.toString(V2WorkflowInstanceHistoryStageOutput.class, + "v2AccountResponse", v2AccountResponse, + "v2CreateTransactionResponse", v2CreateTransactionResponse, + "v2DebitWalletResponse", v2DebitWalletResponse, + "v2GetWalletResponse", v2GetWalletResponse, + "v2ListWalletsResponse", v2ListWalletsResponse, + "v2PaymentResponse", v2PaymentResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v2AccountResponse = Optional.empty(); + + private Optional v2CreateTransactionResponse = Optional.empty(); + + private Optional v2DebitWalletResponse = Optional.empty(); + + private Optional v2GetWalletResponse = Optional.empty(); + + private Optional v2ListWalletsResponse = Optional.empty(); + + private Optional v2PaymentResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v2AccountResponse(V2AccountResponse v2AccountResponse) { + Utils.checkNotNull(v2AccountResponse, "v2AccountResponse"); + this.v2AccountResponse = Optional.ofNullable(v2AccountResponse); + return this; + } + + public Builder v2AccountResponse(Optional v2AccountResponse) { + Utils.checkNotNull(v2AccountResponse, "v2AccountResponse"); + this.v2AccountResponse = v2AccountResponse; + return this; + } + + + public Builder v2CreateTransactionResponse(V2CreateTransactionResponse v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = Optional.ofNullable(v2CreateTransactionResponse); + return this; + } + + public Builder v2CreateTransactionResponse(Optional v2CreateTransactionResponse) { + Utils.checkNotNull(v2CreateTransactionResponse, "v2CreateTransactionResponse"); + this.v2CreateTransactionResponse = v2CreateTransactionResponse; + return this; + } + + + public Builder v2DebitWalletResponse(V2DebitWalletResponse v2DebitWalletResponse) { + Utils.checkNotNull(v2DebitWalletResponse, "v2DebitWalletResponse"); + this.v2DebitWalletResponse = Optional.ofNullable(v2DebitWalletResponse); + return this; + } + + public Builder v2DebitWalletResponse(Optional v2DebitWalletResponse) { + Utils.checkNotNull(v2DebitWalletResponse, "v2DebitWalletResponse"); + this.v2DebitWalletResponse = v2DebitWalletResponse; + return this; + } + + + public Builder v2GetWalletResponse(V2GetWalletResponse v2GetWalletResponse) { + Utils.checkNotNull(v2GetWalletResponse, "v2GetWalletResponse"); + this.v2GetWalletResponse = Optional.ofNullable(v2GetWalletResponse); + return this; + } + + public Builder v2GetWalletResponse(Optional v2GetWalletResponse) { + Utils.checkNotNull(v2GetWalletResponse, "v2GetWalletResponse"); + this.v2GetWalletResponse = v2GetWalletResponse; + return this; + } + + + public Builder v2ListWalletsResponse(V2ListWalletsResponse v2ListWalletsResponse) { + Utils.checkNotNull(v2ListWalletsResponse, "v2ListWalletsResponse"); + this.v2ListWalletsResponse = Optional.ofNullable(v2ListWalletsResponse); + return this; + } + + public Builder v2ListWalletsResponse(Optional v2ListWalletsResponse) { + Utils.checkNotNull(v2ListWalletsResponse, "v2ListWalletsResponse"); + this.v2ListWalletsResponse = v2ListWalletsResponse; + return this; + } + + + public Builder v2PaymentResponse(V2PaymentResponse v2PaymentResponse) { + Utils.checkNotNull(v2PaymentResponse, "v2PaymentResponse"); + this.v2PaymentResponse = Optional.ofNullable(v2PaymentResponse); + return this; + } + + public Builder v2PaymentResponse(Optional v2PaymentResponse) { + Utils.checkNotNull(v2PaymentResponse, "v2PaymentResponse"); + this.v2PaymentResponse = v2PaymentResponse; + return this; + } + + public V2WorkflowInstanceHistoryStageOutput build() { + + return new V2WorkflowInstanceHistoryStageOutput( + v2AccountResponse, v2CreateTransactionResponse, v2DebitWalletResponse, + v2GetWalletResponse, v2ListWalletsResponse, v2PaymentResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Variables.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Variables.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Variables.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/Variables.java index cf348d3a2..e641ead4f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Variables.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Variables.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Volume.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Volume.java new file mode 100644 index 000000000..2e017f118 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Volume.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Optional; + + +public class Volume { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("input") + private BigInteger input; + + + @JsonProperty("output") + private BigInteger output; + + @JsonCreator + public Volume( + @JsonProperty("balance") Optional balance, + @JsonProperty("input") BigInteger input, + @JsonProperty("output") BigInteger output) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(output, "output"); + this.balance = balance; + this.input = input; + this.output = output; + } + + public Volume( + BigInteger input, + BigInteger output) { + this(Optional.empty(), input, output); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional balance() { + return (Optional) balance; + } + + @JsonIgnore + public BigInteger input() { + return input; + } + + @JsonIgnore + public BigInteger output() { + return output; + } + + public static Builder builder() { + return new Builder(); + } + + + public Volume withBalance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Volume withBalance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + + public Volume withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public Volume withInput(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Volume withInput(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + public Volume withOutput(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Volume withOutput(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Volume other = (Volume) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.output, other.output); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, input, output); + } + + @Override + public String toString() { + return Utils.toString(Volume.class, + "balance", balance, + "input", input, + "output", output); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private BigInteger input; + + private BigInteger output; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(long balance) { + this.balance = Optional.of(BigInteger.valueOf(balance)); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder input(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Builder input(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + public Builder output(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Builder output(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + public Volume build() { + + return new Volume( + balance, input, output); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/Wallet.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Wallet.java new file mode 100644 index 000000000..eb13ceb38 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Wallet.java @@ -0,0 +1,233 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Map; + + +public class Wallet { + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + /** + * The unique ID of the wallet. + */ + @JsonProperty("id") + private String id; + + + @JsonProperty("ledger") + private String ledger; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public Wallet( + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("id") String id, + @JsonProperty("ledger") String ledger, + @JsonProperty("metadata") Map metadata, + @JsonProperty("name") String name) { + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(name, "name"); + this.createdAt = createdAt; + this.id = id; + this.ledger = ledger; + this.metadata = metadata; + this.name = name; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + /** + * The unique ID of the wallet. + */ + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String ledger() { + return ledger; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public Wallet withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * The unique ID of the wallet. + */ + public Wallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Wallet withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public Wallet withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Wallet withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Wallet other = (Wallet) o; + return + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + createdAt, id, ledger, + metadata, name); + } + + @Override + public String toString() { + return Utils.toString(Wallet.class, + "createdAt", createdAt, + "id", id, + "ledger", ledger, + "metadata", metadata, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private OffsetDateTime createdAt; + + private String id; + + private String ledger; + + private Map metadata; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * The unique ID of the wallet. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Wallet build() { + + return new Wallet( + createdAt, id, ledger, + metadata, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WalletSubject.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WalletSubject.java new file mode 100644 index 000000000..37b2d625d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WalletSubject.java @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class WalletSubject { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("identifier") + private String identifier; + + + @JsonProperty("type") + private String type; + + @JsonCreator + public WalletSubject( + @JsonProperty("balance") Optional balance, + @JsonProperty("identifier") String identifier, + @JsonProperty("type") String type) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(type, "type"); + this.balance = balance; + this.identifier = identifier; + this.type = type; + } + + public WalletSubject( + String identifier, + String type) { + this(Optional.empty(), identifier, type); + } + + @JsonIgnore + public Optional balance() { + return balance; + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletSubject withBalance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + public WalletSubject withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public WalletSubject withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public WalletSubject withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletSubject other = (WalletSubject) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.identifier, other.identifier) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, identifier, type); + } + + @Override + public String toString() { + return Utils.toString(WalletSubject.class, + "balance", balance, + "identifier", identifier, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private String identifier; + + private String type; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public WalletSubject build() { + + return new WalletSubject( + balance, identifier, type); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalances.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalances.java new file mode 100644 index 000000000..d68816baa --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalances.java @@ -0,0 +1,262 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Map; + + +public class WalletWithBalances { + + @JsonProperty("balances") + private WalletWithBalancesBalances balances; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + /** + * The unique ID of the wallet. + */ + @JsonProperty("id") + private String id; + + + @JsonProperty("ledger") + private String ledger; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public WalletWithBalances( + @JsonProperty("balances") WalletWithBalancesBalances balances, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("id") String id, + @JsonProperty("ledger") String ledger, + @JsonProperty("metadata") Map metadata, + @JsonProperty("name") String name) { + Utils.checkNotNull(balances, "balances"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(name, "name"); + this.balances = balances; + this.createdAt = createdAt; + this.id = id; + this.ledger = ledger; + this.metadata = metadata; + this.name = name; + } + + @JsonIgnore + public WalletWithBalancesBalances balances() { + return balances; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + /** + * The unique ID of the wallet. + */ + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String ledger() { + return ledger; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletWithBalances withBalances(WalletWithBalancesBalances balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + public WalletWithBalances withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * The unique ID of the wallet. + */ + public WalletWithBalances withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public WalletWithBalances withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public WalletWithBalances withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public WalletWithBalances withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletWithBalances other = (WalletWithBalances) o; + return + Utils.enhancedDeepEquals(this.balances, other.balances) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balances, createdAt, id, + ledger, metadata, name); + } + + @Override + public String toString() { + return Utils.toString(WalletWithBalances.class, + "balances", balances, + "createdAt", createdAt, + "id", id, + "ledger", ledger, + "metadata", metadata, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WalletWithBalancesBalances balances; + + private OffsetDateTime createdAt; + + private String id; + + private String ledger; + + private Map metadata; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder balances(WalletWithBalancesBalances balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * The unique ID of the wallet. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public WalletWithBalances build() { + + return new WalletWithBalances( + balances, createdAt, id, + ledger, metadata, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalancesBalances.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalancesBalances.java new file mode 100644 index 000000000..35394de0c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WalletWithBalancesBalances.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class WalletWithBalancesBalances { + + @JsonProperty("main") + private AssetHolder assetHolder; + + @JsonCreator + public WalletWithBalancesBalances( + @JsonProperty("main") AssetHolder assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + } + + @JsonIgnore + public AssetHolder assetHolder() { + return assetHolder; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletWithBalancesBalances withAssetHolder(AssetHolder assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletWithBalancesBalances other = (WalletWithBalancesBalances) o; + return + Utils.enhancedDeepEquals(this.assetHolder, other.assetHolder); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assetHolder); + } + + @Override + public String toString() { + return Utils.toString(WalletWithBalancesBalances.class, + "assetHolder", assetHolder); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private AssetHolder assetHolder; + + private Builder() { + // force use of static builder() method + } + + + public Builder assetHolder(AssetHolder assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + public WalletWithBalancesBalances build() { + + return new WalletWithBalancesBalances( + assetHolder); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Workflow.java b/src/main/java/com/formance/formance_sdk/models/orchestration/Workflow.java similarity index 78% rename from src/main/java/com/formance/formance_sdk/models/shared/Workflow.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/Workflow.java index d73e095e0..e06971e96 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Workflow.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/Workflow.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -15,7 +15,7 @@ public class Workflow { @JsonProperty("config") - private CreateWorkflowRequest config; + private WorkflowConfig workflowConfig; @JsonProperty("createdAt") @@ -31,23 +31,23 @@ public class Workflow { @JsonCreator public Workflow( - @JsonProperty("config") CreateWorkflowRequest config, + @JsonProperty("config") WorkflowConfig workflowConfig, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("id") String id, @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(config, "config"); + Utils.checkNotNull(workflowConfig, "workflowConfig"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(updatedAt, "updatedAt"); - this.config = config; + this.workflowConfig = workflowConfig; this.createdAt = createdAt; this.id = id; this.updatedAt = updatedAt; } @JsonIgnore - public CreateWorkflowRequest config() { - return config; + public WorkflowConfig workflowConfig() { + return workflowConfig; } @JsonIgnore @@ -70,9 +70,9 @@ public static Builder builder() { } - public Workflow withConfig(CreateWorkflowRequest config) { - Utils.checkNotNull(config, "config"); - this.config = config; + public Workflow withWorkflowConfig(WorkflowConfig workflowConfig) { + Utils.checkNotNull(workflowConfig, "workflowConfig"); + this.workflowConfig = workflowConfig; return this; } @@ -104,7 +104,7 @@ public boolean equals(java.lang.Object o) { } Workflow other = (Workflow) o; return - Utils.enhancedDeepEquals(this.config, other.config) && + Utils.enhancedDeepEquals(this.workflowConfig, other.workflowConfig) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); @@ -113,14 +113,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - config, createdAt, id, + workflowConfig, createdAt, id, updatedAt); } @Override public String toString() { return Utils.toString(Workflow.class, - "config", config, + "workflowConfig", workflowConfig, "createdAt", createdAt, "id", id, "updatedAt", updatedAt); @@ -129,7 +129,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private CreateWorkflowRequest config; + private WorkflowConfig workflowConfig; private OffsetDateTime createdAt; @@ -142,9 +142,9 @@ private Builder() { } - public Builder config(CreateWorkflowRequest config) { - Utils.checkNotNull(config, "config"); - this.config = config; + public Builder workflowConfig(WorkflowConfig workflowConfig) { + Utils.checkNotNull(workflowConfig, "workflowConfig"); + this.workflowConfig = workflowConfig; return this; } @@ -172,7 +172,7 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public Workflow build() { return new Workflow( - config, createdAt, id, + workflowConfig, createdAt, id, updatedAt); } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowConfig.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowConfig.java new file mode 100644 index 000000000..230fc6c3d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowConfig.java @@ -0,0 +1,144 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class WorkflowConfig { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private Optional name; + + + @JsonProperty("stages") + private List> stages; + + @JsonCreator + public WorkflowConfig( + @JsonProperty("name") Optional name, + @JsonProperty("stages") List> stages) { + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(stages, "stages"); + this.name = name; + this.stages = stages; + } + + public WorkflowConfig( + List> stages) { + this(Optional.empty(), stages); + } + + @JsonIgnore + public Optional name() { + return name; + } + + @JsonIgnore + public List> stages() { + return stages; + } + + public static Builder builder() { + return new Builder(); + } + + + public WorkflowConfig withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + + public WorkflowConfig withName(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public WorkflowConfig withStages(List> stages) { + Utils.checkNotNull(stages, "stages"); + this.stages = stages; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowConfig other = (WorkflowConfig) o; + return + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.stages, other.stages); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + name, stages); + } + + @Override + public String toString() { + return Utils.toString(WorkflowConfig.class, + "name", name, + "stages", stages); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional name = Optional.empty(); + + private List> stages; + + private Builder() { + // force use of static builder() method + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = Optional.ofNullable(name); + return this; + } + + public Builder name(Optional name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder stages(List> stages) { + Utils.checkNotNull(stages, "stages"); + this.stages = stages; + return this; + } + + public WorkflowConfig build() { + + return new WorkflowConfig( + name, stages); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstance.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstance.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstance.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstance.java index 01140345c..a9fa6c453 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstance.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,11 @@ public class WorkflowInstance { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("workflow") + private Optional workflow; + + @JsonProperty("createdAt") private OffsetDateTime createdAt; @@ -51,16 +56,12 @@ public class WorkflowInstance { private OffsetDateTime updatedAt; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("workflow") - private Optional workflow; - - @JsonProperty("workflowID") private String workflowID; @JsonCreator public WorkflowInstance( + @JsonProperty("workflow") Optional workflow, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("error") Optional error, @JsonProperty("id") String id, @@ -68,8 +69,8 @@ public WorkflowInstance( @JsonProperty("terminated") boolean terminated, @JsonProperty("terminatedAt") Optional terminatedAt, @JsonProperty("updatedAt") OffsetDateTime updatedAt, - @JsonProperty("workflow") Optional workflow, @JsonProperty("workflowID") String workflowID) { + Utils.checkNotNull(workflow, "workflow"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(error, "error"); Utils.checkNotNull(id, "id"); @@ -77,8 +78,8 @@ public WorkflowInstance( Utils.checkNotNull(terminated, "terminated"); Utils.checkNotNull(terminatedAt, "terminatedAt"); Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(workflow, "workflow"); Utils.checkNotNull(workflowID, "workflowID"); + this.workflow = workflow; this.createdAt = createdAt; this.error = error; this.id = id; @@ -86,7 +87,6 @@ public WorkflowInstance( this.terminated = terminated; this.terminatedAt = terminatedAt; this.updatedAt = updatedAt; - this.workflow = workflow; this.workflowID = workflowID; } @@ -96,9 +96,15 @@ public WorkflowInstance( boolean terminated, OffsetDateTime updatedAt, String workflowID) { - this(createdAt, Optional.empty(), id, - Optional.empty(), terminated, Optional.empty(), - updatedAt, Optional.empty(), workflowID); + this(Optional.empty(), createdAt, Optional.empty(), + id, Optional.empty(), terminated, + Optional.empty(), updatedAt, workflowID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workflow() { + return (Optional) workflow; } @JsonIgnore @@ -137,12 +143,6 @@ public OffsetDateTime updatedAt() { return updatedAt; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional workflow() { - return (Optional) workflow; - } - @JsonIgnore public String workflowID() { return workflowID; @@ -153,6 +153,19 @@ public static Builder builder() { } + public WorkflowInstance withWorkflow(Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = Optional.ofNullable(workflow); + return this; + } + + + public WorkflowInstance withWorkflow(Optional workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + return this; + } + public WorkflowInstance withCreatedAt(OffsetDateTime createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; @@ -216,19 +229,6 @@ public WorkflowInstance withUpdatedAt(OffsetDateTime updatedAt) { return this; } - public WorkflowInstance withWorkflow(Workflow workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = Optional.ofNullable(workflow); - return this; - } - - - public WorkflowInstance withWorkflow(Optional workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = workflow; - return this; - } - public WorkflowInstance withWorkflowID(String workflowID) { Utils.checkNotNull(workflowID, "workflowID"); this.workflowID = workflowID; @@ -245,6 +245,7 @@ public boolean equals(java.lang.Object o) { } WorkflowInstance other = (WorkflowInstance) o; return + Utils.enhancedDeepEquals(this.workflow, other.workflow) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.error, other.error) && Utils.enhancedDeepEquals(this.id, other.id) && @@ -252,21 +253,21 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.terminated, other.terminated) && Utils.enhancedDeepEquals(this.terminatedAt, other.terminatedAt) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) && - Utils.enhancedDeepEquals(this.workflow, other.workflow) && Utils.enhancedDeepEquals(this.workflowID, other.workflowID); } @Override public int hashCode() { return Utils.enhancedHash( - createdAt, error, id, - status, terminated, terminatedAt, - updatedAt, workflow, workflowID); + workflow, createdAt, error, + id, status, terminated, + terminatedAt, updatedAt, workflowID); } @Override public String toString() { return Utils.toString(WorkflowInstance.class, + "workflow", workflow, "createdAt", createdAt, "error", error, "id", id, @@ -274,13 +275,14 @@ public String toString() { "terminated", terminated, "terminatedAt", terminatedAt, "updatedAt", updatedAt, - "workflow", workflow, "workflowID", workflowID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional workflow = Optional.empty(); + private OffsetDateTime createdAt; private Optional error = Optional.empty(); @@ -295,8 +297,6 @@ public final static class Builder { private OffsetDateTime updatedAt; - private Optional workflow = Optional.empty(); - private String workflowID; private Builder() { @@ -304,6 +304,19 @@ private Builder() { } + public Builder workflow(Workflow workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = Optional.ofNullable(workflow); + return this; + } + + public Builder workflow(Optional workflow) { + Utils.checkNotNull(workflow, "workflow"); + this.workflow = workflow; + return this; + } + + public Builder createdAt(OffsetDateTime createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; @@ -371,19 +384,6 @@ public Builder updatedAt(OffsetDateTime updatedAt) { } - public Builder workflow(Workflow workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = Optional.ofNullable(workflow); - return this; - } - - public Builder workflow(Optional workflow) { - Utils.checkNotNull(workflow, "workflow"); - this.workflow = workflow; - return this; - } - - public Builder workflowID(String workflowID) { Utils.checkNotNull(workflowID, "workflowID"); this.workflowID = workflowID; @@ -393,9 +393,9 @@ public Builder workflowID(String workflowID) { public WorkflowInstance build() { return new WorkflowInstance( - createdAt, error, id, - status, terminated, terminatedAt, - updatedAt, workflow, workflowID); + workflow, createdAt, error, + id, status, terminated, + terminatedAt, updatedAt, workflowID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistory.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistory.java similarity index 90% rename from src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistory.java rename to src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistory.java index 74763fa50..ae394d2eb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistory.java +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistory.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.orchestration; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,15 +18,15 @@ public class WorkflowInstanceHistory { + @JsonProperty("input") + private Stage stage; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("error") private Optional error; - @JsonProperty("input") - private Stage input; - - @JsonProperty("name") private String name; @@ -45,20 +45,20 @@ public class WorkflowInstanceHistory { @JsonCreator public WorkflowInstanceHistory( + @JsonProperty("input") Stage stage, @JsonProperty("error") Optional error, - @JsonProperty("input") Stage input, @JsonProperty("name") String name, @JsonProperty("startedAt") OffsetDateTime startedAt, @JsonProperty("terminated") boolean terminated, @JsonProperty("terminatedAt") Optional terminatedAt) { + Utils.checkNotNull(stage, "stage"); Utils.checkNotNull(error, "error"); - Utils.checkNotNull(input, "input"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(startedAt, "startedAt"); Utils.checkNotNull(terminated, "terminated"); Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.stage = stage; this.error = error; - this.input = input; this.name = name; this.startedAt = startedAt; this.terminated = terminated; @@ -66,22 +66,22 @@ public WorkflowInstanceHistory( } public WorkflowInstanceHistory( - Stage input, + Stage stage, String name, OffsetDateTime startedAt, boolean terminated) { - this(Optional.empty(), input, name, + this(stage, Optional.empty(), name, startedAt, terminated, Optional.empty()); } @JsonIgnore - public Optional error() { - return error; + public Stage stage() { + return stage; } @JsonIgnore - public Stage input() { - return input; + public Optional error() { + return error; } @JsonIgnore @@ -109,6 +109,12 @@ public static Builder builder() { } + public WorkflowInstanceHistory withStage(Stage stage) { + Utils.checkNotNull(stage, "stage"); + this.stage = stage; + return this; + } + public WorkflowInstanceHistory withError(String error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); @@ -122,12 +128,6 @@ public WorkflowInstanceHistory withError(Optional error) { return this; } - public WorkflowInstanceHistory withInput(Stage input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - public WorkflowInstanceHistory withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -169,8 +169,8 @@ public boolean equals(java.lang.Object o) { } WorkflowInstanceHistory other = (WorkflowInstanceHistory) o; return + Utils.enhancedDeepEquals(this.stage, other.stage) && Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.input, other.input) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.startedAt, other.startedAt) && Utils.enhancedDeepEquals(this.terminated, other.terminated) && @@ -180,15 +180,15 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - error, input, name, + stage, error, name, startedAt, terminated, terminatedAt); } @Override public String toString() { return Utils.toString(WorkflowInstanceHistory.class, + "stage", stage, "error", error, - "input", input, "name", name, "startedAt", startedAt, "terminated", terminated, @@ -198,9 +198,9 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional error = Optional.empty(); + private Stage stage; - private Stage input; + private Optional error = Optional.empty(); private String name; @@ -215,6 +215,13 @@ private Builder() { } + public Builder stage(Stage stage) { + Utils.checkNotNull(stage, "stage"); + this.stage = stage; + return this; + } + + public Builder error(String error) { Utils.checkNotNull(error, "error"); this.error = Optional.ofNullable(error); @@ -228,13 +235,6 @@ public Builder error(Optional error) { } - public Builder input(Stage input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -271,7 +271,7 @@ public Builder terminatedAt(Optional terminatedAt) { public WorkflowInstanceHistory build() { return new WorkflowInstanceHistory( - error, input, name, + stage, error, name, startedAt, terminated, terminatedAt); } diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStage.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStage.java new file mode 100644 index 000000000..79202cbdc --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStage.java @@ -0,0 +1,447 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Optional; + + +public class WorkflowInstanceHistoryStage { + + @JsonProperty("input") + private WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("output") + private Optional workflowInstanceHistoryStageOutput; + + + @JsonProperty("attempt") + private long attempt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private Optional error; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("lastFailure") + private Optional lastFailure; + + + @JsonProperty("name") + private String name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("nextExecution") + private Optional nextExecution; + + + @JsonProperty("startedAt") + private OffsetDateTime startedAt; + + + @JsonProperty("terminated") + private boolean terminated; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("terminatedAt") + private Optional terminatedAt; + + @JsonCreator + public WorkflowInstanceHistoryStage( + @JsonProperty("input") WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput, + @JsonProperty("output") Optional workflowInstanceHistoryStageOutput, + @JsonProperty("attempt") long attempt, + @JsonProperty("error") Optional error, + @JsonProperty("lastFailure") Optional lastFailure, + @JsonProperty("name") String name, + @JsonProperty("nextExecution") Optional nextExecution, + @JsonProperty("startedAt") OffsetDateTime startedAt, + @JsonProperty("terminated") boolean terminated, + @JsonProperty("terminatedAt") Optional terminatedAt) { + Utils.checkNotNull(workflowInstanceHistoryStageInput, "workflowInstanceHistoryStageInput"); + Utils.checkNotNull(workflowInstanceHistoryStageOutput, "workflowInstanceHistoryStageOutput"); + Utils.checkNotNull(attempt, "attempt"); + Utils.checkNotNull(error, "error"); + Utils.checkNotNull(lastFailure, "lastFailure"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(nextExecution, "nextExecution"); + Utils.checkNotNull(startedAt, "startedAt"); + Utils.checkNotNull(terminated, "terminated"); + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.workflowInstanceHistoryStageInput = workflowInstanceHistoryStageInput; + this.workflowInstanceHistoryStageOutput = workflowInstanceHistoryStageOutput; + this.attempt = attempt; + this.error = error; + this.lastFailure = lastFailure; + this.name = name; + this.nextExecution = nextExecution; + this.startedAt = startedAt; + this.terminated = terminated; + this.terminatedAt = terminatedAt; + } + + public WorkflowInstanceHistoryStage( + WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput, + long attempt, + String name, + OffsetDateTime startedAt, + boolean terminated) { + this(workflowInstanceHistoryStageInput, Optional.empty(), attempt, + Optional.empty(), Optional.empty(), name, + Optional.empty(), startedAt, terminated, + Optional.empty()); + } + + @JsonIgnore + public WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput() { + return workflowInstanceHistoryStageInput; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional workflowInstanceHistoryStageOutput() { + return (Optional) workflowInstanceHistoryStageOutput; + } + + @JsonIgnore + public long attempt() { + return attempt; + } + + @JsonIgnore + public Optional error() { + return error; + } + + @JsonIgnore + public Optional lastFailure() { + return lastFailure; + } + + @JsonIgnore + public String name() { + return name; + } + + @JsonIgnore + public Optional nextExecution() { + return nextExecution; + } + + @JsonIgnore + public OffsetDateTime startedAt() { + return startedAt; + } + + @JsonIgnore + public boolean terminated() { + return terminated; + } + + @JsonIgnore + public Optional terminatedAt() { + return terminatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + public WorkflowInstanceHistoryStage withWorkflowInstanceHistoryStageInput(WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput) { + Utils.checkNotNull(workflowInstanceHistoryStageInput, "workflowInstanceHistoryStageInput"); + this.workflowInstanceHistoryStageInput = workflowInstanceHistoryStageInput; + return this; + } + + public WorkflowInstanceHistoryStage withWorkflowInstanceHistoryStageOutput(WorkflowInstanceHistoryStageOutput workflowInstanceHistoryStageOutput) { + Utils.checkNotNull(workflowInstanceHistoryStageOutput, "workflowInstanceHistoryStageOutput"); + this.workflowInstanceHistoryStageOutput = Optional.ofNullable(workflowInstanceHistoryStageOutput); + return this; + } + + + public WorkflowInstanceHistoryStage withWorkflowInstanceHistoryStageOutput(Optional workflowInstanceHistoryStageOutput) { + Utils.checkNotNull(workflowInstanceHistoryStageOutput, "workflowInstanceHistoryStageOutput"); + this.workflowInstanceHistoryStageOutput = workflowInstanceHistoryStageOutput; + return this; + } + + public WorkflowInstanceHistoryStage withAttempt(long attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + return this; + } + + public WorkflowInstanceHistoryStage withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + + public WorkflowInstanceHistoryStage withError(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public WorkflowInstanceHistoryStage withLastFailure(String lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = Optional.ofNullable(lastFailure); + return this; + } + + + public WorkflowInstanceHistoryStage withLastFailure(Optional lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = lastFailure; + return this; + } + + public WorkflowInstanceHistoryStage withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public WorkflowInstanceHistoryStage withNextExecution(OffsetDateTime nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = Optional.ofNullable(nextExecution); + return this; + } + + + public WorkflowInstanceHistoryStage withNextExecution(Optional nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = nextExecution; + return this; + } + + public WorkflowInstanceHistoryStage withStartedAt(OffsetDateTime startedAt) { + Utils.checkNotNull(startedAt, "startedAt"); + this.startedAt = startedAt; + return this; + } + + public WorkflowInstanceHistoryStage withTerminated(boolean terminated) { + Utils.checkNotNull(terminated, "terminated"); + this.terminated = terminated; + return this; + } + + public WorkflowInstanceHistoryStage withTerminatedAt(OffsetDateTime terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = Optional.ofNullable(terminatedAt); + return this; + } + + + public WorkflowInstanceHistoryStage withTerminatedAt(Optional terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = terminatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowInstanceHistoryStage other = (WorkflowInstanceHistoryStage) o; + return + Utils.enhancedDeepEquals(this.workflowInstanceHistoryStageInput, other.workflowInstanceHistoryStageInput) && + Utils.enhancedDeepEquals(this.workflowInstanceHistoryStageOutput, other.workflowInstanceHistoryStageOutput) && + Utils.enhancedDeepEquals(this.attempt, other.attempt) && + Utils.enhancedDeepEquals(this.error, other.error) && + Utils.enhancedDeepEquals(this.lastFailure, other.lastFailure) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.nextExecution, other.nextExecution) && + Utils.enhancedDeepEquals(this.startedAt, other.startedAt) && + Utils.enhancedDeepEquals(this.terminated, other.terminated) && + Utils.enhancedDeepEquals(this.terminatedAt, other.terminatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + workflowInstanceHistoryStageInput, workflowInstanceHistoryStageOutput, attempt, + error, lastFailure, name, + nextExecution, startedAt, terminated, + terminatedAt); + } + + @Override + public String toString() { + return Utils.toString(WorkflowInstanceHistoryStage.class, + "workflowInstanceHistoryStageInput", workflowInstanceHistoryStageInput, + "workflowInstanceHistoryStageOutput", workflowInstanceHistoryStageOutput, + "attempt", attempt, + "error", error, + "lastFailure", lastFailure, + "name", name, + "nextExecution", nextExecution, + "startedAt", startedAt, + "terminated", terminated, + "terminatedAt", terminatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput; + + private Optional workflowInstanceHistoryStageOutput = Optional.empty(); + + private Long attempt; + + private Optional error = Optional.empty(); + + private Optional lastFailure = Optional.empty(); + + private String name; + + private Optional nextExecution = Optional.empty(); + + private OffsetDateTime startedAt; + + private Boolean terminated; + + private Optional terminatedAt = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder workflowInstanceHistoryStageInput(WorkflowInstanceHistoryStageInput workflowInstanceHistoryStageInput) { + Utils.checkNotNull(workflowInstanceHistoryStageInput, "workflowInstanceHistoryStageInput"); + this.workflowInstanceHistoryStageInput = workflowInstanceHistoryStageInput; + return this; + } + + + public Builder workflowInstanceHistoryStageOutput(WorkflowInstanceHistoryStageOutput workflowInstanceHistoryStageOutput) { + Utils.checkNotNull(workflowInstanceHistoryStageOutput, "workflowInstanceHistoryStageOutput"); + this.workflowInstanceHistoryStageOutput = Optional.ofNullable(workflowInstanceHistoryStageOutput); + return this; + } + + public Builder workflowInstanceHistoryStageOutput(Optional workflowInstanceHistoryStageOutput) { + Utils.checkNotNull(workflowInstanceHistoryStageOutput, "workflowInstanceHistoryStageOutput"); + this.workflowInstanceHistoryStageOutput = workflowInstanceHistoryStageOutput; + return this; + } + + + public Builder attempt(long attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = Optional.ofNullable(error); + return this; + } + + public Builder error(Optional error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + + public Builder lastFailure(String lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = Optional.ofNullable(lastFailure); + return this; + } + + public Builder lastFailure(Optional lastFailure) { + Utils.checkNotNull(lastFailure, "lastFailure"); + this.lastFailure = lastFailure; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder nextExecution(OffsetDateTime nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = Optional.ofNullable(nextExecution); + return this; + } + + public Builder nextExecution(Optional nextExecution) { + Utils.checkNotNull(nextExecution, "nextExecution"); + this.nextExecution = nextExecution; + return this; + } + + + public Builder startedAt(OffsetDateTime startedAt) { + Utils.checkNotNull(startedAt, "startedAt"); + this.startedAt = startedAt; + return this; + } + + + public Builder terminated(boolean terminated) { + Utils.checkNotNull(terminated, "terminated"); + this.terminated = terminated; + return this; + } + + + public Builder terminatedAt(OffsetDateTime terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = Optional.ofNullable(terminatedAt); + return this; + } + + public Builder terminatedAt(Optional terminatedAt) { + Utils.checkNotNull(terminatedAt, "terminatedAt"); + this.terminatedAt = terminatedAt; + return this; + } + + public WorkflowInstanceHistoryStage build() { + + return new WorkflowInstanceHistoryStage( + workflowInstanceHistoryStageInput, workflowInstanceHistoryStageOutput, attempt, + error, lastFailure, name, + nextExecution, startedAt, terminated, + terminatedAt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageInput.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageInput.java new file mode 100644 index 000000000..de64c9a8f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageInput.java @@ -0,0 +1,606 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class WorkflowInstanceHistoryStageInput { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("AddAccountMetadata") + private Optional activityAddAccountMetadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ConfirmHold") + private Optional activityConfirmHold; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("CreateTransaction") + private Optional activityCreateTransaction; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("CreditWallet") + private Optional activityCreditWallet; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("DebitWallet") + private Optional activityDebitWallet; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetAccount") + private Optional activityGetAccount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetPayment") + private Optional activityGetPayment; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetWallet") + private Optional activityGetWallet; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ListWallets") + private Optional activityListWallets; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RevertTransaction") + private Optional activityRevertTransaction; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("VoidHold") + private Optional activityVoidHold; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("StripeTransfer") + private Optional stripeTransferRequest; + + @JsonCreator + public WorkflowInstanceHistoryStageInput( + @JsonProperty("AddAccountMetadata") Optional activityAddAccountMetadata, + @JsonProperty("ConfirmHold") Optional activityConfirmHold, + @JsonProperty("CreateTransaction") Optional activityCreateTransaction, + @JsonProperty("CreditWallet") Optional activityCreditWallet, + @JsonProperty("DebitWallet") Optional activityDebitWallet, + @JsonProperty("GetAccount") Optional activityGetAccount, + @JsonProperty("GetPayment") Optional activityGetPayment, + @JsonProperty("GetWallet") Optional activityGetWallet, + @JsonProperty("ListWallets") Optional activityListWallets, + @JsonProperty("RevertTransaction") Optional activityRevertTransaction, + @JsonProperty("VoidHold") Optional activityVoidHold, + @JsonProperty("StripeTransfer") Optional stripeTransferRequest) { + Utils.checkNotNull(activityAddAccountMetadata, "activityAddAccountMetadata"); + Utils.checkNotNull(activityConfirmHold, "activityConfirmHold"); + Utils.checkNotNull(activityCreateTransaction, "activityCreateTransaction"); + Utils.checkNotNull(activityCreditWallet, "activityCreditWallet"); + Utils.checkNotNull(activityDebitWallet, "activityDebitWallet"); + Utils.checkNotNull(activityGetAccount, "activityGetAccount"); + Utils.checkNotNull(activityGetPayment, "activityGetPayment"); + Utils.checkNotNull(activityGetWallet, "activityGetWallet"); + Utils.checkNotNull(activityListWallets, "activityListWallets"); + Utils.checkNotNull(activityRevertTransaction, "activityRevertTransaction"); + Utils.checkNotNull(activityVoidHold, "activityVoidHold"); + Utils.checkNotNull(stripeTransferRequest, "stripeTransferRequest"); + this.activityAddAccountMetadata = activityAddAccountMetadata; + this.activityConfirmHold = activityConfirmHold; + this.activityCreateTransaction = activityCreateTransaction; + this.activityCreditWallet = activityCreditWallet; + this.activityDebitWallet = activityDebitWallet; + this.activityGetAccount = activityGetAccount; + this.activityGetPayment = activityGetPayment; + this.activityGetWallet = activityGetWallet; + this.activityListWallets = activityListWallets; + this.activityRevertTransaction = activityRevertTransaction; + this.activityVoidHold = activityVoidHold; + this.stripeTransferRequest = stripeTransferRequest; + } + + public WorkflowInstanceHistoryStageInput() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityAddAccountMetadata() { + return (Optional) activityAddAccountMetadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityConfirmHold() { + return (Optional) activityConfirmHold; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityCreateTransaction() { + return (Optional) activityCreateTransaction; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityCreditWallet() { + return (Optional) activityCreditWallet; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityDebitWallet() { + return (Optional) activityDebitWallet; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityGetAccount() { + return (Optional) activityGetAccount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityGetPayment() { + return (Optional) activityGetPayment; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityGetWallet() { + return (Optional) activityGetWallet; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityListWallets() { + return (Optional) activityListWallets; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityRevertTransaction() { + return (Optional) activityRevertTransaction; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional activityVoidHold() { + return (Optional) activityVoidHold; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional stripeTransferRequest() { + return (Optional) stripeTransferRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + public WorkflowInstanceHistoryStageInput withActivityAddAccountMetadata(ActivityAddAccountMetadata activityAddAccountMetadata) { + Utils.checkNotNull(activityAddAccountMetadata, "activityAddAccountMetadata"); + this.activityAddAccountMetadata = Optional.ofNullable(activityAddAccountMetadata); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityAddAccountMetadata(Optional activityAddAccountMetadata) { + Utils.checkNotNull(activityAddAccountMetadata, "activityAddAccountMetadata"); + this.activityAddAccountMetadata = activityAddAccountMetadata; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityConfirmHold(ActivityConfirmHold activityConfirmHold) { + Utils.checkNotNull(activityConfirmHold, "activityConfirmHold"); + this.activityConfirmHold = Optional.ofNullable(activityConfirmHold); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityConfirmHold(Optional activityConfirmHold) { + Utils.checkNotNull(activityConfirmHold, "activityConfirmHold"); + this.activityConfirmHold = activityConfirmHold; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityCreateTransaction(ActivityCreateTransaction activityCreateTransaction) { + Utils.checkNotNull(activityCreateTransaction, "activityCreateTransaction"); + this.activityCreateTransaction = Optional.ofNullable(activityCreateTransaction); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityCreateTransaction(Optional activityCreateTransaction) { + Utils.checkNotNull(activityCreateTransaction, "activityCreateTransaction"); + this.activityCreateTransaction = activityCreateTransaction; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityCreditWallet(ActivityCreditWallet activityCreditWallet) { + Utils.checkNotNull(activityCreditWallet, "activityCreditWallet"); + this.activityCreditWallet = Optional.ofNullable(activityCreditWallet); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityCreditWallet(Optional activityCreditWallet) { + Utils.checkNotNull(activityCreditWallet, "activityCreditWallet"); + this.activityCreditWallet = activityCreditWallet; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityDebitWallet(ActivityDebitWallet activityDebitWallet) { + Utils.checkNotNull(activityDebitWallet, "activityDebitWallet"); + this.activityDebitWallet = Optional.ofNullable(activityDebitWallet); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityDebitWallet(Optional activityDebitWallet) { + Utils.checkNotNull(activityDebitWallet, "activityDebitWallet"); + this.activityDebitWallet = activityDebitWallet; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityGetAccount(ActivityGetAccount activityGetAccount) { + Utils.checkNotNull(activityGetAccount, "activityGetAccount"); + this.activityGetAccount = Optional.ofNullable(activityGetAccount); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityGetAccount(Optional activityGetAccount) { + Utils.checkNotNull(activityGetAccount, "activityGetAccount"); + this.activityGetAccount = activityGetAccount; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityGetPayment(ActivityGetPayment activityGetPayment) { + Utils.checkNotNull(activityGetPayment, "activityGetPayment"); + this.activityGetPayment = Optional.ofNullable(activityGetPayment); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityGetPayment(Optional activityGetPayment) { + Utils.checkNotNull(activityGetPayment, "activityGetPayment"); + this.activityGetPayment = activityGetPayment; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityGetWallet(ActivityGetWallet activityGetWallet) { + Utils.checkNotNull(activityGetWallet, "activityGetWallet"); + this.activityGetWallet = Optional.ofNullable(activityGetWallet); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityGetWallet(Optional activityGetWallet) { + Utils.checkNotNull(activityGetWallet, "activityGetWallet"); + this.activityGetWallet = activityGetWallet; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityListWallets(ActivityListWallets activityListWallets) { + Utils.checkNotNull(activityListWallets, "activityListWallets"); + this.activityListWallets = Optional.ofNullable(activityListWallets); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityListWallets(Optional activityListWallets) { + Utils.checkNotNull(activityListWallets, "activityListWallets"); + this.activityListWallets = activityListWallets; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityRevertTransaction(ActivityRevertTransaction activityRevertTransaction) { + Utils.checkNotNull(activityRevertTransaction, "activityRevertTransaction"); + this.activityRevertTransaction = Optional.ofNullable(activityRevertTransaction); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityRevertTransaction(Optional activityRevertTransaction) { + Utils.checkNotNull(activityRevertTransaction, "activityRevertTransaction"); + this.activityRevertTransaction = activityRevertTransaction; + return this; + } + + public WorkflowInstanceHistoryStageInput withActivityVoidHold(ActivityVoidHold activityVoidHold) { + Utils.checkNotNull(activityVoidHold, "activityVoidHold"); + this.activityVoidHold = Optional.ofNullable(activityVoidHold); + return this; + } + + + public WorkflowInstanceHistoryStageInput withActivityVoidHold(Optional activityVoidHold) { + Utils.checkNotNull(activityVoidHold, "activityVoidHold"); + this.activityVoidHold = activityVoidHold; + return this; + } + + public WorkflowInstanceHistoryStageInput withStripeTransferRequest(StripeTransferRequest stripeTransferRequest) { + Utils.checkNotNull(stripeTransferRequest, "stripeTransferRequest"); + this.stripeTransferRequest = Optional.ofNullable(stripeTransferRequest); + return this; + } + + + public WorkflowInstanceHistoryStageInput withStripeTransferRequest(Optional stripeTransferRequest) { + Utils.checkNotNull(stripeTransferRequest, "stripeTransferRequest"); + this.stripeTransferRequest = stripeTransferRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowInstanceHistoryStageInput other = (WorkflowInstanceHistoryStageInput) o; + return + Utils.enhancedDeepEquals(this.activityAddAccountMetadata, other.activityAddAccountMetadata) && + Utils.enhancedDeepEquals(this.activityConfirmHold, other.activityConfirmHold) && + Utils.enhancedDeepEquals(this.activityCreateTransaction, other.activityCreateTransaction) && + Utils.enhancedDeepEquals(this.activityCreditWallet, other.activityCreditWallet) && + Utils.enhancedDeepEquals(this.activityDebitWallet, other.activityDebitWallet) && + Utils.enhancedDeepEquals(this.activityGetAccount, other.activityGetAccount) && + Utils.enhancedDeepEquals(this.activityGetPayment, other.activityGetPayment) && + Utils.enhancedDeepEquals(this.activityGetWallet, other.activityGetWallet) && + Utils.enhancedDeepEquals(this.activityListWallets, other.activityListWallets) && + Utils.enhancedDeepEquals(this.activityRevertTransaction, other.activityRevertTransaction) && + Utils.enhancedDeepEquals(this.activityVoidHold, other.activityVoidHold) && + Utils.enhancedDeepEquals(this.stripeTransferRequest, other.stripeTransferRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + activityAddAccountMetadata, activityConfirmHold, activityCreateTransaction, + activityCreditWallet, activityDebitWallet, activityGetAccount, + activityGetPayment, activityGetWallet, activityListWallets, + activityRevertTransaction, activityVoidHold, stripeTransferRequest); + } + + @Override + public String toString() { + return Utils.toString(WorkflowInstanceHistoryStageInput.class, + "activityAddAccountMetadata", activityAddAccountMetadata, + "activityConfirmHold", activityConfirmHold, + "activityCreateTransaction", activityCreateTransaction, + "activityCreditWallet", activityCreditWallet, + "activityDebitWallet", activityDebitWallet, + "activityGetAccount", activityGetAccount, + "activityGetPayment", activityGetPayment, + "activityGetWallet", activityGetWallet, + "activityListWallets", activityListWallets, + "activityRevertTransaction", activityRevertTransaction, + "activityVoidHold", activityVoidHold, + "stripeTransferRequest", stripeTransferRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional activityAddAccountMetadata = Optional.empty(); + + private Optional activityConfirmHold = Optional.empty(); + + private Optional activityCreateTransaction = Optional.empty(); + + private Optional activityCreditWallet = Optional.empty(); + + private Optional activityDebitWallet = Optional.empty(); + + private Optional activityGetAccount = Optional.empty(); + + private Optional activityGetPayment = Optional.empty(); + + private Optional activityGetWallet = Optional.empty(); + + private Optional activityListWallets = Optional.empty(); + + private Optional activityRevertTransaction = Optional.empty(); + + private Optional activityVoidHold = Optional.empty(); + + private Optional stripeTransferRequest = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder activityAddAccountMetadata(ActivityAddAccountMetadata activityAddAccountMetadata) { + Utils.checkNotNull(activityAddAccountMetadata, "activityAddAccountMetadata"); + this.activityAddAccountMetadata = Optional.ofNullable(activityAddAccountMetadata); + return this; + } + + public Builder activityAddAccountMetadata(Optional activityAddAccountMetadata) { + Utils.checkNotNull(activityAddAccountMetadata, "activityAddAccountMetadata"); + this.activityAddAccountMetadata = activityAddAccountMetadata; + return this; + } + + + public Builder activityConfirmHold(ActivityConfirmHold activityConfirmHold) { + Utils.checkNotNull(activityConfirmHold, "activityConfirmHold"); + this.activityConfirmHold = Optional.ofNullable(activityConfirmHold); + return this; + } + + public Builder activityConfirmHold(Optional activityConfirmHold) { + Utils.checkNotNull(activityConfirmHold, "activityConfirmHold"); + this.activityConfirmHold = activityConfirmHold; + return this; + } + + + public Builder activityCreateTransaction(ActivityCreateTransaction activityCreateTransaction) { + Utils.checkNotNull(activityCreateTransaction, "activityCreateTransaction"); + this.activityCreateTransaction = Optional.ofNullable(activityCreateTransaction); + return this; + } + + public Builder activityCreateTransaction(Optional activityCreateTransaction) { + Utils.checkNotNull(activityCreateTransaction, "activityCreateTransaction"); + this.activityCreateTransaction = activityCreateTransaction; + return this; + } + + + public Builder activityCreditWallet(ActivityCreditWallet activityCreditWallet) { + Utils.checkNotNull(activityCreditWallet, "activityCreditWallet"); + this.activityCreditWallet = Optional.ofNullable(activityCreditWallet); + return this; + } + + public Builder activityCreditWallet(Optional activityCreditWallet) { + Utils.checkNotNull(activityCreditWallet, "activityCreditWallet"); + this.activityCreditWallet = activityCreditWallet; + return this; + } + + + public Builder activityDebitWallet(ActivityDebitWallet activityDebitWallet) { + Utils.checkNotNull(activityDebitWallet, "activityDebitWallet"); + this.activityDebitWallet = Optional.ofNullable(activityDebitWallet); + return this; + } + + public Builder activityDebitWallet(Optional activityDebitWallet) { + Utils.checkNotNull(activityDebitWallet, "activityDebitWallet"); + this.activityDebitWallet = activityDebitWallet; + return this; + } + + + public Builder activityGetAccount(ActivityGetAccount activityGetAccount) { + Utils.checkNotNull(activityGetAccount, "activityGetAccount"); + this.activityGetAccount = Optional.ofNullable(activityGetAccount); + return this; + } + + public Builder activityGetAccount(Optional activityGetAccount) { + Utils.checkNotNull(activityGetAccount, "activityGetAccount"); + this.activityGetAccount = activityGetAccount; + return this; + } + + + public Builder activityGetPayment(ActivityGetPayment activityGetPayment) { + Utils.checkNotNull(activityGetPayment, "activityGetPayment"); + this.activityGetPayment = Optional.ofNullable(activityGetPayment); + return this; + } + + public Builder activityGetPayment(Optional activityGetPayment) { + Utils.checkNotNull(activityGetPayment, "activityGetPayment"); + this.activityGetPayment = activityGetPayment; + return this; + } + + + public Builder activityGetWallet(ActivityGetWallet activityGetWallet) { + Utils.checkNotNull(activityGetWallet, "activityGetWallet"); + this.activityGetWallet = Optional.ofNullable(activityGetWallet); + return this; + } + + public Builder activityGetWallet(Optional activityGetWallet) { + Utils.checkNotNull(activityGetWallet, "activityGetWallet"); + this.activityGetWallet = activityGetWallet; + return this; + } + + + public Builder activityListWallets(ActivityListWallets activityListWallets) { + Utils.checkNotNull(activityListWallets, "activityListWallets"); + this.activityListWallets = Optional.ofNullable(activityListWallets); + return this; + } + + public Builder activityListWallets(Optional activityListWallets) { + Utils.checkNotNull(activityListWallets, "activityListWallets"); + this.activityListWallets = activityListWallets; + return this; + } + + + public Builder activityRevertTransaction(ActivityRevertTransaction activityRevertTransaction) { + Utils.checkNotNull(activityRevertTransaction, "activityRevertTransaction"); + this.activityRevertTransaction = Optional.ofNullable(activityRevertTransaction); + return this; + } + + public Builder activityRevertTransaction(Optional activityRevertTransaction) { + Utils.checkNotNull(activityRevertTransaction, "activityRevertTransaction"); + this.activityRevertTransaction = activityRevertTransaction; + return this; + } + + + public Builder activityVoidHold(ActivityVoidHold activityVoidHold) { + Utils.checkNotNull(activityVoidHold, "activityVoidHold"); + this.activityVoidHold = Optional.ofNullable(activityVoidHold); + return this; + } + + public Builder activityVoidHold(Optional activityVoidHold) { + Utils.checkNotNull(activityVoidHold, "activityVoidHold"); + this.activityVoidHold = activityVoidHold; + return this; + } + + + public Builder stripeTransferRequest(StripeTransferRequest stripeTransferRequest) { + Utils.checkNotNull(stripeTransferRequest, "stripeTransferRequest"); + this.stripeTransferRequest = Optional.ofNullable(stripeTransferRequest); + return this; + } + + public Builder stripeTransferRequest(Optional stripeTransferRequest) { + Utils.checkNotNull(stripeTransferRequest, "stripeTransferRequest"); + this.stripeTransferRequest = stripeTransferRequest; + return this; + } + + public WorkflowInstanceHistoryStageInput build() { + + return new WorkflowInstanceHistoryStageInput( + activityAddAccountMetadata, activityConfirmHold, activityCreateTransaction, + activityCreditWallet, activityDebitWallet, activityGetAccount, + activityGetPayment, activityGetWallet, activityListWallets, + activityRevertTransaction, activityVoidHold, stripeTransferRequest); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageOutput.java b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageOutput.java new file mode 100644 index 000000000..d82773ed7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/orchestration/WorkflowInstanceHistoryStageOutput.java @@ -0,0 +1,383 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.orchestration; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Optional; + + +public class WorkflowInstanceHistoryStageOutput { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetAccount") + private Optional accountResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("CreateTransaction") + private Optional createTransactionResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("RevertTransaction") + private Optional createTransactionResponse1; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("DebitWallet") + private Optional debitWalletResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetWallet") + private Optional getWalletResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ListWallets") + private Optional listWalletsResponse; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("GetPayment") + private Optional paymentResponse; + + @JsonCreator + public WorkflowInstanceHistoryStageOutput( + @JsonProperty("GetAccount") Optional accountResponse, + @JsonProperty("CreateTransaction") Optional createTransactionResponse, + @JsonProperty("RevertTransaction") Optional createTransactionResponse1, + @JsonProperty("DebitWallet") Optional debitWalletResponse, + @JsonProperty("GetWallet") Optional getWalletResponse, + @JsonProperty("ListWallets") Optional listWalletsResponse, + @JsonProperty("GetPayment") Optional paymentResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + Utils.checkNotNull(createTransactionResponse, "createTransactionResponse"); + Utils.checkNotNull(createTransactionResponse1, "createTransactionResponse1"); + Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); + Utils.checkNotNull(getWalletResponse, "getWalletResponse"); + Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); + Utils.checkNotNull(paymentResponse, "paymentResponse"); + this.accountResponse = accountResponse; + this.createTransactionResponse = createTransactionResponse; + this.createTransactionResponse1 = createTransactionResponse1; + this.debitWalletResponse = debitWalletResponse; + this.getWalletResponse = getWalletResponse; + this.listWalletsResponse = listWalletsResponse; + this.paymentResponse = paymentResponse; + } + + public WorkflowInstanceHistoryStageOutput() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional accountResponse() { + return (Optional) accountResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional createTransactionResponse() { + return (Optional) createTransactionResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional createTransactionResponse1() { + return (Optional) createTransactionResponse1; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional debitWalletResponse() { + return (Optional) debitWalletResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional getWalletResponse() { + return (Optional) getWalletResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional listWalletsResponse() { + return (Optional) listWalletsResponse; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional paymentResponse() { + return (Optional) paymentResponse; + } + + public static Builder builder() { + return new Builder(); + } + + + public WorkflowInstanceHistoryStageOutput withAccountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withAccountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + public WorkflowInstanceHistoryStageOutput withCreateTransactionResponse(CreateTransactionResponse createTransactionResponse) { + Utils.checkNotNull(createTransactionResponse, "createTransactionResponse"); + this.createTransactionResponse = Optional.ofNullable(createTransactionResponse); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withCreateTransactionResponse(Optional createTransactionResponse) { + Utils.checkNotNull(createTransactionResponse, "createTransactionResponse"); + this.createTransactionResponse = createTransactionResponse; + return this; + } + + public WorkflowInstanceHistoryStageOutput withCreateTransactionResponse1(CreateTransactionResponse createTransactionResponse1) { + Utils.checkNotNull(createTransactionResponse1, "createTransactionResponse1"); + this.createTransactionResponse1 = Optional.ofNullable(createTransactionResponse1); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withCreateTransactionResponse1(Optional createTransactionResponse1) { + Utils.checkNotNull(createTransactionResponse1, "createTransactionResponse1"); + this.createTransactionResponse1 = createTransactionResponse1; + return this; + } + + public WorkflowInstanceHistoryStageOutput withDebitWalletResponse(DebitWalletResponse debitWalletResponse) { + Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); + this.debitWalletResponse = Optional.ofNullable(debitWalletResponse); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withDebitWalletResponse(Optional debitWalletResponse) { + Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); + this.debitWalletResponse = debitWalletResponse; + return this; + } + + public WorkflowInstanceHistoryStageOutput withGetWalletResponse(GetWalletResponse getWalletResponse) { + Utils.checkNotNull(getWalletResponse, "getWalletResponse"); + this.getWalletResponse = Optional.ofNullable(getWalletResponse); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withGetWalletResponse(Optional getWalletResponse) { + Utils.checkNotNull(getWalletResponse, "getWalletResponse"); + this.getWalletResponse = getWalletResponse; + return this; + } + + public WorkflowInstanceHistoryStageOutput withListWalletsResponse(ListWalletsResponse listWalletsResponse) { + Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); + this.listWalletsResponse = Optional.ofNullable(listWalletsResponse); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withListWalletsResponse(Optional listWalletsResponse) { + Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); + this.listWalletsResponse = listWalletsResponse; + return this; + } + + public WorkflowInstanceHistoryStageOutput withPaymentResponse(PaymentResponse paymentResponse) { + Utils.checkNotNull(paymentResponse, "paymentResponse"); + this.paymentResponse = Optional.ofNullable(paymentResponse); + return this; + } + + + public WorkflowInstanceHistoryStageOutput withPaymentResponse(Optional paymentResponse) { + Utils.checkNotNull(paymentResponse, "paymentResponse"); + this.paymentResponse = paymentResponse; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkflowInstanceHistoryStageOutput other = (WorkflowInstanceHistoryStageOutput) o; + return + Utils.enhancedDeepEquals(this.accountResponse, other.accountResponse) && + Utils.enhancedDeepEquals(this.createTransactionResponse, other.createTransactionResponse) && + Utils.enhancedDeepEquals(this.createTransactionResponse1, other.createTransactionResponse1) && + Utils.enhancedDeepEquals(this.debitWalletResponse, other.debitWalletResponse) && + Utils.enhancedDeepEquals(this.getWalletResponse, other.getWalletResponse) && + Utils.enhancedDeepEquals(this.listWalletsResponse, other.listWalletsResponse) && + Utils.enhancedDeepEquals(this.paymentResponse, other.paymentResponse); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountResponse, createTransactionResponse, createTransactionResponse1, + debitWalletResponse, getWalletResponse, listWalletsResponse, + paymentResponse); + } + + @Override + public String toString() { + return Utils.toString(WorkflowInstanceHistoryStageOutput.class, + "accountResponse", accountResponse, + "createTransactionResponse", createTransactionResponse, + "createTransactionResponse1", createTransactionResponse1, + "debitWalletResponse", debitWalletResponse, + "getWalletResponse", getWalletResponse, + "listWalletsResponse", listWalletsResponse, + "paymentResponse", paymentResponse); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional accountResponse = Optional.empty(); + + private Optional createTransactionResponse = Optional.empty(); + + private Optional createTransactionResponse1 = Optional.empty(); + + private Optional debitWalletResponse = Optional.empty(); + + private Optional getWalletResponse = Optional.empty(); + + private Optional listWalletsResponse = Optional.empty(); + + private Optional paymentResponse = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder accountResponse(AccountResponse accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = Optional.ofNullable(accountResponse); + return this; + } + + public Builder accountResponse(Optional accountResponse) { + Utils.checkNotNull(accountResponse, "accountResponse"); + this.accountResponse = accountResponse; + return this; + } + + + public Builder createTransactionResponse(CreateTransactionResponse createTransactionResponse) { + Utils.checkNotNull(createTransactionResponse, "createTransactionResponse"); + this.createTransactionResponse = Optional.ofNullable(createTransactionResponse); + return this; + } + + public Builder createTransactionResponse(Optional createTransactionResponse) { + Utils.checkNotNull(createTransactionResponse, "createTransactionResponse"); + this.createTransactionResponse = createTransactionResponse; + return this; + } + + + public Builder createTransactionResponse1(CreateTransactionResponse createTransactionResponse1) { + Utils.checkNotNull(createTransactionResponse1, "createTransactionResponse1"); + this.createTransactionResponse1 = Optional.ofNullable(createTransactionResponse1); + return this; + } + + public Builder createTransactionResponse1(Optional createTransactionResponse1) { + Utils.checkNotNull(createTransactionResponse1, "createTransactionResponse1"); + this.createTransactionResponse1 = createTransactionResponse1; + return this; + } + + + public Builder debitWalletResponse(DebitWalletResponse debitWalletResponse) { + Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); + this.debitWalletResponse = Optional.ofNullable(debitWalletResponse); + return this; + } + + public Builder debitWalletResponse(Optional debitWalletResponse) { + Utils.checkNotNull(debitWalletResponse, "debitWalletResponse"); + this.debitWalletResponse = debitWalletResponse; + return this; + } + + + public Builder getWalletResponse(GetWalletResponse getWalletResponse) { + Utils.checkNotNull(getWalletResponse, "getWalletResponse"); + this.getWalletResponse = Optional.ofNullable(getWalletResponse); + return this; + } + + public Builder getWalletResponse(Optional getWalletResponse) { + Utils.checkNotNull(getWalletResponse, "getWalletResponse"); + this.getWalletResponse = getWalletResponse; + return this; + } + + + public Builder listWalletsResponse(ListWalletsResponse listWalletsResponse) { + Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); + this.listWalletsResponse = Optional.ofNullable(listWalletsResponse); + return this; + } + + public Builder listWalletsResponse(Optional listWalletsResponse) { + Utils.checkNotNull(listWalletsResponse, "listWalletsResponse"); + this.listWalletsResponse = listWalletsResponse; + return this; + } + + + public Builder paymentResponse(PaymentResponse paymentResponse) { + Utils.checkNotNull(paymentResponse, "paymentResponse"); + this.paymentResponse = Optional.ofNullable(paymentResponse); + return this; + } + + public Builder paymentResponse(Optional paymentResponse) { + Utils.checkNotNull(paymentResponse, "paymentResponse"); + this.paymentResponse = paymentResponse; + return this; + } + + public WorkflowInstanceHistoryStageOutput build() { + + return new WorkflowInstanceHistoryStageOutput( + accountResponse, createTransactionResponse, createTransactionResponse1, + debitWalletResponse, getWalletResponse, listWalletsResponse, + paymentResponse); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/Account.java b/src/main/java/com/formance/formance_sdk/models/payments/Account.java new file mode 100644 index 000000000..4ba1b74cd --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/Account.java @@ -0,0 +1,517 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Deprecated; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class Account { + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional> accountMetadata; + + + @JsonProperty("type") + private AccountType accountType; + + + @JsonProperty("accountName") + private String accountName; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("defaultAsset") + private String defaultAsset; + + /** + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @JsonProperty("defaultCurrency") + @Deprecated + private String defaultCurrency; + + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pools") + private Optional> pools; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("provider") + private Optional provider; + + + @JsonInclude(Include.ALWAYS) + @JsonProperty("raw") + private Optional raw; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public Account( + @JsonProperty("metadata") Optional> accountMetadata, + @JsonProperty("type") AccountType accountType, + @JsonProperty("accountName") String accountName, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("defaultAsset") String defaultAsset, + @JsonProperty("defaultCurrency") String defaultCurrency, + @JsonProperty("id") String id, + @JsonProperty("pools") Optional> pools, + @JsonProperty("provider") Optional provider, + @JsonProperty("raw") Optional raw, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + Utils.checkNotNull(accountType, "accountType"); + Utils.checkNotNull(accountName, "accountName"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(defaultAsset, "defaultAsset"); + Utils.checkNotNull(defaultCurrency, "defaultCurrency"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(pools, "pools"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(raw, "raw"); + Utils.checkNotNull(reference, "reference"); + this.accountMetadata = accountMetadata; + this.accountType = accountType; + this.accountName = accountName; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.defaultAsset = defaultAsset; + this.defaultCurrency = defaultCurrency; + this.id = id; + this.pools = pools; + this.provider = provider; + this.raw = raw; + this.reference = reference; + } + + public Account( + AccountType accountType, + String accountName, + String connectorID, + OffsetDateTime createdAt, + String defaultAsset, + String defaultCurrency, + String id, + String reference) { + this(Optional.empty(), accountType, accountName, + connectorID, createdAt, defaultAsset, + defaultCurrency, id, Optional.empty(), + Optional.empty(), Optional.empty(), reference); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> accountMetadata() { + return (Optional>) accountMetadata; + } + + @JsonIgnore + public AccountType accountType() { + return accountType; + } + + @JsonIgnore + public String accountName() { + return accountName; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String defaultAsset() { + return defaultAsset; + } + + /** + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + @JsonIgnore + public String defaultCurrency() { + return defaultCurrency; + } + + @JsonIgnore + public String id() { + return id; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> pools() { + return (Optional>) pools; + } + + @JsonIgnore + public Optional provider() { + return provider; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional raw() { + return (Optional) raw; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public Account withAccountMetadata(Map accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = Optional.ofNullable(accountMetadata); + return this; + } + + + public Account withAccountMetadata(Optional> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + public Account withAccountType(AccountType accountType) { + Utils.checkNotNull(accountType, "accountType"); + this.accountType = accountType; + return this; + } + + public Account withAccountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + public Account withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public Account withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public Account withDefaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + /** + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Account withDefaultCurrency(String defaultCurrency) { + Utils.checkNotNull(defaultCurrency, "defaultCurrency"); + this.defaultCurrency = defaultCurrency; + return this; + } + + public Account withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Account withPools(List pools) { + Utils.checkNotNull(pools, "pools"); + this.pools = Optional.ofNullable(pools); + return this; + } + + + public Account withPools(Optional> pools) { + Utils.checkNotNull(pools, "pools"); + this.pools = pools; + return this; + } + + public Account withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = Optional.ofNullable(provider); + return this; + } + + + public Account withProvider(Optional provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + public Account withRaw(AccountRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = Optional.ofNullable(raw); + return this; + } + + + public Account withRaw(Optional raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public Account withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Account other = (Account) o; + return + Utils.enhancedDeepEquals(this.accountMetadata, other.accountMetadata) && + Utils.enhancedDeepEquals(this.accountType, other.accountType) && + Utils.enhancedDeepEquals(this.accountName, other.accountName) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && + Utils.enhancedDeepEquals(this.defaultCurrency, other.defaultCurrency) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.pools, other.pools) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.raw, other.raw) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountMetadata, accountType, accountName, + connectorID, createdAt, defaultAsset, + defaultCurrency, id, pools, + provider, raw, reference); + } + + @Override + public String toString() { + return Utils.toString(Account.class, + "accountMetadata", accountMetadata, + "accountType", accountType, + "accountName", accountName, + "connectorID", connectorID, + "createdAt", createdAt, + "defaultAsset", defaultAsset, + "defaultCurrency", defaultCurrency, + "id", id, + "pools", pools, + "provider", provider, + "raw", raw, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> accountMetadata = Optional.empty(); + + private AccountType accountType; + + private String accountName; + + private String connectorID; + + private OffsetDateTime createdAt; + + private String defaultAsset; + + @Deprecated + private String defaultCurrency; + + private String id; + + private Optional> pools = Optional.empty(); + + private Optional provider = Optional.empty(); + + private Optional raw = Optional.empty(); + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder accountMetadata(Map accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = Optional.ofNullable(accountMetadata); + return this; + } + + public Builder accountMetadata(Optional> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + + public Builder accountType(AccountType accountType) { + Utils.checkNotNull(accountType, "accountType"); + this.accountType = accountType; + return this; + } + + + public Builder accountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder defaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + + /** + * + * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. + */ + @Deprecated + public Builder defaultCurrency(String defaultCurrency) { + Utils.checkNotNull(defaultCurrency, "defaultCurrency"); + this.defaultCurrency = defaultCurrency; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder pools(List pools) { + Utils.checkNotNull(pools, "pools"); + this.pools = Optional.ofNullable(pools); + return this; + } + + public Builder pools(Optional> pools) { + Utils.checkNotNull(pools, "pools"); + this.pools = pools; + return this; + } + + + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = Optional.ofNullable(provider); + return this; + } + + public Builder provider(Optional provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + public Builder raw(AccountRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = Optional.ofNullable(raw); + return this; + } + + public Builder raw(Optional raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Account build() { + + return new Account( + accountMetadata, accountType, accountName, + connectorID, createdAt, defaultAsset, + defaultCurrency, id, pools, + provider, raw, reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountBalance.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountBalance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/AccountBalance.java rename to src/main/java/com/formance/formance_sdk/models/payments/AccountBalance.java index 781941dfa..45085d76d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountBalance.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountBalance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/AccountRaw.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountRaw.java new file mode 100644 index 000000000..7f967d1d5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountRaw.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class AccountRaw { + @JsonCreator + public AccountRaw() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(AccountRaw.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public AccountRaw build() { + + return new AccountRaw( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/AccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountRequest.java new file mode 100644 index 000000000..5ed88800c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountRequest.java @@ -0,0 +1,327 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class AccountRequest { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> accountMetadata; + + + @JsonProperty("type") + private AccountType accountType; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("accountName") + private Optional accountName; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultAsset") + private Optional defaultAsset; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public AccountRequest( + @JsonProperty("metadata") JsonNullable> accountMetadata, + @JsonProperty("type") AccountType accountType, + @JsonProperty("accountName") Optional accountName, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("defaultAsset") Optional defaultAsset, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + Utils.checkNotNull(accountType, "accountType"); + Utils.checkNotNull(accountName, "accountName"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(defaultAsset, "defaultAsset"); + Utils.checkNotNull(reference, "reference"); + this.accountMetadata = accountMetadata; + this.accountType = accountType; + this.accountName = accountName; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.defaultAsset = defaultAsset; + this.reference = reference; + } + + public AccountRequest( + AccountType accountType, + String connectorID, + OffsetDateTime createdAt, + String reference) { + this(JsonNullable.undefined(), accountType, Optional.empty(), + connectorID, createdAt, Optional.empty(), + reference); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> accountMetadata() { + return (JsonNullable>) accountMetadata; + } + + @JsonIgnore + public AccountType accountType() { + return accountType; + } + + @JsonIgnore + public Optional accountName() { + return accountName; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public Optional defaultAsset() { + return defaultAsset; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public AccountRequest withAccountMetadata(Map accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = JsonNullable.of(accountMetadata); + return this; + } + + public AccountRequest withAccountMetadata(JsonNullable> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + public AccountRequest withAccountType(AccountType accountType) { + Utils.checkNotNull(accountType, "accountType"); + this.accountType = accountType; + return this; + } + + public AccountRequest withAccountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = Optional.ofNullable(accountName); + return this; + } + + + public AccountRequest withAccountName(Optional accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + public AccountRequest withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public AccountRequest withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public AccountRequest withDefaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = Optional.ofNullable(defaultAsset); + return this; + } + + + public AccountRequest withDefaultAsset(Optional defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + public AccountRequest withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountRequest other = (AccountRequest) o; + return + Utils.enhancedDeepEquals(this.accountMetadata, other.accountMetadata) && + Utils.enhancedDeepEquals(this.accountType, other.accountType) && + Utils.enhancedDeepEquals(this.accountName, other.accountName) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + accountMetadata, accountType, accountName, + connectorID, createdAt, defaultAsset, + reference); + } + + @Override + public String toString() { + return Utils.toString(AccountRequest.class, + "accountMetadata", accountMetadata, + "accountType", accountType, + "accountName", accountName, + "connectorID", connectorID, + "createdAt", createdAt, + "defaultAsset", defaultAsset, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> accountMetadata = JsonNullable.undefined(); + + private AccountType accountType; + + private Optional accountName = Optional.empty(); + + private String connectorID; + + private OffsetDateTime createdAt; + + private Optional defaultAsset = Optional.empty(); + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder accountMetadata(Map accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = JsonNullable.of(accountMetadata); + return this; + } + + public Builder accountMetadata(JsonNullable> accountMetadata) { + Utils.checkNotNull(accountMetadata, "accountMetadata"); + this.accountMetadata = accountMetadata; + return this; + } + + + public Builder accountType(AccountType accountType) { + Utils.checkNotNull(accountType, "accountType"); + this.accountType = accountType; + return this; + } + + + public Builder accountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = Optional.ofNullable(accountName); + return this; + } + + public Builder accountName(Optional accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder defaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = Optional.ofNullable(defaultAsset); + return this; + } + + public Builder defaultAsset(Optional defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public AccountRequest build() { + + return new AccountRequest( + accountMetadata, accountType, accountName, + connectorID, createdAt, defaultAsset, + reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountResponse.java new file mode 100644 index 000000000..4ca0050b7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * AccountResponse + * + *

OK + */ +public class AccountResponse { + + @JsonProperty("data") + private Account account; + + @JsonCreator + public AccountResponse( + @JsonProperty("data") Account account) { + Utils.checkNotNull(account, "account"); + this.account = account; + } + + @JsonIgnore + public Account account() { + return account; + } + + public static Builder builder() { + return new Builder(); + } + + + public AccountResponse withAccount(Account account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountResponse other = (AccountResponse) o; + return + Utils.enhancedDeepEquals(this.account, other.account); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + account); + } + + @Override + public String toString() { + return Utils.toString(AccountResponse.class, + "account", account); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Account account; + + private Builder() { + // force use of static builder() method + } + + + public Builder account(Account account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + public AccountResponse build() { + + return new AccountResponse( + account); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountType.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountType.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/AccountType.java rename to src/main/java/com/formance/formance_sdk/models/payments/AccountType.java index 28506709f..938e830bb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountType.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/AccountsCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountsCursor.java new file mode 100644 index 000000000..f76538b03 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountsCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * AccountsCursor + * + *

OK + */ +public class AccountsCursor { + + @JsonProperty("cursor") + private AccountsCursorCursorBase cursorBase; + + @JsonCreator + public AccountsCursor( + @JsonProperty("cursor") AccountsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public AccountsCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public AccountsCursor withCursorBase(AccountsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountsCursor other = (AccountsCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(AccountsCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private AccountsCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(AccountsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public AccountsCursor build() { + + return new AccountsCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/AccountsCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/AccountsCursorCursorBase.java new file mode 100644 index 000000000..bf4a502b9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/AccountsCursorCursorBase.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class AccountsCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public AccountsCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public AccountsCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public AccountsCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public AccountsCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public AccountsCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public AccountsCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public AccountsCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public AccountsCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public AccountsCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccountsCursorCursorBase other = (AccountsCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(AccountsCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public AccountsCursorCursorBase build() { + + return new AccountsCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AddAccountToPoolRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/AddAccountToPoolRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/AddAccountToPoolRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/AddAccountToPoolRequest.java index 20500eb64..eb914f7a4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AddAccountToPoolRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/AddAccountToPoolRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AdyenConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/AdyenConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/AdyenConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/AdyenConfig.java index 4b319e588..9cef13637 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AdyenConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/AdyenConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class AdyenConfig implements ConnectorConfig { +public class AdyenConfig { @JsonProperty("apiKey") private String apiKey; @@ -107,9 +107,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AtlarConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/AtlarConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/AtlarConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/AtlarConfig.java index cb9f8efbf..d2728b839 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/AtlarConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/AtlarConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class AtlarConfig implements ConnectorConfig { +public class AtlarConfig { /** * The access key used by the connector for authorizing requests to the Atlar API. * You can obtain it along with the associated secret from the Atlar dashboard. @@ -150,9 +150,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } /** diff --git a/src/main/java/com/formance/formance_sdk/models/payments/BalancesCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/BalancesCursor.java new file mode 100644 index 000000000..d172c92b3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/BalancesCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * BalancesCursor + * + *

OK + */ +public class BalancesCursor { + + @JsonProperty("cursor") + private BalancesCursorCursorBase cursorBase; + + @JsonCreator + public BalancesCursor( + @JsonProperty("cursor") BalancesCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public BalancesCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public BalancesCursor withCursorBase(BalancesCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BalancesCursor other = (BalancesCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(BalancesCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BalancesCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(BalancesCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public BalancesCursor build() { + + return new BalancesCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/BalancesCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/BalancesCursorCursorBase.java new file mode 100644 index 000000000..cbae8a565 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/BalancesCursorCursorBase.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class BalancesCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public BalancesCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public BalancesCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public BalancesCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public BalancesCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public BalancesCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public BalancesCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public BalancesCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public BalancesCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public BalancesCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BalancesCursorCursorBase other = (BalancesCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(BalancesCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public BalancesCursorCursorBase build() { + + return new BalancesCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankAccount.java b/src/main/java/com/formance/formance_sdk/models/payments/BankAccount.java similarity index 87% rename from src/main/java/com/formance/formance_sdk/models/shared/BankAccount.java rename to src/main/java/com/formance/formance_sdk/models/payments/BankAccount.java index 290a30ede..445c61006 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,11 @@ public class BankAccount { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> bankAccountMetadata; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountID") private Optional accountID; @@ -53,11 +58,6 @@ public class BankAccount { private String id; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("name") private String name; @@ -78,6 +78,7 @@ public class BankAccount { @JsonCreator public BankAccount( + @JsonProperty("metadata") JsonNullable> bankAccountMetadata, @JsonProperty("accountID") Optional accountID, @JsonProperty("accountNumber") Optional accountNumber, @JsonProperty("connectorID") Optional connectorID, @@ -85,11 +86,11 @@ public BankAccount( @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("iban") Optional iban, @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("name") String name, @JsonProperty("provider") Optional provider, @JsonProperty("relatedAccounts") Optional> relatedAccounts, @JsonProperty("swiftBicCode") Optional swiftBicCode) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); Utils.checkNotNull(accountID, "accountID"); Utils.checkNotNull(accountNumber, "accountNumber"); Utils.checkNotNull(connectorID, "connectorID"); @@ -97,11 +98,11 @@ public BankAccount( Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(iban, "iban"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(provider, "provider"); Utils.checkNotNull(relatedAccounts, "relatedAccounts"); Utils.checkNotNull(swiftBicCode, "swiftBicCode"); + this.bankAccountMetadata = bankAccountMetadata; this.accountID = accountID; this.accountNumber = accountNumber; this.connectorID = connectorID; @@ -109,7 +110,6 @@ public BankAccount( this.createdAt = createdAt; this.iban = iban; this.id = id; - this.metadata = metadata; this.name = name; this.provider = provider; this.relatedAccounts = relatedAccounts; @@ -121,12 +121,18 @@ public BankAccount( OffsetDateTime createdAt, String id, String name) { - this(Optional.empty(), Optional.empty(), Optional.empty(), - country, createdAt, Optional.empty(), - id, JsonNullable.undefined(), name, + this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), + Optional.empty(), country, createdAt, + Optional.empty(), id, name, Optional.empty(), Optional.empty(), Optional.empty()); } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> bankAccountMetadata() { + return (JsonNullable>) bankAccountMetadata; + } + @JsonIgnore public Optional accountID() { return accountID; @@ -162,12 +168,6 @@ public String id() { return id; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String name() { return name; @@ -194,6 +194,18 @@ public static Builder builder() { } + public BankAccount withBankAccountMetadata(Map bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = JsonNullable.of(bankAccountMetadata); + return this; + } + + public BankAccount withBankAccountMetadata(JsonNullable> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + return this; + } + public BankAccount withAccountID(String accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = Optional.ofNullable(accountID); @@ -264,18 +276,6 @@ public BankAccount withId(String id) { return this; } - public BankAccount withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public BankAccount withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public BankAccount withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -331,6 +331,7 @@ public boolean equals(java.lang.Object o) { } BankAccount other = (BankAccount) o; return + Utils.enhancedDeepEquals(this.bankAccountMetadata, other.bankAccountMetadata) && Utils.enhancedDeepEquals(this.accountID, other.accountID) && Utils.enhancedDeepEquals(this.accountNumber, other.accountNumber) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && @@ -338,7 +339,6 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.iban, other.iban) && Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.provider, other.provider) && Utils.enhancedDeepEquals(this.relatedAccounts, other.relatedAccounts) && @@ -348,15 +348,16 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - accountID, accountNumber, connectorID, - country, createdAt, iban, - id, metadata, name, + bankAccountMetadata, accountID, accountNumber, + connectorID, country, createdAt, + iban, id, name, provider, relatedAccounts, swiftBicCode); } @Override public String toString() { return Utils.toString(BankAccount.class, + "bankAccountMetadata", bankAccountMetadata, "accountID", accountID, "accountNumber", accountNumber, "connectorID", connectorID, @@ -364,7 +365,6 @@ public String toString() { "createdAt", createdAt, "iban", iban, "id", id, - "metadata", metadata, "name", name, "provider", provider, "relatedAccounts", relatedAccounts, @@ -374,6 +374,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> bankAccountMetadata = JsonNullable.undefined(); + private Optional accountID = Optional.empty(); private Optional accountNumber = Optional.empty(); @@ -388,8 +390,6 @@ public final static class Builder { private String id; - private JsonNullable> metadata = JsonNullable.undefined(); - private String name; private Optional provider = Optional.empty(); @@ -403,6 +403,19 @@ private Builder() { } + public Builder bankAccountMetadata(Map bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = JsonNullable.of(bankAccountMetadata); + return this; + } + + public Builder bankAccountMetadata(JsonNullable> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + return this; + } + + public Builder accountID(String accountID) { Utils.checkNotNull(accountID, "accountID"); this.accountID = Optional.ofNullable(accountID); @@ -476,19 +489,6 @@ public Builder id(String id) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -537,9 +537,9 @@ public Builder swiftBicCode(Optional swiftBicCode) { public BankAccount build() { return new BankAccount( - accountID, accountNumber, connectorID, - country, createdAt, iban, - id, metadata, name, + bankAccountMetadata, accountID, accountNumber, + connectorID, country, createdAt, + iban, id, name, provider, relatedAccounts, swiftBicCode); } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountRelatedAccounts.java b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountRelatedAccounts.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/BankAccountRelatedAccounts.java rename to src/main/java/com/formance/formance_sdk/models/payments/BankAccountRelatedAccounts.java index 0995b9e43..8f598d733 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountRelatedAccounts.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountRelatedAccounts.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountRequest.java similarity index 81% rename from src/main/java/com/formance/formance_sdk/models/shared/BankAccountRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/BankAccountRequest.java index 1de9ae859..888b97731 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,6 +19,11 @@ public class BankAccountRequest { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> bankAccountMetadata; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountNumber") private Optional accountNumber; @@ -38,11 +43,6 @@ public class BankAccountRequest { private Optional iban; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("name") private String name; @@ -53,25 +53,25 @@ public class BankAccountRequest { @JsonCreator public BankAccountRequest( + @JsonProperty("metadata") JsonNullable> bankAccountMetadata, @JsonProperty("accountNumber") Optional accountNumber, @JsonProperty("connectorID") Optional connectorID, @JsonProperty("country") String country, @JsonProperty("iban") Optional iban, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("name") String name, @JsonProperty("swiftBicCode") Optional swiftBicCode) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); Utils.checkNotNull(accountNumber, "accountNumber"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(country, "country"); Utils.checkNotNull(iban, "iban"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(swiftBicCode, "swiftBicCode"); + this.bankAccountMetadata = bankAccountMetadata; this.accountNumber = accountNumber; this.connectorID = connectorID; this.country = country; this.iban = iban; - this.metadata = metadata; this.name = name; this.swiftBicCode = swiftBicCode; } @@ -79,11 +79,17 @@ public BankAccountRequest( public BankAccountRequest( String country, String name) { - this(Optional.empty(), Optional.empty(), country, - Optional.empty(), JsonNullable.undefined(), name, + this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), + country, Optional.empty(), name, Optional.empty()); } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> bankAccountMetadata() { + return (JsonNullable>) bankAccountMetadata; + } + @JsonIgnore public Optional accountNumber() { return accountNumber; @@ -104,12 +110,6 @@ public Optional iban() { return iban; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String name() { return name; @@ -125,6 +125,18 @@ public static Builder builder() { } + public BankAccountRequest withBankAccountMetadata(Map bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = JsonNullable.of(bankAccountMetadata); + return this; + } + + public BankAccountRequest withBankAccountMetadata(JsonNullable> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + return this; + } + public BankAccountRequest withAccountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); this.accountNumber = Optional.ofNullable(accountNumber); @@ -170,18 +182,6 @@ public BankAccountRequest withIban(Optional iban) { return this; } - public BankAccountRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public BankAccountRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public BankAccountRequest withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -211,11 +211,11 @@ public boolean equals(java.lang.Object o) { } BankAccountRequest other = (BankAccountRequest) o; return + Utils.enhancedDeepEquals(this.bankAccountMetadata, other.bankAccountMetadata) && Utils.enhancedDeepEquals(this.accountNumber, other.accountNumber) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.country, other.country) && Utils.enhancedDeepEquals(this.iban, other.iban) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.swiftBicCode, other.swiftBicCode); } @@ -223,19 +223,19 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - accountNumber, connectorID, country, - iban, metadata, name, + bankAccountMetadata, accountNumber, connectorID, + country, iban, name, swiftBicCode); } @Override public String toString() { return Utils.toString(BankAccountRequest.class, + "bankAccountMetadata", bankAccountMetadata, "accountNumber", accountNumber, "connectorID", connectorID, "country", country, "iban", iban, - "metadata", metadata, "name", name, "swiftBicCode", swiftBicCode); } @@ -243,6 +243,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> bankAccountMetadata = JsonNullable.undefined(); + private Optional accountNumber = Optional.empty(); private Optional connectorID = Optional.empty(); @@ -251,8 +253,6 @@ public final static class Builder { private Optional iban = Optional.empty(); - private JsonNullable> metadata = JsonNullable.undefined(); - private String name; private Optional swiftBicCode = Optional.empty(); @@ -262,6 +262,19 @@ private Builder() { } + public Builder bankAccountMetadata(Map bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = JsonNullable.of(bankAccountMetadata); + return this; + } + + public Builder bankAccountMetadata(JsonNullable> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + return this; + } + + public Builder accountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); this.accountNumber = Optional.ofNullable(accountNumber); @@ -308,19 +321,6 @@ public Builder iban(Optional iban) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -343,8 +343,8 @@ public Builder swiftBicCode(Optional swiftBicCode) { public BankAccountRequest build() { return new BankAccountRequest( - accountNumber, connectorID, country, - iban, metadata, name, + bankAccountMetadata, accountNumber, connectorID, + country, iban, name, swiftBicCode); } diff --git a/src/main/java/com/formance/formance_sdk/models/payments/BankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountResponse.java new file mode 100644 index 000000000..b68dead6c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * BankAccountResponse + * + *

OK + */ +public class BankAccountResponse { + + @JsonProperty("data") + private BankAccount bankAccount; + + @JsonCreator + public BankAccountResponse( + @JsonProperty("data") BankAccount bankAccount) { + Utils.checkNotNull(bankAccount, "bankAccount"); + this.bankAccount = bankAccount; + } + + @JsonIgnore + public BankAccount bankAccount() { + return bankAccount; + } + + public static Builder builder() { + return new Builder(); + } + + + public BankAccountResponse withBankAccount(BankAccount bankAccount) { + Utils.checkNotNull(bankAccount, "bankAccount"); + this.bankAccount = bankAccount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BankAccountResponse other = (BankAccountResponse) o; + return + Utils.enhancedDeepEquals(this.bankAccount, other.bankAccount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + bankAccount); + } + + @Override + public String toString() { + return Utils.toString(BankAccountResponse.class, + "bankAccount", bankAccount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BankAccount bankAccount; + + private Builder() { + // force use of static builder() method + } + + + public Builder bankAccount(BankAccount bankAccount) { + Utils.checkNotNull(bankAccount, "bankAccount"); + this.bankAccount = bankAccount; + return this; + } + + public BankAccountResponse build() { + + return new BankAccountResponse( + bankAccount); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursor.java new file mode 100644 index 000000000..179a3d947 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * BankAccountsCursor + * + *

OK + */ +public class BankAccountsCursor { + + @JsonProperty("cursor") + private BankAccountsCursorCursorBase cursorBase; + + @JsonCreator + public BankAccountsCursor( + @JsonProperty("cursor") BankAccountsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public BankAccountsCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public BankAccountsCursor withCursorBase(BankAccountsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BankAccountsCursor other = (BankAccountsCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(BankAccountsCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BankAccountsCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(BankAccountsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public BankAccountsCursor build() { + + return new BankAccountsCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursorCursorBase.java new file mode 100644 index 000000000..32822c8cf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankAccountsCursorCursorBase.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class BankAccountsCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public BankAccountsCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public BankAccountsCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public BankAccountsCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public BankAccountsCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public BankAccountsCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public BankAccountsCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public BankAccountsCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public BankAccountsCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public BankAccountsCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BankAccountsCursorCursorBase other = (BankAccountsCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(BankAccountsCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public BankAccountsCursorCursorBase build() { + + return new BankAccountsCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankingCircleConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/BankingCircleConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/BankingCircleConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/BankingCircleConfig.java index b615063e6..22ded3b0d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankingCircleConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/BankingCircleConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class BankingCircleConfig implements ConnectorConfig { +public class BankingCircleConfig { @JsonProperty("authorizationEndpoint") private String authorizationEndpoint; @@ -132,9 +132,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/payments/Config.java b/src/main/java/com/formance/formance_sdk/models/payments/Config.java new file mode 100644 index 000000000..23e30a856 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/Config.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class Config { + @JsonCreator + public Config() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(Config.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public Config build() { + + return new Config( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/Connector.java b/src/main/java/com/formance/formance_sdk/models/payments/Connector.java new file mode 100644 index 000000000..b793d74c1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/Connector.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum Connector { + STRIPE("STRIPE"), + DUMMY_PAY("DUMMY-PAY"), + WISE("WISE"), + MODULR("MODULR"), + CURRENCY_CLOUD("CURRENCY-CLOUD"), + BANKING_CIRCLE("BANKING-CIRCLE"), + MANGOPAY("MANGOPAY"), + MONEYCORP("MONEYCORP"), + ATLAR("ATLAR"), + ADYEN("ADYEN"), + GENERIC("GENERIC"); + + @JsonValue + private final String value; + + Connector(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (Connector o: Connector.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfig.java new file mode 100644 index 000000000..be2609b5e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfig.java @@ -0,0 +1,157 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = ConnectorConfig._Deserializer.class) +public class ConnectorConfig { + + @JsonValue + private final TypedObject value; + + private ConnectorConfig(TypedObject value) { + this.value = value; + } + + public static ConnectorConfig of(StripeConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(DummyPayConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(WiseConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(ModulrConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(CurrencyCloudConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(BankingCircleConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(MangoPayConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(MoneycorpConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(AtlarConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(AdyenConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static ConnectorConfig of(GenericConfig value) { + Utils.checkNotNull(value, "value"); + return new ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *

    + *
  • {@code com.formance.formance_sdk.models.payments.StripeConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.DummyPayConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.WiseConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.ModulrConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.CurrencyCloudConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.BankingCircleConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.MangoPayConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.MoneycorpConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.AtlarConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.AdyenConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.GenericConfig}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectorConfig other = (ConnectorConfig) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(ConnectorConfig.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(ConnectorConfig.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfigResponse.java new file mode 100644 index 000000000..3ead447d6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorConfigResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * ConnectorConfigResponse + * + *

OK + */ +public class ConnectorConfigResponse { + + @JsonProperty("data") + private ConnectorConfig connectorConfig; + + @JsonCreator + public ConnectorConfigResponse( + @JsonProperty("data") ConnectorConfig connectorConfig) { + Utils.checkNotNull(connectorConfig, "connectorConfig"); + this.connectorConfig = connectorConfig; + } + + @JsonIgnore + public ConnectorConfig connectorConfig() { + return connectorConfig; + } + + public static Builder builder() { + return new Builder(); + } + + + public ConnectorConfigResponse withConnectorConfig(ConnectorConfig connectorConfig) { + Utils.checkNotNull(connectorConfig, "connectorConfig"); + this.connectorConfig = connectorConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConnectorConfigResponse other = (ConnectorConfigResponse) o; + return + Utils.enhancedDeepEquals(this.connectorConfig, other.connectorConfig); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connectorConfig); + } + + @Override + public String toString() { + return Utils.toString(ConnectorConfigResponse.class, + "connectorConfig", connectorConfig); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ConnectorConfig connectorConfig; + + private Builder() { + // force use of static builder() method + } + + + public Builder connectorConfig(ConnectorConfig connectorConfig) { + Utils.checkNotNull(connectorConfig, "connectorConfig"); + this.connectorConfig = connectorConfig; + return this; + } + + public ConnectorConfigResponse build() { + + return new ConnectorConfigResponse( + connectorConfig); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponse.java index 520fe1a57..3dc67159d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponseData.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponseData.java index 3c190cc86..77eaf89b3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponse.java index efeda9a73..6451cf26b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponseData.java index 87197d5b3..655e6cb45 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsConfigsResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsConfigsResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponse.java index 26eecc919..a4ce7d791 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponseData.java similarity index 78% rename from src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponseData.java index 85934a928..fd9b84b3e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorsResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ConnectorsResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,6 +17,10 @@ public class ConnectorsResponseData { + @JsonProperty("provider") + private Connector connector; + + @JsonProperty("connectorID") private String connectorID; @@ -29,32 +33,33 @@ public class ConnectorsResponseData { @JsonProperty("name") private String name; - - @JsonProperty("provider") - private Connector provider; - @JsonCreator public ConnectorsResponseData( + @JsonProperty("provider") Connector connector, @JsonProperty("connectorID") String connectorID, @JsonProperty("enabled") Optional enabled, - @JsonProperty("name") String name, - @JsonProperty("provider") Connector provider) { + @JsonProperty("name") String name) { + Utils.checkNotNull(connector, "connector"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(enabled, "enabled"); Utils.checkNotNull(name, "name"); - Utils.checkNotNull(provider, "provider"); + this.connector = connector; this.connectorID = connectorID; this.enabled = enabled; this.name = name; - this.provider = provider; } public ConnectorsResponseData( + Connector connector, String connectorID, - String name, - Connector provider) { - this(connectorID, Optional.empty(), name, - provider); + String name) { + this(connector, connectorID, Optional.empty(), + name); + } + + @JsonIgnore + public Connector connector() { + return connector; } @JsonIgnore @@ -72,16 +77,17 @@ public String name() { return name; } - @JsonIgnore - public Connector provider() { - return provider; - } - public static Builder builder() { return new Builder(); } + public ConnectorsResponseData withConnector(Connector connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = connector; + return this; + } + public ConnectorsResponseData withConnectorID(String connectorID) { Utils.checkNotNull(connectorID, "connectorID"); this.connectorID = connectorID; @@ -107,12 +113,6 @@ public ConnectorsResponseData withName(String name) { return this; } - public ConnectorsResponseData withProvider(Connector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -123,44 +123,51 @@ public boolean equals(java.lang.Object o) { } ConnectorsResponseData other = (ConnectorsResponseData) o; return + Utils.enhancedDeepEquals(this.connector, other.connector) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.enabled, other.enabled) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.provider, other.provider); + Utils.enhancedDeepEquals(this.name, other.name); } @Override public int hashCode() { return Utils.enhancedHash( - connectorID, enabled, name, - provider); + connector, connectorID, enabled, + name); } @Override public String toString() { return Utils.toString(ConnectorsResponseData.class, + "connector", connector, "connectorID", connectorID, "enabled", enabled, - "name", name, - "provider", provider); + "name", name); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Connector connector; + private String connectorID; private Optional enabled = Optional.empty(); private String name; - private Connector provider; - private Builder() { // force use of static builder() method } + public Builder connector(Connector connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = connector; + return this; + } + + public Builder connectorID(String connectorID) { Utils.checkNotNull(connectorID, "connectorID"); this.connectorID = connectorID; @@ -187,18 +194,11 @@ public Builder name(String name) { return this; } - - public Builder provider(Connector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - public ConnectorsResponseData build() { return new ConnectorsResponseData( - connectorID, enabled, name, - provider); + connector, connectorID, enabled, + name); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CurrencyCloudConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/CurrencyCloudConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/CurrencyCloudConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/CurrencyCloudConfig.java index 0c1ecf605..80852639b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/CurrencyCloudConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/CurrencyCloudConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class CurrencyCloudConfig implements ConnectorConfig { +public class CurrencyCloudConfig { @JsonProperty("apiKey") private String apiKey; @@ -115,9 +115,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/payments/Descriptor.java b/src/main/java/com/formance/formance_sdk/models/payments/Descriptor.java new file mode 100644 index 000000000..a7c987493 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/Descriptor.java @@ -0,0 +1,172 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class Descriptor { + + @JsonProperty("account") + private String account; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("main") + private Optional main; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public Descriptor( + @JsonProperty("account") String account, + @JsonProperty("main") Optional main, + @JsonProperty("name") String name) { + Utils.checkNotNull(account, "account"); + Utils.checkNotNull(main, "main"); + Utils.checkNotNull(name, "name"); + this.account = account; + this.main = main; + this.name = name; + } + + public Descriptor( + String account, + String name) { + this(account, Optional.empty(), name); + } + + @JsonIgnore + public String account() { + return account; + } + + @JsonIgnore + public Optional main() { + return main; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public Descriptor withAccount(String account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + public Descriptor withMain(boolean main) { + Utils.checkNotNull(main, "main"); + this.main = Optional.ofNullable(main); + return this; + } + + + public Descriptor withMain(Optional main) { + Utils.checkNotNull(main, "main"); + this.main = main; + return this; + } + + public Descriptor withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Descriptor other = (Descriptor) o; + return + Utils.enhancedDeepEquals(this.account, other.account) && + Utils.enhancedDeepEquals(this.main, other.main) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + account, main, name); + } + + @Override + public String toString() { + return Utils.toString(Descriptor.class, + "account", account, + "main", main, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String account; + + private Optional main = Optional.empty(); + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder account(String account) { + Utils.checkNotNull(account, "account"); + this.account = account; + return this; + } + + + public Builder main(boolean main) { + Utils.checkNotNull(main, "main"); + this.main = Optional.ofNullable(main); + return this; + } + + public Builder main(Optional main) { + Utils.checkNotNull(main, "main"); + this.main = main; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Descriptor build() { + + return new Descriptor( + account, main, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/DummyPayConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/DummyPayConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/DummyPayConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/DummyPayConfig.java index f43c8a8bc..c4bf7231c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/DummyPayConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/DummyPayConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +17,7 @@ import java.util.Optional; -public class DummyPayConfig implements ConnectorConfig { +public class DummyPayConfig { @JsonProperty("directory") private String directory; @@ -120,9 +120,8 @@ public Optional prefixFileToIngest() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ForwardBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/ForwardBankAccountRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ForwardBankAccountRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/ForwardBankAccountRequest.java index f7e49e1dc..8a5fa2af9 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ForwardBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ForwardBankAccountRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GenericConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/GenericConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/GenericConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/GenericConfig.java index 752ec23ed..dfac31603 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/GenericConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/GenericConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class GenericConfig implements ConnectorConfig { +public class GenericConfig { @JsonProperty("apiKey") private String apiKey; @@ -92,9 +92,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LegacyPaymentStatus.java b/src/main/java/com/formance/formance_sdk/models/payments/LegacyPaymentStatus.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/LegacyPaymentStatus.java rename to src/main/java/com/formance/formance_sdk/models/payments/LegacyPaymentStatus.java index a3dd71174..bb56414fd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/LegacyPaymentStatus.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/LegacyPaymentStatus.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/MangoPayConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/MangoPayConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/MangoPayConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/MangoPayConfig.java index 7519720d9..ecfe8e511 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/MangoPayConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/MangoPayConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class MangoPayConfig implements ConnectorConfig { +public class MangoPayConfig { @JsonProperty("apiKey") private String apiKey; @@ -107,9 +107,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ModulrConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/ModulrConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ModulrConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/ModulrConfig.java index 920a336dc..23e6642b0 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ModulrConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ModulrConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class ModulrConfig implements ConnectorConfig { +public class ModulrConfig { @JsonProperty("apiKey") private String apiKey; @@ -107,9 +107,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/MoneycorpConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/MoneycorpConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/MoneycorpConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/MoneycorpConfig.java index e369dd7b3..78b38def8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/MoneycorpConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/MoneycorpConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class MoneycorpConfig implements ConnectorConfig { +public class MoneycorpConfig { @JsonProperty("apiKey") private String apiKey; @@ -107,9 +107,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/payments/Payment.java b/src/main/java/com/formance/formance_sdk/models/payments/Payment.java new file mode 100644 index 000000000..d7af80b61 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/Payment.java @@ -0,0 +1,630 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class Payment { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("provider") + private Optional connector; + + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional> paymentMetadata; + + + @JsonProperty("scheme") + private PaymentScheme paymentScheme; + + + @JsonProperty("status") + private PaymentStatus paymentStatus; + + + @JsonProperty("type") + private PaymentType paymentType; + + + @JsonProperty("adjustments") + private List adjustments; + + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("destinationAccountID") + private String destinationAccountID; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("initialAmount") + private BigInteger initialAmount; + + + @JsonInclude(Include.ALWAYS) + @JsonProperty("raw") + private Optional raw; + + + @JsonProperty("reference") + private String reference; + + + @JsonProperty("sourceAccountID") + private String sourceAccountID; + + @JsonCreator + public Payment( + @JsonProperty("provider") Optional connector, + @JsonProperty("metadata") Optional> paymentMetadata, + @JsonProperty("scheme") PaymentScheme paymentScheme, + @JsonProperty("status") PaymentStatus paymentStatus, + @JsonProperty("type") PaymentType paymentType, + @JsonProperty("adjustments") List adjustments, + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("destinationAccountID") String destinationAccountID, + @JsonProperty("id") String id, + @JsonProperty("initialAmount") BigInteger initialAmount, + @JsonProperty("raw") Optional raw, + @JsonProperty("reference") String reference, + @JsonProperty("sourceAccountID") String sourceAccountID) { + Utils.checkNotNull(connector, "connector"); + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + Utils.checkNotNull(paymentScheme, "paymentScheme"); + Utils.checkNotNull(paymentStatus, "paymentStatus"); + Utils.checkNotNull(paymentType, "paymentType"); + Utils.checkNotNull(adjustments, "adjustments"); + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(destinationAccountID, "destinationAccountID"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(initialAmount, "initialAmount"); + Utils.checkNotNull(raw, "raw"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(sourceAccountID, "sourceAccountID"); + this.connector = connector; + this.paymentMetadata = paymentMetadata; + this.paymentScheme = paymentScheme; + this.paymentStatus = paymentStatus; + this.paymentType = paymentType; + this.adjustments = adjustments; + this.amount = amount; + this.asset = asset; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.destinationAccountID = destinationAccountID; + this.id = id; + this.initialAmount = initialAmount; + this.raw = raw; + this.reference = reference; + this.sourceAccountID = sourceAccountID; + } + + public Payment( + PaymentScheme paymentScheme, + PaymentStatus paymentStatus, + PaymentType paymentType, + List adjustments, + BigInteger amount, + String asset, + String connectorID, + OffsetDateTime createdAt, + String destinationAccountID, + String id, + BigInteger initialAmount, + String reference, + String sourceAccountID) { + this(Optional.empty(), Optional.empty(), paymentScheme, + paymentStatus, paymentType, adjustments, + amount, asset, connectorID, + createdAt, destinationAccountID, id, + initialAmount, Optional.empty(), reference, + sourceAccountID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional connector() { + return (Optional) connector; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> paymentMetadata() { + return (Optional>) paymentMetadata; + } + + @JsonIgnore + public PaymentScheme paymentScheme() { + return paymentScheme; + } + + @JsonIgnore + public PaymentStatus paymentStatus() { + return paymentStatus; + } + + @JsonIgnore + public PaymentType paymentType() { + return paymentType; + } + + @JsonIgnore + public List adjustments() { + return adjustments; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String destinationAccountID() { + return destinationAccountID; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public BigInteger initialAmount() { + return initialAmount; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional raw() { + return (Optional) raw; + } + + @JsonIgnore + public String reference() { + return reference; + } + + @JsonIgnore + public String sourceAccountID() { + return sourceAccountID; + } + + public static Builder builder() { + return new Builder(); + } + + + public Payment withConnector(Connector connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = Optional.ofNullable(connector); + return this; + } + + + public Payment withConnector(Optional connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = connector; + return this; + } + + public Payment withPaymentMetadata(Map paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = Optional.ofNullable(paymentMetadata); + return this; + } + + + public Payment withPaymentMetadata(Optional> paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = paymentMetadata; + return this; + } + + public Payment withPaymentScheme(PaymentScheme paymentScheme) { + Utils.checkNotNull(paymentScheme, "paymentScheme"); + this.paymentScheme = paymentScheme; + return this; + } + + public Payment withPaymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + public Payment withPaymentType(PaymentType paymentType) { + Utils.checkNotNull(paymentType, "paymentType"); + this.paymentType = paymentType; + return this; + } + + public Payment withAdjustments(List adjustments) { + Utils.checkNotNull(adjustments, "adjustments"); + this.adjustments = adjustments; + return this; + } + + public Payment withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Payment withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public Payment withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Payment withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public Payment withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public Payment withDestinationAccountID(String destinationAccountID) { + Utils.checkNotNull(destinationAccountID, "destinationAccountID"); + this.destinationAccountID = destinationAccountID; + return this; + } + + public Payment withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Payment withInitialAmount(long initialAmount) { + this.initialAmount = BigInteger.valueOf(initialAmount); + return this; + } + + public Payment withInitialAmount(BigInteger initialAmount) { + Utils.checkNotNull(initialAmount, "initialAmount"); + this.initialAmount = initialAmount; + return this; + } + + public Payment withRaw(PaymentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = Optional.ofNullable(raw); + return this; + } + + + public Payment withRaw(Optional raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public Payment withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Payment withSourceAccountID(String sourceAccountID) { + Utils.checkNotNull(sourceAccountID, "sourceAccountID"); + this.sourceAccountID = sourceAccountID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Payment other = (Payment) o; + return + Utils.enhancedDeepEquals(this.connector, other.connector) && + Utils.enhancedDeepEquals(this.paymentMetadata, other.paymentMetadata) && + Utils.enhancedDeepEquals(this.paymentScheme, other.paymentScheme) && + Utils.enhancedDeepEquals(this.paymentStatus, other.paymentStatus) && + Utils.enhancedDeepEquals(this.paymentType, other.paymentType) && + Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && + Utils.enhancedDeepEquals(this.raw, other.raw) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + connector, paymentMetadata, paymentScheme, + paymentStatus, paymentType, adjustments, + amount, asset, connectorID, + createdAt, destinationAccountID, id, + initialAmount, raw, reference, + sourceAccountID); + } + + @Override + public String toString() { + return Utils.toString(Payment.class, + "connector", connector, + "paymentMetadata", paymentMetadata, + "paymentScheme", paymentScheme, + "paymentStatus", paymentStatus, + "paymentType", paymentType, + "adjustments", adjustments, + "amount", amount, + "asset", asset, + "connectorID", connectorID, + "createdAt", createdAt, + "destinationAccountID", destinationAccountID, + "id", id, + "initialAmount", initialAmount, + "raw", raw, + "reference", reference, + "sourceAccountID", sourceAccountID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional connector = Optional.empty(); + + private Optional> paymentMetadata = Optional.empty(); + + private PaymentScheme paymentScheme; + + private PaymentStatus paymentStatus; + + private PaymentType paymentType; + + private List adjustments; + + private BigInteger amount; + + private String asset; + + private String connectorID; + + private OffsetDateTime createdAt; + + private String destinationAccountID; + + private String id; + + private BigInteger initialAmount; + + private Optional raw = Optional.empty(); + + private String reference; + + private String sourceAccountID; + + private Builder() { + // force use of static builder() method + } + + + public Builder connector(Connector connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = Optional.ofNullable(connector); + return this; + } + + public Builder connector(Optional connector) { + Utils.checkNotNull(connector, "connector"); + this.connector = connector; + return this; + } + + + public Builder paymentMetadata(Map paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = Optional.ofNullable(paymentMetadata); + return this; + } + + public Builder paymentMetadata(Optional> paymentMetadata) { + Utils.checkNotNull(paymentMetadata, "paymentMetadata"); + this.paymentMetadata = paymentMetadata; + return this; + } + + + public Builder paymentScheme(PaymentScheme paymentScheme) { + Utils.checkNotNull(paymentScheme, "paymentScheme"); + this.paymentScheme = paymentScheme; + return this; + } + + + public Builder paymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + + public Builder paymentType(PaymentType paymentType) { + Utils.checkNotNull(paymentType, "paymentType"); + this.paymentType = paymentType; + return this; + } + + + public Builder adjustments(List adjustments) { + Utils.checkNotNull(adjustments, "adjustments"); + this.adjustments = adjustments; + return this; + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder destinationAccountID(String destinationAccountID) { + Utils.checkNotNull(destinationAccountID, "destinationAccountID"); + this.destinationAccountID = destinationAccountID; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder initialAmount(long initialAmount) { + this.initialAmount = BigInteger.valueOf(initialAmount); + return this; + } + + public Builder initialAmount(BigInteger initialAmount) { + Utils.checkNotNull(initialAmount, "initialAmount"); + this.initialAmount = initialAmount; + return this; + } + + + public Builder raw(PaymentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = Optional.ofNullable(raw); + return this; + } + + public Builder raw(Optional raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder sourceAccountID(String sourceAccountID) { + Utils.checkNotNull(sourceAccountID, "sourceAccountID"); + this.sourceAccountID = sourceAccountID; + return this; + } + + public Payment build() { + + return new Payment( + connector, paymentMetadata, paymentScheme, + paymentStatus, paymentType, adjustments, + amount, asset, connectorID, + createdAt, destinationAccountID, id, + initialAmount, raw, reference, + sourceAccountID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustment.java new file mode 100644 index 000000000..22eb33a1e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustment.java @@ -0,0 +1,220 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; +import java.time.OffsetDateTime; + + +public class PaymentAdjustment { + + @JsonProperty("status") + private PaymentStatus paymentStatus; + + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("raw") + private PaymentAdjustmentRaw raw; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public PaymentAdjustment( + @JsonProperty("status") PaymentStatus paymentStatus, + @JsonProperty("amount") BigInteger amount, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("raw") PaymentAdjustmentRaw raw, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(raw, "raw"); + Utils.checkNotNull(reference, "reference"); + this.paymentStatus = paymentStatus; + this.amount = amount; + this.createdAt = createdAt; + this.raw = raw; + this.reference = reference; + } + + @JsonIgnore + public PaymentStatus paymentStatus() { + return paymentStatus; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public PaymentAdjustmentRaw raw() { + return raw; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentAdjustment withPaymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + public PaymentAdjustment withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public PaymentAdjustment withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public PaymentAdjustment withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public PaymentAdjustment withRaw(PaymentAdjustmentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public PaymentAdjustment withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentAdjustment other = (PaymentAdjustment) o; + return + Utils.enhancedDeepEquals(this.paymentStatus, other.paymentStatus) && + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.raw, other.raw) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + paymentStatus, amount, createdAt, + raw, reference); + } + + @Override + public String toString() { + return Utils.toString(PaymentAdjustment.class, + "paymentStatus", paymentStatus, + "amount", amount, + "createdAt", createdAt, + "raw", raw, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PaymentStatus paymentStatus; + + private BigInteger amount; + + private OffsetDateTime createdAt; + + private PaymentAdjustmentRaw raw; + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder paymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder raw(PaymentAdjustmentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public PaymentAdjustment build() { + + return new PaymentAdjustment( + paymentStatus, amount, createdAt, + raw, reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustmentRaw.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustmentRaw.java new file mode 100644 index 000000000..e0b1b34ca --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentAdjustmentRaw.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PaymentAdjustmentRaw { + @JsonCreator + public PaymentAdjustmentRaw() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(PaymentAdjustmentRaw.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public PaymentAdjustmentRaw build() { + + return new PaymentAdjustmentRaw( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentRaw.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentRaw.java new file mode 100644 index 000000000..76c9ba774 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentRaw.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class PaymentRaw { + @JsonCreator + public PaymentRaw() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(PaymentRaw.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public PaymentRaw build() { + + return new PaymentRaw( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentRequest.java similarity index 76% rename from src/main/java/com/formance/formance_sdk/models/shared/PaymentRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/PaymentRequest.java index 986a8183c..ecc677a29 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,6 +18,18 @@ public class PaymentRequest { + @JsonProperty("scheme") + private PaymentScheme paymentScheme; + + + @JsonProperty("status") + private PaymentStatus paymentStatus; + + + @JsonProperty("type") + private PaymentType paymentType; + + @JsonProperty("amount") private BigInteger amount; @@ -43,69 +55,72 @@ public class PaymentRequest { private String reference; - @JsonProperty("scheme") - private PaymentScheme scheme; - - @JsonInclude(Include.NON_ABSENT) @JsonProperty("sourceAccountID") private Optional sourceAccountID; - - @JsonProperty("status") - private PaymentStatus status; - - - @JsonProperty("type") - private PaymentType type; - @JsonCreator public PaymentRequest( + @JsonProperty("scheme") PaymentScheme paymentScheme, + @JsonProperty("status") PaymentStatus paymentStatus, + @JsonProperty("type") PaymentType paymentType, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("destinationAccountID") Optional destinationAccountID, @JsonProperty("reference") String reference, - @JsonProperty("scheme") PaymentScheme scheme, - @JsonProperty("sourceAccountID") Optional sourceAccountID, - @JsonProperty("status") PaymentStatus status, - @JsonProperty("type") PaymentType type) { + @JsonProperty("sourceAccountID") Optional sourceAccountID) { + Utils.checkNotNull(paymentScheme, "paymentScheme"); + Utils.checkNotNull(paymentStatus, "paymentStatus"); + Utils.checkNotNull(paymentType, "paymentType"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(destinationAccountID, "destinationAccountID"); Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(scheme, "scheme"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); + this.paymentScheme = paymentScheme; + this.paymentStatus = paymentStatus; + this.paymentType = paymentType; this.amount = amount; this.asset = asset; this.connectorID = connectorID; this.createdAt = createdAt; this.destinationAccountID = destinationAccountID; this.reference = reference; - this.scheme = scheme; this.sourceAccountID = sourceAccountID; - this.status = status; - this.type = type; } public PaymentRequest( + PaymentScheme paymentScheme, + PaymentStatus paymentStatus, + PaymentType paymentType, BigInteger amount, String asset, String connectorID, OffsetDateTime createdAt, - String reference, - PaymentScheme scheme, - PaymentStatus status, - PaymentType type) { - this(amount, asset, connectorID, + String reference) { + this(paymentScheme, paymentStatus, paymentType, + amount, asset, connectorID, createdAt, Optional.empty(), reference, - scheme, Optional.empty(), status, - type); + Optional.empty()); + } + + @JsonIgnore + public PaymentScheme paymentScheme() { + return paymentScheme; + } + + @JsonIgnore + public PaymentStatus paymentStatus() { + return paymentStatus; + } + + @JsonIgnore + public PaymentType paymentType() { + return paymentType; } @JsonIgnore @@ -138,30 +153,33 @@ public String reference() { return reference; } - @JsonIgnore - public PaymentScheme scheme() { - return scheme; - } - @JsonIgnore public Optional sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public PaymentStatus status() { - return status; + public static Builder builder() { + return new Builder(); } - @JsonIgnore - public PaymentType type() { - return type; + + public PaymentRequest withPaymentScheme(PaymentScheme paymentScheme) { + Utils.checkNotNull(paymentScheme, "paymentScheme"); + this.paymentScheme = paymentScheme; + return this; } - public static Builder builder() { - return new Builder(); + public PaymentRequest withPaymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; } + public PaymentRequest withPaymentType(PaymentType paymentType) { + Utils.checkNotNull(paymentType, "paymentType"); + this.paymentType = paymentType; + return this; + } public PaymentRequest withAmount(long amount) { this.amount = BigInteger.valueOf(amount); @@ -211,12 +229,6 @@ public PaymentRequest withReference(String reference) { return this; } - public PaymentRequest withScheme(PaymentScheme scheme) { - Utils.checkNotNull(scheme, "scheme"); - this.scheme = scheme; - return this; - } - public PaymentRequest withSourceAccountID(String sourceAccountID) { Utils.checkNotNull(sourceAccountID, "sourceAccountID"); this.sourceAccountID = Optional.ofNullable(sourceAccountID); @@ -230,18 +242,6 @@ public PaymentRequest withSourceAccountID(Optional sourceAccountID) { return this; } - public PaymentRequest withStatus(PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public PaymentRequest withType(PaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -252,45 +252,51 @@ public boolean equals(java.lang.Object o) { } PaymentRequest other = (PaymentRequest) o; return + Utils.enhancedDeepEquals(this.paymentScheme, other.paymentScheme) && + Utils.enhancedDeepEquals(this.paymentStatus, other.paymentStatus) && + Utils.enhancedDeepEquals(this.paymentType, other.paymentType) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.scheme, other.scheme) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID); } @Override public int hashCode() { return Utils.enhancedHash( + paymentScheme, paymentStatus, paymentType, amount, asset, connectorID, createdAt, destinationAccountID, reference, - scheme, sourceAccountID, status, - type); + sourceAccountID); } @Override public String toString() { return Utils.toString(PaymentRequest.class, + "paymentScheme", paymentScheme, + "paymentStatus", paymentStatus, + "paymentType", paymentType, "amount", amount, "asset", asset, "connectorID", connectorID, "createdAt", createdAt, "destinationAccountID", destinationAccountID, "reference", reference, - "scheme", scheme, - "sourceAccountID", sourceAccountID, - "status", status, - "type", type); + "sourceAccountID", sourceAccountID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private PaymentScheme paymentScheme; + + private PaymentStatus paymentStatus; + + private PaymentType paymentType; + private BigInteger amount; private String asset; @@ -303,19 +309,34 @@ public final static class Builder { private String reference; - private PaymentScheme scheme; - private Optional sourceAccountID = Optional.empty(); - private PaymentStatus status; - - private PaymentType type; - private Builder() { // force use of static builder() method } + public Builder paymentScheme(PaymentScheme paymentScheme) { + Utils.checkNotNull(paymentScheme, "paymentScheme"); + this.paymentScheme = paymentScheme; + return this; + } + + + public Builder paymentStatus(PaymentStatus paymentStatus) { + Utils.checkNotNull(paymentStatus, "paymentStatus"); + this.paymentStatus = paymentStatus; + return this; + } + + + public Builder paymentType(PaymentType paymentType) { + Utils.checkNotNull(paymentType, "paymentType"); + this.paymentType = paymentType; + return this; + } + + public Builder amount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -369,13 +390,6 @@ public Builder reference(String reference) { } - public Builder scheme(PaymentScheme scheme) { - Utils.checkNotNull(scheme, "scheme"); - this.scheme = scheme; - return this; - } - - public Builder sourceAccountID(String sourceAccountID) { Utils.checkNotNull(sourceAccountID, "sourceAccountID"); this.sourceAccountID = Optional.ofNullable(sourceAccountID); @@ -388,27 +402,13 @@ public Builder sourceAccountID(Optional sourceAccountID) { return this; } - - public Builder status(PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder type(PaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public PaymentRequest build() { return new PaymentRequest( + paymentScheme, paymentStatus, paymentType, amount, asset, connectorID, createdAt, destinationAccountID, reference, - scheme, sourceAccountID, status, - type); + sourceAccountID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentResponse.java new file mode 100644 index 000000000..615bc0a5f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * PaymentResponse + * + *

OK + */ +public class PaymentResponse { + + @JsonProperty("data") + private Payment payment; + + @JsonCreator + public PaymentResponse( + @JsonProperty("data") Payment payment) { + Utils.checkNotNull(payment, "payment"); + this.payment = payment; + } + + @JsonIgnore + public Payment payment() { + return payment; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentResponse withPayment(Payment payment) { + Utils.checkNotNull(payment, "payment"); + this.payment = payment; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentResponse other = (PaymentResponse) o; + return + Utils.enhancedDeepEquals(this.payment, other.payment); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + payment); + } + + @Override + public String toString() { + return Utils.toString(PaymentResponse.class, + "payment", payment); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Payment payment; + + private Builder() { + // force use of static builder() method + } + + + public Builder payment(Payment payment) { + Utils.checkNotNull(payment, "payment"); + this.payment = payment; + return this; + } + + public PaymentResponse build() { + + return new PaymentResponse( + payment); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentScheme.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentScheme.java new file mode 100644 index 000000000..a4c51490b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentScheme.java @@ -0,0 +1,57 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum PaymentScheme { + UNKNOWN("unknown"), + OTHER("other"), + VISA("visa"), + MASTERCARD("mastercard"), + AMEX("amex"), + DINERS("diners"), + DISCOVER("discover"), + JCB("jcb"), + UNIONPAY("unionpay"), + ALIPAY("alipay"), + CUP("cup"), + SEPA_DEBIT("sepa debit"), + SEPA_CREDIT("sepa credit"), + SEPA("sepa"), + APPLE_PAY("apple pay"), + GOOGLE_PAY("google pay"), + DOKU("doku"), + DRAGONPAY("dragonpay"), + MAESTRO("maestro"), + MOLPAY("molpay"), + A2A("a2a"), + ACH_DEBIT("ach debit"), + ACH("ach"), + RTP("rtp"); + + @JsonValue + private final String value; + + PaymentScheme(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PaymentScheme o: PaymentScheme.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentStatus.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentStatus.java new file mode 100644 index 000000000..61b9b590e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentStatus.java @@ -0,0 +1,44 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum PaymentStatus { + PENDING("PENDING"), + SUCCEEDED("SUCCEEDED"), + CANCELLED("CANCELLED"), + FAILED("FAILED"), + EXPIRED("EXPIRED"), + REFUNDED("REFUNDED"), + REFUNDED_FAILURE("REFUNDED_FAILURE"), + DISPUTE("DISPUTE"), + DISPUTE_WON("DISPUTE_WON"), + DISPUTE_LOST("DISPUTE_LOST"), + OTHER("OTHER"); + + @JsonValue + private final String value; + + PaymentStatus(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PaymentStatus o: PaymentStatus.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentType.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentType.java new file mode 100644 index 000000000..060fce737 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentType.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum PaymentType { + PAY_IN("PAY-IN"), + PAYOUT("PAYOUT"), + TRANSFER("TRANSFER"), + OTHER("OTHER"); + + @JsonValue + private final String value; + + PaymentType(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (PaymentType o: PaymentType.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursor.java new file mode 100644 index 000000000..04b02124d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * PaymentsCursor + * + *

OK + */ +public class PaymentsCursor { + + @JsonProperty("cursor") + private PaymentsCursorCursorBase cursorBase; + + @JsonCreator + public PaymentsCursor( + @JsonProperty("cursor") PaymentsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public PaymentsCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentsCursor withCursorBase(PaymentsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentsCursor other = (PaymentsCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(PaymentsCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PaymentsCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(PaymentsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public PaymentsCursor build() { + + return new PaymentsCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursorCursorBase.java new file mode 100644 index 000000000..525ccbc4d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsCursorCursorBase.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class PaymentsCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public PaymentsCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public PaymentsCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public PaymentsCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public PaymentsCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public PaymentsCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public PaymentsCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public PaymentsCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public PaymentsCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public PaymentsCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentsCursorCursorBase other = (PaymentsCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(PaymentsCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public PaymentsCursorCursorBase build() { + + return new PaymentsCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/errors/PaymentsErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorResponse.java similarity index 76% rename from src/main/java/com/formance/formance_sdk/models/errors/PaymentsErrorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorResponse.java index 1ba9f2a25..37b0deb11 100644 --- a/src/main/java/com/formance/formance_sdk/models/errors/PaymentsErrorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorResponse.java @@ -1,12 +1,12 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.errors; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.models.shared.PaymentsErrorsEnum; +import com.formance.formance_sdk.models.errors.SDKBaseError; import com.formance.formance_sdk.utils.Utils; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; @@ -54,8 +54,8 @@ public static PaymentsErrorResponse from(HttpResponse response) { } @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); + public Optional paymentsErrorsEnum() { + return data().map(Data::paymentsErrorsEnum); } @Deprecated @@ -81,7 +81,7 @@ public Optional deserializationException() { public static class Data { @JsonProperty("errorCode") - private PaymentsErrorsEnum errorCode; + private PaymentsErrorsEnum paymentsErrorsEnum; @JsonProperty("errorMessage") @@ -89,17 +89,17 @@ public static class Data { @JsonCreator public Data( - @JsonProperty("errorCode") PaymentsErrorsEnum errorCode, + @JsonProperty("errorCode") PaymentsErrorsEnum paymentsErrorsEnum, @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(errorCode, "errorCode"); + Utils.checkNotNull(paymentsErrorsEnum, "paymentsErrorsEnum"); Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorCode = errorCode; + this.paymentsErrorsEnum = paymentsErrorsEnum; this.errorMessage = errorMessage; } @JsonIgnore - public PaymentsErrorsEnum errorCode() { - return errorCode; + public PaymentsErrorsEnum paymentsErrorsEnum() { + return paymentsErrorsEnum; } @JsonIgnore @@ -112,9 +112,9 @@ public static Builder builder() { } - public Data withErrorCode(PaymentsErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; + public Data withPaymentsErrorsEnum(PaymentsErrorsEnum paymentsErrorsEnum) { + Utils.checkNotNull(paymentsErrorsEnum, "paymentsErrorsEnum"); + this.paymentsErrorsEnum = paymentsErrorsEnum; return this; } @@ -134,27 +134,27 @@ public boolean equals(java.lang.Object o) { } Data other = (Data) o; return - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && + Utils.enhancedDeepEquals(this.paymentsErrorsEnum, other.paymentsErrorsEnum) && Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); } @Override public int hashCode() { return Utils.enhancedHash( - errorCode, errorMessage); + paymentsErrorsEnum, errorMessage); } @Override public String toString() { return Utils.toString(Data.class, - "errorCode", errorCode, + "paymentsErrorsEnum", paymentsErrorsEnum, "errorMessage", errorMessage); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private PaymentsErrorsEnum errorCode; + private PaymentsErrorsEnum paymentsErrorsEnum; private String errorMessage; @@ -163,9 +163,9 @@ private Builder() { } - public Builder errorCode(PaymentsErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; + public Builder paymentsErrorsEnum(PaymentsErrorsEnum paymentsErrorsEnum) { + Utils.checkNotNull(paymentsErrorsEnum, "paymentsErrorsEnum"); + this.paymentsErrorsEnum = paymentsErrorsEnum; return this; } @@ -179,7 +179,7 @@ public Builder errorMessage(String errorMessage) { public Data build() { return new Data( - errorCode, errorMessage); + paymentsErrorsEnum, errorMessage); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorsEnum.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/PaymentsErrorsEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorsEnum.java index 09e1bbc4e..40126d5bb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsErrorsEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PaymentsErrorsEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Pool.java b/src/main/java/com/formance/formance_sdk/models/payments/Pool.java similarity index 76% rename from src/main/java/com/formance/formance_sdk/models/shared/Pool.java rename to src/main/java/com/formance/formance_sdk/models/payments/Pool.java index be4bd6fcb..7e92efaa8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Pool.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/Pool.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,6 +20,11 @@ public class Pool { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private Optional poolTypeEnum; + + @JsonProperty("accounts") private List accounts; @@ -36,36 +41,37 @@ public class Pool { @JsonProperty("query") private Optional> query; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - @JsonCreator public Pool( + @JsonProperty("type") Optional poolTypeEnum, @JsonProperty("accounts") List accounts, @JsonProperty("id") String id, @JsonProperty("name") String name, - @JsonProperty("query") Optional> query, - @JsonProperty("type") Optional type) { + @JsonProperty("query") Optional> query) { + Utils.checkNotNull(poolTypeEnum, "poolTypeEnum"); Utils.checkNotNull(accounts, "accounts"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(query, "query"); - Utils.checkNotNull(type, "type"); + this.poolTypeEnum = poolTypeEnum; this.accounts = accounts; this.id = id; this.name = name; this.query = query; - this.type = type; } public Pool( List accounts, String id, String name) { - this(accounts, id, name, - Optional.empty(), Optional.empty()); + this(Optional.empty(), accounts, id, + name, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional poolTypeEnum() { + return (Optional) poolTypeEnum; } @JsonIgnore @@ -89,17 +95,24 @@ public Optional> query() { return (Optional>) query; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - public static Builder builder() { return new Builder(); } + public Pool withPoolTypeEnum(PoolTypeEnum poolTypeEnum) { + Utils.checkNotNull(poolTypeEnum, "poolTypeEnum"); + this.poolTypeEnum = Optional.ofNullable(poolTypeEnum); + return this; + } + + + public Pool withPoolTypeEnum(Optional poolTypeEnum) { + Utils.checkNotNull(poolTypeEnum, "poolTypeEnum"); + this.poolTypeEnum = poolTypeEnum; + return this; + } + public Pool withAccounts(List accounts) { Utils.checkNotNull(accounts, "accounts"); this.accounts = accounts; @@ -131,19 +144,6 @@ public Pool withQuery(Optional> query) { return this; } - public Pool withType(PoolTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - - public Pool withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -154,33 +154,35 @@ public boolean equals(java.lang.Object o) { } Pool other = (Pool) o; return + Utils.enhancedDeepEquals(this.poolTypeEnum, other.poolTypeEnum) && Utils.enhancedDeepEquals(this.accounts, other.accounts) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.query, other.query) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.query, other.query); } @Override public int hashCode() { return Utils.enhancedHash( - accounts, id, name, - query, type); + poolTypeEnum, accounts, id, + name, query); } @Override public String toString() { return Utils.toString(Pool.class, + "poolTypeEnum", poolTypeEnum, "accounts", accounts, "id", id, "name", name, - "query", query, - "type", type); + "query", query); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional poolTypeEnum = Optional.empty(); + private List accounts; private String id; @@ -189,13 +191,24 @@ public final static class Builder { private Optional> query = Optional.empty(); - private Optional type = Optional.empty(); - private Builder() { // force use of static builder() method } + public Builder poolTypeEnum(PoolTypeEnum poolTypeEnum) { + Utils.checkNotNull(poolTypeEnum, "poolTypeEnum"); + this.poolTypeEnum = Optional.ofNullable(poolTypeEnum); + return this; + } + + public Builder poolTypeEnum(Optional poolTypeEnum) { + Utils.checkNotNull(poolTypeEnum, "poolTypeEnum"); + this.poolTypeEnum = poolTypeEnum; + return this; + } + + public Builder accounts(List accounts) { Utils.checkNotNull(accounts, "accounts"); this.accounts = accounts; @@ -229,24 +242,11 @@ public Builder query(Optional> query) { return this; } - - public Builder type(PoolTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public Pool build() { return new Pool( - accounts, id, name, - query, type); + poolTypeEnum, accounts, id, + name, query); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalance.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/PoolBalance.java rename to src/main/java/com/formance/formance_sdk/models/payments/PoolBalance.java index 6a0ac2950..f1804141c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalance.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalances.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalances.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/PoolBalances.java rename to src/main/java/com/formance/formance_sdk/models/payments/PoolBalances.java index 9dedaa833..512254b49 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalances.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalances.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesLatestResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesLatestResponse.java new file mode 100644 index 000000000..fc0162a33 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesLatestResponse.java @@ -0,0 +1,95 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + +/** + * PoolBalancesLatestResponse + * + *

OK + */ +public class PoolBalancesLatestResponse { + + @JsonProperty("data") + private List poolBalancesLatest; + + @JsonCreator + public PoolBalancesLatestResponse( + @JsonProperty("data") List poolBalancesLatest) { + Utils.checkNotNull(poolBalancesLatest, "poolBalancesLatest"); + this.poolBalancesLatest = poolBalancesLatest; + } + + @JsonIgnore + public List poolBalancesLatest() { + return poolBalancesLatest; + } + + public static Builder builder() { + return new Builder(); + } + + + public PoolBalancesLatestResponse withPoolBalancesLatest(List poolBalancesLatest) { + Utils.checkNotNull(poolBalancesLatest, "poolBalancesLatest"); + this.poolBalancesLatest = poolBalancesLatest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoolBalancesLatestResponse other = (PoolBalancesLatestResponse) o; + return + Utils.enhancedDeepEquals(this.poolBalancesLatest, other.poolBalancesLatest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + poolBalancesLatest); + } + + @Override + public String toString() { + return Utils.toString(PoolBalancesLatestResponse.class, + "poolBalancesLatest", poolBalancesLatest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List poolBalancesLatest; + + private Builder() { + // force use of static builder() method + } + + + public Builder poolBalancesLatest(List poolBalancesLatest) { + Utils.checkNotNull(poolBalancesLatest, "poolBalancesLatest"); + this.poolBalancesLatest = poolBalancesLatest; + return this; + } + + public PoolBalancesLatestResponse build() { + + return new PoolBalancesLatestResponse( + poolBalancesLatest); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesResponse.java new file mode 100644 index 000000000..6c76cb233 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolBalancesResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * PoolBalancesResponse + * + *

OK + */ +public class PoolBalancesResponse { + + @JsonProperty("data") + private PoolBalances poolBalances; + + @JsonCreator + public PoolBalancesResponse( + @JsonProperty("data") PoolBalances poolBalances) { + Utils.checkNotNull(poolBalances, "poolBalances"); + this.poolBalances = poolBalances; + } + + @JsonIgnore + public PoolBalances poolBalances() { + return poolBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public PoolBalancesResponse withPoolBalances(PoolBalances poolBalances) { + Utils.checkNotNull(poolBalances, "poolBalances"); + this.poolBalances = poolBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoolBalancesResponse other = (PoolBalancesResponse) o; + return + Utils.enhancedDeepEquals(this.poolBalances, other.poolBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + poolBalances); + } + + @Override + public String toString() { + return Utils.toString(PoolBalancesResponse.class, + "poolBalances", poolBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PoolBalances poolBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder poolBalances(PoolBalances poolBalances) { + Utils.checkNotNull(poolBalances, "poolBalances"); + this.poolBalances = poolBalances; + return this; + } + + public PoolBalancesResponse build() { + + return new PoolBalancesResponse( + poolBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/PoolRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/PoolRequest.java index 72632e862..806bdae65 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PoolResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolResponse.java new file mode 100644 index 000000000..aa80e6348 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * PoolResponse + * + *

OK + */ +public class PoolResponse { + + @JsonProperty("data") + private Pool pool; + + @JsonCreator + public PoolResponse( + @JsonProperty("data") Pool pool) { + Utils.checkNotNull(pool, "pool"); + this.pool = pool; + } + + @JsonIgnore + public Pool pool() { + return pool; + } + + public static Builder builder() { + return new Builder(); + } + + + public PoolResponse withPool(Pool pool) { + Utils.checkNotNull(pool, "pool"); + this.pool = pool; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoolResponse other = (PoolResponse) o; + return + Utils.enhancedDeepEquals(this.pool, other.pool); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + pool); + } + + @Override + public String toString() { + return Utils.toString(PoolResponse.class, + "pool", pool); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Pool pool; + + private Builder() { + // force use of static builder() method + } + + + public Builder pool(Pool pool) { + Utils.checkNotNull(pool, "pool"); + this.pool = pool; + return this; + } + + public PoolResponse build() { + + return new PoolResponse( + pool); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolTypeEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolTypeEnum.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/PoolTypeEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/PoolTypeEnum.java index cc3d4ac55..93160dc5e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolTypeEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolTypeEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PoolsCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolsCursor.java new file mode 100644 index 000000000..e9ed1a596 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolsCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * PoolsCursor + * + *

OK + */ +public class PoolsCursor { + + @JsonProperty("cursor") + private PoolsCursorCursorBase cursorBase; + + @JsonCreator + public PoolsCursor( + @JsonProperty("cursor") PoolsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public PoolsCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public PoolsCursor withCursorBase(PoolsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoolsCursor other = (PoolsCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(PoolsCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private PoolsCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(PoolsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public PoolsCursor build() { + + return new PoolsCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/PoolsCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/PoolsCursorCursorBase.java new file mode 100644 index 000000000..ee8c092bf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/PoolsCursorCursorBase.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class PoolsCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public PoolsCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public PoolsCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public PoolsCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public PoolsCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public PoolsCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public PoolsCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public PoolsCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public PoolsCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public PoolsCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoolsCursorCursorBase other = (PoolsCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(PoolsCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public PoolsCursorCursorBase build() { + + return new PoolsCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/ReverseTransferInitiationRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/ReverseTransferInitiationRequest.java index abac226a4..e353f0bc6 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReverseTransferInitiationRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/ReverseTransferInitiationRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/payments/ServerInfo.java new file mode 100644 index 000000000..ad8c7b35d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/ServerInfo.java @@ -0,0 +1,159 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + +/** + * ServerInfo + * + *

Server information + */ +public class ServerInfo { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("debug") + private Optional debug; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("version") + private Optional version; + + @JsonCreator + public ServerInfo( + @JsonProperty("debug") Optional debug, + @JsonProperty("version") Optional version) { + Utils.checkNotNull(debug, "debug"); + Utils.checkNotNull(version, "version"); + this.debug = debug; + this.version = version; + } + + public ServerInfo() { + this(Optional.empty(), Optional.empty()); + } + + @JsonIgnore + public Optional debug() { + return debug; + } + + @JsonIgnore + public Optional version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public ServerInfo withDebug(boolean debug) { + Utils.checkNotNull(debug, "debug"); + this.debug = Optional.ofNullable(debug); + return this; + } + + + public ServerInfo withDebug(Optional debug) { + Utils.checkNotNull(debug, "debug"); + this.debug = debug; + return this; + } + + public ServerInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + + public ServerInfo withVersion(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerInfo other = (ServerInfo) o; + return + Utils.enhancedDeepEquals(this.debug, other.debug) && + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + debug, version); + } + + @Override + public String toString() { + return Utils.toString(ServerInfo.class, + "debug", debug, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional debug = Optional.empty(); + + private Optional version = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder debug(boolean debug) { + Utils.checkNotNull(debug, "debug"); + this.debug = Optional.ofNullable(debug); + return this; + } + + public Builder debug(Optional debug) { + Utils.checkNotNull(debug, "debug"); + this.debug = debug; + return this; + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = Optional.ofNullable(version); + return this; + } + + public Builder version(Optional version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public ServerInfo build() { + + return new ServerInfo( + debug, version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/State.java b/src/main/java/com/formance/formance_sdk/models/payments/State.java new file mode 100644 index 000000000..0f3063992 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/State.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class State { + @JsonCreator + public State() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(State.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public State build() { + + return new State( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Status.java b/src/main/java/com/formance/formance_sdk/models/payments/Status.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/Status.java rename to src/main/java/com/formance/formance_sdk/models/payments/Status.java index 521b26ab9..04a073b4e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Status.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/Status.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StripeConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/StripeConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/StripeConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/StripeConfig.java index 33106f7c2..34e3d6e13 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/StripeConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/StripeConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -17,7 +17,7 @@ import java.util.Optional; -public class StripeConfig implements ConnectorConfig { +public class StripeConfig { @JsonProperty("apiKey") private String apiKey; @@ -100,9 +100,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TaskBase.java b/src/main/java/com/formance/formance_sdk/models/payments/TaskBase.java new file mode 100644 index 000000000..e4b3140d3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TaskBase.java @@ -0,0 +1,341 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class TaskBase { + + @JsonProperty("status") + private TaskStatus taskStatus; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("descriptor") + private Descriptor descriptor; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private JsonNullable error; + + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("state") + private JsonNullable state; + + + @JsonProperty("updatedAt") + private OffsetDateTime updatedAt; + + @JsonCreator + public TaskBase( + @JsonProperty("status") TaskStatus taskStatus, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("descriptor") Descriptor descriptor, + @JsonProperty("error") JsonNullable error, + @JsonProperty("id") String id, + @JsonProperty("state") JsonNullable state, + @JsonProperty("updatedAt") OffsetDateTime updatedAt) { + Utils.checkNotNull(taskStatus, "taskStatus"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(descriptor, "descriptor"); + Utils.checkNotNull(error, "error"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(state, "state"); + Utils.checkNotNull(updatedAt, "updatedAt"); + this.taskStatus = taskStatus; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.descriptor = descriptor; + this.error = error; + this.id = id; + this.state = state; + this.updatedAt = updatedAt; + } + + public TaskBase( + TaskStatus taskStatus, + String connectorID, + OffsetDateTime createdAt, + Descriptor descriptor, + String id, + OffsetDateTime updatedAt) { + this(taskStatus, connectorID, createdAt, + descriptor, JsonNullable.undefined(), id, + JsonNullable.undefined(), updatedAt); + } + + @JsonIgnore + public TaskStatus taskStatus() { + return taskStatus; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public Descriptor descriptor() { + return descriptor; + } + + @JsonIgnore + public JsonNullable error() { + return error; + } + + @JsonIgnore + public String id() { + return id; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable state() { + return (JsonNullable) state; + } + + @JsonIgnore + public OffsetDateTime updatedAt() { + return updatedAt; + } + + public static Builder builder() { + return new Builder(); + } + + + public TaskBase withTaskStatus(TaskStatus taskStatus) { + Utils.checkNotNull(taskStatus, "taskStatus"); + this.taskStatus = taskStatus; + return this; + } + + public TaskBase withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public TaskBase withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public TaskBase withDescriptor(Descriptor descriptor) { + Utils.checkNotNull(descriptor, "descriptor"); + this.descriptor = descriptor; + return this; + } + + public TaskBase withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public TaskBase withError(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public TaskBase withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public TaskBase withState(State state) { + Utils.checkNotNull(state, "state"); + this.state = JsonNullable.of(state); + return this; + } + + public TaskBase withState(JsonNullable state) { + Utils.checkNotNull(state, "state"); + this.state = state; + return this; + } + + public TaskBase withUpdatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaskBase other = (TaskBase) o; + return + Utils.enhancedDeepEquals(this.taskStatus, other.taskStatus) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && + Utils.enhancedDeepEquals(this.error, other.error) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.state, other.state) && + Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + taskStatus, connectorID, createdAt, + descriptor, error, id, + state, updatedAt); + } + + @Override + public String toString() { + return Utils.toString(TaskBase.class, + "taskStatus", taskStatus, + "connectorID", connectorID, + "createdAt", createdAt, + "descriptor", descriptor, + "error", error, + "id", id, + "state", state, + "updatedAt", updatedAt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TaskStatus taskStatus; + + private String connectorID; + + private OffsetDateTime createdAt; + + private Descriptor descriptor; + + private JsonNullable error = JsonNullable.undefined(); + + private String id; + + private JsonNullable state = JsonNullable.undefined(); + + private OffsetDateTime updatedAt; + + private Builder() { + // force use of static builder() method + } + + + public Builder taskStatus(TaskStatus taskStatus) { + Utils.checkNotNull(taskStatus, "taskStatus"); + this.taskStatus = taskStatus; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder descriptor(Descriptor descriptor) { + Utils.checkNotNull(descriptor, "descriptor"); + this.descriptor = descriptor; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public Builder error(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder state(State state) { + Utils.checkNotNull(state, "state"); + this.state = JsonNullable.of(state); + return this; + } + + public Builder state(JsonNullable state) { + Utils.checkNotNull(state, "state"); + this.state = state; + return this; + } + + + public Builder updatedAt(OffsetDateTime updatedAt) { + Utils.checkNotNull(updatedAt, "updatedAt"); + this.updatedAt = updatedAt; + return this; + } + + public TaskBase build() { + + return new TaskBase( + taskStatus, connectorID, createdAt, + descriptor, error, id, + state, updatedAt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/TaskResponse.java similarity index 84% rename from src/main/java/com/formance/formance_sdk/models/shared/TaskResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/TaskResponse.java index a0e588e75..e747cb842 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TaskResponse.java @@ -1,12 +1,13 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.formance.formance_sdk.utils.Utils; +import java.lang.Object; import java.lang.Override; import java.lang.String; @@ -18,17 +19,17 @@ public class TaskResponse { @JsonProperty("data") - private TaskResponseData data; + private Object data; @JsonCreator public TaskResponse( - @JsonProperty("data") TaskResponseData data) { + @JsonProperty("data") Object data) { Utils.checkNotNull(data, "data"); this.data = data; } @JsonIgnore - public TaskResponseData data() { + public Object data() { return data; } @@ -37,7 +38,7 @@ public static Builder builder() { } - public TaskResponse withData(TaskResponseData data) { + public TaskResponse withData(Object data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -71,14 +72,14 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private TaskResponseData data; + private Object data; private Builder() { // force use of static builder() method } - public Builder data(TaskResponseData data) { + public Builder data(Object data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskStatus.java b/src/main/java/com/formance/formance_sdk/models/payments/TaskStatus.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/TaskStatus.java rename to src/main/java/com/formance/formance_sdk/models/payments/TaskStatus.java index e839aae4f..c103c7353 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskStatus.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TaskStatus.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TasksCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/TasksCursor.java new file mode 100644 index 000000000..0e10c0ebf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TasksCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * TasksCursor + * + *

OK + */ +public class TasksCursor { + + @JsonProperty("cursor") + private TasksCursorCursorBase cursorBase; + + @JsonCreator + public TasksCursor( + @JsonProperty("cursor") TasksCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public TasksCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public TasksCursor withCursorBase(TasksCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TasksCursor other = (TasksCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(TasksCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TasksCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(TasksCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public TasksCursor build() { + + return new TasksCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TasksCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/TasksCursorCursorBase.java new file mode 100644 index 000000000..cc2044524 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TasksCursorCursorBase.java @@ -0,0 +1,251 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class TasksCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public TasksCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public TasksCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public TasksCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public TasksCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public TasksCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public TasksCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public TasksCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public TasksCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public TasksCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TasksCursorCursorBase other = (TasksCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(TasksCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public TasksCursorCursorBase build() { + + return new TasksCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiation.java similarity index 90% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferInitiation.java index bbbcdaca2..4ba5e435d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiation.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiation.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -22,6 +22,10 @@ public class TransferInitiation { + @JsonProperty("status") + private TransferInitiationStatus transferInitiationStatus; + + @JsonProperty("amount") private BigInteger amount; @@ -91,15 +95,12 @@ public class TransferInitiation { private String sourceAccountID; - @JsonProperty("status") - private TransferInitiationStatus status; - - @JsonProperty("type") private TransferInitiationType type; @JsonCreator public TransferInitiation( + @JsonProperty("status") TransferInitiationStatus transferInitiationStatus, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @@ -116,8 +117,8 @@ public TransferInitiation( @JsonProperty("relatedPayments") JsonNullable> relatedPayments, @JsonProperty("scheduledAt") OffsetDateTime scheduledAt, @JsonProperty("sourceAccountID") String sourceAccountID, - @JsonProperty("status") TransferInitiationStatus status, @JsonProperty("type") TransferInitiationType type) { + Utils.checkNotNull(transferInitiationStatus, "transferInitiationStatus"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(connectorID, "connectorID"); @@ -134,8 +135,8 @@ public TransferInitiation( Utils.checkNotNull(relatedPayments, "relatedPayments"); Utils.checkNotNull(scheduledAt, "scheduledAt"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); Utils.checkNotNull(type, "type"); + this.transferInitiationStatus = transferInitiationStatus; this.amount = amount; this.asset = asset; this.connectorID = connectorID; @@ -152,11 +153,11 @@ public TransferInitiation( this.relatedPayments = relatedPayments; this.scheduledAt = scheduledAt; this.sourceAccountID = sourceAccountID; - this.status = status; this.type = type; } public TransferInitiation( + TransferInitiationStatus transferInitiationStatus, BigInteger amount, String asset, String connectorID, @@ -168,14 +169,18 @@ public TransferInitiation( String reference, OffsetDateTime scheduledAt, String sourceAccountID, - TransferInitiationStatus status, TransferInitiationType type) { - this(amount, asset, connectorID, - createdAt, description, destinationAccountID, - JsonNullable.undefined(), id, initialAmount, - JsonNullable.undefined(), Optional.empty(), reference, - Optional.empty(), JsonNullable.undefined(), scheduledAt, - sourceAccountID, status, type); + this(transferInitiationStatus, amount, asset, + connectorID, createdAt, description, + destinationAccountID, JsonNullable.undefined(), id, + initialAmount, JsonNullable.undefined(), Optional.empty(), + reference, Optional.empty(), JsonNullable.undefined(), + scheduledAt, sourceAccountID, type); + } + + @JsonIgnore + public TransferInitiationStatus transferInitiationStatus() { + return transferInitiationStatus; } @JsonIgnore @@ -261,11 +266,6 @@ public String sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public TransferInitiationStatus status() { - return status; - } - @JsonIgnore public TransferInitiationType type() { return type; @@ -276,6 +276,12 @@ public static Builder builder() { } + public TransferInitiation withTransferInitiationStatus(TransferInitiationStatus transferInitiationStatus) { + Utils.checkNotNull(transferInitiationStatus, "transferInitiationStatus"); + this.transferInitiationStatus = transferInitiationStatus; + return this; + } + public TransferInitiation withAmount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -414,12 +420,6 @@ public TransferInitiation withSourceAccountID(String sourceAccountID) { return this; } - public TransferInitiation withStatus(TransferInitiationStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - public TransferInitiation withType(TransferInitiationType type) { Utils.checkNotNull(type, "type"); this.type = type; @@ -436,6 +436,7 @@ public boolean equals(java.lang.Object o) { } TransferInitiation other = (TransferInitiation) o; return + Utils.enhancedDeepEquals(this.transferInitiationStatus, other.transferInitiationStatus) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && @@ -452,24 +453,24 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.relatedPayments, other.relatedPayments) && Utils.enhancedDeepEquals(this.scheduledAt, other.scheduledAt) && Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.type, other.type); } @Override public int hashCode() { return Utils.enhancedHash( - amount, asset, connectorID, - createdAt, description, destinationAccountID, - error, id, initialAmount, - metadata, provider, reference, - relatedAdjustments, relatedPayments, scheduledAt, - sourceAccountID, status, type); + transferInitiationStatus, amount, asset, + connectorID, createdAt, description, + destinationAccountID, error, id, + initialAmount, metadata, provider, + reference, relatedAdjustments, relatedPayments, + scheduledAt, sourceAccountID, type); } @Override public String toString() { return Utils.toString(TransferInitiation.class, + "transferInitiationStatus", transferInitiationStatus, "amount", amount, "asset", asset, "connectorID", connectorID, @@ -486,13 +487,14 @@ public String toString() { "relatedPayments", relatedPayments, "scheduledAt", scheduledAt, "sourceAccountID", sourceAccountID, - "status", status, "type", type); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private TransferInitiationStatus transferInitiationStatus; + private BigInteger amount; private String asset; @@ -525,8 +527,6 @@ public final static class Builder { private String sourceAccountID; - private TransferInitiationStatus status; - private TransferInitiationType type; private Builder() { @@ -534,6 +534,13 @@ private Builder() { } + public Builder transferInitiationStatus(TransferInitiationStatus transferInitiationStatus) { + Utils.checkNotNull(transferInitiationStatus, "transferInitiationStatus"); + this.transferInitiationStatus = transferInitiationStatus; + return this; + } + + public Builder amount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -686,13 +693,6 @@ public Builder sourceAccountID(String sourceAccountID) { } - public Builder status(TransferInitiationStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder type(TransferInitiationType type) { Utils.checkNotNull(type, "type"); this.type = type; @@ -702,12 +702,12 @@ public Builder type(TransferInitiationType type) { public TransferInitiation build() { return new TransferInitiation( - amount, asset, connectorID, - createdAt, description, destinationAccountID, - error, id, initialAmount, - metadata, provider, reference, - relatedAdjustments, relatedPayments, scheduledAt, - sourceAccountID, status, type); + transferInitiationStatus, amount, asset, + connectorID, createdAt, description, + destinationAccountID, error, id, + initialAmount, metadata, provider, + reference, relatedAdjustments, relatedPayments, + scheduledAt, sourceAccountID, type); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationAdjustments.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationAdjustments.java similarity index 78% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationAdjustments.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationAdjustments.java index a0178cc71..6b5e6a24d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationAdjustments.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationAdjustments.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,6 +19,10 @@ public class TransferInitiationAdjustments { + @JsonProperty("status") + private TransferInitiationStatus transferInitiationStatus; + + @JsonProperty("adjustmentID") private String adjustmentID; @@ -36,35 +40,36 @@ public class TransferInitiationAdjustments { @JsonProperty("metadata") private JsonNullable> metadata; - - @JsonProperty("status") - private TransferInitiationStatus status; - @JsonCreator public TransferInitiationAdjustments( + @JsonProperty("status") TransferInitiationStatus transferInitiationStatus, @JsonProperty("adjustmentID") String adjustmentID, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("error") JsonNullable error, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("status") TransferInitiationStatus status) { + @JsonProperty("metadata") JsonNullable> metadata) { + Utils.checkNotNull(transferInitiationStatus, "transferInitiationStatus"); Utils.checkNotNull(adjustmentID, "adjustmentID"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(error, "error"); Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(status, "status"); + this.transferInitiationStatus = transferInitiationStatus; this.adjustmentID = adjustmentID; this.createdAt = createdAt; this.error = error; this.metadata = metadata; - this.status = status; } public TransferInitiationAdjustments( + TransferInitiationStatus transferInitiationStatus, String adjustmentID, - OffsetDateTime createdAt, - TransferInitiationStatus status) { - this(adjustmentID, createdAt, JsonNullable.undefined(), - JsonNullable.undefined(), status); + OffsetDateTime createdAt) { + this(transferInitiationStatus, adjustmentID, createdAt, + JsonNullable.undefined(), JsonNullable.undefined()); + } + + @JsonIgnore + public TransferInitiationStatus transferInitiationStatus() { + return transferInitiationStatus; } @JsonIgnore @@ -88,16 +93,17 @@ public JsonNullable> metadata() { return (JsonNullable>) metadata; } - @JsonIgnore - public TransferInitiationStatus status() { - return status; - } - public static Builder builder() { return new Builder(); } + public TransferInitiationAdjustments withTransferInitiationStatus(TransferInitiationStatus transferInitiationStatus) { + Utils.checkNotNull(transferInitiationStatus, "transferInitiationStatus"); + this.transferInitiationStatus = transferInitiationStatus; + return this; + } + public TransferInitiationAdjustments withAdjustmentID(String adjustmentID) { Utils.checkNotNull(adjustmentID, "adjustmentID"); this.adjustmentID = adjustmentID; @@ -134,12 +140,6 @@ public TransferInitiationAdjustments withMetadata(JsonNullable> metadata = JsonNullable.undefined(); - private TransferInitiationStatus status; - private Builder() { // force use of static builder() method } + public Builder transferInitiationStatus(TransferInitiationStatus transferInitiationStatus) { + Utils.checkNotNull(transferInitiationStatus, "transferInitiationStatus"); + this.transferInitiationStatus = transferInitiationStatus; + return this; + } + + public Builder adjustmentID(String adjustmentID) { Utils.checkNotNull(adjustmentID, "adjustmentID"); this.adjustmentID = adjustmentID; @@ -231,18 +238,11 @@ public Builder metadata(JsonNullable> metadata) { return this; } - - public Builder status(TransferInitiationStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - public TransferInitiationAdjustments build() { return new TransferInitiationAdjustments( - adjustmentID, createdAt, error, - metadata, status); + transferInitiationStatus, adjustmentID, createdAt, + error, metadata); } } diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationPayments.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationPayments.java new file mode 100644 index 000000000..ec9847c81 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationPayments.java @@ -0,0 +1,204 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class TransferInitiationPayments { + + @JsonProperty("status") + private LegacyPaymentStatus legacyPaymentStatus; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private JsonNullable error; + + + @JsonProperty("paymentID") + private String paymentID; + + @JsonCreator + public TransferInitiationPayments( + @JsonProperty("status") LegacyPaymentStatus legacyPaymentStatus, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("error") JsonNullable error, + @JsonProperty("paymentID") String paymentID) { + Utils.checkNotNull(legacyPaymentStatus, "legacyPaymentStatus"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(error, "error"); + Utils.checkNotNull(paymentID, "paymentID"); + this.legacyPaymentStatus = legacyPaymentStatus; + this.createdAt = createdAt; + this.error = error; + this.paymentID = paymentID; + } + + public TransferInitiationPayments( + LegacyPaymentStatus legacyPaymentStatus, + OffsetDateTime createdAt, + String paymentID) { + this(legacyPaymentStatus, createdAt, JsonNullable.undefined(), + paymentID); + } + + @JsonIgnore + public LegacyPaymentStatus legacyPaymentStatus() { + return legacyPaymentStatus; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public JsonNullable error() { + return error; + } + + @JsonIgnore + public String paymentID() { + return paymentID; + } + + public static Builder builder() { + return new Builder(); + } + + + public TransferInitiationPayments withLegacyPaymentStatus(LegacyPaymentStatus legacyPaymentStatus) { + Utils.checkNotNull(legacyPaymentStatus, "legacyPaymentStatus"); + this.legacyPaymentStatus = legacyPaymentStatus; + return this; + } + + public TransferInitiationPayments withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public TransferInitiationPayments withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public TransferInitiationPayments withError(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public TransferInitiationPayments withPaymentID(String paymentID) { + Utils.checkNotNull(paymentID, "paymentID"); + this.paymentID = paymentID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransferInitiationPayments other = (TransferInitiationPayments) o; + return + Utils.enhancedDeepEquals(this.legacyPaymentStatus, other.legacyPaymentStatus) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.error, other.error) && + Utils.enhancedDeepEquals(this.paymentID, other.paymentID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + legacyPaymentStatus, createdAt, error, + paymentID); + } + + @Override + public String toString() { + return Utils.toString(TransferInitiationPayments.class, + "legacyPaymentStatus", legacyPaymentStatus, + "createdAt", createdAt, + "error", error, + "paymentID", paymentID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private LegacyPaymentStatus legacyPaymentStatus; + + private OffsetDateTime createdAt; + + private JsonNullable error = JsonNullable.undefined(); + + private String paymentID; + + private Builder() { + // force use of static builder() method + } + + + public Builder legacyPaymentStatus(LegacyPaymentStatus legacyPaymentStatus) { + Utils.checkNotNull(legacyPaymentStatus, "legacyPaymentStatus"); + this.legacyPaymentStatus = legacyPaymentStatus; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public Builder error(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + + public Builder paymentID(String paymentID) { + Utils.checkNotNull(paymentID, "paymentID"); + this.paymentID = paymentID; + return this; + } + + public TransferInitiationPayments build() { + + return new TransferInitiationPayments( + legacyPaymentStatus, createdAt, error, + paymentID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequest.java index 7c06c82ac..446700822 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequestType.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequestType.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequestType.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequestType.java index 61aab2b15..c4dc06bcd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationRequestType.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationRequestType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationResponse.java new file mode 100644 index 000000000..5dc4993d9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * TransferInitiationResponse + * + *

OK + */ +public class TransferInitiationResponse { + + @JsonProperty("data") + private TransferInitiation transferInitiation; + + @JsonCreator + public TransferInitiationResponse( + @JsonProperty("data") TransferInitiation transferInitiation) { + Utils.checkNotNull(transferInitiation, "transferInitiation"); + this.transferInitiation = transferInitiation; + } + + @JsonIgnore + public TransferInitiation transferInitiation() { + return transferInitiation; + } + + public static Builder builder() { + return new Builder(); + } + + + public TransferInitiationResponse withTransferInitiation(TransferInitiation transferInitiation) { + Utils.checkNotNull(transferInitiation, "transferInitiation"); + this.transferInitiation = transferInitiation; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransferInitiationResponse other = (TransferInitiationResponse) o; + return + Utils.enhancedDeepEquals(this.transferInitiation, other.transferInitiation); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + transferInitiation); + } + + @Override + public String toString() { + return Utils.toString(TransferInitiationResponse.class, + "transferInitiation", transferInitiation); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TransferInitiation transferInitiation; + + private Builder() { + // force use of static builder() method + } + + + public Builder transferInitiation(TransferInitiation transferInitiation) { + Utils.checkNotNull(transferInitiation, "transferInitiation"); + this.transferInitiation = transferInitiation; + return this; + } + + public TransferInitiationResponse build() { + + return new TransferInitiationResponse( + transferInitiation); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationStatus.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationStatus.java index 13bfad3f8..e1771ed60 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationStatus.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationStatus.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationType.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationType.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationType.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationType.java index b5fba8267..0bec5207f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationType.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationType.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursor.java new file mode 100644 index 000000000..6a990cde0 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursor.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * TransferInitiationsCursor + * + *

OK + */ +public class TransferInitiationsCursor { + + @JsonProperty("cursor") + private TransferInitiationsCursorCursorBase cursorBase; + + @JsonCreator + public TransferInitiationsCursor( + @JsonProperty("cursor") TransferInitiationsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + } + + @JsonIgnore + public TransferInitiationsCursorCursorBase cursorBase() { + return cursorBase; + } + + public static Builder builder() { + return new Builder(); + } + + + public TransferInitiationsCursor withCursorBase(TransferInitiationsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransferInitiationsCursor other = (TransferInitiationsCursor) o; + return + Utils.enhancedDeepEquals(this.cursorBase, other.cursorBase); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursorBase); + } + + @Override + public String toString() { + return Utils.toString(TransferInitiationsCursor.class, + "cursorBase", cursorBase); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private TransferInitiationsCursorCursorBase cursorBase; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursorBase(TransferInitiationsCursorCursorBase cursorBase) { + Utils.checkNotNull(cursorBase, "cursorBase"); + this.cursorBase = cursorBase; + return this; + } + + public TransferInitiationsCursor build() { + + return new TransferInitiationsCursor( + cursorBase); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursorCursorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursorCursorBase.java new file mode 100644 index 000000000..ef52988cd --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferInitiationsCursorCursorBase.java @@ -0,0 +1,250 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class TransferInitiationsCursorCursorBase { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public TransferInitiationsCursorCursorBase( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public TransferInitiationsCursorCursorBase( + List data, + boolean hasMore, + long pageSize) { + this(data, hasMore, Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public TransferInitiationsCursorCursorBase withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public TransferInitiationsCursorCursorBase withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public TransferInitiationsCursorCursorBase withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public TransferInitiationsCursorCursorBase withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public TransferInitiationsCursorCursorBase withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public TransferInitiationsCursorCursorBase withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public TransferInitiationsCursorCursorBase withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransferInitiationsCursorCursorBase other = (TransferInitiationsCursorCursorBase) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(TransferInitiationsCursorCursorBase.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public TransferInitiationsCursorCursorBase build() { + + return new TransferInitiationsCursorCursorBase( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferRequest.java index a84762ed4..c50074a98 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/TransferResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/TransferResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/TransferResponse.java index 107552705..c4156babf 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/TransferResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/UpdateBankAccountMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/UpdateBankAccountMetadataRequest.java new file mode 100644 index 000000000..f3c5b260c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/UpdateBankAccountMetadataRequest.java @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class UpdateBankAccountMetadataRequest { + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional> bankAccountMetadata; + + @JsonCreator + public UpdateBankAccountMetadataRequest( + @JsonProperty("metadata") Optional> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + } + + public UpdateBankAccountMetadataRequest() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> bankAccountMetadata() { + return (Optional>) bankAccountMetadata; + } + + public static Builder builder() { + return new Builder(); + } + + + public UpdateBankAccountMetadataRequest withBankAccountMetadata(Map bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = Optional.ofNullable(bankAccountMetadata); + return this; + } + + + public UpdateBankAccountMetadataRequest withBankAccountMetadata(Optional> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateBankAccountMetadataRequest other = (UpdateBankAccountMetadataRequest) o; + return + Utils.enhancedDeepEquals(this.bankAccountMetadata, other.bankAccountMetadata); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + bankAccountMetadata); + } + + @Override + public String toString() { + return Utils.toString(UpdateBankAccountMetadataRequest.class, + "bankAccountMetadata", bankAccountMetadata); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> bankAccountMetadata = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder bankAccountMetadata(Map bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = Optional.ofNullable(bankAccountMetadata); + return this; + } + + public Builder bankAccountMetadata(Optional> bankAccountMetadata) { + Utils.checkNotNull(bankAccountMetadata, "bankAccountMetadata"); + this.bankAccountMetadata = bankAccountMetadata; + return this; + } + + public UpdateBankAccountMetadataRequest build() { + + return new UpdateBankAccountMetadataRequest( + bankAccountMetadata); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UpdatePoolQueryRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/UpdatePoolQueryRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/UpdatePoolQueryRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/UpdatePoolQueryRequest.java index 27763e713..ad507f134 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/UpdatePoolQueryRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/UpdatePoolQueryRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UpdateTransferInitiationStatusRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/UpdateTransferInitiationStatusRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/UpdateTransferInitiationStatusRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/UpdateTransferInitiationStatusRequest.java index 687b36436..8679f2668 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/UpdateTransferInitiationStatusRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/UpdateTransferInitiationStatusRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3Account.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Account.java new file mode 100644 index 000000000..bce3cf41d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Account.java @@ -0,0 +1,462 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3Account { + + @JsonProperty("type") + private V3AccountTypeEnum v3AccountTypeEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("connector") + private Optional v3ConnectorBase; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultAsset") + private JsonNullable defaultAsset; + + + @JsonProperty("id") + private String id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("name") + private JsonNullable name; + + + @JsonProperty("provider") + private String provider; + + + @JsonProperty("raw") + private V3AccountRaw raw; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public V3Account( + @JsonProperty("type") V3AccountTypeEnum v3AccountTypeEnum, + @JsonProperty("connector") Optional v3ConnectorBase, + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("defaultAsset") JsonNullable defaultAsset, + @JsonProperty("id") String id, + @JsonProperty("name") JsonNullable name, + @JsonProperty("provider") String provider, + @JsonProperty("raw") V3AccountRaw raw, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(v3AccountTypeEnum, "v3AccountTypeEnum"); + Utils.checkNotNull(v3ConnectorBase, "v3ConnectorBase"); + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(defaultAsset, "defaultAsset"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(provider, "provider"); + Utils.checkNotNull(raw, "raw"); + Utils.checkNotNull(reference, "reference"); + this.v3AccountTypeEnum = v3AccountTypeEnum; + this.v3ConnectorBase = v3ConnectorBase; + this.v3Metadata = v3Metadata; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.defaultAsset = defaultAsset; + this.id = id; + this.name = name; + this.provider = provider; + this.raw = raw; + this.reference = reference; + } + + public V3Account( + V3AccountTypeEnum v3AccountTypeEnum, + String connectorID, + OffsetDateTime createdAt, + String id, + String provider, + V3AccountRaw raw, + String reference) { + this(v3AccountTypeEnum, Optional.empty(), JsonNullable.undefined(), + connectorID, createdAt, JsonNullable.undefined(), + id, JsonNullable.undefined(), provider, + raw, reference); + } + + @JsonIgnore + public V3AccountTypeEnum v3AccountTypeEnum() { + return v3AccountTypeEnum; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v3ConnectorBase() { + return (Optional) v3ConnectorBase; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public JsonNullable defaultAsset() { + return defaultAsset; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public JsonNullable name() { + return name; + } + + @JsonIgnore + public String provider() { + return provider; + } + + @JsonIgnore + public V3AccountRaw raw() { + return raw; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3Account withV3AccountTypeEnum(V3AccountTypeEnum v3AccountTypeEnum) { + Utils.checkNotNull(v3AccountTypeEnum, "v3AccountTypeEnum"); + this.v3AccountTypeEnum = v3AccountTypeEnum; + return this; + } + + public V3Account withV3ConnectorBase(V3ConnectorBase v3ConnectorBase) { + Utils.checkNotNull(v3ConnectorBase, "v3ConnectorBase"); + this.v3ConnectorBase = Optional.ofNullable(v3ConnectorBase); + return this; + } + + + public V3Account withV3ConnectorBase(Optional v3ConnectorBase) { + Utils.checkNotNull(v3ConnectorBase, "v3ConnectorBase"); + this.v3ConnectorBase = v3ConnectorBase; + return this; + } + + public V3Account withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3Account withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3Account withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public V3Account withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3Account withDefaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = JsonNullable.of(defaultAsset); + return this; + } + + public V3Account withDefaultAsset(JsonNullable defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + public V3Account withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V3Account withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = JsonNullable.of(name); + return this; + } + + public V3Account withName(JsonNullable name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V3Account withProvider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + public V3Account withRaw(V3AccountRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public V3Account withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3Account other = (V3Account) o; + return + Utils.enhancedDeepEquals(this.v3AccountTypeEnum, other.v3AccountTypeEnum) && + Utils.enhancedDeepEquals(this.v3ConnectorBase, other.v3ConnectorBase) && + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.provider, other.provider) && + Utils.enhancedDeepEquals(this.raw, other.raw) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3AccountTypeEnum, v3ConnectorBase, v3Metadata, + connectorID, createdAt, defaultAsset, + id, name, provider, + raw, reference); + } + + @Override + public String toString() { + return Utils.toString(V3Account.class, + "v3AccountTypeEnum", v3AccountTypeEnum, + "v3ConnectorBase", v3ConnectorBase, + "v3Metadata", v3Metadata, + "connectorID", connectorID, + "createdAt", createdAt, + "defaultAsset", defaultAsset, + "id", id, + "name", name, + "provider", provider, + "raw", raw, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3AccountTypeEnum v3AccountTypeEnum; + + private Optional v3ConnectorBase = Optional.empty(); + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private String connectorID; + + private OffsetDateTime createdAt; + + private JsonNullable defaultAsset = JsonNullable.undefined(); + + private String id; + + private JsonNullable name = JsonNullable.undefined(); + + private String provider; + + private V3AccountRaw raw; + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3AccountTypeEnum(V3AccountTypeEnum v3AccountTypeEnum) { + Utils.checkNotNull(v3AccountTypeEnum, "v3AccountTypeEnum"); + this.v3AccountTypeEnum = v3AccountTypeEnum; + return this; + } + + + public Builder v3ConnectorBase(V3ConnectorBase v3ConnectorBase) { + Utils.checkNotNull(v3ConnectorBase, "v3ConnectorBase"); + this.v3ConnectorBase = Optional.ofNullable(v3ConnectorBase); + return this; + } + + public Builder v3ConnectorBase(Optional v3ConnectorBase) { + Utils.checkNotNull(v3ConnectorBase, "v3ConnectorBase"); + this.v3ConnectorBase = v3ConnectorBase; + return this; + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder defaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = JsonNullable.of(defaultAsset); + return this; + } + + public Builder defaultAsset(JsonNullable defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = JsonNullable.of(name); + return this; + } + + public Builder name(JsonNullable name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder provider(String provider) { + Utils.checkNotNull(provider, "provider"); + this.provider = provider; + return this; + } + + + public Builder raw(V3AccountRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V3Account build() { + + return new V3Account( + v3AccountTypeEnum, v3ConnectorBase, v3Metadata, + connectorID, createdAt, defaultAsset, + id, name, provider, + raw, reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountRaw.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountRaw.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AccountRaw.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AccountRaw.java index 114273e13..bd836efc8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountRaw.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountRaw.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountTypeEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountTypeEnum.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AccountTypeEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AccountTypeEnum.java index b98bf2b81..fc61d22ad 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountTypeEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountTypeEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponse.java index ad7ad8910..023cf0a2f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponseCursor.java index 90a6b3e7a..17eb23329 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AccountsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AccountsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Address.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Address.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Address.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Address.java index 973e720a2..54dd0d94b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Address.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Address.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AddressRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AddressRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AddressRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AddressRequest.java index d1a3509ed..392d280e2 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AddressRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AddressRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AdyenConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AdyenConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AdyenConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AdyenConfig.java index e2f98e8e1..f745a96cb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AdyenConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AdyenConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3AdyenConfig implements V3InstallConnectorRequest { +public class V3AdyenConfig { @JsonProperty("apiKey") private String apiKey; @@ -141,9 +141,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponse.java index 7066c6adc..102bd769b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponseData.java index 91b3eea6b..c025fa464 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ApprovePaymentInitiationResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ApprovePaymentInitiationResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3AtlarConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3AtlarConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3AtlarConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3AtlarConfig.java index c225d6ce2..4a33f9cb5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3AtlarConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3AtlarConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3AtlarConfig implements V3InstallConnectorRequest { +public class V3AtlarConfig { @JsonProperty("accessKey") private String accessKey; @@ -120,9 +120,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Balance.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Balance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Balance.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Balance.java index af2b2dfc5..61b090c4b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Balance.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Balance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponse.java index 622791382..f51bb8e79 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponseCursor.java index 55bec2d5b..1924c21da 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BalancesCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BalancesCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccount.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccount.java similarity index 88% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BankAccount.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BankAccount.java index eaf9648be..7ead281cf 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,11 @@ public class V3BankAccount { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountNumber") private JsonNullable accountNumber; @@ -44,11 +49,6 @@ public class V3BankAccount { private String id; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("name") private String name; @@ -64,30 +64,30 @@ public class V3BankAccount { @JsonCreator public V3BankAccount( + @JsonProperty("metadata") JsonNullable> v3Metadata, @JsonProperty("accountNumber") JsonNullable accountNumber, @JsonProperty("country") JsonNullable country, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("iban") JsonNullable iban, @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("name") String name, @JsonProperty("relatedAccounts") Optional> relatedAccounts, @JsonProperty("swiftBicCode") JsonNullable swiftBicCode) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); Utils.checkNotNull(accountNumber, "accountNumber"); Utils.checkNotNull(country, "country"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(iban, "iban"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(relatedAccounts, "relatedAccounts"); Utils.checkNotNull(swiftBicCode, "swiftBicCode"); + this.v3Metadata = v3Metadata; this.accountNumber = accountNumber; this.country = country; this.createdAt = createdAt; this.iban = iban; this.id = id; - this.metadata = metadata; this.name = name; this.relatedAccounts = relatedAccounts; this.swiftBicCode = swiftBicCode; @@ -97,11 +97,17 @@ public V3BankAccount( OffsetDateTime createdAt, String id, String name) { - this(JsonNullable.undefined(), JsonNullable.undefined(), createdAt, - JsonNullable.undefined(), id, JsonNullable.undefined(), + this(JsonNullable.undefined(), JsonNullable.undefined(), JsonNullable.undefined(), + createdAt, JsonNullable.undefined(), id, name, Optional.empty(), JsonNullable.undefined()); } + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + @JsonIgnore public JsonNullable accountNumber() { return accountNumber; @@ -127,12 +133,6 @@ public String id() { return id; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String name() { return name; @@ -154,6 +154,18 @@ public static Builder builder() { } + public V3BankAccount withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3BankAccount withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + public V3BankAccount withAccountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); this.accountNumber = JsonNullable.of(accountNumber); @@ -202,18 +214,6 @@ public V3BankAccount withId(String id) { return this; } - public V3BankAccount withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3BankAccount withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3BankAccount withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -255,12 +255,12 @@ public boolean equals(java.lang.Object o) { } V3BankAccount other = (V3BankAccount) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && Utils.enhancedDeepEquals(this.accountNumber, other.accountNumber) && Utils.enhancedDeepEquals(this.country, other.country) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.iban, other.iban) && Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.relatedAccounts, other.relatedAccounts) && Utils.enhancedDeepEquals(this.swiftBicCode, other.swiftBicCode); @@ -269,20 +269,20 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - accountNumber, country, createdAt, - iban, id, metadata, + v3Metadata, accountNumber, country, + createdAt, iban, id, name, relatedAccounts, swiftBicCode); } @Override public String toString() { return Utils.toString(V3BankAccount.class, + "v3Metadata", v3Metadata, "accountNumber", accountNumber, "country", country, "createdAt", createdAt, "iban", iban, "id", id, - "metadata", metadata, "name", name, "relatedAccounts", relatedAccounts, "swiftBicCode", swiftBicCode); @@ -291,6 +291,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + private JsonNullable accountNumber = JsonNullable.undefined(); private JsonNullable country = JsonNullable.undefined(); @@ -301,8 +303,6 @@ public final static class Builder { private String id; - private JsonNullable> metadata = JsonNullable.undefined(); - private String name; private Optional> relatedAccounts = Optional.empty(); @@ -314,6 +314,19 @@ private Builder() { } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public Builder accountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); this.accountNumber = JsonNullable.of(accountNumber); @@ -367,19 +380,6 @@ public Builder id(String id) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -415,8 +415,8 @@ public Builder swiftBicCode(JsonNullable swiftBicCode) { public V3BankAccount build() { return new V3BankAccount( - accountNumber, country, createdAt, - iban, id, metadata, + v3Metadata, accountNumber, country, + createdAt, iban, id, name, relatedAccounts, swiftBicCode); } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountRelatedAccount.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountRelatedAccount.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountRelatedAccount.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountRelatedAccount.java index adbecf972..da6a4aa96 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountRelatedAccount.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountRelatedAccount.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponse.java index 5ff011f2e..e09d672f2 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponseCursor.java index 43d09d51a..2e189ab34 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BankAccountsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BankAccountsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3BankingcircleConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3BankingcircleConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3BankingcircleConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3BankingcircleConfig.java index 1e218fd6f..3ceca0843 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3BankingcircleConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3BankingcircleConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3BankingcircleConfig implements V3InstallConnectorRequest { +public class V3BankingcircleConfig { @JsonProperty("authorizationEndpoint") private String authorizationEndpoint; @@ -150,9 +150,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CoinbaseprimeConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CoinbaseprimeConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CoinbaseprimeConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CoinbaseprimeConfig.java index 627bb38f3..ed2d6dd8d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CoinbaseprimeConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CoinbaseprimeConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3CoinbaseprimeConfig implements V3InstallConnectorRequest { +public class V3CoinbaseprimeConfig { @JsonProperty("apiKey") private String apiKey; @@ -138,9 +138,8 @@ public String portfolioId() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ColumnConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ColumnConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ColumnConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ColumnConfig.java index 37a357585..e625db720 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ColumnConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ColumnConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3ColumnConfig implements V3InstallConnectorRequest { +public class V3ColumnConfig { @JsonProperty("apiKey") private String apiKey; @@ -111,9 +111,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectionStatusEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectionStatusEnum.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectionStatusEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectionStatusEnum.java index 94a5047db..7a3db1f3f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectionStatusEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectionStatusEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Connector.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Connector.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Connector.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Connector.java index fa4275097..fab2171a8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Connector.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Connector.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ public class V3Connector { @JsonProperty("config") - private V3ConnectorConfig config; + private Config config; @JsonProperty("createdAt") @@ -44,7 +44,7 @@ public class V3Connector { @JsonCreator public V3Connector( - @JsonProperty("config") V3ConnectorConfig config, + @JsonProperty("config") Config config, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("id") String id, @JsonProperty("name") String name, @@ -68,7 +68,7 @@ public V3Connector( } @JsonIgnore - public V3ConnectorConfig config() { + public Config config() { return config; } @@ -107,7 +107,7 @@ public static Builder builder() { } - public V3Connector withConfig(V3ConnectorConfig config) { + public V3Connector withConfig(Config config) { Utils.checkNotNull(config, "config"); this.config = config; return this; @@ -191,7 +191,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private V3ConnectorConfig config; + private Config config; private OffsetDateTime createdAt; @@ -210,7 +210,7 @@ private Builder() { } - public Builder config(V3ConnectorConfig config) { + public Builder config(Config config) { Utils.checkNotNull(config, "config"); this.config = config; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorBase.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorBase.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorBase.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorBase.java index 4ae4359de..c40084119 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorBase.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorBase.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfig.java new file mode 100644 index 000000000..43a5ec0db --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfig.java @@ -0,0 +1,213 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = V3ConnectorConfig._Deserializer.class) +public class V3ConnectorConfig { + + @JsonValue + private final TypedObject value; + + private V3ConnectorConfig(TypedObject value) { + this.value = value; + } + + public static V3ConnectorConfig of(V3AdyenConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3AtlarConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3BankingcircleConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3ColumnConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3CurrencycloudConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3DummypayConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3GenericConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3IncreaseConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3MangopayConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3ModulrConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3MoneycorpConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3PlaidConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3PowensConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3QontoConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3StripeConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3TinkConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3WiseConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3CoinbaseprimeConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static V3ConnectorConfig of(V3FireblocksConfig value) { + Utils.checkNotNull(value, "value"); + return new V3ConnectorConfig(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *

    + *
  • {@code com.formance.formance_sdk.models.payments.V3AdyenConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3AtlarConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3BankingcircleConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3ColumnConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3CurrencycloudConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3DummypayConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3GenericConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3IncreaseConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3MangopayConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3ModulrConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3MoneycorpConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3PlaidConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3PowensConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3QontoConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3StripeConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3TinkConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3WiseConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3CoinbaseprimeConfig}
  • + *
  • {@code com.formance.formance_sdk.models.payments.V3FireblocksConfig}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3ConnectorConfig other = (V3ConnectorConfig) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(V3ConnectorConfig.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(V3ConnectorConfig.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponse.java index 01346cf74..196c7953f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponseData.java index ef966e8d6..5186c9354 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfigsResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorConfigsResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponse.java index 3e490302f..99331cf4f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.java index e6d1e8f96..fcafa2e8b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleInstancesCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleInstancesCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleResponse.java new file mode 100644 index 000000000..b0847b139 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorScheduleResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3ConnectorScheduleResponse { + + @JsonProperty("data") + private V3Schedule v3Schedule; + + @JsonCreator + public V3ConnectorScheduleResponse( + @JsonProperty("data") V3Schedule v3Schedule) { + Utils.checkNotNull(v3Schedule, "v3Schedule"); + this.v3Schedule = v3Schedule; + } + + @JsonIgnore + public V3Schedule v3Schedule() { + return v3Schedule; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3ConnectorScheduleResponse withV3Schedule(V3Schedule v3Schedule) { + Utils.checkNotNull(v3Schedule, "v3Schedule"); + this.v3Schedule = v3Schedule; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3ConnectorScheduleResponse other = (V3ConnectorScheduleResponse) o; + return + Utils.enhancedDeepEquals(this.v3Schedule, other.v3Schedule); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Schedule); + } + + @Override + public String toString() { + return Utils.toString(V3ConnectorScheduleResponse.class, + "v3Schedule", v3Schedule); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Schedule v3Schedule; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Schedule(V3Schedule v3Schedule) { + Utils.checkNotNull(v3Schedule, "v3Schedule"); + this.v3Schedule = v3Schedule; + return this; + } + + public V3ConnectorScheduleResponse build() { + + return new V3ConnectorScheduleResponse( + v3Schedule); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponse.java index d43284555..9c075f03f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponseCursor.java index 20cdfb58f..465f9f30e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorSchedulesCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorSchedulesCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponse.java index 88c04c108..5235d832e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponseCursor.java index 70dba5c25..df94230cf 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ConnectorsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetails.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetails.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetails.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetails.java index 543762e98..b1a1c7e1c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetails.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetails.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetailsRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetailsRequest.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetailsRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetailsRequest.java index 676b8c70a..13456998b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ContactDetailsRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ContactDetailsRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountRequest.java new file mode 100644 index 000000000..1f51a9c24 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountRequest.java @@ -0,0 +1,312 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3CreateAccountRequest { + + @JsonProperty("type") + private V3AccountTypeEnum v3AccountTypeEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("accountName") + private String accountName; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("defaultAsset") + private JsonNullable defaultAsset; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public V3CreateAccountRequest( + @JsonProperty("type") V3AccountTypeEnum v3AccountTypeEnum, + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("accountName") String accountName, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("defaultAsset") JsonNullable defaultAsset, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(v3AccountTypeEnum, "v3AccountTypeEnum"); + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(accountName, "accountName"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(defaultAsset, "defaultAsset"); + Utils.checkNotNull(reference, "reference"); + this.v3AccountTypeEnum = v3AccountTypeEnum; + this.v3Metadata = v3Metadata; + this.accountName = accountName; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.defaultAsset = defaultAsset; + this.reference = reference; + } + + public V3CreateAccountRequest( + V3AccountTypeEnum v3AccountTypeEnum, + String accountName, + String connectorID, + OffsetDateTime createdAt, + String reference) { + this(v3AccountTypeEnum, JsonNullable.undefined(), accountName, + connectorID, createdAt, JsonNullable.undefined(), + reference); + } + + @JsonIgnore + public V3AccountTypeEnum v3AccountTypeEnum() { + return v3AccountTypeEnum; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public String accountName() { + return accountName; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public JsonNullable defaultAsset() { + return defaultAsset; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3CreateAccountRequest withV3AccountTypeEnum(V3AccountTypeEnum v3AccountTypeEnum) { + Utils.checkNotNull(v3AccountTypeEnum, "v3AccountTypeEnum"); + this.v3AccountTypeEnum = v3AccountTypeEnum; + return this; + } + + public V3CreateAccountRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3CreateAccountRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3CreateAccountRequest withAccountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + public V3CreateAccountRequest withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public V3CreateAccountRequest withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3CreateAccountRequest withDefaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = JsonNullable.of(defaultAsset); + return this; + } + + public V3CreateAccountRequest withDefaultAsset(JsonNullable defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + public V3CreateAccountRequest withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3CreateAccountRequest other = (V3CreateAccountRequest) o; + return + Utils.enhancedDeepEquals(this.v3AccountTypeEnum, other.v3AccountTypeEnum) && + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.accountName, other.accountName) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3AccountTypeEnum, v3Metadata, accountName, + connectorID, createdAt, defaultAsset, + reference); + } + + @Override + public String toString() { + return Utils.toString(V3CreateAccountRequest.class, + "v3AccountTypeEnum", v3AccountTypeEnum, + "v3Metadata", v3Metadata, + "accountName", accountName, + "connectorID", connectorID, + "createdAt", createdAt, + "defaultAsset", defaultAsset, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3AccountTypeEnum v3AccountTypeEnum; + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private String accountName; + + private String connectorID; + + private OffsetDateTime createdAt; + + private JsonNullable defaultAsset = JsonNullable.undefined(); + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3AccountTypeEnum(V3AccountTypeEnum v3AccountTypeEnum) { + Utils.checkNotNull(v3AccountTypeEnum, "v3AccountTypeEnum"); + this.v3AccountTypeEnum = v3AccountTypeEnum; + return this; + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder accountName(String accountName) { + Utils.checkNotNull(accountName, "accountName"); + this.accountName = accountName; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder defaultAsset(String defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = JsonNullable.of(defaultAsset); + return this; + } + + public Builder defaultAsset(JsonNullable defaultAsset) { + Utils.checkNotNull(defaultAsset, "defaultAsset"); + this.defaultAsset = defaultAsset; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V3CreateAccountRequest build() { + + return new V3CreateAccountRequest( + v3AccountTypeEnum, v3Metadata, accountName, + connectorID, createdAt, defaultAsset, + reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountResponse.java new file mode 100644 index 000000000..49fe22484 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateAccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3CreateAccountResponse { + + @JsonProperty("data") + private V3Account v3Account; + + @JsonCreator + public V3CreateAccountResponse( + @JsonProperty("data") V3Account v3Account) { + Utils.checkNotNull(v3Account, "v3Account"); + this.v3Account = v3Account; + } + + @JsonIgnore + public V3Account v3Account() { + return v3Account; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3CreateAccountResponse withV3Account(V3Account v3Account) { + Utils.checkNotNull(v3Account, "v3Account"); + this.v3Account = v3Account; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3CreateAccountResponse other = (V3CreateAccountResponse) o; + return + Utils.enhancedDeepEquals(this.v3Account, other.v3Account); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Account); + } + + @Override + public String toString() { + return Utils.toString(V3CreateAccountResponse.class, + "v3Account", v3Account); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Account v3Account; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Account(V3Account v3Account) { + Utils.checkNotNull(v3Account, "v3Account"); + this.v3Account = v3Account; + return this; + } + + public V3CreateAccountResponse build() { + + return new V3CreateAccountResponse( + v3Account); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountRequest.java similarity index 82% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountRequest.java index a135e85ac..25f3801da 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,6 +19,11 @@ public class V3CreateBankAccountRequest { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("accountNumber") private Optional accountNumber; @@ -34,11 +39,6 @@ public class V3CreateBankAccountRequest { private Optional iban; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("name") private String name; @@ -49,30 +49,36 @@ public class V3CreateBankAccountRequest { @JsonCreator public V3CreateBankAccountRequest( + @JsonProperty("metadata") JsonNullable> v3Metadata, @JsonProperty("accountNumber") Optional accountNumber, @JsonProperty("country") Optional country, @JsonProperty("iban") Optional iban, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("name") String name, @JsonProperty("swiftBicCode") Optional swiftBicCode) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); Utils.checkNotNull(accountNumber, "accountNumber"); Utils.checkNotNull(country, "country"); Utils.checkNotNull(iban, "iban"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(swiftBicCode, "swiftBicCode"); + this.v3Metadata = v3Metadata; this.accountNumber = accountNumber; this.country = country; this.iban = iban; - this.metadata = metadata; this.name = name; this.swiftBicCode = swiftBicCode; } public V3CreateBankAccountRequest( String name) { - this(Optional.empty(), Optional.empty(), Optional.empty(), - JsonNullable.undefined(), name, Optional.empty()); + this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), + Optional.empty(), name, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; } @JsonIgnore @@ -90,12 +96,6 @@ public Optional iban() { return iban; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String name() { return name; @@ -111,6 +111,18 @@ public static Builder builder() { } + public V3CreateBankAccountRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3CreateBankAccountRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + public V3CreateBankAccountRequest withAccountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); this.accountNumber = Optional.ofNullable(accountNumber); @@ -150,18 +162,6 @@ public V3CreateBankAccountRequest withIban(Optional iban) { return this; } - public V3CreateBankAccountRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3CreateBankAccountRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3CreateBankAccountRequest withName(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -191,10 +191,10 @@ public boolean equals(java.lang.Object o) { } V3CreateBankAccountRequest other = (V3CreateBankAccountRequest) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && Utils.enhancedDeepEquals(this.accountNumber, other.accountNumber) && Utils.enhancedDeepEquals(this.country, other.country) && Utils.enhancedDeepEquals(this.iban, other.iban) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.swiftBicCode, other.swiftBicCode); } @@ -202,17 +202,17 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - accountNumber, country, iban, - metadata, name, swiftBicCode); + v3Metadata, accountNumber, country, + iban, name, swiftBicCode); } @Override public String toString() { return Utils.toString(V3CreateBankAccountRequest.class, + "v3Metadata", v3Metadata, "accountNumber", accountNumber, "country", country, "iban", iban, - "metadata", metadata, "name", name, "swiftBicCode", swiftBicCode); } @@ -220,14 +220,14 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + private Optional accountNumber = Optional.empty(); private Optional country = Optional.empty(); private Optional iban = Optional.empty(); - private JsonNullable> metadata = JsonNullable.undefined(); - private String name; private Optional swiftBicCode = Optional.empty(); @@ -237,6 +237,19 @@ private Builder() { } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public Builder accountNumber(String accountNumber) { Utils.checkNotNull(accountNumber, "accountNumber"); this.accountNumber = Optional.ofNullable(accountNumber); @@ -276,19 +289,6 @@ public Builder iban(Optional iban) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder name(String name) { Utils.checkNotNull(name, "name"); this.name = name; @@ -311,8 +311,8 @@ public Builder swiftBicCode(Optional swiftBicCode) { public V3CreateBankAccountRequest build() { return new V3CreateBankAccountRequest( - accountNumber, country, iban, - metadata, name, swiftBicCode); + v3Metadata, accountNumber, country, + iban, name, swiftBicCode); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountResponse.java index 8be8260e0..1cd48459c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreateBankAccountResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentAdjustmentRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentAdjustmentRequest.java new file mode 100644 index 000000000..b8910e36e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentAdjustmentRequest.java @@ -0,0 +1,306 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3CreatePaymentAdjustmentRequest { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("status") + private V3PaymentStatusEnum v3PaymentStatusEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional amount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("asset") + private Optional asset; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public V3CreatePaymentAdjustmentRequest( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("status") V3PaymentStatusEnum v3PaymentStatusEnum, + @JsonProperty("amount") Optional amount, + @JsonProperty("asset") Optional asset, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(reference, "reference"); + this.v3Metadata = v3Metadata; + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + this.amount = amount; + this.asset = asset; + this.createdAt = createdAt; + this.reference = reference; + } + + public V3CreatePaymentAdjustmentRequest( + V3PaymentStatusEnum v3PaymentStatusEnum, + OffsetDateTime createdAt, + String reference) { + this(JsonNullable.undefined(), v3PaymentStatusEnum, Optional.empty(), + Optional.empty(), createdAt, reference); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentStatusEnum v3PaymentStatusEnum() { + return v3PaymentStatusEnum; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional amount() { + return (Optional) amount; + } + + @JsonIgnore + public Optional asset() { + return asset; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3CreatePaymentAdjustmentRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3CreatePaymentAdjustmentRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3CreatePaymentAdjustmentRequest withV3PaymentStatusEnum(V3PaymentStatusEnum v3PaymentStatusEnum) { + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + return this; + } + + public V3CreatePaymentAdjustmentRequest withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public V3CreatePaymentAdjustmentRequest withAmount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + + public V3CreatePaymentAdjustmentRequest withAmount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public V3CreatePaymentAdjustmentRequest withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + + public V3CreatePaymentAdjustmentRequest withAsset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public V3CreatePaymentAdjustmentRequest withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3CreatePaymentAdjustmentRequest withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3CreatePaymentAdjustmentRequest other = (V3CreatePaymentAdjustmentRequest) o; + return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentStatusEnum, other.v3PaymentStatusEnum) && + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Metadata, v3PaymentStatusEnum, amount, + asset, createdAt, reference); + } + + @Override + public String toString() { + return Utils.toString(V3CreatePaymentAdjustmentRequest.class, + "v3Metadata", v3Metadata, + "v3PaymentStatusEnum", v3PaymentStatusEnum, + "amount", amount, + "asset", asset, + "createdAt", createdAt, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentStatusEnum v3PaymentStatusEnum; + + private Optional amount = Optional.empty(); + + private Optional asset = Optional.empty(); + + private OffsetDateTime createdAt; + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentStatusEnum(V3PaymentStatusEnum v3PaymentStatusEnum) { + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + return this; + } + + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public Builder amount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + public Builder amount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + public Builder asset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V3CreatePaymentAdjustmentRequest build() { + + return new V3CreatePaymentAdjustmentRequest( + v3Metadata, v3PaymentStatusEnum, amount, + asset, createdAt, reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentRequest.java similarity index 81% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentRequest.java index 35bef7518..340d7a1f5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -22,6 +22,15 @@ public class V3CreatePaymentRequest { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("type") + private V3PaymentTypeEnum v3PaymentTypeEnum; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("adjustments") private Optional> adjustments; @@ -52,11 +61,6 @@ public class V3CreatePaymentRequest { private BigInteger initialAmount; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("reference") private String reference; @@ -69,12 +73,10 @@ public class V3CreatePaymentRequest { @JsonProperty("sourceAccountID") private Optional sourceAccountID; - - @JsonProperty("type") - private V3PaymentTypeEnum type; - @JsonCreator public V3CreatePaymentRequest( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("type") V3PaymentTypeEnum v3PaymentTypeEnum, @JsonProperty("adjustments") Optional> adjustments, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @@ -82,11 +84,11 @@ public V3CreatePaymentRequest( @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("destinationAccountID") Optional destinationAccountID, @JsonProperty("initialAmount") BigInteger initialAmount, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("reference") String reference, @JsonProperty("scheme") String scheme, - @JsonProperty("sourceAccountID") Optional sourceAccountID, - @JsonProperty("type") V3PaymentTypeEnum type) { + @JsonProperty("sourceAccountID") Optional sourceAccountID) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentTypeEnum, "v3PaymentTypeEnum"); Utils.checkNotNull(adjustments, "adjustments"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); @@ -94,11 +96,11 @@ public V3CreatePaymentRequest( Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(destinationAccountID, "destinationAccountID"); Utils.checkNotNull(initialAmount, "initialAmount"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(scheme, "scheme"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(type, "type"); + this.v3Metadata = v3Metadata; + this.v3PaymentTypeEnum = v3PaymentTypeEnum; this.adjustments = adjustments; this.amount = amount; this.asset = asset; @@ -106,26 +108,35 @@ public V3CreatePaymentRequest( this.createdAt = createdAt; this.destinationAccountID = destinationAccountID; this.initialAmount = initialAmount; - this.metadata = metadata; this.reference = reference; this.scheme = scheme; this.sourceAccountID = sourceAccountID; - this.type = type; } public V3CreatePaymentRequest( + V3PaymentTypeEnum v3PaymentTypeEnum, BigInteger amount, String asset, String connectorID, OffsetDateTime createdAt, BigInteger initialAmount, String reference, - String scheme, - V3PaymentTypeEnum type) { - this(Optional.empty(), amount, asset, - connectorID, createdAt, Optional.empty(), - initialAmount, JsonNullable.undefined(), reference, - scheme, Optional.empty(), type); + String scheme) { + this(JsonNullable.undefined(), v3PaymentTypeEnum, Optional.empty(), + amount, asset, connectorID, + createdAt, Optional.empty(), initialAmount, + reference, scheme, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentTypeEnum v3PaymentTypeEnum() { + return v3PaymentTypeEnum; } @SuppressWarnings("unchecked") @@ -164,12 +175,6 @@ public BigInteger initialAmount() { return initialAmount; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String reference() { return reference; @@ -185,16 +190,29 @@ public Optional sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public V3PaymentTypeEnum type() { - return type; - } - public static Builder builder() { return new Builder(); } + public V3CreatePaymentRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3CreatePaymentRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3CreatePaymentRequest withV3PaymentTypeEnum(V3PaymentTypeEnum v3PaymentTypeEnum) { + Utils.checkNotNull(v3PaymentTypeEnum, "v3PaymentTypeEnum"); + this.v3PaymentTypeEnum = v3PaymentTypeEnum; + return this; + } + public V3CreatePaymentRequest withAdjustments(List adjustments) { Utils.checkNotNull(adjustments, "adjustments"); this.adjustments = Optional.ofNullable(adjustments); @@ -261,18 +279,6 @@ public V3CreatePaymentRequest withInitialAmount(BigInteger initialAmount) { return this; } - public V3CreatePaymentRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3CreatePaymentRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3CreatePaymentRequest withReference(String reference) { Utils.checkNotNull(reference, "reference"); this.reference = reference; @@ -298,12 +304,6 @@ public V3CreatePaymentRequest withSourceAccountID(Optional sourceAccount return this; } - public V3CreatePaymentRequest withType(V3PaymentTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -314,6 +314,8 @@ public boolean equals(java.lang.Object o) { } V3CreatePaymentRequest other = (V3CreatePaymentRequest) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentTypeEnum, other.v3PaymentTypeEnum) && Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && @@ -321,25 +323,25 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.scheme, other.scheme) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID); } @Override public int hashCode() { return Utils.enhancedHash( - adjustments, amount, asset, - connectorID, createdAt, destinationAccountID, - initialAmount, metadata, reference, - scheme, sourceAccountID, type); + v3Metadata, v3PaymentTypeEnum, adjustments, + amount, asset, connectorID, + createdAt, destinationAccountID, initialAmount, + reference, scheme, sourceAccountID); } @Override public String toString() { return Utils.toString(V3CreatePaymentRequest.class, + "v3Metadata", v3Metadata, + "v3PaymentTypeEnum", v3PaymentTypeEnum, "adjustments", adjustments, "amount", amount, "asset", asset, @@ -347,16 +349,18 @@ public String toString() { "createdAt", createdAt, "destinationAccountID", destinationAccountID, "initialAmount", initialAmount, - "metadata", metadata, "reference", reference, "scheme", scheme, - "sourceAccountID", sourceAccountID, - "type", type); + "sourceAccountID", sourceAccountID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentTypeEnum v3PaymentTypeEnum; + private Optional> adjustments = Optional.empty(); private BigInteger amount; @@ -371,21 +375,37 @@ public final static class Builder { private BigInteger initialAmount; - private JsonNullable> metadata = JsonNullable.undefined(); - private String reference; private String scheme; private Optional sourceAccountID = Optional.empty(); - private V3PaymentTypeEnum type; - private Builder() { // force use of static builder() method } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentTypeEnum(V3PaymentTypeEnum v3PaymentTypeEnum) { + Utils.checkNotNull(v3PaymentTypeEnum, "v3PaymentTypeEnum"); + this.v3PaymentTypeEnum = v3PaymentTypeEnum; + return this; + } + + public Builder adjustments(List adjustments) { Utils.checkNotNull(adjustments, "adjustments"); this.adjustments = Optional.ofNullable(adjustments); @@ -457,19 +477,6 @@ public Builder initialAmount(BigInteger initialAmount) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder reference(String reference) { Utils.checkNotNull(reference, "reference"); this.reference = reference; @@ -496,20 +503,13 @@ public Builder sourceAccountID(Optional sourceAccountID) { return this; } - - public Builder type(V3PaymentTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public V3CreatePaymentRequest build() { return new V3CreatePaymentRequest( - adjustments, amount, asset, - connectorID, createdAt, destinationAccountID, - initialAmount, metadata, reference, - scheme, sourceAccountID, type); + v3Metadata, v3PaymentTypeEnum, adjustments, + amount, asset, connectorID, + createdAt, destinationAccountID, initialAmount, + reference, scheme, sourceAccountID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentResponse.java new file mode 100644 index 000000000..e0a845ea3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3CreatePaymentResponse { + + @JsonProperty("data") + private V3Payment v3Payment; + + @JsonCreator + public V3CreatePaymentResponse( + @JsonProperty("data") V3Payment v3Payment) { + Utils.checkNotNull(v3Payment, "v3Payment"); + this.v3Payment = v3Payment; + } + + @JsonIgnore + public V3Payment v3Payment() { + return v3Payment; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3CreatePaymentResponse withV3Payment(V3Payment v3Payment) { + Utils.checkNotNull(v3Payment, "v3Payment"); + this.v3Payment = v3Payment; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3CreatePaymentResponse other = (V3CreatePaymentResponse) o; + return + Utils.enhancedDeepEquals(this.v3Payment, other.v3Payment); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Payment); + } + + @Override + public String toString() { + return Utils.toString(V3CreatePaymentResponse.class, + "v3Payment", v3Payment); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Payment v3Payment; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Payment(V3Payment v3Payment) { + Utils.checkNotNull(v3Payment, "v3Payment"); + this.v3Payment = v3Payment; + return this; + } + + public V3CreatePaymentResponse build() { + + return new V3CreatePaymentResponse( + v3Payment); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserRequest.java new file mode 100644 index 000000000..d395b82e3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserRequest.java @@ -0,0 +1,279 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3CreatePaymentServiceUserRequest { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address") + private Optional v3AddressRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("contactDetails") + private Optional v3ContactDetailsRequest; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bankAccountIDs") + private JsonNullable> bankAccountIDs; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public V3CreatePaymentServiceUserRequest( + @JsonProperty("address") Optional v3AddressRequest, + @JsonProperty("contactDetails") Optional v3ContactDetailsRequest, + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("bankAccountIDs") JsonNullable> bankAccountIDs, + @JsonProperty("name") String name) { + Utils.checkNotNull(v3AddressRequest, "v3AddressRequest"); + Utils.checkNotNull(v3ContactDetailsRequest, "v3ContactDetailsRequest"); + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + Utils.checkNotNull(name, "name"); + this.v3AddressRequest = v3AddressRequest; + this.v3ContactDetailsRequest = v3ContactDetailsRequest; + this.v3Metadata = v3Metadata; + this.bankAccountIDs = bankAccountIDs; + this.name = name; + } + + public V3CreatePaymentServiceUserRequest( + String name) { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), name); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v3AddressRequest() { + return (Optional) v3AddressRequest; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v3ContactDetailsRequest() { + return (Optional) v3ContactDetailsRequest; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> bankAccountIDs() { + return (JsonNullable>) bankAccountIDs; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3CreatePaymentServiceUserRequest withV3AddressRequest(V3AddressRequest v3AddressRequest) { + Utils.checkNotNull(v3AddressRequest, "v3AddressRequest"); + this.v3AddressRequest = Optional.ofNullable(v3AddressRequest); + return this; + } + + + public V3CreatePaymentServiceUserRequest withV3AddressRequest(Optional v3AddressRequest) { + Utils.checkNotNull(v3AddressRequest, "v3AddressRequest"); + this.v3AddressRequest = v3AddressRequest; + return this; + } + + public V3CreatePaymentServiceUserRequest withV3ContactDetailsRequest(V3ContactDetailsRequest v3ContactDetailsRequest) { + Utils.checkNotNull(v3ContactDetailsRequest, "v3ContactDetailsRequest"); + this.v3ContactDetailsRequest = Optional.ofNullable(v3ContactDetailsRequest); + return this; + } + + + public V3CreatePaymentServiceUserRequest withV3ContactDetailsRequest(Optional v3ContactDetailsRequest) { + Utils.checkNotNull(v3ContactDetailsRequest, "v3ContactDetailsRequest"); + this.v3ContactDetailsRequest = v3ContactDetailsRequest; + return this; + } + + public V3CreatePaymentServiceUserRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3CreatePaymentServiceUserRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3CreatePaymentServiceUserRequest withBankAccountIDs(List bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = JsonNullable.of(bankAccountIDs); + return this; + } + + public V3CreatePaymentServiceUserRequest withBankAccountIDs(JsonNullable> bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = bankAccountIDs; + return this; + } + + public V3CreatePaymentServiceUserRequest withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3CreatePaymentServiceUserRequest other = (V3CreatePaymentServiceUserRequest) o; + return + Utils.enhancedDeepEquals(this.v3AddressRequest, other.v3AddressRequest) && + Utils.enhancedDeepEquals(this.v3ContactDetailsRequest, other.v3ContactDetailsRequest) && + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.bankAccountIDs, other.bankAccountIDs) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3AddressRequest, v3ContactDetailsRequest, v3Metadata, + bankAccountIDs, name); + } + + @Override + public String toString() { + return Utils.toString(V3CreatePaymentServiceUserRequest.class, + "v3AddressRequest", v3AddressRequest, + "v3ContactDetailsRequest", v3ContactDetailsRequest, + "v3Metadata", v3Metadata, + "bankAccountIDs", bankAccountIDs, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v3AddressRequest = Optional.empty(); + + private Optional v3ContactDetailsRequest = Optional.empty(); + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private JsonNullable> bankAccountIDs = JsonNullable.undefined(); + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3AddressRequest(V3AddressRequest v3AddressRequest) { + Utils.checkNotNull(v3AddressRequest, "v3AddressRequest"); + this.v3AddressRequest = Optional.ofNullable(v3AddressRequest); + return this; + } + + public Builder v3AddressRequest(Optional v3AddressRequest) { + Utils.checkNotNull(v3AddressRequest, "v3AddressRequest"); + this.v3AddressRequest = v3AddressRequest; + return this; + } + + + public Builder v3ContactDetailsRequest(V3ContactDetailsRequest v3ContactDetailsRequest) { + Utils.checkNotNull(v3ContactDetailsRequest, "v3ContactDetailsRequest"); + this.v3ContactDetailsRequest = Optional.ofNullable(v3ContactDetailsRequest); + return this; + } + + public Builder v3ContactDetailsRequest(Optional v3ContactDetailsRequest) { + Utils.checkNotNull(v3ContactDetailsRequest, "v3ContactDetailsRequest"); + this.v3ContactDetailsRequest = v3ContactDetailsRequest; + return this; + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder bankAccountIDs(List bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = JsonNullable.of(bankAccountIDs); + return this; + } + + public Builder bankAccountIDs(JsonNullable> bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = bankAccountIDs; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V3CreatePaymentServiceUserRequest build() { + + return new V3CreatePaymentServiceUserRequest( + v3AddressRequest, v3ContactDetailsRequest, v3Metadata, + bankAccountIDs, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserResponse.java index 2238146e6..8f3d868ee 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePaymentServiceUserResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolRequest.java index b2b04dde1..6e8d2209e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolResponse.java index ed59f0169..e018004f4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePoolResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CreatePoolResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CurrencycloudConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3CurrencycloudConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3CurrencycloudConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3CurrencycloudConfig.java index 29465851d..59a72f6c2 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CurrencycloudConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3CurrencycloudConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3CurrencycloudConfig implements V3InstallConnectorRequest { +public class V3CurrencycloudConfig { @JsonProperty("apiKey") private String apiKey; @@ -125,9 +125,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3DummypayConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3DummypayConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3DummypayConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3DummypayConfig.java index 1940062b5..c4bf0a992 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3DummypayConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3DummypayConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,7 +19,7 @@ import java.util.Optional; -public class V3DummypayConfig implements V3InstallConnectorRequest { +public class V3DummypayConfig { @JsonProperty("directory") private String directory; @@ -121,9 +121,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/errors/V3ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ErrorResponse.java similarity index 82% rename from src/main/java/com/formance/formance_sdk/models/errors/V3ErrorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ErrorResponse.java index 760077e5c..508418d3b 100644 --- a/src/main/java/com/formance/formance_sdk/models/errors/V3ErrorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ErrorResponse.java @@ -1,14 +1,14 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.errors; +package com.formance.formance_sdk.models.payments; 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.formance.formance_sdk.models.shared.V3ErrorsEnum; +import com.formance.formance_sdk.models.errors.SDKBaseError; import com.formance.formance_sdk.utils.Utils; import jakarta.annotation.Nonnull; import jakarta.annotation.Nullable; @@ -56,13 +56,13 @@ public static V3ErrorResponse from(HttpResponse response) { } @Deprecated - public Optional details() { - return data().flatMap(Data::details); + public Optional v3ErrorsEnum() { + return data().map(Data::v3ErrorsEnum); } @Deprecated - public Optional errorCode() { - return data().map(Data::errorCode); + public Optional details() { + return data().flatMap(Data::details); } @Deprecated @@ -83,45 +83,45 @@ public Optional deserializationException() { public static class Data { + @JsonProperty("errorCode") + private V3ErrorsEnum v3ErrorsEnum; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("details") private Optional details; - @JsonProperty("errorCode") - private V3ErrorsEnum errorCode; - - @JsonProperty("errorMessage") private String errorMessage; @JsonCreator public Data( + @JsonProperty("errorCode") V3ErrorsEnum v3ErrorsEnum, @JsonProperty("details") Optional details, - @JsonProperty("errorCode") V3ErrorsEnum errorCode, @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(v3ErrorsEnum, "v3ErrorsEnum"); Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); Utils.checkNotNull(errorMessage, "errorMessage"); + this.v3ErrorsEnum = v3ErrorsEnum; this.details = details; - this.errorCode = errorCode; this.errorMessage = errorMessage; } public Data( - V3ErrorsEnum errorCode, + V3ErrorsEnum v3ErrorsEnum, String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); + this(v3ErrorsEnum, Optional.empty(), errorMessage); } @JsonIgnore - public Optional details() { - return details; + public V3ErrorsEnum v3ErrorsEnum() { + return v3ErrorsEnum; } @JsonIgnore - public V3ErrorsEnum errorCode() { - return errorCode; + public Optional details() { + return details; } @JsonIgnore @@ -134,6 +134,12 @@ public static Builder builder() { } + public Data withV3ErrorsEnum(V3ErrorsEnum v3ErrorsEnum) { + Utils.checkNotNull(v3ErrorsEnum, "v3ErrorsEnum"); + this.v3ErrorsEnum = v3ErrorsEnum; + return this; + } + public Data withDetails(String details) { Utils.checkNotNull(details, "details"); this.details = Optional.ofNullable(details); @@ -147,12 +153,6 @@ public Data withDetails(Optional details) { return this; } - public Data withErrorCode(V3ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - public Data withErrorMessage(String errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; @@ -169,31 +169,31 @@ public boolean equals(java.lang.Object o) { } Data other = (Data) o; return + Utils.enhancedDeepEquals(this.v3ErrorsEnum, other.v3ErrorsEnum) && Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); } @Override public int hashCode() { return Utils.enhancedHash( - details, errorCode, errorMessage); + v3ErrorsEnum, details, errorMessage); } @Override public String toString() { return Utils.toString(Data.class, + "v3ErrorsEnum", v3ErrorsEnum, "details", details, - "errorCode", errorCode, "errorMessage", errorMessage); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional details = Optional.empty(); + private V3ErrorsEnum v3ErrorsEnum; - private V3ErrorsEnum errorCode; + private Optional details = Optional.empty(); private String errorMessage; @@ -202,6 +202,13 @@ private Builder() { } + public Builder v3ErrorsEnum(V3ErrorsEnum v3ErrorsEnum) { + Utils.checkNotNull(v3ErrorsEnum, "v3ErrorsEnum"); + this.v3ErrorsEnum = v3ErrorsEnum; + return this; + } + + public Builder details(String details) { Utils.checkNotNull(details, "details"); this.details = Optional.ofNullable(details); @@ -215,13 +222,6 @@ public Builder details(Optional details) { } - public Builder errorCode(V3ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public Builder errorMessage(String errorMessage) { Utils.checkNotNull(errorMessage, "errorMessage"); this.errorMessage = errorMessage; @@ -231,7 +231,7 @@ public Builder errorMessage(String errorMessage) { public Data build() { return new Data( - details, errorCode, errorMessage); + v3ErrorsEnum, details, errorMessage); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ErrorsEnum.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ErrorsEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ErrorsEnum.java index fdaa0502f..c218803e8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ErrorsEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ErrorsEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3FireblocksConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3FireblocksConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3FireblocksConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3FireblocksConfig.java index 285187013..9d5342095 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3FireblocksConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3FireblocksConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3FireblocksConfig implements V3InstallConnectorRequest { +public class V3FireblocksConfig { @JsonProperty("apiKey") private String apiKey; @@ -125,9 +125,8 @@ public String privateKey() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountRequest.java index ebdb8021e..d42ddde66 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponse.java index 52b122251..71d1e8f9e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponseData.java index 040ebce7b..7ef8cd5f3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardBankAccountResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardBankAccountResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.java index 03c1c8b3f..4d2bf4851 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.java index c54694f0b..2e32eb01e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.java index 479511eca..976909609 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ForwardPaymentServiceUserBankAccountResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ForwardPaymentServiceUserBankAccountResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GenericConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GenericConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3GenericConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3GenericConfig.java index 9dc969d98..101ed540b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GenericConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GenericConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3GenericConfig implements V3InstallConnectorRequest { +public class V3GenericConfig { @JsonProperty("apiKey") private String apiKey; @@ -111,9 +111,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetAccountResponse.java new file mode 100644 index 000000000..0529ec7ef --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetAccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetAccountResponse { + + @JsonProperty("data") + private V3Account v3Account; + + @JsonCreator + public V3GetAccountResponse( + @JsonProperty("data") V3Account v3Account) { + Utils.checkNotNull(v3Account, "v3Account"); + this.v3Account = v3Account; + } + + @JsonIgnore + public V3Account v3Account() { + return v3Account; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetAccountResponse withV3Account(V3Account v3Account) { + Utils.checkNotNull(v3Account, "v3Account"); + this.v3Account = v3Account; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetAccountResponse other = (V3GetAccountResponse) o; + return + Utils.enhancedDeepEquals(this.v3Account, other.v3Account); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Account); + } + + @Override + public String toString() { + return Utils.toString(V3GetAccountResponse.class, + "v3Account", v3Account); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Account v3Account; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Account(V3Account v3Account) { + Utils.checkNotNull(v3Account, "v3Account"); + this.v3Account = v3Account; + return this; + } + + public V3GetAccountResponse build() { + + return new V3GetAccountResponse( + v3Account); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetBankAccountResponse.java new file mode 100644 index 000000000..4b713f143 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetBankAccountResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetBankAccountResponse { + + @JsonProperty("data") + private V3BankAccount v3BankAccount; + + @JsonCreator + public V3GetBankAccountResponse( + @JsonProperty("data") V3BankAccount v3BankAccount) { + Utils.checkNotNull(v3BankAccount, "v3BankAccount"); + this.v3BankAccount = v3BankAccount; + } + + @JsonIgnore + public V3BankAccount v3BankAccount() { + return v3BankAccount; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetBankAccountResponse withV3BankAccount(V3BankAccount v3BankAccount) { + Utils.checkNotNull(v3BankAccount, "v3BankAccount"); + this.v3BankAccount = v3BankAccount; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetBankAccountResponse other = (V3GetBankAccountResponse) o; + return + Utils.enhancedDeepEquals(this.v3BankAccount, other.v3BankAccount); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3BankAccount); + } + + @Override + public String toString() { + return Utils.toString(V3GetBankAccountResponse.class, + "v3BankAccount", v3BankAccount); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3BankAccount v3BankAccount; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3BankAccount(V3BankAccount v3BankAccount) { + Utils.checkNotNull(v3BankAccount, "v3BankAccount"); + this.v3BankAccount = v3BankAccount; + return this; + } + + public V3GetBankAccountResponse build() { + + return new V3GetBankAccountResponse( + v3BankAccount); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetConnectorConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetConnectorConfigResponse.java new file mode 100644 index 000000000..bac7e2b92 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetConnectorConfigResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetConnectorConfigResponse { + + @JsonProperty("data") + private V3ConnectorConfig v3ConnectorConfig; + + @JsonCreator + public V3GetConnectorConfigResponse( + @JsonProperty("data") V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; + } + + @JsonIgnore + public V3ConnectorConfig v3ConnectorConfig() { + return v3ConnectorConfig; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetConnectorConfigResponse withV3ConnectorConfig(V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetConnectorConfigResponse other = (V3GetConnectorConfigResponse) o; + return + Utils.enhancedDeepEquals(this.v3ConnectorConfig, other.v3ConnectorConfig); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3ConnectorConfig); + } + + @Override + public String toString() { + return Utils.toString(V3GetConnectorConfigResponse.class, + "v3ConnectorConfig", v3ConnectorConfig); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3ConnectorConfig v3ConnectorConfig; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3ConnectorConfig(V3ConnectorConfig v3ConnectorConfig) { + Utils.checkNotNull(v3ConnectorConfig, "v3ConnectorConfig"); + this.v3ConnectorConfig = v3ConnectorConfig; + return this; + } + + public V3GetConnectorConfigResponse build() { + + return new V3GetConnectorConfigResponse( + v3ConnectorConfig); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentInitiationResponse.java new file mode 100644 index 000000000..9f117d1ac --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentInitiationResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetPaymentInitiationResponse { + + @JsonProperty("data") + private V3PaymentInitiation v3PaymentInitiation; + + @JsonCreator + public V3GetPaymentInitiationResponse( + @JsonProperty("data") V3PaymentInitiation v3PaymentInitiation) { + Utils.checkNotNull(v3PaymentInitiation, "v3PaymentInitiation"); + this.v3PaymentInitiation = v3PaymentInitiation; + } + + @JsonIgnore + public V3PaymentInitiation v3PaymentInitiation() { + return v3PaymentInitiation; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetPaymentInitiationResponse withV3PaymentInitiation(V3PaymentInitiation v3PaymentInitiation) { + Utils.checkNotNull(v3PaymentInitiation, "v3PaymentInitiation"); + this.v3PaymentInitiation = v3PaymentInitiation; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetPaymentInitiationResponse other = (V3GetPaymentInitiationResponse) o; + return + Utils.enhancedDeepEquals(this.v3PaymentInitiation, other.v3PaymentInitiation); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3PaymentInitiation); + } + + @Override + public String toString() { + return Utils.toString(V3GetPaymentInitiationResponse.class, + "v3PaymentInitiation", v3PaymentInitiation); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3PaymentInitiation v3PaymentInitiation; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3PaymentInitiation(V3PaymentInitiation v3PaymentInitiation) { + Utils.checkNotNull(v3PaymentInitiation, "v3PaymentInitiation"); + this.v3PaymentInitiation = v3PaymentInitiation; + return this; + } + + public V3GetPaymentInitiationResponse build() { + + return new V3GetPaymentInitiationResponse( + v3PaymentInitiation); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentResponse.java new file mode 100644 index 000000000..a0fb129f1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetPaymentResponse { + + @JsonProperty("data") + private V3Payment v3Payment; + + @JsonCreator + public V3GetPaymentResponse( + @JsonProperty("data") V3Payment v3Payment) { + Utils.checkNotNull(v3Payment, "v3Payment"); + this.v3Payment = v3Payment; + } + + @JsonIgnore + public V3Payment v3Payment() { + return v3Payment; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetPaymentResponse withV3Payment(V3Payment v3Payment) { + Utils.checkNotNull(v3Payment, "v3Payment"); + this.v3Payment = v3Payment; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetPaymentResponse other = (V3GetPaymentResponse) o; + return + Utils.enhancedDeepEquals(this.v3Payment, other.v3Payment); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Payment); + } + + @Override + public String toString() { + return Utils.toString(V3GetPaymentResponse.class, + "v3Payment", v3Payment); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Payment v3Payment; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Payment(V3Payment v3Payment) { + Utils.checkNotNull(v3Payment, "v3Payment"); + this.v3Payment = v3Payment; + return this; + } + + public V3GetPaymentResponse build() { + + return new V3GetPaymentResponse( + v3Payment); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentServiceUserResponse.java new file mode 100644 index 000000000..66200cfe4 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPaymentServiceUserResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetPaymentServiceUserResponse { + + @JsonProperty("data") + private V3PaymentServiceUser v3PaymentServiceUser; + + @JsonCreator + public V3GetPaymentServiceUserResponse( + @JsonProperty("data") V3PaymentServiceUser v3PaymentServiceUser) { + Utils.checkNotNull(v3PaymentServiceUser, "v3PaymentServiceUser"); + this.v3PaymentServiceUser = v3PaymentServiceUser; + } + + @JsonIgnore + public V3PaymentServiceUser v3PaymentServiceUser() { + return v3PaymentServiceUser; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetPaymentServiceUserResponse withV3PaymentServiceUser(V3PaymentServiceUser v3PaymentServiceUser) { + Utils.checkNotNull(v3PaymentServiceUser, "v3PaymentServiceUser"); + this.v3PaymentServiceUser = v3PaymentServiceUser; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetPaymentServiceUserResponse other = (V3GetPaymentServiceUserResponse) o; + return + Utils.enhancedDeepEquals(this.v3PaymentServiceUser, other.v3PaymentServiceUser); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3PaymentServiceUser); + } + + @Override + public String toString() { + return Utils.toString(V3GetPaymentServiceUserResponse.class, + "v3PaymentServiceUser", v3PaymentServiceUser); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3PaymentServiceUser v3PaymentServiceUser; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3PaymentServiceUser(V3PaymentServiceUser v3PaymentServiceUser) { + Utils.checkNotNull(v3PaymentServiceUser, "v3PaymentServiceUser"); + this.v3PaymentServiceUser = v3PaymentServiceUser; + return this; + } + + public V3GetPaymentServiceUserResponse build() { + + return new V3GetPaymentServiceUserResponse( + v3PaymentServiceUser); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetPoolResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPoolResponse.java new file mode 100644 index 000000000..6edbf6084 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetPoolResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetPoolResponse { + + @JsonProperty("data") + private V3Pool v3Pool; + + @JsonCreator + public V3GetPoolResponse( + @JsonProperty("data") V3Pool v3Pool) { + Utils.checkNotNull(v3Pool, "v3Pool"); + this.v3Pool = v3Pool; + } + + @JsonIgnore + public V3Pool v3Pool() { + return v3Pool; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetPoolResponse withV3Pool(V3Pool v3Pool) { + Utils.checkNotNull(v3Pool, "v3Pool"); + this.v3Pool = v3Pool; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetPoolResponse other = (V3GetPoolResponse) o; + return + Utils.enhancedDeepEquals(this.v3Pool, other.v3Pool); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Pool); + } + + @Override + public String toString() { + return Utils.toString(V3GetPoolResponse.class, + "v3Pool", v3Pool); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Pool v3Pool; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Pool(V3Pool v3Pool) { + Utils.checkNotNull(v3Pool, "v3Pool"); + this.v3Pool = v3Pool; + return this; + } + + public V3GetPoolResponse build() { + + return new V3GetPoolResponse( + v3Pool); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3GetTaskResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3GetTaskResponse.java new file mode 100644 index 000000000..e285c39db --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3GetTaskResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class V3GetTaskResponse { + + @JsonProperty("data") + private V3Task v3Task; + + @JsonCreator + public V3GetTaskResponse( + @JsonProperty("data") V3Task v3Task) { + Utils.checkNotNull(v3Task, "v3Task"); + this.v3Task = v3Task; + } + + @JsonIgnore + public V3Task v3Task() { + return v3Task; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3GetTaskResponse withV3Task(V3Task v3Task) { + Utils.checkNotNull(v3Task, "v3Task"); + this.v3Task = v3Task; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3GetTaskResponse other = (V3GetTaskResponse) o; + return + Utils.enhancedDeepEquals(this.v3Task, other.v3Task); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Task); + } + + @Override + public String toString() { + return Utils.toString(V3GetTaskResponse.class, + "v3Task", v3Task); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3Task v3Task; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Task(V3Task v3Task) { + Utils.checkNotNull(v3Task, "v3Task"); + this.v3Task = v3Task; + return this; + } + + public V3GetTaskResponse build() { + + return new V3GetTaskResponse( + v3Task); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3IncreaseConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3IncreaseConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3IncreaseConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3IncreaseConfig.java index 7844fb227..2cec46f95 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3IncreaseConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3IncreaseConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3IncreaseConfig implements V3InstallConnectorRequest { +public class V3IncreaseConfig { @JsonProperty("apiKey") private String apiKey; @@ -120,9 +120,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentRequest.java similarity index 75% rename from src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentRequest.java index 2c2d3e317..5643566ab 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,15 @@ public class V3InitiatePaymentRequest { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("type") + private V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum; + + @JsonProperty("amount") private BigInteger amount; @@ -42,11 +51,6 @@ public class V3InitiatePaymentRequest { private Optional destinationAccountID; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("reference") private String reference; @@ -59,56 +63,63 @@ public class V3InitiatePaymentRequest { @JsonProperty("sourceAccountID") private JsonNullable sourceAccountID; - - @JsonProperty("type") - private V3PaymentInitiationTypeEnum type; - @JsonCreator public V3InitiatePaymentRequest( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("type") V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @JsonProperty("description") String description, @JsonProperty("destinationAccountID") Optional destinationAccountID, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("reference") String reference, @JsonProperty("scheduledAt") OffsetDateTime scheduledAt, - @JsonProperty("sourceAccountID") JsonNullable sourceAccountID, - @JsonProperty("type") V3PaymentInitiationTypeEnum type) { + @JsonProperty("sourceAccountID") JsonNullable sourceAccountID) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentInitiationTypeEnum, "v3PaymentInitiationTypeEnum"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(description, "description"); Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(scheduledAt, "scheduledAt"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(type, "type"); + this.v3Metadata = v3Metadata; + this.v3PaymentInitiationTypeEnum = v3PaymentInitiationTypeEnum; this.amount = amount; this.asset = asset; this.connectorID = connectorID; this.description = description; this.destinationAccountID = destinationAccountID; - this.metadata = metadata; this.reference = reference; this.scheduledAt = scheduledAt; this.sourceAccountID = sourceAccountID; - this.type = type; } public V3InitiatePaymentRequest( + V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum, BigInteger amount, String asset, String connectorID, String description, String reference, - OffsetDateTime scheduledAt, - V3PaymentInitiationTypeEnum type) { - this(amount, asset, connectorID, - description, Optional.empty(), JsonNullable.undefined(), - reference, scheduledAt, JsonNullable.undefined(), - type); + OffsetDateTime scheduledAt) { + this(JsonNullable.undefined(), v3PaymentInitiationTypeEnum, amount, + asset, connectorID, description, + Optional.empty(), reference, scheduledAt, + JsonNullable.undefined()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum() { + return v3PaymentInitiationTypeEnum; } @JsonIgnore @@ -136,12 +147,6 @@ public Optional destinationAccountID() { return destinationAccountID; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String reference() { return reference; @@ -157,16 +162,29 @@ public JsonNullable sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public V3PaymentInitiationTypeEnum type() { - return type; - } - public static Builder builder() { return new Builder(); } + public V3InitiatePaymentRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3InitiatePaymentRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3InitiatePaymentRequest withV3PaymentInitiationTypeEnum(V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum) { + Utils.checkNotNull(v3PaymentInitiationTypeEnum, "v3PaymentInitiationTypeEnum"); + this.v3PaymentInitiationTypeEnum = v3PaymentInitiationTypeEnum; + return this; + } + public V3InitiatePaymentRequest withAmount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -209,18 +227,6 @@ public V3InitiatePaymentRequest withDestinationAccountID(Optional destin return this; } - public V3InitiatePaymentRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3InitiatePaymentRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3InitiatePaymentRequest withReference(String reference) { Utils.checkNotNull(reference, "reference"); this.reference = reference; @@ -245,12 +251,6 @@ public V3InitiatePaymentRequest withSourceAccountID(JsonNullable sourceA return this; } - public V3InitiatePaymentRequest withType(V3PaymentInitiationTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -261,45 +261,49 @@ public boolean equals(java.lang.Object o) { } V3InitiatePaymentRequest other = (V3InitiatePaymentRequest) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentInitiationTypeEnum, other.v3PaymentInitiationTypeEnum) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.description, other.description) && Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.scheduledAt, other.scheduledAt) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID); } @Override public int hashCode() { return Utils.enhancedHash( - amount, asset, connectorID, - description, destinationAccountID, metadata, - reference, scheduledAt, sourceAccountID, - type); + v3Metadata, v3PaymentInitiationTypeEnum, amount, + asset, connectorID, description, + destinationAccountID, reference, scheduledAt, + sourceAccountID); } @Override public String toString() { return Utils.toString(V3InitiatePaymentRequest.class, + "v3Metadata", v3Metadata, + "v3PaymentInitiationTypeEnum", v3PaymentInitiationTypeEnum, "amount", amount, "asset", asset, "connectorID", connectorID, "description", description, "destinationAccountID", destinationAccountID, - "metadata", metadata, "reference", reference, "scheduledAt", scheduledAt, - "sourceAccountID", sourceAccountID, - "type", type); + "sourceAccountID", sourceAccountID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum; + private BigInteger amount; private String asset; @@ -310,21 +314,37 @@ public final static class Builder { private Optional destinationAccountID = Optional.empty(); - private JsonNullable> metadata = JsonNullable.undefined(); - private String reference; private OffsetDateTime scheduledAt; private JsonNullable sourceAccountID = JsonNullable.undefined(); - private V3PaymentInitiationTypeEnum type; - private Builder() { // force use of static builder() method } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentInitiationTypeEnum(V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum) { + Utils.checkNotNull(v3PaymentInitiationTypeEnum, "v3PaymentInitiationTypeEnum"); + this.v3PaymentInitiationTypeEnum = v3PaymentInitiationTypeEnum; + return this; + } + + public Builder amount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -371,19 +391,6 @@ public Builder destinationAccountID(Optional destinationAccountID) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder reference(String reference) { Utils.checkNotNull(reference, "reference"); this.reference = reference; @@ -410,20 +417,13 @@ public Builder sourceAccountID(JsonNullable sourceAccountID) { return this; } - - public Builder type(V3PaymentInitiationTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public V3InitiatePaymentRequest build() { return new V3InitiatePaymentRequest( - amount, asset, connectorID, - description, destinationAccountID, metadata, - reference, scheduledAt, sourceAccountID, - type); + v3Metadata, v3PaymentInitiationTypeEnum, amount, + asset, connectorID, description, + destinationAccountID, reference, scheduledAt, + sourceAccountID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponse.java index a45740970..0dae7fbfe 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponseData.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponseData.java index 461c6c0b7..ff74735f1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3InitiatePaymentResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3InitiatePaymentResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3InstallConnectorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3InstallConnectorResponse.java index 4e2e12ca4..ba0d67f89 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3InstallConnectorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Instance.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Instance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Instance.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Instance.java index 493fb8662..826ce7430 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Instance.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Instance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3MangopayConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3MangopayConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3MangopayConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3MangopayConfig.java index eabcfaa1e..e8b926040 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3MangopayConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3MangopayConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3MangopayConfig implements V3InstallConnectorRequest { +public class V3MangopayConfig { @JsonProperty("apiKey") private String apiKey; @@ -125,9 +125,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ModulrConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ModulrConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ModulrConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ModulrConfig.java index 7a4ebb9f2..fa6769628 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ModulrConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ModulrConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3ModulrConfig implements V3InstallConnectorRequest { +public class V3ModulrConfig { @JsonProperty("apiKey") private String apiKey; @@ -125,9 +125,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3MoneycorpConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3MoneycorpConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3MoneycorpConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3MoneycorpConfig.java index dbdeb4d15..779f22392 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3MoneycorpConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3MoneycorpConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3MoneycorpConfig implements V3InstallConnectorRequest { +public class V3MoneycorpConfig { @JsonProperty("apiKey") private String apiKey; @@ -125,9 +125,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3OpenBankingConnectionAttemptStatusEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3OpenBankingConnectionAttemptStatusEnum.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V3OpenBankingConnectionAttemptStatusEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3OpenBankingConnectionAttemptStatusEnum.java index 59f5cf6a8..6253b9423 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3OpenBankingConnectionAttemptStatusEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3OpenBankingConnectionAttemptStatusEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Payment.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Payment.java similarity index 78% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Payment.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Payment.java index 8c12f0abb..2e0e832dc 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Payment.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Payment.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,19 @@ public class V3Payment { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("status") + private V3PaymentStatusEnum v3PaymentStatusEnum; + + + @JsonProperty("type") + private V3PaymentTypeEnum v3PaymentTypeEnum; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("adjustments") private JsonNullable> adjustments; @@ -55,11 +68,6 @@ public class V3Payment { private BigInteger initialAmount; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("provider") private String provider; @@ -76,16 +84,11 @@ public class V3Payment { @JsonProperty("sourceAccountID") private JsonNullable sourceAccountID; - - @JsonProperty("status") - private V3PaymentStatusEnum status; - - - @JsonProperty("type") - private V3PaymentTypeEnum type; - @JsonCreator public V3Payment( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("status") V3PaymentStatusEnum v3PaymentStatusEnum, + @JsonProperty("type") V3PaymentTypeEnum v3PaymentTypeEnum, @JsonProperty("adjustments") JsonNullable> adjustments, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @@ -94,13 +97,13 @@ public V3Payment( @JsonProperty("destinationAccountID") JsonNullable destinationAccountID, @JsonProperty("id") String id, @JsonProperty("initialAmount") BigInteger initialAmount, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("provider") String provider, @JsonProperty("reference") String reference, @JsonProperty("scheme") String scheme, - @JsonProperty("sourceAccountID") JsonNullable sourceAccountID, - @JsonProperty("status") V3PaymentStatusEnum status, - @JsonProperty("type") V3PaymentTypeEnum type) { + @JsonProperty("sourceAccountID") JsonNullable sourceAccountID) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + Utils.checkNotNull(v3PaymentTypeEnum, "v3PaymentTypeEnum"); Utils.checkNotNull(adjustments, "adjustments"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); @@ -109,13 +112,13 @@ public V3Payment( Utils.checkNotNull(destinationAccountID, "destinationAccountID"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(initialAmount, "initialAmount"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(provider, "provider"); Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(scheme, "scheme"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); + this.v3Metadata = v3Metadata; + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + this.v3PaymentTypeEnum = v3PaymentTypeEnum; this.adjustments = adjustments; this.amount = amount; this.asset = asset; @@ -124,16 +127,15 @@ public V3Payment( this.destinationAccountID = destinationAccountID; this.id = id; this.initialAmount = initialAmount; - this.metadata = metadata; this.provider = provider; this.reference = reference; this.scheme = scheme; this.sourceAccountID = sourceAccountID; - this.status = status; - this.type = type; } public V3Payment( + V3PaymentStatusEnum v3PaymentStatusEnum, + V3PaymentTypeEnum v3PaymentTypeEnum, BigInteger amount, String asset, String connectorID, @@ -142,14 +144,28 @@ public V3Payment( BigInteger initialAmount, String provider, String reference, - String scheme, - V3PaymentStatusEnum status, - V3PaymentTypeEnum type) { - this(JsonNullable.undefined(), amount, asset, + String scheme) { + this(JsonNullable.undefined(), v3PaymentStatusEnum, v3PaymentTypeEnum, + JsonNullable.undefined(), amount, asset, connectorID, createdAt, JsonNullable.undefined(), - id, initialAmount, JsonNullable.undefined(), - provider, reference, scheme, - JsonNullable.undefined(), status, type); + id, initialAmount, provider, + reference, scheme, JsonNullable.undefined()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentStatusEnum v3PaymentStatusEnum() { + return v3PaymentStatusEnum; + } + + @JsonIgnore + public V3PaymentTypeEnum v3PaymentTypeEnum() { + return v3PaymentTypeEnum; } @SuppressWarnings("unchecked") @@ -193,12 +209,6 @@ public BigInteger initialAmount() { return initialAmount; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String provider() { return provider; @@ -219,20 +229,34 @@ public JsonNullable sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public V3PaymentStatusEnum status() { - return status; + public static Builder builder() { + return new Builder(); } - @JsonIgnore - public V3PaymentTypeEnum type() { - return type; + + public V3Payment withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; } - public static Builder builder() { - return new Builder(); + public V3Payment withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3Payment withV3PaymentStatusEnum(V3PaymentStatusEnum v3PaymentStatusEnum) { + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + return this; } + public V3Payment withV3PaymentTypeEnum(V3PaymentTypeEnum v3PaymentTypeEnum) { + Utils.checkNotNull(v3PaymentTypeEnum, "v3PaymentTypeEnum"); + this.v3PaymentTypeEnum = v3PaymentTypeEnum; + return this; + } public V3Payment withAdjustments(List adjustments) { Utils.checkNotNull(adjustments, "adjustments"); @@ -304,18 +328,6 @@ public V3Payment withInitialAmount(BigInteger initialAmount) { return this; } - public V3Payment withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3Payment withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3Payment withProvider(String provider) { Utils.checkNotNull(provider, "provider"); this.provider = provider; @@ -346,18 +358,6 @@ public V3Payment withSourceAccountID(JsonNullable sourceAccountID) { return this; } - public V3Payment withStatus(V3PaymentStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3Payment withType(V3PaymentTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -368,6 +368,9 @@ public boolean equals(java.lang.Object o) { } V3Payment other = (V3Payment) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentStatusEnum, other.v3PaymentStatusEnum) && + Utils.enhancedDeepEquals(this.v3PaymentTypeEnum, other.v3PaymentTypeEnum) && Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && @@ -376,28 +379,28 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.provider, other.provider) && Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.scheme, other.scheme) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID); } @Override public int hashCode() { return Utils.enhancedHash( + v3Metadata, v3PaymentStatusEnum, v3PaymentTypeEnum, adjustments, amount, asset, connectorID, createdAt, destinationAccountID, - id, initialAmount, metadata, - provider, reference, scheme, - sourceAccountID, status, type); + id, initialAmount, provider, + reference, scheme, sourceAccountID); } @Override public String toString() { return Utils.toString(V3Payment.class, + "v3Metadata", v3Metadata, + "v3PaymentStatusEnum", v3PaymentStatusEnum, + "v3PaymentTypeEnum", v3PaymentTypeEnum, "adjustments", adjustments, "amount", amount, "asset", asset, @@ -406,18 +409,21 @@ public String toString() { "destinationAccountID", destinationAccountID, "id", id, "initialAmount", initialAmount, - "metadata", metadata, "provider", provider, "reference", reference, "scheme", scheme, - "sourceAccountID", sourceAccountID, - "status", status, - "type", type); + "sourceAccountID", sourceAccountID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentStatusEnum v3PaymentStatusEnum; + + private V3PaymentTypeEnum v3PaymentTypeEnum; + private JsonNullable> adjustments = JsonNullable.undefined(); private BigInteger amount; @@ -434,8 +440,6 @@ public final static class Builder { private BigInteger initialAmount; - private JsonNullable> metadata = JsonNullable.undefined(); - private String provider; private String reference; @@ -444,15 +448,38 @@ public final static class Builder { private JsonNullable sourceAccountID = JsonNullable.undefined(); - private V3PaymentStatusEnum status; - - private V3PaymentTypeEnum type; - private Builder() { // force use of static builder() method } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentStatusEnum(V3PaymentStatusEnum v3PaymentStatusEnum) { + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + return this; + } + + + public Builder v3PaymentTypeEnum(V3PaymentTypeEnum v3PaymentTypeEnum) { + Utils.checkNotNull(v3PaymentTypeEnum, "v3PaymentTypeEnum"); + this.v3PaymentTypeEnum = v3PaymentTypeEnum; + return this; + } + + public Builder adjustments(List adjustments) { Utils.checkNotNull(adjustments, "adjustments"); this.adjustments = JsonNullable.of(adjustments); @@ -531,19 +558,6 @@ public Builder initialAmount(BigInteger initialAmount) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder provider(String provider) { Utils.checkNotNull(provider, "provider"); this.provider = provider; @@ -577,28 +591,14 @@ public Builder sourceAccountID(JsonNullable sourceAccountID) { return this; } - - public Builder status(V3PaymentStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder type(V3PaymentTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public V3Payment build() { return new V3Payment( + v3Metadata, v3PaymentStatusEnum, v3PaymentTypeEnum, adjustments, amount, asset, connectorID, createdAt, destinationAccountID, - id, initialAmount, metadata, - provider, reference, scheme, - sourceAccountID, status, type); + id, initialAmount, provider, + reference, scheme, sourceAccountID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustment.java new file mode 100644 index 000000000..327639135 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustment.java @@ -0,0 +1,369 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3PaymentAdjustment { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("status") + private V3PaymentStatusEnum v3PaymentStatusEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional amount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("asset") + private Optional asset; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("raw") + private V3PaymentAdjustmentRaw raw; + + + @JsonProperty("reference") + private String reference; + + @JsonCreator + public V3PaymentAdjustment( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("status") V3PaymentStatusEnum v3PaymentStatusEnum, + @JsonProperty("amount") Optional amount, + @JsonProperty("asset") Optional asset, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("id") String id, + @JsonProperty("raw") V3PaymentAdjustmentRaw raw, + @JsonProperty("reference") String reference) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(raw, "raw"); + Utils.checkNotNull(reference, "reference"); + this.v3Metadata = v3Metadata; + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + this.amount = amount; + this.asset = asset; + this.createdAt = createdAt; + this.id = id; + this.raw = raw; + this.reference = reference; + } + + public V3PaymentAdjustment( + V3PaymentStatusEnum v3PaymentStatusEnum, + OffsetDateTime createdAt, + String id, + V3PaymentAdjustmentRaw raw, + String reference) { + this(JsonNullable.undefined(), v3PaymentStatusEnum, Optional.empty(), + Optional.empty(), createdAt, id, + raw, reference); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentStatusEnum v3PaymentStatusEnum() { + return v3PaymentStatusEnum; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional amount() { + return (Optional) amount; + } + + @JsonIgnore + public Optional asset() { + return asset; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public V3PaymentAdjustmentRaw raw() { + return raw; + } + + @JsonIgnore + public String reference() { + return reference; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3PaymentAdjustment withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3PaymentAdjustment withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3PaymentAdjustment withV3PaymentStatusEnum(V3PaymentStatusEnum v3PaymentStatusEnum) { + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + return this; + } + + public V3PaymentAdjustment withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public V3PaymentAdjustment withAmount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + + public V3PaymentAdjustment withAmount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public V3PaymentAdjustment withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + + public V3PaymentAdjustment withAsset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public V3PaymentAdjustment withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3PaymentAdjustment withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V3PaymentAdjustment withRaw(V3PaymentAdjustmentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + public V3PaymentAdjustment withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3PaymentAdjustment other = (V3PaymentAdjustment) o; + return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentStatusEnum, other.v3PaymentStatusEnum) && + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.raw, other.raw) && + Utils.enhancedDeepEquals(this.reference, other.reference); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Metadata, v3PaymentStatusEnum, amount, + asset, createdAt, id, + raw, reference); + } + + @Override + public String toString() { + return Utils.toString(V3PaymentAdjustment.class, + "v3Metadata", v3Metadata, + "v3PaymentStatusEnum", v3PaymentStatusEnum, + "amount", amount, + "asset", asset, + "createdAt", createdAt, + "id", id, + "raw", raw, + "reference", reference); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentStatusEnum v3PaymentStatusEnum; + + private Optional amount = Optional.empty(); + + private Optional asset = Optional.empty(); + + private OffsetDateTime createdAt; + + private String id; + + private V3PaymentAdjustmentRaw raw; + + private String reference; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentStatusEnum(V3PaymentStatusEnum v3PaymentStatusEnum) { + Utils.checkNotNull(v3PaymentStatusEnum, "v3PaymentStatusEnum"); + this.v3PaymentStatusEnum = v3PaymentStatusEnum; + return this; + } + + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public Builder amount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + public Builder amount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + public Builder asset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder raw(V3PaymentAdjustmentRaw raw) { + Utils.checkNotNull(raw, "raw"); + this.raw = raw; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public V3PaymentAdjustment build() { + + return new V3PaymentAdjustment( + v3Metadata, v3PaymentStatusEnum, amount, + asset, createdAt, id, + raw, reference); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustmentRaw.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustmentRaw.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustmentRaw.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustmentRaw.java index d1712b012..85fd12fb3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustmentRaw.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentAdjustmentRaw.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.formance.formance_sdk.utils.Utils; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiation.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiation.java similarity index 75% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiation.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiation.java index 957278b2f..6ec374b98 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiation.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,19 @@ public class V3PaymentInitiation { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("status") + private V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum; + + + @JsonProperty("type") + private V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum; + + @JsonProperty("amount") private BigInteger amount; @@ -55,11 +68,6 @@ public class V3PaymentInitiation { private String id; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("provider") private String provider; @@ -76,16 +84,11 @@ public class V3PaymentInitiation { @JsonProperty("sourceAccountID") private Optional sourceAccountID; - - @JsonProperty("status") - private V3PaymentInitiationStatusEnum status; - - - @JsonProperty("type") - private V3PaymentInitiationTypeEnum type; - @JsonCreator public V3PaymentInitiation( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("status") V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum, + @JsonProperty("type") V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @JsonProperty("connectorID") String connectorID, @@ -94,13 +97,13 @@ public V3PaymentInitiation( @JsonProperty("destinationAccountID") Optional destinationAccountID, @JsonProperty("error") JsonNullable error, @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("provider") String provider, @JsonProperty("reference") String reference, @JsonProperty("scheduledAt") OffsetDateTime scheduledAt, - @JsonProperty("sourceAccountID") Optional sourceAccountID, - @JsonProperty("status") V3PaymentInitiationStatusEnum status, - @JsonProperty("type") V3PaymentInitiationTypeEnum type) { + @JsonProperty("sourceAccountID") Optional sourceAccountID) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentInitiationStatusEnum, "v3PaymentInitiationStatusEnum"); + Utils.checkNotNull(v3PaymentInitiationTypeEnum, "v3PaymentInitiationTypeEnum"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(connectorID, "connectorID"); @@ -109,13 +112,13 @@ public V3PaymentInitiation( Utils.checkNotNull(destinationAccountID, "destinationAccountID"); Utils.checkNotNull(error, "error"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(provider, "provider"); Utils.checkNotNull(reference, "reference"); Utils.checkNotNull(scheduledAt, "scheduledAt"); Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); + this.v3Metadata = v3Metadata; + this.v3PaymentInitiationStatusEnum = v3PaymentInitiationStatusEnum; + this.v3PaymentInitiationTypeEnum = v3PaymentInitiationTypeEnum; this.amount = amount; this.asset = asset; this.connectorID = connectorID; @@ -124,16 +127,15 @@ public V3PaymentInitiation( this.destinationAccountID = destinationAccountID; this.error = error; this.id = id; - this.metadata = metadata; this.provider = provider; this.reference = reference; this.scheduledAt = scheduledAt; this.sourceAccountID = sourceAccountID; - this.status = status; - this.type = type; } public V3PaymentInitiation( + V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum, + V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum, BigInteger amount, String asset, String connectorID, @@ -142,14 +144,28 @@ public V3PaymentInitiation( String id, String provider, String reference, - OffsetDateTime scheduledAt, - V3PaymentInitiationStatusEnum status, - V3PaymentInitiationTypeEnum type) { - this(amount, asset, connectorID, + OffsetDateTime scheduledAt) { + this(JsonNullable.undefined(), v3PaymentInitiationStatusEnum, v3PaymentInitiationTypeEnum, + amount, asset, connectorID, createdAt, description, Optional.empty(), - JsonNullable.undefined(), id, JsonNullable.undefined(), - provider, reference, scheduledAt, - Optional.empty(), status, type); + JsonNullable.undefined(), id, provider, + reference, scheduledAt, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum() { + return v3PaymentInitiationStatusEnum; + } + + @JsonIgnore + public V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum() { + return v3PaymentInitiationTypeEnum; } @JsonIgnore @@ -192,12 +208,6 @@ public String id() { return id; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String provider() { return provider; @@ -218,20 +228,34 @@ public Optional sourceAccountID() { return sourceAccountID; } - @JsonIgnore - public V3PaymentInitiationStatusEnum status() { - return status; + public static Builder builder() { + return new Builder(); } - @JsonIgnore - public V3PaymentInitiationTypeEnum type() { - return type; + + public V3PaymentInitiation withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; } - public static Builder builder() { - return new Builder(); + public V3PaymentInitiation withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3PaymentInitiation withV3PaymentInitiationStatusEnum(V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum) { + Utils.checkNotNull(v3PaymentInitiationStatusEnum, "v3PaymentInitiationStatusEnum"); + this.v3PaymentInitiationStatusEnum = v3PaymentInitiationStatusEnum; + return this; } + public V3PaymentInitiation withV3PaymentInitiationTypeEnum(V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum) { + Utils.checkNotNull(v3PaymentInitiationTypeEnum, "v3PaymentInitiationTypeEnum"); + this.v3PaymentInitiationTypeEnum = v3PaymentInitiationTypeEnum; + return this; + } public V3PaymentInitiation withAmount(long amount) { this.amount = BigInteger.valueOf(amount); @@ -299,18 +323,6 @@ public V3PaymentInitiation withId(String id) { return this; } - public V3PaymentInitiation withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3PaymentInitiation withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3PaymentInitiation withProvider(String provider) { Utils.checkNotNull(provider, "provider"); this.provider = provider; @@ -342,18 +354,6 @@ public V3PaymentInitiation withSourceAccountID(Optional sourceAccountID) return this; } - public V3PaymentInitiation withStatus(V3PaymentInitiationStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3PaymentInitiation withType(V3PaymentInitiationTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -364,6 +364,9 @@ public boolean equals(java.lang.Object o) { } V3PaymentInitiation other = (V3PaymentInitiation) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentInitiationStatusEnum, other.v3PaymentInitiationStatusEnum) && + Utils.enhancedDeepEquals(this.v3PaymentInitiationTypeEnum, other.v3PaymentInitiationTypeEnum) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && @@ -372,28 +375,28 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && Utils.enhancedDeepEquals(this.error, other.error) && Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.provider, other.provider) && Utils.enhancedDeepEquals(this.reference, other.reference) && Utils.enhancedDeepEquals(this.scheduledAt, other.scheduledAt) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID); } @Override public int hashCode() { return Utils.enhancedHash( + v3Metadata, v3PaymentInitiationStatusEnum, v3PaymentInitiationTypeEnum, amount, asset, connectorID, createdAt, description, destinationAccountID, - error, id, metadata, - provider, reference, scheduledAt, - sourceAccountID, status, type); + error, id, provider, + reference, scheduledAt, sourceAccountID); } @Override public String toString() { return Utils.toString(V3PaymentInitiation.class, + "v3Metadata", v3Metadata, + "v3PaymentInitiationStatusEnum", v3PaymentInitiationStatusEnum, + "v3PaymentInitiationTypeEnum", v3PaymentInitiationTypeEnum, "amount", amount, "asset", asset, "connectorID", connectorID, @@ -402,18 +405,21 @@ public String toString() { "destinationAccountID", destinationAccountID, "error", error, "id", id, - "metadata", metadata, "provider", provider, "reference", reference, "scheduledAt", scheduledAt, - "sourceAccountID", sourceAccountID, - "status", status, - "type", type); + "sourceAccountID", sourceAccountID); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum; + + private V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum; + private BigInteger amount; private String asset; @@ -430,8 +436,6 @@ public final static class Builder { private String id; - private JsonNullable> metadata = JsonNullable.undefined(); - private String provider; private String reference; @@ -440,15 +444,38 @@ public final static class Builder { private Optional sourceAccountID = Optional.empty(); - private V3PaymentInitiationStatusEnum status; - - private V3PaymentInitiationTypeEnum type; - private Builder() { // force use of static builder() method } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentInitiationStatusEnum(V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum) { + Utils.checkNotNull(v3PaymentInitiationStatusEnum, "v3PaymentInitiationStatusEnum"); + this.v3PaymentInitiationStatusEnum = v3PaymentInitiationStatusEnum; + return this; + } + + + public Builder v3PaymentInitiationTypeEnum(V3PaymentInitiationTypeEnum v3PaymentInitiationTypeEnum) { + Utils.checkNotNull(v3PaymentInitiationTypeEnum, "v3PaymentInitiationTypeEnum"); + this.v3PaymentInitiationTypeEnum = v3PaymentInitiationTypeEnum; + return this; + } + + public Builder amount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -522,19 +549,6 @@ public Builder id(String id) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder provider(String provider) { Utils.checkNotNull(provider, "provider"); this.provider = provider; @@ -568,28 +582,14 @@ public Builder sourceAccountID(Optional sourceAccountID) { return this; } - - public Builder status(V3PaymentInitiationStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder type(V3PaymentInitiationTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public V3PaymentInitiation build() { return new V3PaymentInitiation( + v3Metadata, v3PaymentInitiationStatusEnum, v3PaymentInitiationTypeEnum, amount, asset, connectorID, createdAt, description, destinationAccountID, - error, id, metadata, - provider, reference, scheduledAt, - sourceAccountID, status, type); + error, id, provider, + reference, scheduledAt, sourceAccountID); } } diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustment.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustment.java new file mode 100644 index 000000000..566d410a4 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustment.java @@ -0,0 +1,351 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3PaymentInitiationAdjustment { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("status") + private V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("amount") + private Optional amount; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("asset") + private Optional asset; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private JsonNullable error; + + + @JsonProperty("id") + private String id; + + @JsonCreator + public V3PaymentInitiationAdjustment( + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("status") V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum, + @JsonProperty("amount") Optional amount, + @JsonProperty("asset") Optional asset, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("error") JsonNullable error, + @JsonProperty("id") String id) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(v3PaymentInitiationStatusEnum, "v3PaymentInitiationStatusEnum"); + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(error, "error"); + Utils.checkNotNull(id, "id"); + this.v3Metadata = v3Metadata; + this.v3PaymentInitiationStatusEnum = v3PaymentInitiationStatusEnum; + this.amount = amount; + this.asset = asset; + this.createdAt = createdAt; + this.error = error; + this.id = id; + } + + public V3PaymentInitiationAdjustment( + V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum, + OffsetDateTime createdAt, + String id) { + this(JsonNullable.undefined(), v3PaymentInitiationStatusEnum, Optional.empty(), + Optional.empty(), createdAt, JsonNullable.undefined(), + id); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum() { + return v3PaymentInitiationStatusEnum; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional amount() { + return (Optional) amount; + } + + @JsonIgnore + public Optional asset() { + return asset; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public JsonNullable error() { + return error; + } + + @JsonIgnore + public String id() { + return id; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3PaymentInitiationAdjustment withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3PaymentInitiationAdjustment withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3PaymentInitiationAdjustment withV3PaymentInitiationStatusEnum(V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum) { + Utils.checkNotNull(v3PaymentInitiationStatusEnum, "v3PaymentInitiationStatusEnum"); + this.v3PaymentInitiationStatusEnum = v3PaymentInitiationStatusEnum; + return this; + } + + public V3PaymentInitiationAdjustment withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public V3PaymentInitiationAdjustment withAmount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + + public V3PaymentInitiationAdjustment withAmount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public V3PaymentInitiationAdjustment withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + + public V3PaymentInitiationAdjustment withAsset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public V3PaymentInitiationAdjustment withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3PaymentInitiationAdjustment withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public V3PaymentInitiationAdjustment withError(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public V3PaymentInitiationAdjustment withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3PaymentInitiationAdjustment other = (V3PaymentInitiationAdjustment) o; + return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.v3PaymentInitiationStatusEnum, other.v3PaymentInitiationStatusEnum) && + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.error, other.error) && + Utils.enhancedDeepEquals(this.id, other.id); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Metadata, v3PaymentInitiationStatusEnum, amount, + asset, createdAt, error, + id); + } + + @Override + public String toString() { + return Utils.toString(V3PaymentInitiationAdjustment.class, + "v3Metadata", v3Metadata, + "v3PaymentInitiationStatusEnum", v3PaymentInitiationStatusEnum, + "amount", amount, + "asset", asset, + "createdAt", createdAt, + "error", error, + "id", id); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum; + + private Optional amount = Optional.empty(); + + private Optional asset = Optional.empty(); + + private OffsetDateTime createdAt; + + private JsonNullable error = JsonNullable.undefined(); + + private String id; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder v3PaymentInitiationStatusEnum(V3PaymentInitiationStatusEnum v3PaymentInitiationStatusEnum) { + Utils.checkNotNull(v3PaymentInitiationStatusEnum, "v3PaymentInitiationStatusEnum"); + this.v3PaymentInitiationStatusEnum = v3PaymentInitiationStatusEnum; + return this; + } + + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = Optional.ofNullable(amount); + return this; + } + + public Builder amount(long amount) { + this.amount = Optional.of(BigInteger.valueOf(amount)); + return this; + } + + public Builder amount(Optional amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = Optional.ofNullable(asset); + return this; + } + + public Builder asset(Optional asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public Builder error(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V3PaymentInitiationAdjustment build() { + + return new V3PaymentInitiationAdjustment( + v3Metadata, v3PaymentInitiationStatusEnum, amount, + asset, createdAt, error, + id); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.java index 73b582cec..be1b32f03 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.java index b8c18cab7..6e7ceea06 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustmentsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationAdjustmentsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.java index 9df5bf0f4..c774e12e4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java index a538eb2b7..4ceb3a7c8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationRelatedPaymentsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationStatusEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationStatusEnum.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationStatusEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationStatusEnum.java index b74a3a0e9..45dd37bcf 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationStatusEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationStatusEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationTypeEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationTypeEnum.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationTypeEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationTypeEnum.java index 780b2bf48..10139f443 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationTypeEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationTypeEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponse.java index 9f34b38ee..cb1fd5741 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponseCursor.java index b6e288716..358c5664e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentInitiationsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUser.java new file mode 100644 index 000000000..82faa4235 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUser.java @@ -0,0 +1,343 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3PaymentServiceUser { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("address") + private Optional v3Address; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("contactDetails") + private Optional v3ContactDetails; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("bankAccountIDs") + private JsonNullable> bankAccountIDs; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public V3PaymentServiceUser( + @JsonProperty("address") Optional v3Address, + @JsonProperty("contactDetails") Optional v3ContactDetails, + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("bankAccountIDs") JsonNullable> bankAccountIDs, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("id") String id, + @JsonProperty("name") String name) { + Utils.checkNotNull(v3Address, "v3Address"); + Utils.checkNotNull(v3ContactDetails, "v3ContactDetails"); + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(name, "name"); + this.v3Address = v3Address; + this.v3ContactDetails = v3ContactDetails; + this.v3Metadata = v3Metadata; + this.bankAccountIDs = bankAccountIDs; + this.createdAt = createdAt; + this.id = id; + this.name = name; + } + + public V3PaymentServiceUser( + OffsetDateTime createdAt, + String id, + String name) { + this(Optional.empty(), Optional.empty(), JsonNullable.undefined(), + JsonNullable.undefined(), createdAt, id, + name); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v3Address() { + return (Optional) v3Address; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v3ContactDetails() { + return (Optional) v3ContactDetails; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> bankAccountIDs() { + return (JsonNullable>) bankAccountIDs; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3PaymentServiceUser withV3Address(V3Address v3Address) { + Utils.checkNotNull(v3Address, "v3Address"); + this.v3Address = Optional.ofNullable(v3Address); + return this; + } + + + public V3PaymentServiceUser withV3Address(Optional v3Address) { + Utils.checkNotNull(v3Address, "v3Address"); + this.v3Address = v3Address; + return this; + } + + public V3PaymentServiceUser withV3ContactDetails(V3ContactDetails v3ContactDetails) { + Utils.checkNotNull(v3ContactDetails, "v3ContactDetails"); + this.v3ContactDetails = Optional.ofNullable(v3ContactDetails); + return this; + } + + + public V3PaymentServiceUser withV3ContactDetails(Optional v3ContactDetails) { + Utils.checkNotNull(v3ContactDetails, "v3ContactDetails"); + this.v3ContactDetails = v3ContactDetails; + return this; + } + + public V3PaymentServiceUser withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3PaymentServiceUser withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3PaymentServiceUser withBankAccountIDs(List bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = JsonNullable.of(bankAccountIDs); + return this; + } + + public V3PaymentServiceUser withBankAccountIDs(JsonNullable> bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = bankAccountIDs; + return this; + } + + public V3PaymentServiceUser withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3PaymentServiceUser withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V3PaymentServiceUser withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3PaymentServiceUser other = (V3PaymentServiceUser) o; + return + Utils.enhancedDeepEquals(this.v3Address, other.v3Address) && + Utils.enhancedDeepEquals(this.v3ContactDetails, other.v3ContactDetails) && + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.bankAccountIDs, other.bankAccountIDs) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Address, v3ContactDetails, v3Metadata, + bankAccountIDs, createdAt, id, + name); + } + + @Override + public String toString() { + return Utils.toString(V3PaymentServiceUser.class, + "v3Address", v3Address, + "v3ContactDetails", v3ContactDetails, + "v3Metadata", v3Metadata, + "bankAccountIDs", bankAccountIDs, + "createdAt", createdAt, + "id", id, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional v3Address = Optional.empty(); + + private Optional v3ContactDetails = Optional.empty(); + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private JsonNullable> bankAccountIDs = JsonNullable.undefined(); + + private OffsetDateTime createdAt; + + private String id; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Address(V3Address v3Address) { + Utils.checkNotNull(v3Address, "v3Address"); + this.v3Address = Optional.ofNullable(v3Address); + return this; + } + + public Builder v3Address(Optional v3Address) { + Utils.checkNotNull(v3Address, "v3Address"); + this.v3Address = v3Address; + return this; + } + + + public Builder v3ContactDetails(V3ContactDetails v3ContactDetails) { + Utils.checkNotNull(v3ContactDetails, "v3ContactDetails"); + this.v3ContactDetails = Optional.ofNullable(v3ContactDetails); + return this; + } + + public Builder v3ContactDetails(Optional v3ContactDetails) { + Utils.checkNotNull(v3ContactDetails, "v3ContactDetails"); + this.v3ContactDetails = v3ContactDetails; + return this; + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder bankAccountIDs(List bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = JsonNullable.of(bankAccountIDs); + return this; + } + + public Builder bankAccountIDs(JsonNullable> bankAccountIDs) { + Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); + this.bankAccountIDs = bankAccountIDs; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public V3PaymentServiceUser build() { + + return new V3PaymentServiceUser( + v3Address, v3ContactDetails, v3Metadata, + bankAccountIDs, createdAt, id, + name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnection.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnection.java new file mode 100644 index 000000000..c2915510c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnection.java @@ -0,0 +1,312 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3PaymentServiceUserConnection { + + @JsonProperty("status") + private V3ConnectionStatusEnum v3ConnectionStatusEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + + @JsonProperty("connectionID") + private String connectionID; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonProperty("dataUpdatedAt") + private OffsetDateTime dataUpdatedAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private JsonNullable error; + + @JsonCreator + public V3PaymentServiceUserConnection( + @JsonProperty("status") V3ConnectionStatusEnum v3ConnectionStatusEnum, + @JsonProperty("metadata") JsonNullable> v3Metadata, + @JsonProperty("connectionID") String connectionID, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("dataUpdatedAt") OffsetDateTime dataUpdatedAt, + @JsonProperty("error") JsonNullable error) { + Utils.checkNotNull(v3ConnectionStatusEnum, "v3ConnectionStatusEnum"); + Utils.checkNotNull(v3Metadata, "v3Metadata"); + Utils.checkNotNull(connectionID, "connectionID"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(dataUpdatedAt, "dataUpdatedAt"); + Utils.checkNotNull(error, "error"); + this.v3ConnectionStatusEnum = v3ConnectionStatusEnum; + this.v3Metadata = v3Metadata; + this.connectionID = connectionID; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.dataUpdatedAt = dataUpdatedAt; + this.error = error; + } + + public V3PaymentServiceUserConnection( + V3ConnectionStatusEnum v3ConnectionStatusEnum, + String connectionID, + String connectorID, + OffsetDateTime createdAt, + OffsetDateTime dataUpdatedAt) { + this(v3ConnectionStatusEnum, JsonNullable.undefined(), connectionID, + connectorID, createdAt, dataUpdatedAt, + JsonNullable.undefined()); + } + + @JsonIgnore + public V3ConnectionStatusEnum v3ConnectionStatusEnum() { + return v3ConnectionStatusEnum; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; + } + + @JsonIgnore + public String connectionID() { + return connectionID; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public OffsetDateTime dataUpdatedAt() { + return dataUpdatedAt; + } + + @JsonIgnore + public JsonNullable error() { + return error; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3PaymentServiceUserConnection withV3ConnectionStatusEnum(V3ConnectionStatusEnum v3ConnectionStatusEnum) { + Utils.checkNotNull(v3ConnectionStatusEnum, "v3ConnectionStatusEnum"); + this.v3ConnectionStatusEnum = v3ConnectionStatusEnum; + return this; + } + + public V3PaymentServiceUserConnection withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3PaymentServiceUserConnection withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3PaymentServiceUserConnection withConnectionID(String connectionID) { + Utils.checkNotNull(connectionID, "connectionID"); + this.connectionID = connectionID; + return this; + } + + public V3PaymentServiceUserConnection withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public V3PaymentServiceUserConnection withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3PaymentServiceUserConnection withDataUpdatedAt(OffsetDateTime dataUpdatedAt) { + Utils.checkNotNull(dataUpdatedAt, "dataUpdatedAt"); + this.dataUpdatedAt = dataUpdatedAt; + return this; + } + + public V3PaymentServiceUserConnection withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public V3PaymentServiceUserConnection withError(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3PaymentServiceUserConnection other = (V3PaymentServiceUserConnection) o; + return + Utils.enhancedDeepEquals(this.v3ConnectionStatusEnum, other.v3ConnectionStatusEnum) && + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && + Utils.enhancedDeepEquals(this.connectionID, other.connectionID) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.dataUpdatedAt, other.dataUpdatedAt) && + Utils.enhancedDeepEquals(this.error, other.error); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3ConnectionStatusEnum, v3Metadata, connectionID, + connectorID, createdAt, dataUpdatedAt, + error); + } + + @Override + public String toString() { + return Utils.toString(V3PaymentServiceUserConnection.class, + "v3ConnectionStatusEnum", v3ConnectionStatusEnum, + "v3Metadata", v3Metadata, + "connectionID", connectionID, + "connectorID", connectorID, + "createdAt", createdAt, + "dataUpdatedAt", dataUpdatedAt, + "error", error); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3ConnectionStatusEnum v3ConnectionStatusEnum; + + private JsonNullable> v3Metadata = JsonNullable.undefined(); + + private String connectionID; + + private String connectorID; + + private OffsetDateTime createdAt; + + private OffsetDateTime dataUpdatedAt; + + private JsonNullable error = JsonNullable.undefined(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v3ConnectionStatusEnum(V3ConnectionStatusEnum v3ConnectionStatusEnum) { + Utils.checkNotNull(v3ConnectionStatusEnum, "v3ConnectionStatusEnum"); + this.v3ConnectionStatusEnum = v3ConnectionStatusEnum; + return this; + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + + public Builder connectionID(String connectionID) { + Utils.checkNotNull(connectionID, "connectionID"); + this.connectionID = connectionID; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder dataUpdatedAt(OffsetDateTime dataUpdatedAt) { + Utils.checkNotNull(dataUpdatedAt, "dataUpdatedAt"); + this.dataUpdatedAt = dataUpdatedAt; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public Builder error(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public V3PaymentServiceUserConnection build() { + + return new V3PaymentServiceUserConnection( + v3ConnectionStatusEnum, v3Metadata, connectionID, + connectorID, createdAt, dataUpdatedAt, + error); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponse.java index 8f4a09be0..bd76a89dd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.java index 6dfc60886..d7ca6c852 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnectionsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserConnectionsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkRequest.java index 48fe396db..59d8e85cd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkResponse.java index d9c46273d..5637135d8 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserCreateLinkResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserCreateLinkResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponse.java index f69324ee9..94969cef3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.java index 230664de8..8214735b1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectionResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectionResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponse.java index a62a633e5..2049f2d2d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.java index c23f542b0..ce164b361 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteConnectorResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteConnectorResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponse.java index ac09b1dd9..c1243f6a9 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponseData.java index 578cec444..d3c3f24c9 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserDeleteResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserDeleteResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttempt.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttempt.java new file mode 100644 index 000000000..ea6a60677 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttempt.java @@ -0,0 +1,297 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class V3PaymentServiceUserLinkAttempt { + + @JsonProperty("status") + private V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum; + + + @JsonProperty("clientRedirectURL") + private String clientRedirectURL; + + + @JsonProperty("connectorID") + private String connectorID; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("error") + private JsonNullable error; + + + @JsonProperty("id") + private String id; + + + @JsonProperty("psuID") + private String psuID; + + @JsonCreator + public V3PaymentServiceUserLinkAttempt( + @JsonProperty("status") V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum, + @JsonProperty("clientRedirectURL") String clientRedirectURL, + @JsonProperty("connectorID") String connectorID, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("error") JsonNullable error, + @JsonProperty("id") String id, + @JsonProperty("psuID") String psuID) { + Utils.checkNotNull(v3OpenBankingConnectionAttemptStatusEnum, "v3OpenBankingConnectionAttemptStatusEnum"); + Utils.checkNotNull(clientRedirectURL, "clientRedirectURL"); + Utils.checkNotNull(connectorID, "connectorID"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(error, "error"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(psuID, "psuID"); + this.v3OpenBankingConnectionAttemptStatusEnum = v3OpenBankingConnectionAttemptStatusEnum; + this.clientRedirectURL = clientRedirectURL; + this.connectorID = connectorID; + this.createdAt = createdAt; + this.error = error; + this.id = id; + this.psuID = psuID; + } + + public V3PaymentServiceUserLinkAttempt( + V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum, + String clientRedirectURL, + String connectorID, + OffsetDateTime createdAt, + String id, + String psuID) { + this(v3OpenBankingConnectionAttemptStatusEnum, clientRedirectURL, connectorID, + createdAt, JsonNullable.undefined(), id, + psuID); + } + + @JsonIgnore + public V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum() { + return v3OpenBankingConnectionAttemptStatusEnum; + } + + @JsonIgnore + public String clientRedirectURL() { + return clientRedirectURL; + } + + @JsonIgnore + public String connectorID() { + return connectorID; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + @JsonIgnore + public JsonNullable error() { + return error; + } + + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String psuID() { + return psuID; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3PaymentServiceUserLinkAttempt withV3OpenBankingConnectionAttemptStatusEnum(V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum) { + Utils.checkNotNull(v3OpenBankingConnectionAttemptStatusEnum, "v3OpenBankingConnectionAttemptStatusEnum"); + this.v3OpenBankingConnectionAttemptStatusEnum = v3OpenBankingConnectionAttemptStatusEnum; + return this; + } + + public V3PaymentServiceUserLinkAttempt withClientRedirectURL(String clientRedirectURL) { + Utils.checkNotNull(clientRedirectURL, "clientRedirectURL"); + this.clientRedirectURL = clientRedirectURL; + return this; + } + + public V3PaymentServiceUserLinkAttempt withConnectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + public V3PaymentServiceUserLinkAttempt withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + public V3PaymentServiceUserLinkAttempt withError(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public V3PaymentServiceUserLinkAttempt withError(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + public V3PaymentServiceUserLinkAttempt withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public V3PaymentServiceUserLinkAttempt withPsuID(String psuID) { + Utils.checkNotNull(psuID, "psuID"); + this.psuID = psuID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3PaymentServiceUserLinkAttempt other = (V3PaymentServiceUserLinkAttempt) o; + return + Utils.enhancedDeepEquals(this.v3OpenBankingConnectionAttemptStatusEnum, other.v3OpenBankingConnectionAttemptStatusEnum) && + Utils.enhancedDeepEquals(this.clientRedirectURL, other.clientRedirectURL) && + Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.error, other.error) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.psuID, other.psuID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3OpenBankingConnectionAttemptStatusEnum, clientRedirectURL, connectorID, + createdAt, error, id, + psuID); + } + + @Override + public String toString() { + return Utils.toString(V3PaymentServiceUserLinkAttempt.class, + "v3OpenBankingConnectionAttemptStatusEnum", v3OpenBankingConnectionAttemptStatusEnum, + "clientRedirectURL", clientRedirectURL, + "connectorID", connectorID, + "createdAt", createdAt, + "error", error, + "id", id, + "psuID", psuID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum; + + private String clientRedirectURL; + + private String connectorID; + + private OffsetDateTime createdAt; + + private JsonNullable error = JsonNullable.undefined(); + + private String id; + + private String psuID; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3OpenBankingConnectionAttemptStatusEnum(V3OpenBankingConnectionAttemptStatusEnum v3OpenBankingConnectionAttemptStatusEnum) { + Utils.checkNotNull(v3OpenBankingConnectionAttemptStatusEnum, "v3OpenBankingConnectionAttemptStatusEnum"); + this.v3OpenBankingConnectionAttemptStatusEnum = v3OpenBankingConnectionAttemptStatusEnum; + return this; + } + + + public Builder clientRedirectURL(String clientRedirectURL) { + Utils.checkNotNull(clientRedirectURL, "clientRedirectURL"); + this.clientRedirectURL = clientRedirectURL; + return this; + } + + + public Builder connectorID(String connectorID) { + Utils.checkNotNull(connectorID, "connectorID"); + this.connectorID = connectorID; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + public Builder error(String error) { + Utils.checkNotNull(error, "error"); + this.error = JsonNullable.of(error); + return this; + } + + public Builder error(JsonNullable error) { + Utils.checkNotNull(error, "error"); + this.error = error; + return this; + } + + + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder psuID(String psuID) { + Utils.checkNotNull(psuID, "psuID"); + this.psuID = psuID; + return this; + } + + public V3PaymentServiceUserLinkAttempt build() { + + return new V3PaymentServiceUserLinkAttempt( + v3OpenBankingConnectionAttemptStatusEnum, clientRedirectURL, connectorID, + createdAt, error, id, + psuID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.java index e2502a66c..785e9fad1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java index b3732d4dd..37b7357ae 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserLinkAttemptsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkRequest.java index 3e0c61679..501990592 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkResponse.java index aaa320fa1..1134760b4 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserUpdateLinkResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUserUpdateLinkResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponse.java index ba503c603..f8fa58362 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponseCursor.java index d010bcf44..2aa339942 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUsersCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentServiceUsersCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentStatusEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentStatusEnum.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentStatusEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentStatusEnum.java index 69ad2e51f..791c71a18 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentStatusEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentStatusEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentTypeEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentTypeEnum.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentTypeEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentTypeEnum.java index afb0df303..3e3b0915a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentTypeEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentTypeEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponse.java index 284a7612f..12e7a1137 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponseCursor.java index 86eaeb8b4..083715414 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PaymentsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PlaidConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PlaidConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PlaidConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PlaidConfig.java index 442c25cf5..6e4791efa 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PlaidConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PlaidConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,7 +19,7 @@ import java.util.Optional; -public class V3PlaidConfig implements V3InstallConnectorRequest { +public class V3PlaidConfig { @JsonProperty("clientID") private String clientID; @@ -126,9 +126,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Pool.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Pool.java similarity index 77% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Pool.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Pool.java index d8e5b3edb..1bcc1a57d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Pool.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Pool.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,6 +21,11 @@ public class V3Pool { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("type") + private Optional v3PoolTypeEnum; + + @JsonProperty("createdAt") private OffsetDateTime createdAt; @@ -41,31 +46,26 @@ public class V3Pool { @JsonProperty("query") private Optional> query; - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - @JsonCreator public V3Pool( + @JsonProperty("type") Optional v3PoolTypeEnum, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("id") String id, @JsonProperty("name") String name, @JsonProperty("poolAccounts") List poolAccounts, - @JsonProperty("query") Optional> query, - @JsonProperty("type") Optional type) { + @JsonProperty("query") Optional> query) { + Utils.checkNotNull(v3PoolTypeEnum, "v3PoolTypeEnum"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(name, "name"); Utils.checkNotNull(poolAccounts, "poolAccounts"); Utils.checkNotNull(query, "query"); - Utils.checkNotNull(type, "type"); + this.v3PoolTypeEnum = v3PoolTypeEnum; this.createdAt = createdAt; this.id = id; this.name = name; this.poolAccounts = poolAccounts; this.query = query; - this.type = type; } public V3Pool( @@ -73,8 +73,14 @@ public V3Pool( String id, String name, List poolAccounts) { - this(createdAt, id, name, - poolAccounts, Optional.empty(), Optional.empty()); + this(Optional.empty(), createdAt, id, + name, poolAccounts, Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional v3PoolTypeEnum() { + return (Optional) v3PoolTypeEnum; } @JsonIgnore @@ -103,17 +109,24 @@ public Optional> query() { return (Optional>) query; } - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional type() { - return (Optional) type; - } - public static Builder builder() { return new Builder(); } + public V3Pool withV3PoolTypeEnum(V3PoolTypeEnum v3PoolTypeEnum) { + Utils.checkNotNull(v3PoolTypeEnum, "v3PoolTypeEnum"); + this.v3PoolTypeEnum = Optional.ofNullable(v3PoolTypeEnum); + return this; + } + + + public V3Pool withV3PoolTypeEnum(Optional v3PoolTypeEnum) { + Utils.checkNotNull(v3PoolTypeEnum, "v3PoolTypeEnum"); + this.v3PoolTypeEnum = v3PoolTypeEnum; + return this; + } + public V3Pool withCreatedAt(OffsetDateTime createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; @@ -151,19 +164,6 @@ public V3Pool withQuery(Optional> query) { return this; } - public V3Pool withType(V3PoolTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - - public V3Pool withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -174,35 +174,37 @@ public boolean equals(java.lang.Object o) { } V3Pool other = (V3Pool) o; return + Utils.enhancedDeepEquals(this.v3PoolTypeEnum, other.v3PoolTypeEnum) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.name, other.name) && Utils.enhancedDeepEquals(this.poolAccounts, other.poolAccounts) && - Utils.enhancedDeepEquals(this.query, other.query) && - Utils.enhancedDeepEquals(this.type, other.type); + Utils.enhancedDeepEquals(this.query, other.query); } @Override public int hashCode() { return Utils.enhancedHash( - createdAt, id, name, - poolAccounts, query, type); + v3PoolTypeEnum, createdAt, id, + name, poolAccounts, query); } @Override public String toString() { return Utils.toString(V3Pool.class, + "v3PoolTypeEnum", v3PoolTypeEnum, "createdAt", createdAt, "id", id, "name", name, "poolAccounts", poolAccounts, - "query", query, - "type", type); + "query", query); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional v3PoolTypeEnum = Optional.empty(); + private OffsetDateTime createdAt; private String id; @@ -213,13 +215,24 @@ public final static class Builder { private Optional> query = Optional.empty(); - private Optional type = Optional.empty(); - private Builder() { // force use of static builder() method } + public Builder v3PoolTypeEnum(V3PoolTypeEnum v3PoolTypeEnum) { + Utils.checkNotNull(v3PoolTypeEnum, "v3PoolTypeEnum"); + this.v3PoolTypeEnum = Optional.ofNullable(v3PoolTypeEnum); + return this; + } + + public Builder v3PoolTypeEnum(Optional v3PoolTypeEnum) { + Utils.checkNotNull(v3PoolTypeEnum, "v3PoolTypeEnum"); + this.v3PoolTypeEnum = v3PoolTypeEnum; + return this; + } + + public Builder createdAt(OffsetDateTime createdAt) { Utils.checkNotNull(createdAt, "createdAt"); this.createdAt = createdAt; @@ -260,24 +273,11 @@ public Builder query(Optional> query) { return this; } - - public Builder type(V3PoolTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - public V3Pool build() { return new V3Pool( - createdAt, id, name, - poolAccounts, query, type); + v3PoolTypeEnum, createdAt, id, + name, poolAccounts, query); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalance.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalance.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalance.java index 8bb394cd6..f81ad2b45 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalance.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalancesResponse.java new file mode 100644 index 000000000..383a6bf60 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolBalancesResponse.java @@ -0,0 +1,91 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class V3PoolBalancesResponse { + + @JsonProperty("data") + private List v3PoolBalances; + + @JsonCreator + public V3PoolBalancesResponse( + @JsonProperty("data") List v3PoolBalances) { + Utils.checkNotNull(v3PoolBalances, "v3PoolBalances"); + this.v3PoolBalances = v3PoolBalances; + } + + @JsonIgnore + public List v3PoolBalances() { + return v3PoolBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3PoolBalancesResponse withV3PoolBalances(List v3PoolBalances) { + Utils.checkNotNull(v3PoolBalances, "v3PoolBalances"); + this.v3PoolBalances = v3PoolBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3PoolBalancesResponse other = (V3PoolBalancesResponse) o; + return + Utils.enhancedDeepEquals(this.v3PoolBalances, other.v3PoolBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3PoolBalances); + } + + @Override + public String toString() { + return Utils.toString(V3PoolBalancesResponse.class, + "v3PoolBalances", v3PoolBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List v3PoolBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder v3PoolBalances(List v3PoolBalances) { + Utils.checkNotNull(v3PoolBalances, "v3PoolBalances"); + this.v3PoolBalances = v3PoolBalances; + return this; + } + + public V3PoolBalancesResponse build() { + + return new V3PoolBalancesResponse( + v3PoolBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolTypeEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolTypeEnum.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PoolTypeEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PoolTypeEnum.java index 770c2c9d0..363cd32f0 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolTypeEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolTypeEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponse.java index 31b377fad..36d0a7ff1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponseCursor.java index f0d9bc64b..d700e6e79 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PoolsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PowensConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3PowensConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3PowensConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3PowensConfig.java index a6fd5ba7b..7d5dc501c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PowensConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3PowensConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3PowensConfig implements V3InstallConnectorRequest { +public class V3PowensConfig { @JsonProperty("clientID") private String clientID; @@ -165,9 +165,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3QontoConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3QontoConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3QontoConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3QontoConfig.java index 3d769066b..a7332d565 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3QontoConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3QontoConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3QontoConfig implements V3InstallConnectorRequest { +public class V3QontoConfig { @JsonProperty("apiKey") private String apiKey; @@ -133,9 +133,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ResetConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ResetConnectorResponse.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ResetConnectorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ResetConnectorResponse.java index 9c6aefee7..e61dd0249 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ResetConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ResetConnectorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponse.java index 0c66c871e..479f61376 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponseData.java index d16da338c..b037c30d2 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3RetryPaymentInitiationResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3RetryPaymentInitiationResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationRequest.java similarity index 77% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationRequest.java index bbf4c4d0c..438fd9043 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,6 +19,11 @@ public class V3ReversePaymentInitiationRequest { + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> v3Metadata; + + @JsonProperty("amount") private BigInteger amount; @@ -31,30 +36,25 @@ public class V3ReversePaymentInitiationRequest { private String description; - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - @JsonProperty("reference") private String reference; @JsonCreator public V3ReversePaymentInitiationRequest( + @JsonProperty("metadata") JsonNullable> v3Metadata, @JsonProperty("amount") BigInteger amount, @JsonProperty("asset") String asset, @JsonProperty("description") String description, - @JsonProperty("metadata") JsonNullable> metadata, @JsonProperty("reference") String reference) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); Utils.checkNotNull(amount, "amount"); Utils.checkNotNull(asset, "asset"); Utils.checkNotNull(description, "description"); - Utils.checkNotNull(metadata, "metadata"); Utils.checkNotNull(reference, "reference"); + this.v3Metadata = v3Metadata; this.amount = amount; this.asset = asset; this.description = description; - this.metadata = metadata; this.reference = reference; } @@ -63,8 +63,14 @@ public V3ReversePaymentInitiationRequest( String asset, String description, String reference) { - this(amount, asset, description, - JsonNullable.undefined(), reference); + this(JsonNullable.undefined(), amount, asset, + description, reference); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> v3Metadata() { + return (JsonNullable>) v3Metadata; } @JsonIgnore @@ -82,12 +88,6 @@ public String description() { return description; } - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - @JsonIgnore public String reference() { return reference; @@ -98,6 +98,18 @@ public static Builder builder() { } + public V3ReversePaymentInitiationRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public V3ReversePaymentInitiationRequest withV3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + public V3ReversePaymentInitiationRequest withAmount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -121,18 +133,6 @@ public V3ReversePaymentInitiationRequest withDescription(String description) { return this; } - public V3ReversePaymentInitiationRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3ReversePaymentInitiationRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - public V3ReversePaymentInitiationRequest withReference(String reference) { Utils.checkNotNull(reference, "reference"); this.reference = reference; @@ -149,41 +149,41 @@ public boolean equals(java.lang.Object o) { } V3ReversePaymentInitiationRequest other = (V3ReversePaymentInitiationRequest) o; return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata) && Utils.enhancedDeepEquals(this.amount, other.amount) && Utils.enhancedDeepEquals(this.asset, other.asset) && Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && Utils.enhancedDeepEquals(this.reference, other.reference); } @Override public int hashCode() { return Utils.enhancedHash( - amount, asset, description, - metadata, reference); + v3Metadata, amount, asset, + description, reference); } @Override public String toString() { return Utils.toString(V3ReversePaymentInitiationRequest.class, + "v3Metadata", v3Metadata, "amount", amount, "asset", asset, "description", description, - "metadata", metadata, "reference", reference); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private JsonNullable> v3Metadata = JsonNullable.undefined(); + private BigInteger amount; private String asset; private String description; - private JsonNullable> metadata = JsonNullable.undefined(); - private String reference; private Builder() { @@ -191,6 +191,19 @@ private Builder() { } + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = JsonNullable.of(v3Metadata); + return this; + } + + public Builder v3Metadata(JsonNullable> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public Builder amount(long amount) { this.amount = BigInteger.valueOf(amount); return this; @@ -217,19 +230,6 @@ public Builder description(String description) { } - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Builder reference(String reference) { Utils.checkNotNull(reference, "reference"); this.reference = reference; @@ -239,8 +239,8 @@ public Builder reference(String reference) { public V3ReversePaymentInitiationRequest build() { return new V3ReversePaymentInitiationRequest( - amount, asset, description, - metadata, reference); + v3Metadata, amount, asset, + description, reference); } } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponse.java index 36db28f9f..62d817632 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponseData.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponseData.java index c6e122df5..f96f4e73b 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ReversePaymentInitiationResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3ReversePaymentInitiationResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Schedule.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Schedule.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Schedule.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Schedule.java index 6ac6aaa03..6173cdad1 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Schedule.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Schedule.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3StripeConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3StripeConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3StripeConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3StripeConfig.java index 6d81d90d8..44a88025a 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3StripeConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3StripeConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3StripeConfig implements V3InstallConnectorRequest { +public class V3StripeConfig { @JsonProperty("apiKey") private String apiKey; @@ -98,9 +98,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Task.java b/src/main/java/com/formance/formance_sdk/models/payments/V3Task.java similarity index 86% rename from src/main/java/com/formance/formance_sdk/models/shared/V3Task.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3Task.java index 0518a88d8..f0315c27e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Task.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3Task.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,6 +18,10 @@ public class V3Task { + @JsonProperty("status") + private V3TaskStatusEnum v3TaskStatusEnum; + + @JsonInclude(Include.NON_ABSENT) @JsonProperty("connectorID") private Optional connectorID; @@ -41,48 +45,49 @@ public class V3Task { private String id; - @JsonProperty("status") - private V3TaskStatusEnum status; - - @JsonProperty("updatedAt") private OffsetDateTime updatedAt; @JsonCreator public V3Task( + @JsonProperty("status") V3TaskStatusEnum v3TaskStatusEnum, @JsonProperty("connectorID") Optional connectorID, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("createdObjectID") Optional createdObjectID, @JsonProperty("error") JsonNullable error, @JsonProperty("id") String id, - @JsonProperty("status") V3TaskStatusEnum status, @JsonProperty("updatedAt") OffsetDateTime updatedAt) { + Utils.checkNotNull(v3TaskStatusEnum, "v3TaskStatusEnum"); Utils.checkNotNull(connectorID, "connectorID"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(createdObjectID, "createdObjectID"); Utils.checkNotNull(error, "error"); Utils.checkNotNull(id, "id"); - Utils.checkNotNull(status, "status"); Utils.checkNotNull(updatedAt, "updatedAt"); + this.v3TaskStatusEnum = v3TaskStatusEnum; this.connectorID = connectorID; this.createdAt = createdAt; this.createdObjectID = createdObjectID; this.error = error; this.id = id; - this.status = status; this.updatedAt = updatedAt; } public V3Task( + V3TaskStatusEnum v3TaskStatusEnum, OffsetDateTime createdAt, String id, - V3TaskStatusEnum status, OffsetDateTime updatedAt) { - this(Optional.empty(), createdAt, Optional.empty(), - JsonNullable.undefined(), id, status, + this(v3TaskStatusEnum, Optional.empty(), createdAt, + Optional.empty(), JsonNullable.undefined(), id, updatedAt); } + @JsonIgnore + public V3TaskStatusEnum v3TaskStatusEnum() { + return v3TaskStatusEnum; + } + @JsonIgnore public Optional connectorID() { return connectorID; @@ -108,11 +113,6 @@ public String id() { return id; } - @JsonIgnore - public V3TaskStatusEnum status() { - return status; - } - @JsonIgnore public OffsetDateTime updatedAt() { return updatedAt; @@ -123,6 +123,12 @@ public static Builder builder() { } + public V3Task withV3TaskStatusEnum(V3TaskStatusEnum v3TaskStatusEnum) { + Utils.checkNotNull(v3TaskStatusEnum, "v3TaskStatusEnum"); + this.v3TaskStatusEnum = v3TaskStatusEnum; + return this; + } + public V3Task withConnectorID(String connectorID) { Utils.checkNotNull(connectorID, "connectorID"); this.connectorID = Optional.ofNullable(connectorID); @@ -173,12 +179,6 @@ public V3Task withId(String id) { return this; } - public V3Task withStatus(V3TaskStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - public V3Task withUpdatedAt(OffsetDateTime updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; @@ -195,38 +195,40 @@ public boolean equals(java.lang.Object o) { } V3Task other = (V3Task) o; return + Utils.enhancedDeepEquals(this.v3TaskStatusEnum, other.v3TaskStatusEnum) && Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.createdObjectID, other.createdObjectID) && Utils.enhancedDeepEquals(this.error, other.error) && Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.status, other.status) && Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); } @Override public int hashCode() { return Utils.enhancedHash( - connectorID, createdAt, createdObjectID, - error, id, status, + v3TaskStatusEnum, connectorID, createdAt, + createdObjectID, error, id, updatedAt); } @Override public String toString() { return Utils.toString(V3Task.class, + "v3TaskStatusEnum", v3TaskStatusEnum, "connectorID", connectorID, "createdAt", createdAt, "createdObjectID", createdObjectID, "error", error, "id", id, - "status", status, "updatedAt", updatedAt); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private V3TaskStatusEnum v3TaskStatusEnum; + private Optional connectorID = Optional.empty(); private OffsetDateTime createdAt; @@ -237,8 +239,6 @@ public final static class Builder { private String id; - private V3TaskStatusEnum status; - private OffsetDateTime updatedAt; private Builder() { @@ -246,6 +246,13 @@ private Builder() { } + public Builder v3TaskStatusEnum(V3TaskStatusEnum v3TaskStatusEnum) { + Utils.checkNotNull(v3TaskStatusEnum, "v3TaskStatusEnum"); + this.v3TaskStatusEnum = v3TaskStatusEnum; + return this; + } + + public Builder connectorID(String connectorID) { Utils.checkNotNull(connectorID, "connectorID"); this.connectorID = Optional.ofNullable(connectorID); @@ -299,13 +306,6 @@ public Builder id(String id) { } - public Builder status(V3TaskStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Builder updatedAt(OffsetDateTime updatedAt) { Utils.checkNotNull(updatedAt, "updatedAt"); this.updatedAt = updatedAt; @@ -315,8 +315,8 @@ public Builder updatedAt(OffsetDateTime updatedAt) { public V3Task build() { return new V3Task( - connectorID, createdAt, createdObjectID, - error, id, status, + v3TaskStatusEnum, connectorID, createdAt, + createdObjectID, error, id, updatedAt); } diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3TaskStatusEnum.java b/src/main/java/com/formance/formance_sdk/models/payments/V3TaskStatusEnum.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/V3TaskStatusEnum.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3TaskStatusEnum.java index 62534688c..b2a45f4d6 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3TaskStatusEnum.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3TaskStatusEnum.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonValue; import java.lang.String; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3TinkConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3TinkConfig.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3TinkConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3TinkConfig.java index ed2e090b7..75390ee53 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3TinkConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3TinkConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3TinkConfig implements V3InstallConnectorRequest { +public class V3TinkConfig { @JsonProperty("clientID") private String clientID; @@ -125,9 +125,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponse.java b/src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponse.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponse.java index 15ace8f59..f343c9634 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponseData.java b/src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponseData.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponseData.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponseData.java index 0b6c666ee..cfcd0a43c 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3UninstallConnectorResponseData.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3UninstallConnectorResponseData.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3UpdateBankAccountMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3UpdateBankAccountMetadataRequest.java new file mode 100644 index 000000000..e1861610c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3UpdateBankAccountMetadataRequest.java @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V3UpdateBankAccountMetadataRequest { + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional> v3Metadata; + + @JsonCreator + public V3UpdateBankAccountMetadataRequest( + @JsonProperty("metadata") Optional> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + } + + public V3UpdateBankAccountMetadataRequest() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v3Metadata() { + return (Optional>) v3Metadata; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3UpdateBankAccountMetadataRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = Optional.ofNullable(v3Metadata); + return this; + } + + + public V3UpdateBankAccountMetadataRequest withV3Metadata(Optional> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3UpdateBankAccountMetadataRequest other = (V3UpdateBankAccountMetadataRequest) o; + return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Metadata); + } + + @Override + public String toString() { + return Utils.toString(V3UpdateBankAccountMetadataRequest.class, + "v3Metadata", v3Metadata); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> v3Metadata = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = Optional.ofNullable(v3Metadata); + return this; + } + + public Builder v3Metadata(Optional> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3UpdateBankAccountMetadataRequest build() { + + return new V3UpdateBankAccountMetadataRequest( + v3Metadata); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePaymentMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePaymentMetadataRequest.java new file mode 100644 index 000000000..ee3f0570f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePaymentMetadataRequest.java @@ -0,0 +1,114 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.payments; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class V3UpdatePaymentMetadataRequest { + + @JsonInclude(Include.ALWAYS) + @JsonProperty("metadata") + private Optional> v3Metadata; + + @JsonCreator + public V3UpdatePaymentMetadataRequest( + @JsonProperty("metadata") Optional> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + } + + public V3UpdatePaymentMetadataRequest() { + this(Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> v3Metadata() { + return (Optional>) v3Metadata; + } + + public static Builder builder() { + return new Builder(); + } + + + public V3UpdatePaymentMetadataRequest withV3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = Optional.ofNullable(v3Metadata); + return this; + } + + + public V3UpdatePaymentMetadataRequest withV3Metadata(Optional> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + V3UpdatePaymentMetadataRequest other = (V3UpdatePaymentMetadataRequest) o; + return + Utils.enhancedDeepEquals(this.v3Metadata, other.v3Metadata); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + v3Metadata); + } + + @Override + public String toString() { + return Utils.toString(V3UpdatePaymentMetadataRequest.class, + "v3Metadata", v3Metadata); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional> v3Metadata = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder v3Metadata(Map v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = Optional.ofNullable(v3Metadata); + return this; + } + + public Builder v3Metadata(Optional> v3Metadata) { + Utils.checkNotNull(v3Metadata, "v3Metadata"); + this.v3Metadata = v3Metadata; + return this; + } + + public V3UpdatePaymentMetadataRequest build() { + + return new V3UpdatePaymentMetadataRequest( + v3Metadata); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePoolQueryRequest.java b/src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePoolQueryRequest.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePoolQueryRequest.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePoolQueryRequest.java index c86f082ef..705c9a21f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePoolQueryRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3UpdatePoolQueryRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3WiseConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/V3WiseConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/V3WiseConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/V3WiseConfig.java index 461be5db5..4021e8cb3 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3WiseConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/V3WiseConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -18,7 +18,7 @@ import java.util.Optional; -public class V3WiseConfig implements V3InstallConnectorRequest { +public class V3WiseConfig { @JsonProperty("apiKey") private String apiKey; @@ -106,9 +106,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } @JsonIgnore diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WiseConfig.java b/src/main/java/com/formance/formance_sdk/models/payments/WiseConfig.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/WiseConfig.java rename to src/main/java/com/formance/formance_sdk/models/payments/WiseConfig.java index 8bb839d77..a26f69811 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/WiseConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/payments/WiseConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.payments; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -16,7 +16,7 @@ import java.util.Optional; -public class WiseConfig implements ConnectorConfig { +public class WiseConfig { @JsonProperty("apiKey") private String apiKey; @@ -79,9 +79,8 @@ public Optional pollingPeriod() { } @JsonIgnore - @Override - public String provider() { - return Utils.discriminatorToString(provider); + public Optional provider() { + return provider; } public static Builder builder() { diff --git a/src/main/java/com/formance/formance_sdk/models/reconciliation/ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/ErrorResponse.java new file mode 100644 index 000000000..39282c679 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/ErrorResponse.java @@ -0,0 +1,245 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.reconciliation; + +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.formance.formance_sdk.models.errors.SDKBaseError; +import com.formance.formance_sdk.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Deprecated; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.lang.Throwable; +import java.net.http.HttpResponse; +import java.util.Optional; + +@SuppressWarnings("serial") +public class ErrorResponse extends SDKBaseError { + + @Nullable + private final Data data; + + @Nullable + private final Throwable deserializationException; + + public ErrorResponse( + int code, + byte[] body, + HttpResponse rawResponse, + @Nullable Data data, + @Nullable Throwable deserializationException) { + super("API error occurred", code, body, rawResponse, null); + this.data = data; + this.deserializationException = deserializationException; + } + + /** + * Parse a response into an instance of ErrorResponse. If deserialization of the response body fails, + * the resulting ErrorResponse instance will have a null data() value and a non-null deserializationException(). + */ + public static ErrorResponse from(HttpResponse response) { + try { + byte[] bytes = Utils.extractByteArrayFromBody(response); + Data data = Utils.mapper().readValue(bytes, Data.class); + return new ErrorResponse(response.statusCode(), bytes, response, data, null); + } catch (Exception e) { + return new ErrorResponse(response.statusCode(), null, response, null, e); + } + } + + @Deprecated + public Optional details() { + return data().flatMap(Data::details); + } + + @Deprecated + public Optional errorCode() { + return data().map(Data::errorCode); + } + + @Deprecated + public Optional errorMessage() { + return data().map(Data::errorMessage); + } + + public Optional data() { + return Optional.ofNullable(data); + } + + /** + * Returns the exception if an error occurs while deserializing the response body. + */ + public Optional deserializationException() { + return Optional.ofNullable(deserializationException); + } + /** + * Data + * + *

Error response + */ + public static class Data { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("details") + private Optional details; + + + @JsonProperty("errorCode") + private String errorCode; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public Data( + @JsonProperty("details") Optional details, + @JsonProperty("errorCode") String errorCode, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(details, "details"); + Utils.checkNotNull(errorCode, "errorCode"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.details = details; + this.errorCode = errorCode; + this.errorMessage = errorMessage; + } + + public Data( + String errorCode, + String errorMessage) { + this(Optional.empty(), errorCode, errorMessage); + } + + @JsonIgnore + public Optional details() { + return details; + } + + @JsonIgnore + public String errorCode() { + return errorCode; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public Data withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + + public Data withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + public Data withErrorCode(String errorCode) { + Utils.checkNotNull(errorCode, "errorCode"); + this.errorCode = errorCode; + return this; + } + + public Data withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return + Utils.enhancedDeepEquals(this.details, other.details) && + Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + details, errorCode, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "details", details, + "errorCode", errorCode, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional details = Optional.empty(); + + private String errorCode; + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + + public Builder errorCode(String errorCode) { + Utils.checkNotNull(errorCode, "errorCode"); + this.errorCode = errorCode; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public Data build() { + + return new Data( + details, errorCode, errorMessage); + } + + } + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponse.java index 05502d8cb..94cf95bcb 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponseCursor.java index f8a63096c..570191a01 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoliciesCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/PoliciesCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Policy.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/Policy.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/Policy.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/Policy.java index 01180c6f6..565944917 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Policy.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/Policy.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PolicyRequest.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyRequest.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/PolicyRequest.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyRequest.java index d8af1f133..63ac33331 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/PolicyRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyResponse.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyResponse.java new file mode 100644 index 000000000..d5da32e0d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/PolicyResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.reconciliation; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * PolicyResponse + * + *

OK + */ +public class PolicyResponse { + + @JsonProperty("data") + private Policy policy; + + @JsonCreator + public PolicyResponse( + @JsonProperty("data") Policy policy) { + Utils.checkNotNull(policy, "policy"); + this.policy = policy; + } + + @JsonIgnore + public Policy policy() { + return policy; + } + + public static Builder builder() { + return new Builder(); + } + + + public PolicyResponse withPolicy(Policy policy) { + Utils.checkNotNull(policy, "policy"); + this.policy = policy; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyResponse other = (PolicyResponse) o; + return + Utils.enhancedDeepEquals(this.policy, other.policy); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + policy); + } + + @Override + public String toString() { + return Utils.toString(PolicyResponse.class, + "policy", policy); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Policy policy; + + private Builder() { + // force use of static builder() method + } + + + public Builder policy(Policy policy) { + Utils.checkNotNull(policy, "policy"); + this.policy = policy; + return this; + } + + public PolicyResponse build() { + + return new PolicyResponse( + policy); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Reconciliation.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/Reconciliation.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/Reconciliation.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/Reconciliation.java index 7fe2c9beb..10edb8aff 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Reconciliation.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/Reconciliation.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationRequest.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationRequest.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/ReconciliationRequest.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationRequest.java index d7b1e8ea8..4a8fc1e30 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationResponse.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationResponse.java new file mode 100644 index 000000000..8f0acee5f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationResponse.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.reconciliation; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * ReconciliationResponse + * + *

OK + */ +public class ReconciliationResponse { + + @JsonProperty("data") + private Reconciliation reconciliation; + + @JsonCreator + public ReconciliationResponse( + @JsonProperty("data") Reconciliation reconciliation) { + Utils.checkNotNull(reconciliation, "reconciliation"); + this.reconciliation = reconciliation; + } + + @JsonIgnore + public Reconciliation reconciliation() { + return reconciliation; + } + + public static Builder builder() { + return new Builder(); + } + + + public ReconciliationResponse withReconciliation(Reconciliation reconciliation) { + Utils.checkNotNull(reconciliation, "reconciliation"); + this.reconciliation = reconciliation; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReconciliationResponse other = (ReconciliationResponse) o; + return + Utils.enhancedDeepEquals(this.reconciliation, other.reconciliation); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + reconciliation); + } + + @Override + public String toString() { + return Utils.toString(ReconciliationResponse.class, + "reconciliation", reconciliation); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Reconciliation reconciliation; + + private Builder() { + // force use of static builder() method + } + + + public Builder reconciliation(Reconciliation reconciliation) { + Utils.checkNotNull(reconciliation, "reconciliation"); + this.reconciliation = reconciliation; + return this; + } + + public ReconciliationResponse build() { + + return new ReconciliationResponse( + reconciliation); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponse.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponse.java index a79fa51e7..0f277e3c5 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponseCursor.java index d3fb1e128..9e6594878 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationsCursorResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/ReconciliationsCursorResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.reconciliation; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/reconciliation/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/reconciliation/ServerInfo.java new file mode 100644 index 000000000..e333068f6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/reconciliation/ServerInfo.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.reconciliation; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * ServerInfo + * + *

Server information + */ +public class ServerInfo { + + @JsonProperty("version") + private String version; + + @JsonCreator + public ServerInfo( + @JsonProperty("version") String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + } + + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public ServerInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerInfo other = (ServerInfo) o; + return + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + version); + } + + @Override + public String toString() { + return Utils.toString(ServerInfo.class, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String version; + + private Builder() { + // force use of static builder() method + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public ServerInfo build() { + + return new ServerInfo( + version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/search/Cursor.java b/src/main/java/com/formance/formance_sdk/models/search/Cursor.java new file mode 100644 index 000000000..38c2722dc --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/search/Cursor.java @@ -0,0 +1,337 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.search; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Object; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class Cursor { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("data") + private Optional>> data; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasMore") + private Optional hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pageSize") + private Optional pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("total") + private Optional total; + + @JsonCreator + public Cursor( + @JsonProperty("data") Optional>> data, + @JsonProperty("hasMore") Optional hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") Optional pageSize, + @JsonProperty("previous") Optional previous, + @JsonProperty("total") Optional total) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + Utils.checkNotNull(total, "total"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + this.total = total; + } + + public Cursor() { + this(Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty(), Optional.empty(), Optional.empty()); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> data() { + return (Optional>>) data; + } + + @JsonIgnore + public Optional hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public Optional pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional total() { + return (Optional) total; + } + + public static Builder builder() { + return new Builder(); + } + + + public Cursor withData(List> data) { + Utils.checkNotNull(data, "data"); + this.data = Optional.ofNullable(data); + return this; + } + + + public Cursor withData(Optional>> data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public Cursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + + public Cursor withHasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public Cursor withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public Cursor withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public Cursor withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + + public Cursor withPageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public Cursor withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public Cursor withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public Cursor withTotal(Total total) { + Utils.checkNotNull(total, "total"); + this.total = Optional.ofNullable(total); + return this; + } + + + public Cursor withTotal(Optional total) { + Utils.checkNotNull(total, "total"); + this.total = total; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Cursor other = (Cursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous) && + Utils.enhancedDeepEquals(this.total, other.total); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous, total); + } + + @Override + public String toString() { + return Utils.toString(Cursor.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous, + "total", total); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional>> data = Optional.empty(); + + private Optional hasMore = Optional.empty(); + + private Optional next = Optional.empty(); + + private Optional pageSize = Optional.empty(); + + private Optional previous = Optional.empty(); + + private Optional total = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List> data) { + Utils.checkNotNull(data, "data"); + this.data = Optional.ofNullable(data); + return this; + } + + public Builder data(Optional>> data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + public Builder hasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = Optional.ofNullable(pageSize); + return this; + } + + public Builder pageSize(Optional pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + + public Builder total(Total total) { + Utils.checkNotNull(total, "total"); + this.total = Optional.ofNullable(total); + return this; + } + + public Builder total(Optional total) { + Utils.checkNotNull(total, "total"); + this.total = total; + return this; + } + + public Cursor build() { + + return new Cursor( + data, hasMore, next, + pageSize, previous, total); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Query.java b/src/main/java/com/formance/formance_sdk/models/search/Query.java similarity index 96% rename from src/main/java/com/formance/formance_sdk/models/shared/Query.java rename to src/main/java/com/formance/formance_sdk/models/search/Query.java index 717e46178..984da8d4e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Query.java +++ b/src/main/java/com/formance/formance_sdk/models/search/Query.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.search; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -46,7 +46,7 @@ public class Query { @JsonInclude(Include.NON_ABSENT) @JsonProperty("raw") - private Optional raw; + private Optional raw; @JsonInclude(Include.NON_ABSENT) @@ -70,7 +70,7 @@ public Query( @JsonProperty("ledgers") Optional> ledgers, @JsonProperty("pageSize") Optional pageSize, @JsonProperty("policy") Optional policy, - @JsonProperty("raw") Optional raw, + @JsonProperty("raw") Optional raw, @JsonProperty("sort") Optional sort, @JsonProperty("target") Optional target, @JsonProperty("terms") Optional> terms) { @@ -129,8 +129,8 @@ public Optional policy() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional raw() { - return (Optional) raw; + public Optional raw() { + return (Optional) raw; } @JsonIgnore @@ -219,14 +219,14 @@ public Query withPolicy(Optional policy) { return this; } - public Query withRaw(QueryRaw raw) { + public Query withRaw(Raw raw) { Utils.checkNotNull(raw, "raw"); this.raw = Optional.ofNullable(raw); return this; } - public Query withRaw(Optional raw) { + public Query withRaw(Optional raw) { Utils.checkNotNull(raw, "raw"); this.raw = raw; return this; @@ -327,7 +327,7 @@ public final static class Builder { private Optional policy = Optional.empty(); - private Optional raw = Optional.empty(); + private Optional raw = Optional.empty(); private Optional sort = Optional.empty(); @@ -405,13 +405,13 @@ public Builder policy(Optional policy) { } - public Builder raw(QueryRaw raw) { + public Builder raw(Raw raw) { Utils.checkNotNull(raw, "raw"); this.raw = Optional.ofNullable(raw); return this; } - public Builder raw(Optional raw) { + public Builder raw(Optional raw) { Utils.checkNotNull(raw, "raw"); this.raw = raw; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/search/Raw.java b/src/main/java/com/formance/formance_sdk/models/search/Raw.java new file mode 100644 index 000000000..82f108b59 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/search/Raw.java @@ -0,0 +1,58 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.search; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class Raw { + @JsonCreator + public Raw() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(Raw.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public Raw build() { + + return new Raw( + ); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Response.java b/src/main/java/com/formance/formance_sdk/models/search/Response.java similarity index 86% rename from src/main/java/com/formance/formance_sdk/models/shared/Response.java rename to src/main/java/com/formance/formance_sdk/models/search/Response.java index ebbb7315f..cfbd4032f 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Response.java +++ b/src/main/java/com/formance/formance_sdk/models/search/Response.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.search; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,7 +21,7 @@ public class Response { @JsonInclude(Include.NON_ABSENT) @JsonProperty("cursor") - private Optional cursor; + private Optional cursor; /** * The payload @@ -32,7 +32,7 @@ public class Response { @JsonCreator public Response( - @JsonProperty("cursor") Optional cursor, + @JsonProperty("cursor") Optional cursor, @JsonProperty("data") Optional> data) { Utils.checkNotNull(cursor, "cursor"); Utils.checkNotNull(data, "data"); @@ -46,8 +46,8 @@ public Response() { @SuppressWarnings("unchecked") @JsonIgnore - public Optional cursor() { - return (Optional) cursor; + public Optional cursor() { + return (Optional) cursor; } /** @@ -64,14 +64,14 @@ public static Builder builder() { } - public Response withCursor(ResponseCursor cursor) { + public Response withCursor(Cursor cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = Optional.ofNullable(cursor); return this; } - public Response withCursor(Optional cursor) { + public Response withCursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = cursor; return this; @@ -126,7 +126,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private Optional cursor = Optional.empty(); + private Optional cursor = Optional.empty(); private Optional> data = Optional.empty(); @@ -135,13 +135,13 @@ private Builder() { } - public Builder cursor(ResponseCursor cursor) { + public Builder cursor(Cursor cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = Optional.ofNullable(cursor); return this; } - public Builder cursor(Optional cursor) { + public Builder cursor(Optional cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = cursor; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/search/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/search/ServerInfo.java new file mode 100644 index 000000000..cb49c3745 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/search/ServerInfo.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.search; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ServerInfo { + + @JsonProperty("version") + private String version; + + @JsonCreator + public ServerInfo( + @JsonProperty("version") String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + } + + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public ServerInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerInfo other = (ServerInfo) o; + return + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + version); + } + + @Override + public String toString() { + return Utils.toString(ServerInfo.class, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String version; + + private Builder() { + // force use of static builder() method + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public ServerInfo build() { + + return new ServerInfo( + version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Total.java b/src/main/java/com/formance/formance_sdk/models/search/Total.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/Total.java rename to src/main/java/com/formance/formance_sdk/models/search/Total.java index cfca1bffd..e53b6cb92 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Total.java +++ b/src/main/java/com/formance/formance_sdk/models/search/Total.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.search; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Account.java b/src/main/java/com/formance/formance_sdk/models/shared/Account.java deleted file mode 100644 index 14f3553d9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Account.java +++ /dev/null @@ -1,188 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class Account { - - @JsonProperty("address") - private String address; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("type") - private Optional type; - - @JsonCreator - public Account( - @JsonProperty("address") String address, - @JsonProperty("metadata") Optional> metadata, - @JsonProperty("type") Optional type) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(type, "type"); - this.address = address; - this.metadata = metadata; - this.type = type; - } - - public Account( - String address) { - this(address, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public String address() { - return address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @JsonIgnore - public Optional type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public Account withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public Account withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public Account withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Account withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - - public Account withType(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Account other = (Account) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, metadata, type); - } - - @Override - public String toString() { - return Utils.toString(Account.class, - "address", address, - "metadata", metadata, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String address; - - private Optional> metadata = Optional.empty(); - - private Optional type = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = Optional.ofNullable(type); - return this; - } - - public Builder type(Optional type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Account build() { - - return new Account( - address, metadata, type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/AccountRequest.java deleted file mode 100644 index a2951f2f9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountRequest.java +++ /dev/null @@ -1,327 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class AccountRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountName") - private Optional accountName; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultAsset") - private Optional defaultAsset; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("type") - private AccountType type; - - @JsonCreator - public AccountRequest( - @JsonProperty("accountName") Optional accountName, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("defaultAsset") Optional defaultAsset, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("reference") String reference, - @JsonProperty("type") AccountType type) { - Utils.checkNotNull(accountName, "accountName"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(defaultAsset, "defaultAsset"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(type, "type"); - this.accountName = accountName; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.defaultAsset = defaultAsset; - this.metadata = metadata; - this.reference = reference; - this.type = type; - } - - public AccountRequest( - String connectorID, - OffsetDateTime createdAt, - String reference, - AccountType type) { - this(Optional.empty(), connectorID, createdAt, - Optional.empty(), JsonNullable.undefined(), reference, - type); - } - - @JsonIgnore - public Optional accountName() { - return accountName; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public Optional defaultAsset() { - return defaultAsset; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public AccountType type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public AccountRequest withAccountName(String accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = Optional.ofNullable(accountName); - return this; - } - - - public AccountRequest withAccountName(Optional accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = accountName; - return this; - } - - public AccountRequest withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public AccountRequest withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public AccountRequest withDefaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = Optional.ofNullable(defaultAsset); - return this; - } - - - public AccountRequest withDefaultAsset(Optional defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - public AccountRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public AccountRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public AccountRequest withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public AccountRequest withType(AccountType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountRequest other = (AccountRequest) o; - return - Utils.enhancedDeepEquals(this.accountName, other.accountName) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountName, connectorID, createdAt, - defaultAsset, metadata, reference, - type); - } - - @Override - public String toString() { - return Utils.toString(AccountRequest.class, - "accountName", accountName, - "connectorID", connectorID, - "createdAt", createdAt, - "defaultAsset", defaultAsset, - "metadata", metadata, - "reference", reference, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional accountName = Optional.empty(); - - private String connectorID; - - private OffsetDateTime createdAt; - - private Optional defaultAsset = Optional.empty(); - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String reference; - - private AccountType type; - - private Builder() { - // force use of static builder() method - } - - - public Builder accountName(String accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = Optional.ofNullable(accountName); - return this; - } - - public Builder accountName(Optional accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = accountName; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder defaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = Optional.ofNullable(defaultAsset); - return this; - } - - public Builder defaultAsset(Optional defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder type(AccountType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public AccountRequest build() { - - return new AccountRequest( - accountName, connectorID, createdAt, - defaultAsset, metadata, reference, - type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/AccountResponse.java deleted file mode 100644 index d76774ac0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class AccountResponse { - - @JsonProperty("data") - private AccountWithVolumesAndBalances data; - - @JsonCreator - public AccountResponse( - @JsonProperty("data") AccountWithVolumesAndBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public AccountWithVolumesAndBalances data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public AccountResponse withData(AccountWithVolumesAndBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountResponse other = (AccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(AccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private AccountWithVolumesAndBalances data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(AccountWithVolumesAndBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public AccountResponse build() { - - return new AccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursor.java deleted file mode 100644 index b1f80589a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * AccountsCursor - * - *

OK - */ -public class AccountsCursor { - - @JsonProperty("cursor") - private AccountsCursorCursor cursor; - - @JsonCreator - public AccountsCursor( - @JsonProperty("cursor") AccountsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public AccountsCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public AccountsCursor withCursor(AccountsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountsCursor other = (AccountsCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(AccountsCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private AccountsCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(AccountsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public AccountsCursor build() { - - return new AccountsCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorCursor.java deleted file mode 100644 index f75795166..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/AccountsCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class AccountsCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public AccountsCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public AccountsCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public AccountsCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public AccountsCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public AccountsCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public AccountsCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public AccountsCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public AccountsCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public AccountsCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AccountsCursorCursor other = (AccountsCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(AccountsCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public AccountsCursorCursor build() { - - return new AccountsCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityCreateTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityCreateTransaction.java deleted file mode 100644 index 4f2bf2225..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityCreateTransaction.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class ActivityCreateTransaction { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ledger") - private Optional ledger; - - @JsonCreator - public ActivityCreateTransaction( - @JsonProperty("data") Optional data, - @JsonProperty("ledger") Optional ledger) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(ledger, "ledger"); - this.data = data; - this.ledger = ledger; - } - - public ActivityCreateTransaction() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional ledger() { - return ledger; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityCreateTransaction withData(OrchestrationPostTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public ActivityCreateTransaction withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityCreateTransaction withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - - public ActivityCreateTransaction withLedger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityCreateTransaction other = (ActivityCreateTransaction) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.ledger, other.ledger); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, ledger); - } - - @Override - public String toString() { - return Utils.toString(ActivityCreateTransaction.class, - "data", data, - "ledger", ledger); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Optional ledger = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationPostTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - public Builder ledger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - public ActivityCreateTransaction build() { - - return new ActivityCreateTransaction( - data, ledger); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityCreditWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityCreditWallet.java deleted file mode 100644 index 8a30322fc..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityCreditWallet.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class ActivityCreditWallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public ActivityCreditWallet( - @JsonProperty("data") Optional data, - @JsonProperty("id") Optional id) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(id, "id"); - this.data = data; - this.id = id; - } - - public ActivityCreditWallet() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityCreditWallet withData(OrchestrationCreditWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public ActivityCreditWallet withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityCreditWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - - public ActivityCreditWallet withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityCreditWallet other = (ActivityCreditWallet) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, id); - } - - @Override - public String toString() { - return Utils.toString(ActivityCreditWallet.class, - "data", data, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationCreditWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ActivityCreditWallet build() { - - return new ActivityCreditWallet( - data, id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWallet.java deleted file mode 100644 index 0915f0e90..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWallet.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class ActivityDebitWallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public ActivityDebitWallet( - @JsonProperty("data") Optional data, - @JsonProperty("id") Optional id) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(id, "id"); - this.data = data; - this.id = id; - } - - public ActivityDebitWallet() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityDebitWallet withData(DebitWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public ActivityDebitWallet withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityDebitWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - - public ActivityDebitWallet withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityDebitWallet other = (ActivityDebitWallet) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, id); - } - - @Override - public String toString() { - return Utils.toString(ActivityDebitWallet.class, - "data", data, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(DebitWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public ActivityDebitWallet build() { - - return new ActivityDebitWallet( - data, id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWalletOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWalletOutput.java deleted file mode 100644 index c6a9a42ba..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityDebitWalletOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ActivityDebitWalletOutput { - - @JsonProperty("data") - private OrchestrationHold data; - - @JsonCreator - public ActivityDebitWalletOutput( - @JsonProperty("data") OrchestrationHold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public OrchestrationHold data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityDebitWalletOutput withData(OrchestrationHold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityDebitWalletOutput other = (ActivityDebitWalletOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ActivityDebitWalletOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OrchestrationHold data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationHold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityDebitWalletOutput build() { - - return new ActivityDebitWalletOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccountOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccountOutput.java deleted file mode 100644 index 997e052f3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetAccountOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ActivityGetAccountOutput { - - @JsonProperty("data") - private OrchestrationAccount data; - - @JsonCreator - public ActivityGetAccountOutput( - @JsonProperty("data") OrchestrationAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public OrchestrationAccount data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityGetAccountOutput withData(OrchestrationAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityGetAccountOutput other = (ActivityGetAccountOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ActivityGetAccountOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OrchestrationAccount data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityGetAccountOutput build() { - - return new ActivityGetAccountOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPaymentOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPaymentOutput.java deleted file mode 100644 index be1995fa6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetPaymentOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ActivityGetPaymentOutput { - - @JsonProperty("data") - private OrchestrationPayment data; - - @JsonCreator - public ActivityGetPaymentOutput( - @JsonProperty("data") OrchestrationPayment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public OrchestrationPayment data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityGetPaymentOutput withData(OrchestrationPayment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityGetPaymentOutput other = (ActivityGetPaymentOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ActivityGetPaymentOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OrchestrationPayment data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationPayment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityGetPaymentOutput build() { - - return new ActivityGetPaymentOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWalletOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWalletOutput.java deleted file mode 100644 index 753b59ab7..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityGetWalletOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ActivityGetWalletOutput { - - @JsonProperty("data") - private WalletWithBalances data; - - @JsonCreator - public ActivityGetWalletOutput( - @JsonProperty("data") WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public WalletWithBalances data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityGetWalletOutput withData(WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityGetWalletOutput other = (ActivityGetWalletOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ActivityGetWalletOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WalletWithBalances data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ActivityGetWalletOutput build() { - - return new ActivityGetWalletOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransfer.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransfer.java deleted file mode 100644 index 4a05b8987..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransfer.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.utils.LazySingletonValue; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.util.Optional; - - -public class ActivityStripeTransfer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("asset") - private Optional asset; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("connectorID") - private Optional connectorID; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("waitingValidation") - private Optional waitingValidation; - - @JsonCreator - public ActivityStripeTransfer( - @JsonProperty("amount") Optional amount, - @JsonProperty("asset") Optional asset, - @JsonProperty("connectorID") Optional connectorID, - @JsonProperty("destination") Optional destination, - @JsonProperty("metadata") Optional metadata, - @JsonProperty("waitingValidation") Optional waitingValidation) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.amount = amount; - this.asset = asset; - this.connectorID = connectorID; - this.destination = destination; - this.metadata = metadata; - this.waitingValidation = waitingValidation; - } - - public ActivityStripeTransfer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @JsonIgnore - public Optional asset() { - return asset; - } - - @JsonIgnore - public Optional connectorID() { - return connectorID; - } - - @JsonIgnore - public Optional destination() { - return destination; - } - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional metadata() { - return (Optional) metadata; - } - - @JsonIgnore - public Optional waitingValidation() { - return waitingValidation; - } - - public static Builder builder() { - return new Builder(); - } - - - public ActivityStripeTransfer withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public ActivityStripeTransfer withAmount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - - public ActivityStripeTransfer withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public ActivityStripeTransfer withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - - public ActivityStripeTransfer withAsset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public ActivityStripeTransfer withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = Optional.ofNullable(connectorID); - return this; - } - - - public ActivityStripeTransfer withConnectorID(Optional connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public ActivityStripeTransfer withDestination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public ActivityStripeTransfer withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public ActivityStripeTransfer withMetadata(ActivityStripeTransferMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public ActivityStripeTransfer withMetadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public ActivityStripeTransfer withWaitingValidation(boolean waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = Optional.ofNullable(waitingValidation); - return this; - } - - - public ActivityStripeTransfer withWaitingValidation(Optional waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = waitingValidation; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ActivityStripeTransfer other = (ActivityStripeTransfer) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.waitingValidation, other.waitingValidation); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, connectorID, - destination, metadata, waitingValidation); - } - - @Override - public String toString() { - return Utils.toString(ActivityStripeTransfer.class, - "amount", amount, - "asset", asset, - "connectorID", connectorID, - "destination", destination, - "metadata", metadata, - "waitingValidation", waitingValidation); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional asset = Optional.empty(); - - private Optional connectorID = Optional.empty(); - - private Optional destination = Optional.empty(); - - private Optional metadata = Optional.empty(); - - private Optional waitingValidation; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - public Builder asset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = Optional.ofNullable(connectorID); - return this; - } - - public Builder connectorID(Optional connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder destination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public Builder metadata(ActivityStripeTransferMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public Builder metadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder waitingValidation(boolean waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = Optional.ofNullable(waitingValidation); - return this; - } - - public Builder waitingValidation(Optional waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = waitingValidation; - return this; - } - - public ActivityStripeTransfer build() { - if (waitingValidation == null) { - waitingValidation = _SINGLETON_VALUE_WaitingValidation.value(); - } - - return new ActivityStripeTransfer( - amount, asset, connectorID, - destination, metadata, waitingValidation); - } - - - private static final LazySingletonValue> _SINGLETON_VALUE_WaitingValidation = - new LazySingletonValue<>( - "waitingValidation", - "false", - new TypeReference>() {}); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransferMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransferMetadata.java deleted file mode 100644 index fc5143001..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ActivityStripeTransferMetadata.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * ActivityStripeTransferMetadata - * - *

A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ -public class ActivityStripeTransferMetadata { - @JsonCreator - public ActivityStripeTransferMetadata() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(ActivityStripeTransferMetadata.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public ActivityStripeTransferMetadata build() { - - return new ActivityStripeTransferMetadata( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AggregateBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/AggregateBalancesResponse.java deleted file mode 100644 index dfea1fa4d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/AggregateBalancesResponse.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Map; - - -public class AggregateBalancesResponse { - - @JsonProperty("data") - private Map data; - - @JsonCreator - public AggregateBalancesResponse( - @JsonProperty("data") Map data) { - data = Utils.emptyMapIfNull(data); - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Map data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public AggregateBalancesResponse withData(Map data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AggregateBalancesResponse other = (AggregateBalancesResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(AggregateBalancesResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Map data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public AggregateBalancesResponse build() { - - return new AggregateBalancesResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/AttemptResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/AttemptResponse.java deleted file mode 100644 index 6f30d14b0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/AttemptResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class AttemptResponse { - - @JsonProperty("data") - private Attempt data; - - @JsonCreator - public AttemptResponse( - @JsonProperty("data") Attempt data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Attempt data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public AttemptResponse withData(Attempt data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AttemptResponse other = (AttemptResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(AttemptResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Attempt data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Attempt data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public AttemptResponse build() { - - return new AttemptResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BalanceWithAssets.java b/src/main/java/com/formance/formance_sdk/models/shared/BalanceWithAssets.java deleted file mode 100644 index c5a46cbf6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/BalanceWithAssets.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class BalanceWithAssets { - - @JsonProperty("assets") - private Map assets; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresAt") - private JsonNullable expiresAt; - - - @JsonProperty("name") - private String name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("priority") - private Optional priority; - - @JsonCreator - public BalanceWithAssets( - @JsonProperty("assets") Map assets, - @JsonProperty("expiresAt") JsonNullable expiresAt, - @JsonProperty("name") String name, - @JsonProperty("priority") Optional priority) { - assets = Utils.emptyMapIfNull(assets); - Utils.checkNotNull(assets, "assets"); - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(priority, "priority"); - this.assets = assets; - this.expiresAt = expiresAt; - this.name = name; - this.priority = priority; - } - - public BalanceWithAssets( - Map assets, - String name) { - this(assets, JsonNullable.undefined(), name, - Optional.empty()); - } - - @JsonIgnore - public Map assets() { - return assets; - } - - @JsonIgnore - public JsonNullable expiresAt() { - return expiresAt; - } - - @JsonIgnore - public String name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional priority() { - return (Optional) priority; - } - - public static Builder builder() { - return new Builder(); - } - - - public BalanceWithAssets withAssets(Map assets) { - Utils.checkNotNull(assets, "assets"); - this.assets = assets; - return this; - } - - public BalanceWithAssets withExpiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = JsonNullable.of(expiresAt); - return this; - } - - public BalanceWithAssets withExpiresAt(JsonNullable expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public BalanceWithAssets withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public BalanceWithAssets withPriority(BigInteger priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = Optional.ofNullable(priority); - return this; - } - - public BalanceWithAssets withPriority(long priority) { - this.priority = Optional.of(BigInteger.valueOf(priority)); - return this; - } - - - public BalanceWithAssets withPriority(Optional priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = priority; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BalanceWithAssets other = (BalanceWithAssets) o; - return - Utils.enhancedDeepEquals(this.assets, other.assets) && - Utils.enhancedDeepEquals(this.expiresAt, other.expiresAt) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.priority, other.priority); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - assets, expiresAt, name, - priority); - } - - @Override - public String toString() { - return Utils.toString(BalanceWithAssets.class, - "assets", assets, - "expiresAt", expiresAt, - "name", name, - "priority", priority); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map assets; - - private JsonNullable expiresAt = JsonNullable.undefined(); - - private String name; - - private Optional priority = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder assets(Map assets) { - Utils.checkNotNull(assets, "assets"); - this.assets = assets; - return this; - } - - - public Builder expiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = JsonNullable.of(expiresAt); - return this; - } - - public Builder expiresAt(JsonNullable expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder priority(BigInteger priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = Optional.ofNullable(priority); - return this; - } - - public Builder priority(long priority) { - this.priority = Optional.of(BigInteger.valueOf(priority)); - return this; - } - - public Builder priority(Optional priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = priority; - return this; - } - - public BalanceWithAssets build() { - - return new BalanceWithAssets( - assets, expiresAt, name, - priority); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursor.java deleted file mode 100644 index 693456899..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * BalancesCursor - * - *

OK - */ -public class BalancesCursor { - - @JsonProperty("cursor") - private BalancesCursorCursor cursor; - - @JsonCreator - public BalancesCursor( - @JsonProperty("cursor") BalancesCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public BalancesCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public BalancesCursor withCursor(BalancesCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BalancesCursor other = (BalancesCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(BalancesCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BalancesCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(BalancesCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public BalancesCursor build() { - - return new BalancesCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorCursor.java deleted file mode 100644 index 19b070fe0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/BalancesCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class BalancesCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public BalancesCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public BalancesCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public BalancesCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public BalancesCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public BalancesCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public BalancesCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public BalancesCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public BalancesCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public BalancesCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BalancesCursorCursor other = (BalancesCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(BalancesCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public BalancesCursorCursor build() { - - return new BalancesCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/BankAccountResponse.java deleted file mode 100644 index a18acd3d6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * BankAccountResponse - * - *

OK - */ -public class BankAccountResponse { - - @JsonProperty("data") - private BankAccount data; - - @JsonCreator - public BankAccountResponse( - @JsonProperty("data") BankAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public BankAccount data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public BankAccountResponse withData(BankAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BankAccountResponse other = (BankAccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(BankAccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BankAccount data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(BankAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public BankAccountResponse build() { - - return new BankAccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursor.java deleted file mode 100644 index 35c494595..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * BankAccountsCursor - * - *

OK - */ -public class BankAccountsCursor { - - @JsonProperty("cursor") - private BankAccountsCursorCursor cursor; - - @JsonCreator - public BankAccountsCursor( - @JsonProperty("cursor") BankAccountsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public BankAccountsCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public BankAccountsCursor withCursor(BankAccountsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BankAccountsCursor other = (BankAccountsCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(BankAccountsCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BankAccountsCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(BankAccountsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public BankAccountsCursor build() { - - return new BankAccountsCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursorCursor.java deleted file mode 100644 index 1a59a5814..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/BankAccountsCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class BankAccountsCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public BankAccountsCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public BankAccountsCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public BankAccountsCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public BankAccountsCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public BankAccountsCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public BankAccountsCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public BankAccountsCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public BankAccountsCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public BankAccountsCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - BankAccountsCursorCursor other = (BankAccountsCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(BankAccountsCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public BankAccountsCursorCursor build() { - - return new BankAccountsCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Client.java b/src/main/java/com/formance/formance_sdk/models/shared/Client.java deleted file mode 100644 index 176782ed3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Client.java +++ /dev/null @@ -1,490 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Client { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("name") - private String name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postLogoutRedirectUris") - private Optional> postLogoutRedirectUris; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("public") - private Optional public_; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("redirectUris") - private Optional> redirectUris; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scopes") - private Optional> scopes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("secrets") - private Optional> secrets; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("trusted") - private Optional trusted; - - @JsonCreator - public Client( - @JsonProperty("description") Optional description, - @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") String name, - @JsonProperty("postLogoutRedirectUris") Optional> postLogoutRedirectUris, - @JsonProperty("public") Optional public_, - @JsonProperty("redirectUris") Optional> redirectUris, - @JsonProperty("scopes") Optional> scopes, - @JsonProperty("secrets") Optional> secrets, - @JsonProperty("trusted") Optional trusted) { - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - Utils.checkNotNull(public_, "public_"); - Utils.checkNotNull(redirectUris, "redirectUris"); - Utils.checkNotNull(scopes, "scopes"); - Utils.checkNotNull(secrets, "secrets"); - Utils.checkNotNull(trusted, "trusted"); - this.description = description; - this.id = id; - this.metadata = metadata; - this.name = name; - this.postLogoutRedirectUris = postLogoutRedirectUris; - this.public_ = public_; - this.redirectUris = redirectUris; - this.scopes = scopes; - this.secrets = secrets; - this.trusted = trusted; - } - - public Client( - String id, - String name) { - this(Optional.empty(), id, JsonNullable.undefined(), - name, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); - } - - @JsonIgnore - public Optional description() { - return description; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> postLogoutRedirectUris() { - return (Optional>) postLogoutRedirectUris; - } - - @JsonIgnore - public Optional public_() { - return public_; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> redirectUris() { - return (Optional>) redirectUris; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> scopes() { - return (Optional>) scopes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> secrets() { - return (Optional>) secrets; - } - - @JsonIgnore - public Optional trusted() { - return trusted; - } - - public static Builder builder() { - return new Builder(); - } - - - public Client withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - - public Client withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public Client withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Client withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Client withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Client withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Client withPostLogoutRedirectUris(List postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); - return this; - } - - - public Client withPostLogoutRedirectUris(Optional> postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = postLogoutRedirectUris; - return this; - } - - public Client withPublic(boolean public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = Optional.ofNullable(public_); - return this; - } - - - public Client withPublic(Optional public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = public_; - return this; - } - - public Client withRedirectUris(List redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = Optional.ofNullable(redirectUris); - return this; - } - - - public Client withRedirectUris(Optional> redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = redirectUris; - return this; - } - - public Client withScopes(List scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = Optional.ofNullable(scopes); - return this; - } - - - public Client withScopes(Optional> scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = scopes; - return this; - } - - public Client withSecrets(List secrets) { - Utils.checkNotNull(secrets, "secrets"); - this.secrets = Optional.ofNullable(secrets); - return this; - } - - - public Client withSecrets(Optional> secrets) { - Utils.checkNotNull(secrets, "secrets"); - this.secrets = secrets; - return this; - } - - public Client withTrusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - - public Client withTrusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Client other = (Client) o; - return - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.postLogoutRedirectUris, other.postLogoutRedirectUris) && - Utils.enhancedDeepEquals(this.public_, other.public_) && - Utils.enhancedDeepEquals(this.redirectUris, other.redirectUris) && - Utils.enhancedDeepEquals(this.scopes, other.scopes) && - Utils.enhancedDeepEquals(this.secrets, other.secrets) && - Utils.enhancedDeepEquals(this.trusted, other.trusted); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - description, id, metadata, - name, postLogoutRedirectUris, public_, - redirectUris, scopes, secrets, - trusted); - } - - @Override - public String toString() { - return Utils.toString(Client.class, - "description", description, - "id", id, - "metadata", metadata, - "name", name, - "postLogoutRedirectUris", postLogoutRedirectUris, - "public_", public_, - "redirectUris", redirectUris, - "scopes", scopes, - "secrets", secrets, - "trusted", trusted); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional description = Optional.empty(); - - private String id; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String name; - - private Optional> postLogoutRedirectUris = Optional.empty(); - - private Optional public_ = Optional.empty(); - - private Optional> redirectUris = Optional.empty(); - - private Optional> scopes = Optional.empty(); - - private Optional> secrets = Optional.empty(); - - private Optional trusted = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder postLogoutRedirectUris(List postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); - return this; - } - - public Builder postLogoutRedirectUris(Optional> postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = postLogoutRedirectUris; - return this; - } - - - public Builder public_(boolean public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = Optional.ofNullable(public_); - return this; - } - - public Builder public_(Optional public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = public_; - return this; - } - - - public Builder redirectUris(List redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = Optional.ofNullable(redirectUris); - return this; - } - - public Builder redirectUris(Optional> redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = redirectUris; - return this; - } - - - public Builder scopes(List scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = Optional.ofNullable(scopes); - return this; - } - - public Builder scopes(Optional> scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = scopes; - return this; - } - - - public Builder secrets(List secrets) { - Utils.checkNotNull(secrets, "secrets"); - this.secrets = Optional.ofNullable(secrets); - return this; - } - - public Builder secrets(Optional> secrets) { - Utils.checkNotNull(secrets, "secrets"); - this.secrets = secrets; - return this; - } - - - public Builder trusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - public Builder trusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - public Client build() { - - return new Client( - description, id, metadata, - name, postLogoutRedirectUris, public_, - redirectUris, scopes, secrets, - trusted); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Config.java b/src/main/java/com/formance/formance_sdk/models/shared/Config.java deleted file mode 100644 index 152862817..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Config.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class Config { - - @JsonProperty("storage") - private LedgerStorage storage; - - @JsonCreator - public Config( - @JsonProperty("storage") LedgerStorage storage) { - Utils.checkNotNull(storage, "storage"); - this.storage = storage; - } - - @JsonIgnore - public LedgerStorage storage() { - return storage; - } - - public static Builder builder() { - return new Builder(); - } - - - public Config withStorage(LedgerStorage storage) { - Utils.checkNotNull(storage, "storage"); - this.storage = storage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Config other = (Config) o; - return - Utils.enhancedDeepEquals(this.storage, other.storage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - storage); - } - - @Override - public String toString() { - return Utils.toString(Config.class, - "storage", storage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private LedgerStorage storage; - - private Builder() { - // force use of static builder() method - } - - - public Builder storage(LedgerStorage storage) { - Utils.checkNotNull(storage, "storage"); - this.storage = storage; - return this; - } - - public Config build() { - - return new Config( - storage); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ConfigInfoResponse.java deleted file mode 100644 index 3891fdfdc..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigInfoResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ConfigInfoResponse { - - @JsonProperty("data") - private ConfigInfo data; - - @JsonCreator - public ConfigInfoResponse( - @JsonProperty("data") ConfigInfo data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public ConfigInfo data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ConfigInfoResponse withData(ConfigInfo data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConfigInfoResponse other = (ConfigInfoResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ConfigInfoResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private ConfigInfo data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(ConfigInfo data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ConfigInfoResponse build() { - - return new ConfigInfoResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ConfigResponse.java deleted file mode 100644 index b6f1c8832..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ConfigResponse { - - @JsonProperty("data") - private WebhooksConfig data; - - @JsonCreator - public ConfigResponse( - @JsonProperty("data") WebhooksConfig data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public WebhooksConfig data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ConfigResponse withData(WebhooksConfig data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConfigResponse other = (ConfigResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ConfigResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WebhooksConfig data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(WebhooksConfig data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ConfigResponse build() { - - return new ConfigResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponseCursor.java deleted file mode 100644 index 39143f1ec..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponseCursor.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class ConfigsResponseCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - @JsonCreator - public ConfigsResponseCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - this.data = data; - this.hasMore = hasMore; - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - public static Builder builder() { - return new Builder(); - } - - - public ConfigsResponseCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ConfigsResponseCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConfigsResponseCursor other = (ConfigsResponseCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore); - } - - @Override - public String toString() { - return Utils.toString(ConfigsResponseCursor.class, - "data", data, - "hasMore", hasMore); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public ConfigsResponseCursor build() { - - return new ConfigsResponseCursor( - data, hasMore); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Connector.java b/src/main/java/com/formance/formance_sdk/models/shared/Connector.java deleted file mode 100644 index b6e166015..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Connector.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum Connector { - STRIPE("STRIPE"), - DUMMY_PAY("DUMMY-PAY"), - WISE("WISE"), - MODULR("MODULR"), - CURRENCY_CLOUD("CURRENCY-CLOUD"), - BANKING_CIRCLE("BANKING-CIRCLE"), - MANGOPAY("MANGOPAY"), - MONEYCORP("MONEYCORP"), - ATLAR("ATLAR"), - ADYEN("ADYEN"), - GENERIC("GENERIC"); - - @JsonValue - private final String value; - - Connector(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (Connector o: Connector.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfig.java b/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfig.java deleted file mode 100644 index 09be13c8d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfig.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonTypeInfo.As; -import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; -import java.lang.String; - -@JsonTypeInfo( - use = Id.CUSTOM, - property = "provider", - include = As.EXISTING_PROPERTY, - visible = true, - defaultImpl = UnknownConnectorConfig.class -) -@JsonTypeIdResolver(ConnectorConfigTypeIdResolver.class) -public interface ConnectorConfig { - - String provider(); - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigResponse.java deleted file mode 100644 index b8b6e9f23..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * ConnectorConfigResponse - * - *

OK - */ -public class ConnectorConfigResponse { - - @JsonProperty("data") - private ConnectorConfig data; - - @JsonCreator - public ConnectorConfigResponse( - @JsonProperty("data") ConnectorConfig data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public ConnectorConfig data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ConnectorConfigResponse withData(ConnectorConfig data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConnectorConfigResponse other = (ConnectorConfigResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ConnectorConfigResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private ConnectorConfig data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(ConnectorConfig data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ConnectorConfigResponse build() { - - return new ConnectorConfigResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigTypeIdResolver.java b/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigTypeIdResolver.java deleted file mode 100644 index 464d6d33c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConnectorConfigTypeIdResolver.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.formance.formance_sdk.utils.GenericTypeIdResolver; -import java.lang.IllegalArgumentException; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; - - -public class ConnectorConfigTypeIdResolver extends GenericTypeIdResolver { - - public ConnectorConfigTypeIdResolver() { - super(UnknownConnectorConfig.class); - initializeTypeMap(); - } - - private void initializeTypeMap() { - registerType("Adyen", AdyenConfig.class); - registerType("Atlar", AtlarConfig.class); - registerType("Bankingcircle", BankingCircleConfig.class); - registerType("Currencycloud", CurrencyCloudConfig.class); - registerType("Dummypay", DummyPayConfig.class); - registerType("Generic", GenericConfig.class); - registerType("Mangopay", MangoPayConfig.class); - registerType("Modulr", ModulrConfig.class); - registerType("Moneycorp", MoneycorpConfig.class); - registerType("Stripe", StripeConfig.class); - registerType("Wise", WiseConfig.class); - } - - @Override - public String idFromValue(Object value) { - if (value == null) { - return null; - } - - // Handle known types by checking if they implement the discriminator method - if (value instanceof ConnectorConfig) { - ConnectorConfig discriminated = (ConnectorConfig) value; - return discriminated.provider(); - } - - throw new IllegalArgumentException("Unknown value type: " + value.getClass().getName()); - } - - @Override - public String getDescForKnownTypeIds() { - return "ConnectorConfig type resolver"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceRequest.java deleted file mode 100644 index 12d144a1f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceRequest.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CreateBalanceRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("expiresAt") - private JsonNullable expiresAt; - - - @JsonProperty("name") - private String name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("priority") - private Optional priority; - - @JsonCreator - public CreateBalanceRequest( - @JsonProperty("expiresAt") JsonNullable expiresAt, - @JsonProperty("name") String name, - @JsonProperty("priority") Optional priority) { - Utils.checkNotNull(expiresAt, "expiresAt"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(priority, "priority"); - this.expiresAt = expiresAt; - this.name = name; - this.priority = priority; - } - - public CreateBalanceRequest( - String name) { - this(JsonNullable.undefined(), name, Optional.empty()); - } - - @JsonIgnore - public JsonNullable expiresAt() { - return expiresAt; - } - - @JsonIgnore - public String name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional priority() { - return (Optional) priority; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateBalanceRequest withExpiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = JsonNullable.of(expiresAt); - return this; - } - - public CreateBalanceRequest withExpiresAt(JsonNullable expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - public CreateBalanceRequest withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public CreateBalanceRequest withPriority(BigInteger priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = Optional.ofNullable(priority); - return this; - } - - public CreateBalanceRequest withPriority(long priority) { - this.priority = Optional.of(BigInteger.valueOf(priority)); - return this; - } - - - public CreateBalanceRequest withPriority(Optional priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = priority; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateBalanceRequest other = (CreateBalanceRequest) o; - return - Utils.enhancedDeepEquals(this.expiresAt, other.expiresAt) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.priority, other.priority); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - expiresAt, name, priority); - } - - @Override - public String toString() { - return Utils.toString(CreateBalanceRequest.class, - "expiresAt", expiresAt, - "name", name, - "priority", priority); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private JsonNullable expiresAt = JsonNullable.undefined(); - - private String name; - - private Optional priority = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder expiresAt(OffsetDateTime expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = JsonNullable.of(expiresAt); - return this; - } - - public Builder expiresAt(JsonNullable expiresAt) { - Utils.checkNotNull(expiresAt, "expiresAt"); - this.expiresAt = expiresAt; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder priority(BigInteger priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = Optional.ofNullable(priority); - return this; - } - - public Builder priority(long priority) { - this.priority = Optional.of(BigInteger.valueOf(priority)); - return this; - } - - public Builder priority(Optional priority) { - Utils.checkNotNull(priority, "priority"); - this.priority = priority; - return this; - } - - public CreateBalanceRequest build() { - - return new CreateBalanceRequest( - expiresAt, name, priority); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceResponse.java deleted file mode 100644 index 69ee6e021..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateBalanceResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class CreateBalanceResponse { - - @JsonProperty("data") - private CreateBalanceRequest data; - - @JsonCreator - public CreateBalanceResponse( - @JsonProperty("data") CreateBalanceRequest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public CreateBalanceRequest data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateBalanceResponse withData(CreateBalanceRequest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateBalanceResponse other = (CreateBalanceResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(CreateBalanceResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private CreateBalanceRequest data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(CreateBalanceRequest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateBalanceResponse build() { - - return new CreateBalanceResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateClientRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateClientRequest.java deleted file mode 100644 index 7958a79c3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateClientRequest.java +++ /dev/null @@ -1,413 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CreateClientRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("name") - private String name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postLogoutRedirectUris") - private Optional> postLogoutRedirectUris; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("public") - private Optional public_; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("redirectUris") - private Optional> redirectUris; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("scopes") - private Optional> scopes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("trusted") - private Optional trusted; - - @JsonCreator - public CreateClientRequest( - @JsonProperty("description") Optional description, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") String name, - @JsonProperty("postLogoutRedirectUris") Optional> postLogoutRedirectUris, - @JsonProperty("public") Optional public_, - @JsonProperty("redirectUris") Optional> redirectUris, - @JsonProperty("scopes") Optional> scopes, - @JsonProperty("trusted") Optional trusted) { - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - Utils.checkNotNull(public_, "public_"); - Utils.checkNotNull(redirectUris, "redirectUris"); - Utils.checkNotNull(scopes, "scopes"); - Utils.checkNotNull(trusted, "trusted"); - this.description = description; - this.metadata = metadata; - this.name = name; - this.postLogoutRedirectUris = postLogoutRedirectUris; - this.public_ = public_; - this.redirectUris = redirectUris; - this.scopes = scopes; - this.trusted = trusted; - } - - public CreateClientRequest( - String name) { - this(Optional.empty(), JsonNullable.undefined(), name, - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional description() { - return description; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> postLogoutRedirectUris() { - return (Optional>) postLogoutRedirectUris; - } - - @JsonIgnore - public Optional public_() { - return public_; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> redirectUris() { - return (Optional>) redirectUris; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> scopes() { - return (Optional>) scopes; - } - - @JsonIgnore - public Optional trusted() { - return trusted; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateClientRequest withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - - public CreateClientRequest withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public CreateClientRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public CreateClientRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public CreateClientRequest withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public CreateClientRequest withPostLogoutRedirectUris(List postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); - return this; - } - - - public CreateClientRequest withPostLogoutRedirectUris(Optional> postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = postLogoutRedirectUris; - return this; - } - - public CreateClientRequest withPublic(boolean public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = Optional.ofNullable(public_); - return this; - } - - - public CreateClientRequest withPublic(Optional public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = public_; - return this; - } - - public CreateClientRequest withRedirectUris(List redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = Optional.ofNullable(redirectUris); - return this; - } - - - public CreateClientRequest withRedirectUris(Optional> redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = redirectUris; - return this; - } - - public CreateClientRequest withScopes(List scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = Optional.ofNullable(scopes); - return this; - } - - - public CreateClientRequest withScopes(Optional> scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = scopes; - return this; - } - - public CreateClientRequest withTrusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - - public CreateClientRequest withTrusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateClientRequest other = (CreateClientRequest) o; - return - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.postLogoutRedirectUris, other.postLogoutRedirectUris) && - Utils.enhancedDeepEquals(this.public_, other.public_) && - Utils.enhancedDeepEquals(this.redirectUris, other.redirectUris) && - Utils.enhancedDeepEquals(this.scopes, other.scopes) && - Utils.enhancedDeepEquals(this.trusted, other.trusted); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - description, metadata, name, - postLogoutRedirectUris, public_, redirectUris, - scopes, trusted); - } - - @Override - public String toString() { - return Utils.toString(CreateClientRequest.class, - "description", description, - "metadata", metadata, - "name", name, - "postLogoutRedirectUris", postLogoutRedirectUris, - "public_", public_, - "redirectUris", redirectUris, - "scopes", scopes, - "trusted", trusted); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional description = Optional.empty(); - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String name; - - private Optional> postLogoutRedirectUris = Optional.empty(); - - private Optional public_ = Optional.empty(); - - private Optional> redirectUris = Optional.empty(); - - private Optional> scopes = Optional.empty(); - - private Optional trusted = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder postLogoutRedirectUris(List postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = Optional.ofNullable(postLogoutRedirectUris); - return this; - } - - public Builder postLogoutRedirectUris(Optional> postLogoutRedirectUris) { - Utils.checkNotNull(postLogoutRedirectUris, "postLogoutRedirectUris"); - this.postLogoutRedirectUris = postLogoutRedirectUris; - return this; - } - - - public Builder public_(boolean public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = Optional.ofNullable(public_); - return this; - } - - public Builder public_(Optional public_) { - Utils.checkNotNull(public_, "public_"); - this.public_ = public_; - return this; - } - - - public Builder redirectUris(List redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = Optional.ofNullable(redirectUris); - return this; - } - - public Builder redirectUris(Optional> redirectUris) { - Utils.checkNotNull(redirectUris, "redirectUris"); - this.redirectUris = redirectUris; - return this; - } - - - public Builder scopes(List scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = Optional.ofNullable(scopes); - return this; - } - - public Builder scopes(Optional> scopes) { - Utils.checkNotNull(scopes, "scopes"); - this.scopes = scopes; - return this; - } - - - public Builder trusted(boolean trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = Optional.ofNullable(trusted); - return this; - } - - public Builder trusted(Optional trusted) { - Utils.checkNotNull(trusted, "trusted"); - this.trusted = trusted; - return this; - } - - public CreateClientRequest build() { - - return new CreateClientRequest( - description, metadata, name, - postLogoutRedirectUris, public_, redirectUris, - scopes, trusted); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateClientResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateClientResponse.java deleted file mode 100644 index ebad2448f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateClientResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class CreateClientResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public CreateClientResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public CreateClientResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateClientResponse withData(Client data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public CreateClientResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateClientResponse other = (CreateClientResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(CreateClientResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Client data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateClientResponse build() { - - return new CreateClientResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateSecretRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateSecretRequest.java deleted file mode 100644 index 9c352cf89..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateSecretRequest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CreateSecretRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public CreateSecretRequest( - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.metadata = metadata; - this.name = name; - } - - public CreateSecretRequest( - String name) { - this(JsonNullable.undefined(), name); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateSecretRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public CreateSecretRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public CreateSecretRequest withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateSecretRequest other = (CreateSecretRequest) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, name); - } - - @Override - public String toString() { - return Utils.toString(CreateSecretRequest.class, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public CreateSecretRequest build() { - - return new CreateSecretRequest( - metadata, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateSecretResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateSecretResponse.java deleted file mode 100644 index aae208abf..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateSecretResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class CreateSecretResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public CreateSecretResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public CreateSecretResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateSecretResponse withData(Secret data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public CreateSecretResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateSecretResponse other = (CreateSecretResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(CreateSecretResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Secret data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateSecretResponse build() { - - return new CreateSecretResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateTriggerResponse.java deleted file mode 100644 index dcff731a9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateTriggerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class CreateTriggerResponse { - - @JsonProperty("data") - private Trigger data; - - @JsonCreator - public CreateTriggerResponse( - @JsonProperty("data") Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Trigger data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateTriggerResponse withData(Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateTriggerResponse other = (CreateTriggerResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(CreateTriggerResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Trigger data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateTriggerResponse build() { - - return new CreateTriggerResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateWalletResponse.java deleted file mode 100644 index b1fee3512..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateWalletResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class CreateWalletResponse { - - @JsonProperty("data") - private Wallet data; - - @JsonCreator - public CreateWalletResponse( - @JsonProperty("data") Wallet data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Wallet data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateWalletResponse withData(Wallet data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateWalletResponse other = (CreateWalletResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(CreateWalletResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Wallet data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Wallet data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateWalletResponse build() { - - return new CreateWalletResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowRequest.java deleted file mode 100644 index 5a21882bf..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowRequest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class CreateWorkflowRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonProperty("stages") - private List> stages; - - @JsonCreator - public CreateWorkflowRequest( - @JsonProperty("name") Optional name, - @JsonProperty("stages") List> stages) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(stages, "stages"); - this.name = name; - this.stages = stages; - } - - public CreateWorkflowRequest( - List> stages) { - this(Optional.empty(), stages); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public List> stages() { - return stages; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateWorkflowRequest withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public CreateWorkflowRequest withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public CreateWorkflowRequest withStages(List> stages) { - Utils.checkNotNull(stages, "stages"); - this.stages = stages; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateWorkflowRequest other = (CreateWorkflowRequest) o; - return - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.stages, other.stages); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - name, stages); - } - - @Override - public String toString() { - return Utils.toString(CreateWorkflowRequest.class, - "name", name, - "stages", stages); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional name = Optional.empty(); - - private List> stages; - - private Builder() { - // force use of static builder() method - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder stages(List> stages) { - Utils.checkNotNull(stages, "stages"); - this.stages = stages; - return this; - } - - public CreateWorkflowRequest build() { - - return new CreateWorkflowRequest( - name, stages); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowResponse.java deleted file mode 100644 index c55314748..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateWorkflowResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class CreateWorkflowResponse { - - @JsonProperty("data") - private Workflow data; - - @JsonCreator - public CreateWorkflowResponse( - @JsonProperty("data") Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Workflow data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreateWorkflowResponse withData(Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreateWorkflowResponse other = (CreateWorkflowResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(CreateWorkflowResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Workflow data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public CreateWorkflowResponse build() { - - return new CreateWorkflowResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreditWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/CreditWalletRequest.java deleted file mode 100644 index 8be69a2d2..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreditWalletRequest.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class CreditWalletRequest { - - @JsonProperty("amount") - private Monetary amount; - - /** - * The balance to credit - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - /** - * Metadata associated with the wallet. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("sources") - private JsonNullable> sources; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public CreditWalletRequest( - @JsonProperty("amount") Monetary amount, - @JsonProperty("balance") Optional balance, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("reference") Optional reference, - @JsonProperty("sources") JsonNullable> sources, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(sources, "sources"); - Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; - this.balance = balance; - this.metadata = metadata; - this.reference = reference; - this.sources = sources; - this.timestamp = timestamp; - } - - public CreditWalletRequest( - Monetary amount) { - this(amount, Optional.empty(), JsonNullable.undefined(), - Optional.empty(), JsonNullable.undefined(), Optional.empty()); - } - - @JsonIgnore - public Monetary amount() { - return amount; - } - - /** - * The balance to credit - */ - @JsonIgnore - public Optional balance() { - return balance; - } - - /** - * Metadata associated with the wallet. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> sources() { - return (JsonNullable>) sources; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public CreditWalletRequest withAmount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The balance to credit - */ - public CreditWalletRequest withBalance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - - /** - * The balance to credit - */ - public CreditWalletRequest withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public CreditWalletRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - /** - * Metadata associated with the wallet. - */ - public CreditWalletRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public CreditWalletRequest withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public CreditWalletRequest withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public CreditWalletRequest withSources(List sources) { - Utils.checkNotNull(sources, "sources"); - this.sources = JsonNullable.of(sources); - return this; - } - - public CreditWalletRequest withSources(JsonNullable> sources) { - Utils.checkNotNull(sources, "sources"); - this.sources = sources; - return this; - } - - public CreditWalletRequest withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public CreditWalletRequest withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - CreditWalletRequest other = (CreditWalletRequest) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.sources, other.sources) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, balance, metadata, - reference, sources, timestamp); - } - - @Override - public String toString() { - return Utils.toString(CreditWalletRequest.class, - "amount", amount, - "balance", balance, - "metadata", metadata, - "reference", reference, - "sources", sources, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Monetary amount; - - private Optional balance = Optional.empty(); - - private JsonNullable> metadata = JsonNullable.undefined(); - - private Optional reference = Optional.empty(); - - private JsonNullable> sources = JsonNullable.undefined(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The balance to credit - */ - public Builder balance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - /** - * The balance to credit - */ - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder sources(List sources) { - Utils.checkNotNull(sources, "sources"); - this.sources = JsonNullable.of(sources); - return this; - } - - public Builder sources(JsonNullable> sources) { - Utils.checkNotNull(sources, "sources"); - this.sources = sources; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public CreditWalletRequest build() { - - return new CreditWalletRequest( - amount, balance, metadata, - reference, sources, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/DebitWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/DebitWalletRequest.java deleted file mode 100644 index df219a32b..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/DebitWalletRequest.java +++ /dev/null @@ -1,402 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class DebitWalletRequest { - - @JsonProperty("amount") - private Monetary amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balances") - private Optional> balances; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - /** - * Metadata associated with the wallet. - */ - @JsonProperty("metadata") - private Map metadata; - - /** - * Set to true to create a pending hold. If false, the wallet will be debited immediately. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pending") - private Optional pending; - - /** - * cannot be used in conjunction with `pending` property - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public DebitWalletRequest( - @JsonProperty("amount") Monetary amount, - @JsonProperty("balances") Optional> balances, - @JsonProperty("description") Optional description, - @JsonProperty("destination") Optional destination, - @JsonProperty("metadata") Map metadata, - @JsonProperty("pending") Optional pending, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(balances, "balances"); - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(destination, "destination"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(pending, "pending"); - Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; - this.balances = balances; - this.description = description; - this.destination = destination; - this.metadata = metadata; - this.pending = pending; - this.timestamp = timestamp; - } - - public DebitWalletRequest( - Monetary amount, - Map metadata) { - this(amount, Optional.empty(), Optional.empty(), - Optional.empty(), metadata, Optional.empty(), - Optional.empty()); - } - - @JsonIgnore - public Monetary amount() { - return amount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> balances() { - return (Optional>) balances; - } - - @JsonIgnore - public Optional description() { - return description; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - - /** - * Metadata associated with the wallet. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - /** - * Set to true to create a pending hold. If false, the wallet will be debited immediately. - */ - @JsonIgnore - public Optional pending() { - return pending; - } - - /** - * cannot be used in conjunction with `pending` property - */ - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public DebitWalletRequest withAmount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public DebitWalletRequest withBalances(List balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = Optional.ofNullable(balances); - return this; - } - - - public DebitWalletRequest withBalances(Optional> balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = balances; - return this; - } - - public DebitWalletRequest withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - - public DebitWalletRequest withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public DebitWalletRequest withDestination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public DebitWalletRequest withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public DebitWalletRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - /** - * Set to true to create a pending hold. If false, the wallet will be debited immediately. - */ - public DebitWalletRequest withPending(boolean pending) { - Utils.checkNotNull(pending, "pending"); - this.pending = Optional.ofNullable(pending); - return this; - } - - - /** - * Set to true to create a pending hold. If false, the wallet will be debited immediately. - */ - public DebitWalletRequest withPending(Optional pending) { - Utils.checkNotNull(pending, "pending"); - this.pending = pending; - return this; - } - - /** - * cannot be used in conjunction with `pending` property - */ - public DebitWalletRequest withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - /** - * cannot be used in conjunction with `pending` property - */ - public DebitWalletRequest withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DebitWalletRequest other = (DebitWalletRequest) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.balances, other.balances) && - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.pending, other.pending) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, balances, description, - destination, metadata, pending, - timestamp); - } - - @Override - public String toString() { - return Utils.toString(DebitWalletRequest.class, - "amount", amount, - "balances", balances, - "description", description, - "destination", destination, - "metadata", metadata, - "pending", pending, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Monetary amount; - - private Optional> balances = Optional.empty(); - - private Optional description = Optional.empty(); - - private Optional destination = Optional.empty(); - - private Map metadata; - - private Optional pending = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder balances(List balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = Optional.ofNullable(balances); - return this; - } - - public Builder balances(Optional> balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = balances; - return this; - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder destination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - /** - * Set to true to create a pending hold. If false, the wallet will be debited immediately. - */ - public Builder pending(boolean pending) { - Utils.checkNotNull(pending, "pending"); - this.pending = Optional.ofNullable(pending); - return this; - } - - /** - * Set to true to create a pending hold. If false, the wallet will be debited immediately. - */ - public Builder pending(Optional pending) { - Utils.checkNotNull(pending, "pending"); - this.pending = pending; - return this; - } - - - /** - * cannot be used in conjunction with `pending` property - */ - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - /** - * cannot be used in conjunction with `pending` property - */ - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public DebitWalletRequest build() { - - return new DebitWalletRequest( - amount, balances, description, - destination, metadata, pending, - timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/DebitWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/DebitWalletResponse.java deleted file mode 100644 index a669b0b94..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/DebitWalletResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class DebitWalletResponse { - - @JsonProperty("data") - private Hold data; - - @JsonCreator - public DebitWalletResponse( - @JsonProperty("data") Hold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Hold data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public DebitWalletResponse withData(Hold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DebitWalletResponse other = (DebitWalletResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(DebitWalletResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Hold data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Hold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public DebitWalletResponse build() { - - return new DebitWalletResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ErrorResponse.java deleted file mode 100644 index 1bb7cebc2..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ErrorResponse.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class ErrorResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; - - - @JsonProperty("errorCode") - private ErrorsEnum errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public ErrorResponse( - @JsonProperty("details") Optional details, - @JsonProperty("errorCode") ErrorsEnum errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.details = details; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - public ErrorResponse( - ErrorsEnum errorCode, - String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); - } - - @JsonIgnore - public Optional details() { - return details; - } - - @JsonIgnore - public ErrorsEnum errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public ErrorResponse withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - - public ErrorResponse withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - public ErrorResponse withErrorCode(ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public ErrorResponse withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ErrorResponse other = (ErrorResponse) o; - return - Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - details, errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(ErrorResponse.class, - "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional details = Optional.empty(); - - private ErrorsEnum errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - - public Builder errorCode(ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public ErrorResponse build() { - - return new ErrorResponse( - details, errorCode, errorMessage); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/shared/ErrorsEnum.java deleted file mode 100644 index 95361c6dc..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ErrorsEnum.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum ErrorsEnum { - INTERNAL("INTERNAL"), - INSUFFICIENT_FUND("INSUFFICIENT_FUND"), - VALIDATION("VALIDATION"), - CONFLICT("CONFLICT"), - NO_SCRIPT("NO_SCRIPT"), - COMPILATION_FAILED("COMPILATION_FAILED"), - METADATA_OVERRIDE("METADATA_OVERRIDE"), - NOT_FOUND("NOT_FOUND"), - TIMEOUT("TIMEOUT"); - - @JsonValue - private final String value; - - ErrorsEnum(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (ErrorsEnum o: ErrorsEnum.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ExpandedDebitHold.java b/src/main/java/com/formance/formance_sdk/models/shared/ExpandedDebitHold.java deleted file mode 100644 index 05ccf8d50..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ExpandedDebitHold.java +++ /dev/null @@ -1,419 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.util.Map; -import java.util.Optional; - - -public class ExpandedDebitHold { - - @JsonProperty("asset") - private String asset; - - - @JsonProperty("description") - private String description; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - /** - * The unique ID of the hold. - */ - @JsonProperty("id") - private String id; - - /** - * Metadata associated with the hold. - */ - @JsonProperty("metadata") - private Map metadata; - - /** - * Original amount on hold - */ - @JsonProperty("originalAmount") - private BigInteger originalAmount; - - /** - * Remaining amount on hold - */ - @JsonProperty("remaining") - private BigInteger remaining; - - /** - * The ID of the wallet the hold is associated with. - */ - @JsonProperty("walletID") - private String walletID; - - @JsonCreator - public ExpandedDebitHold( - @JsonProperty("asset") String asset, - @JsonProperty("description") String description, - @JsonProperty("destination") Optional destination, - @JsonProperty("id") String id, - @JsonProperty("metadata") Map metadata, - @JsonProperty("originalAmount") BigInteger originalAmount, - @JsonProperty("remaining") BigInteger remaining, - @JsonProperty("walletID") String walletID) { - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(id, "id"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(originalAmount, "originalAmount"); - Utils.checkNotNull(remaining, "remaining"); - Utils.checkNotNull(walletID, "walletID"); - this.asset = asset; - this.description = description; - this.destination = destination; - this.id = id; - this.metadata = metadata; - this.originalAmount = originalAmount; - this.remaining = remaining; - this.walletID = walletID; - } - - public ExpandedDebitHold( - String asset, - String description, - String id, - Map metadata, - BigInteger originalAmount, - BigInteger remaining, - String walletID) { - this(asset, description, Optional.empty(), - id, metadata, originalAmount, - remaining, walletID); - } - - @JsonIgnore - public String asset() { - return asset; - } - - @JsonIgnore - public String description() { - return description; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - - /** - * The unique ID of the hold. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * Metadata associated with the hold. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - /** - * Original amount on hold - */ - @JsonIgnore - public BigInteger originalAmount() { - return originalAmount; - } - - /** - * Remaining amount on hold - */ - @JsonIgnore - public BigInteger remaining() { - return remaining; - } - - /** - * The ID of the wallet the hold is associated with. - */ - @JsonIgnore - public String walletID() { - return walletID; - } - - public static Builder builder() { - return new Builder(); - } - - - public ExpandedDebitHold withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public ExpandedDebitHold withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public ExpandedDebitHold withDestination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public ExpandedDebitHold withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** - * The unique ID of the hold. - */ - public ExpandedDebitHold withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Metadata associated with the hold. - */ - public ExpandedDebitHold withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - /** - * Original amount on hold - */ - public ExpandedDebitHold withOriginalAmount(long originalAmount) { - this.originalAmount = BigInteger.valueOf(originalAmount); - return this; - } - - /** - * Original amount on hold - */ - public ExpandedDebitHold withOriginalAmount(BigInteger originalAmount) { - Utils.checkNotNull(originalAmount, "originalAmount"); - this.originalAmount = originalAmount; - return this; - } - - /** - * Remaining amount on hold - */ - public ExpandedDebitHold withRemaining(long remaining) { - this.remaining = BigInteger.valueOf(remaining); - return this; - } - - /** - * Remaining amount on hold - */ - public ExpandedDebitHold withRemaining(BigInteger remaining) { - Utils.checkNotNull(remaining, "remaining"); - this.remaining = remaining; - return this; - } - - /** - * The ID of the wallet the hold is associated with. - */ - public ExpandedDebitHold withWalletID(String walletID) { - Utils.checkNotNull(walletID, "walletID"); - this.walletID = walletID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExpandedDebitHold other = (ExpandedDebitHold) o; - return - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.originalAmount, other.originalAmount) && - Utils.enhancedDeepEquals(this.remaining, other.remaining) && - Utils.enhancedDeepEquals(this.walletID, other.walletID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - asset, description, destination, - id, metadata, originalAmount, - remaining, walletID); - } - - @Override - public String toString() { - return Utils.toString(ExpandedDebitHold.class, - "asset", asset, - "description", description, - "destination", destination, - "id", id, - "metadata", metadata, - "originalAmount", originalAmount, - "remaining", remaining, - "walletID", walletID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String asset; - - private String description; - - private Optional destination = Optional.empty(); - - private String id; - - private Map metadata; - - private BigInteger originalAmount; - - private BigInteger remaining; - - private String walletID; - - private Builder() { - // force use of static builder() method - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder destination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - /** - * The unique ID of the hold. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - /** - * Metadata associated with the hold. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - /** - * Original amount on hold - */ - public Builder originalAmount(long originalAmount) { - this.originalAmount = BigInteger.valueOf(originalAmount); - return this; - } - - /** - * Original amount on hold - */ - public Builder originalAmount(BigInteger originalAmount) { - Utils.checkNotNull(originalAmount, "originalAmount"); - this.originalAmount = originalAmount; - return this; - } - - - /** - * Remaining amount on hold - */ - public Builder remaining(long remaining) { - this.remaining = BigInteger.valueOf(remaining); - return this; - } - - /** - * Remaining amount on hold - */ - public Builder remaining(BigInteger remaining) { - Utils.checkNotNull(remaining, "remaining"); - this.remaining = remaining; - return this; - } - - - /** - * The ID of the wallet the hold is associated with. - */ - public Builder walletID(String walletID) { - Utils.checkNotNull(walletID, "walletID"); - this.walletID = walletID; - return this; - } - - public ExpandedDebitHold build() { - - return new ExpandedDebitHold( - asset, description, destination, - id, metadata, originalAmount, - remaining, walletID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetBalanceResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetBalanceResponse.java deleted file mode 100644 index ba7c8e2bc..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetBalanceResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetBalanceResponse { - - @JsonProperty("data") - private BalanceWithAssets data; - - @JsonCreator - public GetBalanceResponse( - @JsonProperty("data") BalanceWithAssets data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public BalanceWithAssets data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetBalanceResponse withData(BalanceWithAssets data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetBalanceResponse other = (GetBalanceResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetBalanceResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BalanceWithAssets data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(BalanceWithAssets data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetBalanceResponse build() { - - return new GetBalanceResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetHoldResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetHoldResponse.java deleted file mode 100644 index ccd0a8ed0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetHoldResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetHoldResponse { - - @JsonProperty("data") - private ExpandedDebitHold data; - - @JsonCreator - public GetHoldResponse( - @JsonProperty("data") ExpandedDebitHold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public ExpandedDebitHold data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetHoldResponse withData(ExpandedDebitHold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetHoldResponse other = (GetHoldResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetHoldResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private ExpandedDebitHold data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(ExpandedDebitHold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetHoldResponse build() { - - return new GetHoldResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetWalletResponse.java deleted file mode 100644 index 99fa683b1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetWalletResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetWalletResponse { - - @JsonProperty("data") - private WalletWithBalances data; - - @JsonCreator - public GetWalletResponse( - @JsonProperty("data") WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public WalletWithBalances data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetWalletResponse withData(WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWalletResponse other = (GetWalletResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetWalletResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WalletWithBalances data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetWalletResponse build() { - - return new GetWalletResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetWalletSummaryResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetWalletSummaryResponse.java deleted file mode 100644 index 634bd0d94..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetWalletSummaryResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetWalletSummaryResponse { - - @JsonProperty("data") - private WalletSummary data; - - @JsonCreator - public GetWalletSummaryResponse( - @JsonProperty("data") WalletSummary data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public WalletSummary data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetWalletSummaryResponse withData(WalletSummary data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWalletSummaryResponse other = (GetWalletSummaryResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetWalletSummaryResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WalletSummary data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(WalletSummary data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetWalletSummaryResponse build() { - - return new GetWalletSummaryResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryResponse.java deleted file mode 100644 index c0270c882..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class GetWorkflowInstanceHistoryResponse { - - @JsonProperty("data") - private List data; - - @JsonCreator - public GetWorkflowInstanceHistoryResponse( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetWorkflowInstanceHistoryResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWorkflowInstanceHistoryResponse other = (GetWorkflowInstanceHistoryResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetWorkflowInstanceHistoryResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetWorkflowInstanceHistoryResponse build() { - - return new GetWorkflowInstanceHistoryResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryStageResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryStageResponse.java deleted file mode 100644 index b4049ecbe..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceHistoryStageResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class GetWorkflowInstanceHistoryStageResponse { - - @JsonProperty("data") - private List data; - - @JsonCreator - public GetWorkflowInstanceHistoryStageResponse( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetWorkflowInstanceHistoryStageResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWorkflowInstanceHistoryStageResponse other = (GetWorkflowInstanceHistoryStageResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetWorkflowInstanceHistoryStageResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetWorkflowInstanceHistoryStageResponse build() { - - return new GetWorkflowInstanceHistoryStageResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceResponse.java deleted file mode 100644 index 5efc5537e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowInstanceResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetWorkflowInstanceResponse { - - @JsonProperty("data") - private WorkflowInstance data; - - @JsonCreator - public GetWorkflowInstanceResponse( - @JsonProperty("data") WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public WorkflowInstance data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetWorkflowInstanceResponse withData(WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWorkflowInstanceResponse other = (GetWorkflowInstanceResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetWorkflowInstanceResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WorkflowInstance data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetWorkflowInstanceResponse build() { - - return new GetWorkflowInstanceResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowResponse.java deleted file mode 100644 index 456875375..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetWorkflowResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class GetWorkflowResponse { - - @JsonProperty("data") - private Workflow data; - - @JsonCreator - public GetWorkflowResponse( - @JsonProperty("data") Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Workflow data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public GetWorkflowResponse withData(Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - GetWorkflowResponse other = (GetWorkflowResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(GetWorkflowResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Workflow data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public GetWorkflowResponse build() { - - return new GetWorkflowResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Hold.java b/src/main/java/com/formance/formance_sdk/models/shared/Hold.java deleted file mode 100644 index bceaa65d7..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Hold.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class Hold { - - @JsonProperty("asset") - private String asset; - - - @JsonProperty("description") - private String description; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - /** - * The unique ID of the hold. - */ - @JsonProperty("id") - private String id; - - /** - * Metadata associated with the hold. - */ - @JsonProperty("metadata") - private Map metadata; - - /** - * The ID of the wallet the hold is associated with. - */ - @JsonProperty("walletID") - private String walletID; - - @JsonCreator - public Hold( - @JsonProperty("asset") String asset, - @JsonProperty("description") String description, - @JsonProperty("destination") Optional destination, - @JsonProperty("id") String id, - @JsonProperty("metadata") Map metadata, - @JsonProperty("walletID") String walletID) { - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(id, "id"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(walletID, "walletID"); - this.asset = asset; - this.description = description; - this.destination = destination; - this.id = id; - this.metadata = metadata; - this.walletID = walletID; - } - - public Hold( - String asset, - String description, - String id, - Map metadata, - String walletID) { - this(asset, description, Optional.empty(), - id, metadata, walletID); - } - - @JsonIgnore - public String asset() { - return asset; - } - - @JsonIgnore - public String description() { - return description; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - - /** - * The unique ID of the hold. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * Metadata associated with the hold. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - /** - * The ID of the wallet the hold is associated with. - */ - @JsonIgnore - public String walletID() { - return walletID; - } - - public static Builder builder() { - return new Builder(); - } - - - public Hold withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public Hold withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public Hold withDestination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public Hold withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** - * The unique ID of the hold. - */ - public Hold withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Metadata associated with the hold. - */ - public Hold withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - /** - * The ID of the wallet the hold is associated with. - */ - public Hold withWalletID(String walletID) { - Utils.checkNotNull(walletID, "walletID"); - this.walletID = walletID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Hold other = (Hold) o; - return - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.walletID, other.walletID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - asset, description, destination, - id, metadata, walletID); - } - - @Override - public String toString() { - return Utils.toString(Hold.class, - "asset", asset, - "description", description, - "destination", destination, - "id", id, - "metadata", metadata, - "walletID", walletID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String asset; - - private String description; - - private Optional destination = Optional.empty(); - - private String id; - - private Map metadata; - - private String walletID; - - private Builder() { - // force use of static builder() method - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder destination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - /** - * The unique ID of the hold. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - /** - * Metadata associated with the hold. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - /** - * The ID of the wallet the hold is associated with. - */ - public Builder walletID(String walletID) { - Utils.checkNotNull(walletID, "walletID"); - this.walletID = walletID; - return this; - } - - public Hold build() { - - return new Hold( - asset, description, destination, - id, metadata, walletID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LedgerAccountSubject.java b/src/main/java/com/formance/formance_sdk/models/shared/LedgerAccountSubject.java deleted file mode 100644 index f8147c6fa..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/LedgerAccountSubject.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class LedgerAccountSubject implements Subject { - - @JsonProperty("identifier") - private String identifier; - - - @JsonProperty("type") - private String type; - - @JsonCreator - public LedgerAccountSubject( - @JsonProperty("identifier") String identifier, - @JsonProperty("type") String type) { - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(type, "type"); - this.identifier = identifier; - this.type = type; - } - - @JsonIgnore - public String identifier() { - return identifier; - } - - @JsonIgnore - @Override - public String type() { - return Utils.discriminatorToString(type); - } - - public static Builder builder() { - return new Builder(); - } - - - public LedgerAccountSubject withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public LedgerAccountSubject withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LedgerAccountSubject other = (LedgerAccountSubject) o; - return - Utils.enhancedDeepEquals(this.identifier, other.identifier) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - identifier, type); - } - - @Override - public String toString() { - return Utils.toString(LedgerAccountSubject.class, - "identifier", identifier, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String identifier; - - private String type; - - private Builder() { - // force use of static builder() method - } - - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public LedgerAccountSubject build() { - - return new LedgerAccountSubject( - identifier, type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoResponse.java deleted file mode 100644 index 2aa31efdd..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/LedgerInfoResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class LedgerInfoResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public LedgerInfoResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public LedgerInfoResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public LedgerInfoResponse withData(LedgerInfo data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public LedgerInfoResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - LedgerInfoResponse other = (LedgerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(LedgerInfoResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(LedgerInfo data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public LedgerInfoResponse build() { - - return new LedgerInfoResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponse.java deleted file mode 100644 index 9933bc6d2..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ListWalletsResponse { - - @JsonProperty("cursor") - private ListWalletsResponseCursor cursor; - - @JsonCreator - public ListWalletsResponse( - @JsonProperty("cursor") ListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public ListWalletsResponseCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public ListWalletsResponse withCursor(ListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListWalletsResponse other = (ListWalletsResponse) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(ListWalletsResponse.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private ListWalletsResponseCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(ListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public ListWalletsResponse build() { - - return new ListWalletsResponse( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponseCursor.java deleted file mode 100644 index f6655d2e5..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListWalletsResponseCursor.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class ListWalletsResponseCursor { - - @JsonProperty("data") - private List data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasMore") - private Optional hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public ListWalletsResponseCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") Optional hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public ListWalletsResponseCursor( - List data, - long pageSize) { - this(data, Optional.empty(), Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public Optional hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public ListWalletsResponseCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ListWalletsResponseCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - - public ListWalletsResponseCursor withHasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public ListWalletsResponseCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public ListWalletsResponseCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public ListWalletsResponseCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public ListWalletsResponseCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public ListWalletsResponseCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ListWalletsResponseCursor other = (ListWalletsResponseCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(ListWalletsResponseCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Optional hasMore = Optional.empty(); - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - public Builder hasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public ListWalletsResponseCursor build() { - - return new ListWalletsResponseCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/MappingResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/MappingResponse.java deleted file mode 100644 index 4cf38bad5..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/MappingResponse.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class MappingResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private JsonNullable data; - - @JsonCreator - public MappingResponse( - @JsonProperty("data") JsonNullable data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public MappingResponse() { - this(JsonNullable.undefined()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable data() { - return (JsonNullable) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public MappingResponse withData(Mapping data) { - Utils.checkNotNull(data, "data"); - this.data = JsonNullable.of(data); - return this; - } - - public MappingResponse withData(JsonNullable data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - MappingResponse other = (MappingResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(MappingResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private JsonNullable data = JsonNullable.undefined(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Mapping data) { - Utils.checkNotNull(data, "data"); - this.data = JsonNullable.of(data); - return this; - } - - public Builder data(JsonNullable data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public MappingResponse build() { - - return new MappingResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Monetary.java b/src/main/java/com/formance/formance_sdk/models/shared/Monetary.java deleted file mode 100644 index 310cba828..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Monetary.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; - - -public class Monetary { - /** - * The amount of the monetary value. - */ - @JsonProperty("amount") - private BigInteger amount; - - /** - * The asset of the monetary value. - */ - @JsonProperty("asset") - private String asset; - - @JsonCreator - public Monetary( - @JsonProperty("amount") BigInteger amount, - @JsonProperty("asset") String asset) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - this.amount = amount; - this.asset = asset; - } - - /** - * The amount of the monetary value. - */ - @JsonIgnore - public BigInteger amount() { - return amount; - } - - /** - * The asset of the monetary value. - */ - @JsonIgnore - public String asset() { - return asset; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The amount of the monetary value. - */ - public Monetary withAmount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - /** - * The amount of the monetary value. - */ - public Monetary withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The asset of the monetary value. - */ - public Monetary withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Monetary other = (Monetary) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset); - } - - @Override - public String toString() { - return Utils.toString(Monetary.class, - "amount", amount, - "asset", asset); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger amount; - - private String asset; - - private Builder() { - // force use of static builder() method - } - - - /** - * The amount of the monetary value. - */ - public Builder amount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - /** - * The amount of the monetary value. - */ - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The asset of the monetary value. - */ - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public Monetary build() { - - return new Monetary( - amount, asset); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationAccount.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationAccount.java deleted file mode 100644 index 2dabb3797..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationAccount.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationAccount { - - @JsonProperty("address") - private String address; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("effectiveVolumes") - private Optional> effectiveVolumes; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("volumes") - private Optional> volumes; - - @JsonCreator - public OrchestrationAccount( - @JsonProperty("address") String address, - @JsonProperty("effectiveVolumes") Optional> effectiveVolumes, - @JsonProperty("metadata") Map metadata, - @JsonProperty("volumes") Optional> volumes) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(volumes, "volumes"); - this.address = address; - this.effectiveVolumes = effectiveVolumes; - this.metadata = metadata; - this.volumes = volumes; - } - - public OrchestrationAccount( - String address, - Map metadata) { - this(address, Optional.empty(), metadata, - Optional.empty()); - } - - @JsonIgnore - public String address() { - return address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> effectiveVolumes() { - return (Optional>) effectiveVolumes; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> volumes() { - return (Optional>) volumes; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationAccount withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public OrchestrationAccount withEffectiveVolumes(Map effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = Optional.ofNullable(effectiveVolumes); - return this; - } - - - public OrchestrationAccount withEffectiveVolumes(Optional> effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = effectiveVolumes; - return this; - } - - public OrchestrationAccount withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationAccount withVolumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - - public OrchestrationAccount withVolumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationAccount other = (OrchestrationAccount) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.effectiveVolumes, other.effectiveVolumes) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.volumes, other.volumes); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, effectiveVolumes, metadata, - volumes); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationAccount.class, - "address", address, - "effectiveVolumes", effectiveVolumes, - "metadata", metadata, - "volumes", volumes); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String address; - - private Optional> effectiveVolumes = Optional.empty(); - - private Map metadata; - - private Optional> volumes = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - public Builder effectiveVolumes(Map effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = Optional.ofNullable(effectiveVolumes); - return this; - } - - public Builder effectiveVolumes(Optional> effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = effectiveVolumes; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder volumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - public Builder volumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - - public OrchestrationAccount build() { - - return new OrchestrationAccount( - address, effectiveVolumes, metadata, - volumes); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationConnector.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationConnector.java deleted file mode 100644 index 5d3da1c07..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationConnector.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum OrchestrationConnector { - STRIPE("STRIPE"), - DUMMY_PAY("DUMMY-PAY"), - WISE("WISE"), - MODULR("MODULR"), - CURRENCY_CLOUD("CURRENCY-CLOUD"), - BANKING_CIRCLE("BANKING-CIRCLE"), - MANGOPAY("MANGOPAY"), - MONEYCORP("MONEYCORP"); - - @JsonValue - private final String value; - - OrchestrationConnector(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (OrchestrationConnector o: OrchestrationConnector.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationCreditWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationCreditWalletRequest.java deleted file mode 100644 index 117eb9a2d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationCreditWalletRequest.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationCreditWalletRequest { - - @JsonProperty("amount") - private Monetary amount; - - /** - * The balance to credit - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - /** - * Metadata associated with the wallet. - */ - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonProperty("sources") - private List sources; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public OrchestrationCreditWalletRequest( - @JsonProperty("amount") Monetary amount, - @JsonProperty("balance") Optional balance, - @JsonProperty("metadata") Map metadata, - @JsonProperty("reference") Optional reference, - @JsonProperty("sources") List sources, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(balance, "balance"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(sources, "sources"); - Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; - this.balance = balance; - this.metadata = metadata; - this.reference = reference; - this.sources = sources; - this.timestamp = timestamp; - } - - public OrchestrationCreditWalletRequest( - Monetary amount, - Map metadata, - List sources) { - this(amount, Optional.empty(), metadata, - Optional.empty(), sources, Optional.empty()); - } - - @JsonIgnore - public Monetary amount() { - return amount; - } - - /** - * The balance to credit - */ - @JsonIgnore - public Optional balance() { - return balance; - } - - /** - * Metadata associated with the wallet. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @JsonIgnore - public List sources() { - return sources; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationCreditWalletRequest withAmount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - /** - * The balance to credit - */ - public OrchestrationCreditWalletRequest withBalance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - - /** - * The balance to credit - */ - public OrchestrationCreditWalletRequest withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public OrchestrationCreditWalletRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationCreditWalletRequest withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public OrchestrationCreditWalletRequest withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public OrchestrationCreditWalletRequest withSources(List sources) { - Utils.checkNotNull(sources, "sources"); - this.sources = sources; - return this; - } - - public OrchestrationCreditWalletRequest withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public OrchestrationCreditWalletRequest withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationCreditWalletRequest other = (OrchestrationCreditWalletRequest) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.sources, other.sources) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, balance, metadata, - reference, sources, timestamp); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationCreditWalletRequest.class, - "amount", amount, - "balance", balance, - "metadata", metadata, - "reference", reference, - "sources", sources, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Monetary amount; - - private Optional balance = Optional.empty(); - - private Map metadata; - - private Optional reference = Optional.empty(); - - private List sources; - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - /** - * The balance to credit - */ - public Builder balance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - /** - * The balance to credit - */ - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder sources(List sources) { - Utils.checkNotNull(sources, "sources"); - this.sources = sources; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public OrchestrationCreditWalletRequest build() { - - return new OrchestrationCreditWalletRequest( - amount, balance, metadata, - reference, sources, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationHold.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationHold.java deleted file mode 100644 index 20c2fa581..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationHold.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationHold { - - @JsonProperty("description") - private String description; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - /** - * The unique ID of the hold. - */ - @JsonProperty("id") - private String id; - - /** - * Metadata associated with the hold. - */ - @JsonProperty("metadata") - private Map metadata; - - /** - * The ID of the wallet the hold is associated with. - */ - @JsonProperty("walletID") - private String walletID; - - @JsonCreator - public OrchestrationHold( - @JsonProperty("description") String description, - @JsonProperty("destination") Optional destination, - @JsonProperty("id") String id, - @JsonProperty("metadata") Map metadata, - @JsonProperty("walletID") String walletID) { - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(id, "id"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(walletID, "walletID"); - this.description = description; - this.destination = destination; - this.id = id; - this.metadata = metadata; - this.walletID = walletID; - } - - public OrchestrationHold( - String description, - String id, - Map metadata, - String walletID) { - this(description, Optional.empty(), id, - metadata, walletID); - } - - @JsonIgnore - public String description() { - return description; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - - /** - * The unique ID of the hold. - */ - @JsonIgnore - public String id() { - return id; - } - - /** - * Metadata associated with the hold. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - /** - * The ID of the wallet the hold is associated with. - */ - @JsonIgnore - public String walletID() { - return walletID; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationHold withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public OrchestrationHold withDestination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public OrchestrationHold withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** - * The unique ID of the hold. - */ - public OrchestrationHold withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - /** - * Metadata associated with the hold. - */ - public OrchestrationHold withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - /** - * The ID of the wallet the hold is associated with. - */ - public OrchestrationHold withWalletID(String walletID) { - Utils.checkNotNull(walletID, "walletID"); - this.walletID = walletID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationHold other = (OrchestrationHold) o; - return - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.walletID, other.walletID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - description, destination, id, - metadata, walletID); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationHold.class, - "description", description, - "destination", destination, - "id", id, - "metadata", metadata, - "walletID", walletID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String description; - - private Optional destination = Optional.empty(); - - private String id; - - private Map metadata; - - private String walletID; - - private Builder() { - // force use of static builder() method - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder destination(Subject destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - /** - * The unique ID of the hold. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - /** - * Metadata associated with the hold. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - /** - * The ID of the wallet the hold is associated with. - */ - public Builder walletID(String walletID) { - Utils.checkNotNull(walletID, "walletID"); - this.walletID = walletID; - return this; - } - - public OrchestrationHold build() { - - return new OrchestrationHold( - description, destination, id, - metadata, walletID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponse.java deleted file mode 100644 index 6ce8ea0b0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class OrchestrationListWalletsResponse { - - @JsonProperty("cursor") - private OrchestrationListWalletsResponseCursor cursor; - - @JsonCreator - public OrchestrationListWalletsResponse( - @JsonProperty("cursor") OrchestrationListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public OrchestrationListWalletsResponseCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationListWalletsResponse withCursor(OrchestrationListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationListWalletsResponse other = (OrchestrationListWalletsResponse) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationListWalletsResponse.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OrchestrationListWalletsResponseCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(OrchestrationListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public OrchestrationListWalletsResponse build() { - - return new OrchestrationListWalletsResponse( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponseCursor.java deleted file mode 100644 index 82489dc55..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationListWalletsResponseCursor.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class OrchestrationListWalletsResponseCursor { - - @JsonProperty("data") - private List data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasMore") - private Optional hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public OrchestrationListWalletsResponseCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") Optional hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public OrchestrationListWalletsResponseCursor( - List data, - long pageSize) { - this(data, Optional.empty(), Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public Optional hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationListWalletsResponseCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public OrchestrationListWalletsResponseCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - - public OrchestrationListWalletsResponseCursor withHasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public OrchestrationListWalletsResponseCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public OrchestrationListWalletsResponseCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public OrchestrationListWalletsResponseCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public OrchestrationListWalletsResponseCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public OrchestrationListWalletsResponseCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationListWalletsResponseCursor other = (OrchestrationListWalletsResponseCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationListWalletsResponseCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Optional hasMore = Optional.empty(); - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - public Builder hasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public OrchestrationListWalletsResponseCursor build() { - - return new OrchestrationListWalletsResponseCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPayment.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPayment.java deleted file mode 100644 index 262c618fa..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPayment.java +++ /dev/null @@ -1,586 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Optional; - - -public class OrchestrationPayment { - - @JsonProperty("adjustments") - private List adjustments; - - - @JsonProperty("asset") - private String asset; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("destinationAccountID") - private String destinationAccountID; - - - @JsonProperty("id") - private String id; - - - @JsonProperty("initialAmount") - private BigInteger initialAmount; - - - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("provider") - private Optional provider; - - - @JsonInclude(Include.ALWAYS) - @JsonProperty("raw") - private Optional raw; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("scheme") - private OrchestrationPaymentScheme scheme; - - - @JsonProperty("sourceAccountID") - private String sourceAccountID; - - - @JsonProperty("status") - private OrchestrationPaymentStatus status; - - - @JsonProperty("type") - private OrchestrationPaymentType type; - - @JsonCreator - public OrchestrationPayment( - @JsonProperty("adjustments") List adjustments, - @JsonProperty("asset") String asset, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("destinationAccountID") String destinationAccountID, - @JsonProperty("id") String id, - @JsonProperty("initialAmount") BigInteger initialAmount, - @JsonProperty("metadata") Optional metadata, - @JsonProperty("provider") Optional provider, - @JsonProperty("raw") Optional raw, - @JsonProperty("reference") String reference, - @JsonProperty("scheme") OrchestrationPaymentScheme scheme, - @JsonProperty("sourceAccountID") String sourceAccountID, - @JsonProperty("status") OrchestrationPaymentStatus status, - @JsonProperty("type") OrchestrationPaymentType type) { - Utils.checkNotNull(adjustments, "adjustments"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(initialAmount, "initialAmount"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(provider, "provider"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(scheme, "scheme"); - Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); - this.adjustments = adjustments; - this.asset = asset; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.destinationAccountID = destinationAccountID; - this.id = id; - this.initialAmount = initialAmount; - this.metadata = metadata; - this.provider = provider; - this.raw = raw; - this.reference = reference; - this.scheme = scheme; - this.sourceAccountID = sourceAccountID; - this.status = status; - this.type = type; - } - - public OrchestrationPayment( - List adjustments, - String asset, - String connectorID, - OffsetDateTime createdAt, - String destinationAccountID, - String id, - BigInteger initialAmount, - String reference, - OrchestrationPaymentScheme scheme, - String sourceAccountID, - OrchestrationPaymentStatus status, - OrchestrationPaymentType type) { - this(adjustments, asset, connectorID, - createdAt, destinationAccountID, id, - initialAmount, Optional.empty(), Optional.empty(), - Optional.empty(), reference, scheme, - sourceAccountID, status, type); - } - - @JsonIgnore - public List adjustments() { - return adjustments; - } - - @JsonIgnore - public String asset() { - return asset; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String destinationAccountID() { - return destinationAccountID; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public BigInteger initialAmount() { - return initialAmount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional metadata() { - return (Optional) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional provider() { - return (Optional) provider; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional raw() { - return (Optional) raw; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public OrchestrationPaymentScheme scheme() { - return scheme; - } - - @JsonIgnore - public String sourceAccountID() { - return sourceAccountID; - } - - @JsonIgnore - public OrchestrationPaymentStatus status() { - return status; - } - - @JsonIgnore - public OrchestrationPaymentType type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationPayment withAdjustments(List adjustments) { - Utils.checkNotNull(adjustments, "adjustments"); - this.adjustments = adjustments; - return this; - } - - public OrchestrationPayment withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public OrchestrationPayment withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public OrchestrationPayment withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public OrchestrationPayment withDestinationAccountID(String destinationAccountID) { - Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - this.destinationAccountID = destinationAccountID; - return this; - } - - public OrchestrationPayment withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public OrchestrationPayment withInitialAmount(long initialAmount) { - this.initialAmount = BigInteger.valueOf(initialAmount); - return this; - } - - public OrchestrationPayment withInitialAmount(BigInteger initialAmount) { - Utils.checkNotNull(initialAmount, "initialAmount"); - this.initialAmount = initialAmount; - return this; - } - - public OrchestrationPayment withMetadata(OrchestrationPaymentMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public OrchestrationPayment withMetadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationPayment withProvider(OrchestrationConnector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - - public OrchestrationPayment withProvider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - public OrchestrationPayment withRaw(OrchestrationPaymentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - - public OrchestrationPayment withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public OrchestrationPayment withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public OrchestrationPayment withScheme(OrchestrationPaymentScheme scheme) { - Utils.checkNotNull(scheme, "scheme"); - this.scheme = scheme; - return this; - } - - public OrchestrationPayment withSourceAccountID(String sourceAccountID) { - Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - this.sourceAccountID = sourceAccountID; - return this; - } - - public OrchestrationPayment withStatus(OrchestrationPaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public OrchestrationPayment withType(OrchestrationPaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationPayment other = (OrchestrationPayment) o; - return - Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.provider, other.provider) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.scheme, other.scheme) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - adjustments, asset, connectorID, - createdAt, destinationAccountID, id, - initialAmount, metadata, provider, - raw, reference, scheme, - sourceAccountID, status, type); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPayment.class, - "adjustments", adjustments, - "asset", asset, - "connectorID", connectorID, - "createdAt", createdAt, - "destinationAccountID", destinationAccountID, - "id", id, - "initialAmount", initialAmount, - "metadata", metadata, - "provider", provider, - "raw", raw, - "reference", reference, - "scheme", scheme, - "sourceAccountID", sourceAccountID, - "status", status, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List adjustments; - - private String asset; - - private String connectorID; - - private OffsetDateTime createdAt; - - private String destinationAccountID; - - private String id; - - private BigInteger initialAmount; - - private Optional metadata = Optional.empty(); - - private Optional provider = Optional.empty(); - - private Optional raw = Optional.empty(); - - private String reference; - - private OrchestrationPaymentScheme scheme; - - private String sourceAccountID; - - private OrchestrationPaymentStatus status; - - private OrchestrationPaymentType type; - - private Builder() { - // force use of static builder() method - } - - - public Builder adjustments(List adjustments) { - Utils.checkNotNull(adjustments, "adjustments"); - this.adjustments = adjustments; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder destinationAccountID(String destinationAccountID) { - Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - this.destinationAccountID = destinationAccountID; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder initialAmount(long initialAmount) { - this.initialAmount = BigInteger.valueOf(initialAmount); - return this; - } - - public Builder initialAmount(BigInteger initialAmount) { - Utils.checkNotNull(initialAmount, "initialAmount"); - this.initialAmount = initialAmount; - return this; - } - - - public Builder metadata(OrchestrationPaymentMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder provider(OrchestrationConnector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - public Builder provider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - - public Builder raw(OrchestrationPaymentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder scheme(OrchestrationPaymentScheme scheme) { - Utils.checkNotNull(scheme, "scheme"); - this.scheme = scheme; - return this; - } - - - public Builder sourceAccountID(String sourceAccountID) { - Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - this.sourceAccountID = sourceAccountID; - return this; - } - - - public Builder status(OrchestrationPaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder type(OrchestrationPaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public OrchestrationPayment build() { - - return new OrchestrationPayment( - adjustments, asset, connectorID, - createdAt, destinationAccountID, id, - initialAmount, metadata, provider, - raw, reference, scheme, - sourceAccountID, status, type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustment.java deleted file mode 100644 index 0a20fcbf2..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustment.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; -import java.time.OffsetDateTime; - - -public class OrchestrationPaymentAdjustment { - - @JsonProperty("absolute") - private boolean absolute; - - - @JsonProperty("amount") - private BigInteger amount; - - - @JsonProperty("date") - private OffsetDateTime date; - - - @JsonProperty("raw") - private OrchestrationPaymentAdjustmentRaw raw; - - - @JsonProperty("status") - private OrchestrationPaymentStatus status; - - @JsonCreator - public OrchestrationPaymentAdjustment( - @JsonProperty("absolute") boolean absolute, - @JsonProperty("amount") BigInteger amount, - @JsonProperty("date") OffsetDateTime date, - @JsonProperty("raw") OrchestrationPaymentAdjustmentRaw raw, - @JsonProperty("status") OrchestrationPaymentStatus status) { - Utils.checkNotNull(absolute, "absolute"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(date, "date"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(status, "status"); - this.absolute = absolute; - this.amount = amount; - this.date = date; - this.raw = raw; - this.status = status; - } - - @JsonIgnore - public boolean absolute() { - return absolute; - } - - @JsonIgnore - public BigInteger amount() { - return amount; - } - - @JsonIgnore - public OffsetDateTime date() { - return date; - } - - @JsonIgnore - public OrchestrationPaymentAdjustmentRaw raw() { - return raw; - } - - @JsonIgnore - public OrchestrationPaymentStatus status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationPaymentAdjustment withAbsolute(boolean absolute) { - Utils.checkNotNull(absolute, "absolute"); - this.absolute = absolute; - return this; - } - - public OrchestrationPaymentAdjustment withAmount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public OrchestrationPaymentAdjustment withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public OrchestrationPaymentAdjustment withDate(OffsetDateTime date) { - Utils.checkNotNull(date, "date"); - this.date = date; - return this; - } - - public OrchestrationPaymentAdjustment withRaw(OrchestrationPaymentAdjustmentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public OrchestrationPaymentAdjustment withStatus(OrchestrationPaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationPaymentAdjustment other = (OrchestrationPaymentAdjustment) o; - return - Utils.enhancedDeepEquals(this.absolute, other.absolute) && - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.date, other.date) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - absolute, amount, date, - raw, status); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPaymentAdjustment.class, - "absolute", absolute, - "amount", amount, - "date", date, - "raw", raw, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Boolean absolute; - - private BigInteger amount; - - private OffsetDateTime date; - - private OrchestrationPaymentAdjustmentRaw raw; - - private OrchestrationPaymentStatus status; - - private Builder() { - // force use of static builder() method - } - - - public Builder absolute(boolean absolute) { - Utils.checkNotNull(absolute, "absolute"); - this.absolute = absolute; - return this; - } - - - public Builder amount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder date(OffsetDateTime date) { - Utils.checkNotNull(date, "date"); - this.date = date; - return this; - } - - - public Builder raw(OrchestrationPaymentAdjustmentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder status(OrchestrationPaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public OrchestrationPaymentAdjustment build() { - - return new OrchestrationPaymentAdjustment( - absolute, amount, date, - raw, status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustmentRaw.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustmentRaw.java deleted file mode 100644 index 746bbe55d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentAdjustmentRaw.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class OrchestrationPaymentAdjustmentRaw { - @JsonCreator - public OrchestrationPaymentAdjustmentRaw() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPaymentAdjustmentRaw.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public OrchestrationPaymentAdjustmentRaw build() { - - return new OrchestrationPaymentAdjustmentRaw( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentMetadata.java deleted file mode 100644 index 03a44a11e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentMetadata.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class OrchestrationPaymentMetadata { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - @JsonCreator - public OrchestrationPaymentMetadata( - @JsonProperty("key") Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - } - - public OrchestrationPaymentMetadata() { - this(Optional.empty()); - } - - @JsonIgnore - public Optional key() { - return key; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationPaymentMetadata withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public OrchestrationPaymentMetadata withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationPaymentMetadata other = (OrchestrationPaymentMetadata) o; - return - Utils.enhancedDeepEquals(this.key, other.key); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - key); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPaymentMetadata.class, - "key", key); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional key = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public OrchestrationPaymentMetadata build() { - - return new OrchestrationPaymentMetadata( - key); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentRaw.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentRaw.java deleted file mode 100644 index a0199a662..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentRaw.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class OrchestrationPaymentRaw { - @JsonCreator - public OrchestrationPaymentRaw() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPaymentRaw.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public OrchestrationPaymentRaw build() { - - return new OrchestrationPaymentRaw( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentScheme.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentScheme.java deleted file mode 100644 index 0d26564bb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentScheme.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum OrchestrationPaymentScheme { - VISA("visa"), - MASTERCARD("mastercard"), - AMEX("amex"), - DINERS("diners"), - DISCOVER("discover"), - JCB("jcb"), - UNIONPAY("unionpay"), - SEPA_DEBIT("sepa debit"), - SEPA_CREDIT("sepa credit"), - SEPA("sepa"), - APPLE_PAY("apple pay"), - GOOGLE_PAY("google pay"), - A2A("a2a"), - ACH_DEBIT("ach debit"), - ACH("ach"), - RTP("rtp"), - UNKNOWN("unknown"), - OTHER("other"); - - @JsonValue - private final String value; - - OrchestrationPaymentScheme(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (OrchestrationPaymentScheme o: OrchestrationPaymentScheme.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentStatus.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentStatus.java deleted file mode 100644 index 2cb20da5d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentStatus.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum OrchestrationPaymentStatus { - PENDING("PENDING"), - ACTIVE("ACTIVE"), - TERMINATED("TERMINATED"), - FAILED("FAILED"), - SUCCEEDED("SUCCEEDED"), - CANCELLED("CANCELLED"); - - @JsonValue - private final String value; - - OrchestrationPaymentStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (OrchestrationPaymentStatus o: OrchestrationPaymentStatus.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentType.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentType.java deleted file mode 100644 index 854743cbe..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPaymentType.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum OrchestrationPaymentType { - PAY_IN("PAY-IN"), - PAYOUT("PAYOUT"), - TRANSFER("TRANSFER"), - OTHER("OTHER"); - - @JsonValue - private final String value; - - OrchestrationPaymentType(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (OrchestrationPaymentType o: OrchestrationPaymentType.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransaction.java deleted file mode 100644 index d1a04de21..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransaction.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationPostTransaction { - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postings") - private Optional> postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("script") - private Optional script; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public OrchestrationPostTransaction( - @JsonProperty("metadata") Map metadata, - @JsonProperty("postings") Optional> postings, - @JsonProperty("reference") Optional reference, - @JsonProperty("script") Optional script, - @JsonProperty("timestamp") Optional timestamp) { - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(script, "script"); - Utils.checkNotNull(timestamp, "timestamp"); - this.metadata = metadata; - this.postings = postings; - this.reference = reference; - this.script = script; - this.timestamp = timestamp; - } - - public OrchestrationPostTransaction( - Map metadata) { - this(metadata, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> postings() { - return (Optional>) postings; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional script() { - return (Optional) script; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationPostTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationPostTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - - public OrchestrationPostTransaction withPostings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public OrchestrationPostTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public OrchestrationPostTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public OrchestrationPostTransaction withScript(OrchestrationPostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - - public OrchestrationPostTransaction withScript(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - public OrchestrationPostTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public OrchestrationPostTransaction withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationPostTransaction other = (OrchestrationPostTransaction) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.script, other.script) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, postings, reference, - script, timestamp); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPostTransaction.class, - "metadata", metadata, - "postings", postings, - "reference", reference, - "script", script, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map metadata; - - private Optional> postings = Optional.empty(); - - private Optional reference = Optional.empty(); - - private Optional script = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - public Builder postings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder script(OrchestrationPostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - public Builder script(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public OrchestrationPostTransaction build() { - - return new OrchestrationPostTransaction( - metadata, postings, reference, - script, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransactionScript.java deleted file mode 100644 index 46095584e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationPostTransactionScript.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationPostTransactionScript { - - @JsonProperty("plain") - private String plain; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - @JsonCreator - public OrchestrationPostTransactionScript( - @JsonProperty("plain") String plain, - @JsonProperty("vars") Optional> vars) { - Utils.checkNotNull(plain, "plain"); - Utils.checkNotNull(vars, "vars"); - this.plain = plain; - this.vars = vars; - } - - public OrchestrationPostTransactionScript( - String plain) { - this(plain, Optional.empty()); - } - - @JsonIgnore - public String plain() { - return plain; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationPostTransactionScript withPlain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - public OrchestrationPostTransactionScript withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public OrchestrationPostTransactionScript withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationPostTransactionScript other = (OrchestrationPostTransactionScript) o; - return - Utils.enhancedDeepEquals(this.plain, other.plain) && - Utils.enhancedDeepEquals(this.vars, other.vars); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - plain, vars); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationPostTransactionScript.class, - "plain", plain, - "vars", vars); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String plain; - - private Optional> vars = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder plain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public OrchestrationPostTransactionScript build() { - - return new OrchestrationPostTransactionScript( - plain, vars); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationTransaction.java deleted file mode 100644 index cce95c9de..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationTransaction.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationTransaction { - - @JsonProperty("id") - private BigInteger id; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonProperty("postings") - private List postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonProperty("reverted") - private boolean reverted; - - - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - @JsonCreator - public OrchestrationTransaction( - @JsonProperty("id") BigInteger id, - @JsonProperty("metadata") Map metadata, - @JsonProperty("postings") List postings, - @JsonProperty("reference") Optional reference, - @JsonProperty("reverted") boolean reverted, - @JsonProperty("timestamp") OffsetDateTime timestamp) { - Utils.checkNotNull(id, "id"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(reverted, "reverted"); - Utils.checkNotNull(timestamp, "timestamp"); - this.id = id; - this.metadata = metadata; - this.postings = postings; - this.reference = reference; - this.reverted = reverted; - this.timestamp = timestamp; - } - - public OrchestrationTransaction( - BigInteger id, - Map metadata, - List postings, - boolean reverted, - OffsetDateTime timestamp) { - this(id, metadata, postings, - Optional.empty(), reverted, timestamp); - } - - @JsonIgnore - public BigInteger id() { - return id; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public List postings() { - return postings; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @JsonIgnore - public boolean reverted() { - return reverted; - } - - @JsonIgnore - public OffsetDateTime timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationTransaction withId(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public OrchestrationTransaction withId(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public OrchestrationTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public OrchestrationTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public OrchestrationTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public OrchestrationTransaction withReverted(boolean reverted) { - Utils.checkNotNull(reverted, "reverted"); - this.reverted = reverted; - return this; - } - - public OrchestrationTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationTransaction other = (OrchestrationTransaction) o; - return - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.reverted, other.reverted) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - id, metadata, postings, - reference, reverted, timestamp); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationTransaction.class, - "id", id, - "metadata", metadata, - "postings", postings, - "reference", reference, - "reverted", reverted, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger id; - - private Map metadata; - - private List postings; - - private Optional reference = Optional.empty(); - - private Boolean reverted; - - private OffsetDateTime timestamp; - - private Builder() { - // force use of static builder() method - } - - - public Builder id(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public Builder id(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder reverted(boolean reverted) { - Utils.checkNotNull(reverted, "reverted"); - this.reverted = reverted; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public OrchestrationTransaction build() { - - return new OrchestrationTransaction( - id, metadata, postings, - reference, reverted, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Account.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Account.java deleted file mode 100644 index a70559ad6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Account.java +++ /dev/null @@ -1,222 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationV2Account { - - @JsonProperty("address") - private String address; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("effectiveVolumes") - private Optional> effectiveVolumes; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("volumes") - private Optional> volumes; - - @JsonCreator - public OrchestrationV2Account( - @JsonProperty("address") String address, - @JsonProperty("effectiveVolumes") Optional> effectiveVolumes, - @JsonProperty("metadata") Map metadata, - @JsonProperty("volumes") Optional> volumes) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(volumes, "volumes"); - this.address = address; - this.effectiveVolumes = effectiveVolumes; - this.metadata = metadata; - this.volumes = volumes; - } - - public OrchestrationV2Account( - String address, - Map metadata) { - this(address, Optional.empty(), metadata, - Optional.empty()); - } - - @JsonIgnore - public String address() { - return address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> effectiveVolumes() { - return (Optional>) effectiveVolumes; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> volumes() { - return (Optional>) volumes; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationV2Account withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public OrchestrationV2Account withEffectiveVolumes(Map effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = Optional.ofNullable(effectiveVolumes); - return this; - } - - - public OrchestrationV2Account withEffectiveVolumes(Optional> effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = effectiveVolumes; - return this; - } - - public OrchestrationV2Account withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationV2Account withVolumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - - public OrchestrationV2Account withVolumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationV2Account other = (OrchestrationV2Account) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.effectiveVolumes, other.effectiveVolumes) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.volumes, other.volumes); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, effectiveVolumes, metadata, - volumes); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationV2Account.class, - "address", address, - "effectiveVolumes", effectiveVolumes, - "metadata", metadata, - "volumes", volumes); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String address; - - private Optional> effectiveVolumes = Optional.empty(); - - private Map metadata; - - private Optional> volumes = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - public Builder effectiveVolumes(Map effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = Optional.ofNullable(effectiveVolumes); - return this; - } - - public Builder effectiveVolumes(Optional> effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = effectiveVolumes; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder volumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - public Builder volumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - - public OrchestrationV2Account build() { - - return new OrchestrationV2Account( - address, effectiveVolumes, metadata, - volumes); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransaction.java deleted file mode 100644 index 7e944529d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransaction.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationV2PostTransaction { - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postings") - private Optional> postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("script") - private Optional script; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public OrchestrationV2PostTransaction( - @JsonProperty("metadata") Map metadata, - @JsonProperty("postings") Optional> postings, - @JsonProperty("reference") Optional reference, - @JsonProperty("script") Optional script, - @JsonProperty("timestamp") Optional timestamp) { - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(script, "script"); - Utils.checkNotNull(timestamp, "timestamp"); - this.metadata = metadata; - this.postings = postings; - this.reference = reference; - this.script = script; - this.timestamp = timestamp; - } - - public OrchestrationV2PostTransaction( - Map metadata) { - this(metadata, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> postings() { - return (Optional>) postings; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional script() { - return (Optional) script; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationV2PostTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationV2PostTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - - public OrchestrationV2PostTransaction withPostings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public OrchestrationV2PostTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public OrchestrationV2PostTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public OrchestrationV2PostTransaction withScript(OrchestrationV2PostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - - public OrchestrationV2PostTransaction withScript(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - public OrchestrationV2PostTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public OrchestrationV2PostTransaction withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationV2PostTransaction other = (OrchestrationV2PostTransaction) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.script, other.script) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, postings, reference, - script, timestamp); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationV2PostTransaction.class, - "metadata", metadata, - "postings", postings, - "reference", reference, - "script", script, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map metadata; - - private Optional> postings = Optional.empty(); - - private Optional reference = Optional.empty(); - - private Optional script = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - public Builder postings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder script(OrchestrationV2PostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - public Builder script(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public OrchestrationV2PostTransaction build() { - - return new OrchestrationV2PostTransaction( - metadata, postings, reference, - script, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransactionScript.java deleted file mode 100644 index 3fbe22ac6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2PostTransactionScript.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationV2PostTransactionScript { - - @JsonProperty("plain") - private String plain; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - @JsonCreator - public OrchestrationV2PostTransactionScript( - @JsonProperty("plain") String plain, - @JsonProperty("vars") Optional> vars) { - Utils.checkNotNull(plain, "plain"); - Utils.checkNotNull(vars, "vars"); - this.plain = plain; - this.vars = vars; - } - - public OrchestrationV2PostTransactionScript( - String plain) { - this(plain, Optional.empty()); - } - - @JsonIgnore - public String plain() { - return plain; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationV2PostTransactionScript withPlain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - public OrchestrationV2PostTransactionScript withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public OrchestrationV2PostTransactionScript withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationV2PostTransactionScript other = (OrchestrationV2PostTransactionScript) o; - return - Utils.enhancedDeepEquals(this.plain, other.plain) && - Utils.enhancedDeepEquals(this.vars, other.vars); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - plain, vars); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationV2PostTransactionScript.class, - "plain", plain, - "vars", vars); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String plain; - - private Optional> vars = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder plain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public OrchestrationV2PostTransactionScript build() { - - return new OrchestrationV2PostTransactionScript( - plain, vars); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Transaction.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Transaction.java deleted file mode 100644 index 56c7a5f79..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationV2Transaction.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class OrchestrationV2Transaction { - - @JsonProperty("metadata") - private Map metadata; - - - @JsonProperty("postings") - private List postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - - @JsonProperty("txid") - private BigInteger txid; - - @JsonCreator - public OrchestrationV2Transaction( - @JsonProperty("metadata") Map metadata, - @JsonProperty("postings") List postings, - @JsonProperty("reference") Optional reference, - @JsonProperty("timestamp") OffsetDateTime timestamp, - @JsonProperty("txid") BigInteger txid) { - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(timestamp, "timestamp"); - Utils.checkNotNull(txid, "txid"); - this.metadata = metadata; - this.postings = postings; - this.reference = reference; - this.timestamp = timestamp; - this.txid = txid; - } - - public OrchestrationV2Transaction( - Map metadata, - List postings, - OffsetDateTime timestamp, - BigInteger txid) { - this(metadata, postings, Optional.empty(), - timestamp, txid); - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public List postings() { - return postings; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @JsonIgnore - public OffsetDateTime timestamp() { - return timestamp; - } - - @JsonIgnore - public BigInteger txid() { - return txid; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationV2Transaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationV2Transaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public OrchestrationV2Transaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public OrchestrationV2Transaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public OrchestrationV2Transaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public OrchestrationV2Transaction withTxid(long txid) { - this.txid = BigInteger.valueOf(txid); - return this; - } - - public OrchestrationV2Transaction withTxid(BigInteger txid) { - Utils.checkNotNull(txid, "txid"); - this.txid = txid; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationV2Transaction other = (OrchestrationV2Transaction) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && - Utils.enhancedDeepEquals(this.txid, other.txid); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, postings, reference, - timestamp, txid); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationV2Transaction.class, - "metadata", metadata, - "postings", postings, - "reference", reference, - "timestamp", timestamp, - "txid", txid); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map metadata; - - private List postings; - - private Optional reference = Optional.empty(); - - private OffsetDateTime timestamp; - - private BigInteger txid; - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - - public Builder txid(long txid) { - this.txid = BigInteger.valueOf(txid); - return this; - } - - public Builder txid(BigInteger txid) { - Utils.checkNotNull(txid, "txid"); - this.txid = txid; - return this; - } - - public OrchestrationV2Transaction build() { - - return new OrchestrationV2Transaction( - metadata, postings, reference, - timestamp, txid); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationWallet.java deleted file mode 100644 index d67bb3742..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/OrchestrationWallet.java +++ /dev/null @@ -1,233 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import java.util.Map; - - -public class OrchestrationWallet { - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - /** - * The unique ID of the wallet. - */ - @JsonProperty("id") - private String id; - - - @JsonProperty("ledger") - private String ledger; - - /** - * Metadata associated with the wallet. - */ - @JsonProperty("metadata") - private Map metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public OrchestrationWallet( - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("id") String id, - @JsonProperty("ledger") String ledger, - @JsonProperty("metadata") Map metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(ledger, "ledger"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.createdAt = createdAt; - this.id = id; - this.ledger = ledger; - this.metadata = metadata; - this.name = name; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - /** - * The unique ID of the wallet. - */ - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public String ledger() { - return ledger; - } - - /** - * Metadata associated with the wallet. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public OrchestrationWallet withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The unique ID of the wallet. - */ - public OrchestrationWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public OrchestrationWallet withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public OrchestrationWallet withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public OrchestrationWallet withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - OrchestrationWallet other = (OrchestrationWallet) o; - return - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.ledger, other.ledger) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createdAt, id, ledger, - metadata, name); - } - - @Override - public String toString() { - return Utils.toString(OrchestrationWallet.class, - "createdAt", createdAt, - "id", id, - "ledger", ledger, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OffsetDateTime createdAt; - - private String id; - - private String ledger; - - private Map metadata; - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - /** - * The unique ID of the wallet. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public OrchestrationWallet build() { - - return new OrchestrationWallet( - createdAt, id, ledger, - metadata, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Payment.java b/src/main/java/com/formance/formance_sdk/models/shared/Payment.java deleted file mode 100644 index 415d2e7b6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Payment.java +++ /dev/null @@ -1,630 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class Payment { - - @JsonProperty("adjustments") - private List adjustments; - - - @JsonProperty("amount") - private BigInteger amount; - - - @JsonProperty("asset") - private String asset; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("destinationAccountID") - private String destinationAccountID; - - - @JsonProperty("id") - private String id; - - - @JsonProperty("initialAmount") - private BigInteger initialAmount; - - - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("provider") - private Optional provider; - - - @JsonInclude(Include.ALWAYS) - @JsonProperty("raw") - private Optional raw; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("scheme") - private PaymentScheme scheme; - - - @JsonProperty("sourceAccountID") - private String sourceAccountID; - - - @JsonProperty("status") - private PaymentStatus status; - - - @JsonProperty("type") - private PaymentType type; - - @JsonCreator - public Payment( - @JsonProperty("adjustments") List adjustments, - @JsonProperty("amount") BigInteger amount, - @JsonProperty("asset") String asset, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("destinationAccountID") String destinationAccountID, - @JsonProperty("id") String id, - @JsonProperty("initialAmount") BigInteger initialAmount, - @JsonProperty("metadata") Optional> metadata, - @JsonProperty("provider") Optional provider, - @JsonProperty("raw") Optional raw, - @JsonProperty("reference") String reference, - @JsonProperty("scheme") PaymentScheme scheme, - @JsonProperty("sourceAccountID") String sourceAccountID, - @JsonProperty("status") PaymentStatus status, - @JsonProperty("type") PaymentType type) { - Utils.checkNotNull(adjustments, "adjustments"); - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(initialAmount, "initialAmount"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(provider, "provider"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(scheme, "scheme"); - Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(type, "type"); - this.adjustments = adjustments; - this.amount = amount; - this.asset = asset; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.destinationAccountID = destinationAccountID; - this.id = id; - this.initialAmount = initialAmount; - this.metadata = metadata; - this.provider = provider; - this.raw = raw; - this.reference = reference; - this.scheme = scheme; - this.sourceAccountID = sourceAccountID; - this.status = status; - this.type = type; - } - - public Payment( - List adjustments, - BigInteger amount, - String asset, - String connectorID, - OffsetDateTime createdAt, - String destinationAccountID, - String id, - BigInteger initialAmount, - String reference, - PaymentScheme scheme, - String sourceAccountID, - PaymentStatus status, - PaymentType type) { - this(adjustments, amount, asset, - connectorID, createdAt, destinationAccountID, - id, initialAmount, Optional.empty(), - Optional.empty(), Optional.empty(), reference, - scheme, sourceAccountID, status, - type); - } - - @JsonIgnore - public List adjustments() { - return adjustments; - } - - @JsonIgnore - public BigInteger amount() { - return amount; - } - - @JsonIgnore - public String asset() { - return asset; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String destinationAccountID() { - return destinationAccountID; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public BigInteger initialAmount() { - return initialAmount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional provider() { - return (Optional) provider; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional raw() { - return (Optional) raw; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public PaymentScheme scheme() { - return scheme; - } - - @JsonIgnore - public String sourceAccountID() { - return sourceAccountID; - } - - @JsonIgnore - public PaymentStatus status() { - return status; - } - - @JsonIgnore - public PaymentType type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public Payment withAdjustments(List adjustments) { - Utils.checkNotNull(adjustments, "adjustments"); - this.adjustments = adjustments; - return this; - } - - public Payment withAmount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Payment withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public Payment withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public Payment withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public Payment withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Payment withDestinationAccountID(String destinationAccountID) { - Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - this.destinationAccountID = destinationAccountID; - return this; - } - - public Payment withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Payment withInitialAmount(long initialAmount) { - this.initialAmount = BigInteger.valueOf(initialAmount); - return this; - } - - public Payment withInitialAmount(BigInteger initialAmount) { - Utils.checkNotNull(initialAmount, "initialAmount"); - this.initialAmount = initialAmount; - return this; - } - - public Payment withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public Payment withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Payment withProvider(Connector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - - public Payment withProvider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - public Payment withRaw(PaymentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - - public Payment withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public Payment withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public Payment withScheme(PaymentScheme scheme) { - Utils.checkNotNull(scheme, "scheme"); - this.scheme = scheme; - return this; - } - - public Payment withSourceAccountID(String sourceAccountID) { - Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - this.sourceAccountID = sourceAccountID; - return this; - } - - public Payment withStatus(PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public Payment withType(PaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Payment other = (Payment) o; - return - Utils.enhancedDeepEquals(this.adjustments, other.adjustments) && - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.destinationAccountID, other.destinationAccountID) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.initialAmount, other.initialAmount) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.provider, other.provider) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.scheme, other.scheme) && - Utils.enhancedDeepEquals(this.sourceAccountID, other.sourceAccountID) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - adjustments, amount, asset, - connectorID, createdAt, destinationAccountID, - id, initialAmount, metadata, - provider, raw, reference, - scheme, sourceAccountID, status, - type); - } - - @Override - public String toString() { - return Utils.toString(Payment.class, - "adjustments", adjustments, - "amount", amount, - "asset", asset, - "connectorID", connectorID, - "createdAt", createdAt, - "destinationAccountID", destinationAccountID, - "id", id, - "initialAmount", initialAmount, - "metadata", metadata, - "provider", provider, - "raw", raw, - "reference", reference, - "scheme", scheme, - "sourceAccountID", sourceAccountID, - "status", status, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List adjustments; - - private BigInteger amount; - - private String asset; - - private String connectorID; - - private OffsetDateTime createdAt; - - private String destinationAccountID; - - private String id; - - private BigInteger initialAmount; - - private Optional> metadata = Optional.empty(); - - private Optional provider = Optional.empty(); - - private Optional raw = Optional.empty(); - - private String reference; - - private PaymentScheme scheme; - - private String sourceAccountID; - - private PaymentStatus status; - - private PaymentType type; - - private Builder() { - // force use of static builder() method - } - - - public Builder adjustments(List adjustments) { - Utils.checkNotNull(adjustments, "adjustments"); - this.adjustments = adjustments; - return this; - } - - - public Builder amount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder destinationAccountID(String destinationAccountID) { - Utils.checkNotNull(destinationAccountID, "destinationAccountID"); - this.destinationAccountID = destinationAccountID; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder initialAmount(long initialAmount) { - this.initialAmount = BigInteger.valueOf(initialAmount); - return this; - } - - public Builder initialAmount(BigInteger initialAmount) { - Utils.checkNotNull(initialAmount, "initialAmount"); - this.initialAmount = initialAmount; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder provider(Connector provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - public Builder provider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - - public Builder raw(PaymentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder scheme(PaymentScheme scheme) { - Utils.checkNotNull(scheme, "scheme"); - this.scheme = scheme; - return this; - } - - - public Builder sourceAccountID(String sourceAccountID) { - Utils.checkNotNull(sourceAccountID, "sourceAccountID"); - this.sourceAccountID = sourceAccountID; - return this; - } - - - public Builder status(PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder type(PaymentType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public Payment build() { - - return new Payment( - adjustments, amount, asset, - connectorID, createdAt, destinationAccountID, - id, initialAmount, metadata, - provider, raw, reference, - scheme, sourceAccountID, status, - type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustment.java deleted file mode 100644 index 9fc2e45eb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustment.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; -import java.time.OffsetDateTime; - - -public class PaymentAdjustment { - - @JsonProperty("amount") - private BigInteger amount; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("raw") - private PaymentAdjustmentRaw raw; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("status") - private PaymentStatus status; - - @JsonCreator - public PaymentAdjustment( - @JsonProperty("amount") BigInteger amount, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("raw") PaymentAdjustmentRaw raw, - @JsonProperty("reference") String reference, - @JsonProperty("status") PaymentStatus status) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(status, "status"); - this.amount = amount; - this.createdAt = createdAt; - this.raw = raw; - this.reference = reference; - this.status = status; - } - - @JsonIgnore - public BigInteger amount() { - return amount; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public PaymentAdjustmentRaw raw() { - return raw; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public PaymentStatus status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentAdjustment withAmount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public PaymentAdjustment withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public PaymentAdjustment withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public PaymentAdjustment withRaw(PaymentAdjustmentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PaymentAdjustment withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public PaymentAdjustment withStatus(PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentAdjustment other = (PaymentAdjustment) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, createdAt, raw, - reference, status); - } - - @Override - public String toString() { - return Utils.toString(PaymentAdjustment.class, - "amount", amount, - "createdAt", createdAt, - "raw", raw, - "reference", reference, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger amount; - - private OffsetDateTime createdAt; - - private PaymentAdjustmentRaw raw; - - private String reference; - - private PaymentStatus status; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder raw(PaymentAdjustmentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder status(PaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public PaymentAdjustment build() { - - return new PaymentAdjustment( - amount, createdAt, raw, - reference, status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustmentRaw.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustmentRaw.java deleted file mode 100644 index eb70e1175..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentAdjustmentRaw.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class PaymentAdjustmentRaw { - @JsonCreator - public PaymentAdjustmentRaw() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(PaymentAdjustmentRaw.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public PaymentAdjustmentRaw build() { - - return new PaymentAdjustmentRaw( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentRaw.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentRaw.java deleted file mode 100644 index 8c0bc13b0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentRaw.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class PaymentRaw { - @JsonCreator - public PaymentRaw() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(PaymentRaw.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public PaymentRaw build() { - - return new PaymentRaw( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentResponse.java deleted file mode 100644 index 7d5045f91..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PaymentResponse - * - *

OK - */ -public class PaymentResponse { - - @JsonProperty("data") - private Payment data; - - @JsonCreator - public PaymentResponse( - @JsonProperty("data") Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Payment data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentResponse withData(Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentResponse other = (PaymentResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(PaymentResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Payment data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PaymentResponse build() { - - return new PaymentResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentScheme.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentScheme.java deleted file mode 100644 index 2b7b48b6f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentScheme.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum PaymentScheme { - UNKNOWN("unknown"), - OTHER("other"), - VISA("visa"), - MASTERCARD("mastercard"), - AMEX("amex"), - DINERS("diners"), - DISCOVER("discover"), - JCB("jcb"), - UNIONPAY("unionpay"), - ALIPAY("alipay"), - CUP("cup"), - SEPA_DEBIT("sepa debit"), - SEPA_CREDIT("sepa credit"), - SEPA("sepa"), - APPLE_PAY("apple pay"), - GOOGLE_PAY("google pay"), - DOKU("doku"), - DRAGONPAY("dragonpay"), - MAESTRO("maestro"), - MOLPAY("molpay"), - A2A("a2a"), - ACH_DEBIT("ach debit"), - ACH("ach"), - RTP("rtp"); - - @JsonValue - private final String value; - - PaymentScheme(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (PaymentScheme o: PaymentScheme.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentStatus.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentStatus.java deleted file mode 100644 index f93827aad..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentStatus.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum PaymentStatus { - PENDING("PENDING"), - SUCCEEDED("SUCCEEDED"), - CANCELLED("CANCELLED"), - FAILED("FAILED"), - EXPIRED("EXPIRED"), - REFUNDED("REFUNDED"), - REFUNDED_FAILURE("REFUNDED_FAILURE"), - DISPUTE("DISPUTE"), - DISPUTE_WON("DISPUTE_WON"), - DISPUTE_LOST("DISPUTE_LOST"), - OTHER("OTHER"); - - @JsonValue - private final String value; - - PaymentStatus(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (PaymentStatus o: PaymentStatus.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentType.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentType.java deleted file mode 100644 index f100c8931..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentType.java +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum PaymentType { - PAY_IN("PAY-IN"), - PAYOUT("PAYOUT"), - TRANSFER("TRANSFER"), - OTHER("OTHER"); - - @JsonValue - private final String value; - - PaymentType(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (PaymentType o: PaymentType.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccount.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccount.java deleted file mode 100644 index 91c9b3898..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccount.java +++ /dev/null @@ -1,517 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Deprecated; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class PaymentsAccount { - - @JsonProperty("accountName") - private String accountName; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("defaultAsset") - private String defaultAsset; - - /** - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @JsonProperty("defaultCurrency") - @Deprecated - private String defaultCurrency; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pools") - private Optional> pools; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("provider") - private Optional provider; - - - @JsonInclude(Include.ALWAYS) - @JsonProperty("raw") - private Optional raw; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("type") - private AccountType type; - - @JsonCreator - public PaymentsAccount( - @JsonProperty("accountName") String accountName, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("defaultAsset") String defaultAsset, - @JsonProperty("defaultCurrency") String defaultCurrency, - @JsonProperty("id") String id, - @JsonProperty("metadata") Optional> metadata, - @JsonProperty("pools") Optional> pools, - @JsonProperty("provider") Optional provider, - @JsonProperty("raw") Optional raw, - @JsonProperty("reference") String reference, - @JsonProperty("type") AccountType type) { - Utils.checkNotNull(accountName, "accountName"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(defaultAsset, "defaultAsset"); - Utils.checkNotNull(defaultCurrency, "defaultCurrency"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(pools, "pools"); - Utils.checkNotNull(provider, "provider"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(type, "type"); - this.accountName = accountName; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.defaultAsset = defaultAsset; - this.defaultCurrency = defaultCurrency; - this.id = id; - this.metadata = metadata; - this.pools = pools; - this.provider = provider; - this.raw = raw; - this.reference = reference; - this.type = type; - } - - public PaymentsAccount( - String accountName, - String connectorID, - OffsetDateTime createdAt, - String defaultAsset, - String defaultCurrency, - String id, - String reference, - AccountType type) { - this(accountName, connectorID, createdAt, - defaultAsset, defaultCurrency, id, - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), reference, type); - } - - @JsonIgnore - public String accountName() { - return accountName; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String defaultAsset() { - return defaultAsset; - } - - /** - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - @JsonIgnore - public String defaultCurrency() { - return defaultCurrency; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> pools() { - return (Optional>) pools; - } - - @JsonIgnore - public Optional provider() { - return provider; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional raw() { - return (Optional) raw; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public AccountType type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentsAccount withAccountName(String accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = accountName; - return this; - } - - public PaymentsAccount withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public PaymentsAccount withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public PaymentsAccount withDefaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - /** - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public PaymentsAccount withDefaultCurrency(String defaultCurrency) { - Utils.checkNotNull(defaultCurrency, "defaultCurrency"); - this.defaultCurrency = defaultCurrency; - return this; - } - - public PaymentsAccount withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public PaymentsAccount withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public PaymentsAccount withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public PaymentsAccount withPools(List pools) { - Utils.checkNotNull(pools, "pools"); - this.pools = Optional.ofNullable(pools); - return this; - } - - - public PaymentsAccount withPools(Optional> pools) { - Utils.checkNotNull(pools, "pools"); - this.pools = pools; - return this; - } - - public PaymentsAccount withProvider(String provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - - public PaymentsAccount withProvider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - public PaymentsAccount withRaw(PaymentsAccountRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - - public PaymentsAccount withRaw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public PaymentsAccount withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public PaymentsAccount withType(AccountType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsAccount other = (PaymentsAccount) o; - return - Utils.enhancedDeepEquals(this.accountName, other.accountName) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && - Utils.enhancedDeepEquals(this.defaultCurrency, other.defaultCurrency) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.pools, other.pools) && - Utils.enhancedDeepEquals(this.provider, other.provider) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountName, connectorID, createdAt, - defaultAsset, defaultCurrency, id, - metadata, pools, provider, - raw, reference, type); - } - - @Override - public String toString() { - return Utils.toString(PaymentsAccount.class, - "accountName", accountName, - "connectorID", connectorID, - "createdAt", createdAt, - "defaultAsset", defaultAsset, - "defaultCurrency", defaultCurrency, - "id", id, - "metadata", metadata, - "pools", pools, - "provider", provider, - "raw", raw, - "reference", reference, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String accountName; - - private String connectorID; - - private OffsetDateTime createdAt; - - private String defaultAsset; - - @Deprecated - private String defaultCurrency; - - private String id; - - private Optional> metadata = Optional.empty(); - - private Optional> pools = Optional.empty(); - - private Optional provider = Optional.empty(); - - private Optional raw = Optional.empty(); - - private String reference; - - private AccountType type; - - private Builder() { - // force use of static builder() method - } - - - public Builder accountName(String accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = accountName; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder defaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - - /** - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public Builder defaultCurrency(String defaultCurrency) { - Utils.checkNotNull(defaultCurrency, "defaultCurrency"); - this.defaultCurrency = defaultCurrency; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder pools(List pools) { - Utils.checkNotNull(pools, "pools"); - this.pools = Optional.ofNullable(pools); - return this; - } - - public Builder pools(Optional> pools) { - Utils.checkNotNull(pools, "pools"); - this.pools = pools; - return this; - } - - - public Builder provider(String provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = Optional.ofNullable(provider); - return this; - } - - public Builder provider(Optional provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - - public Builder raw(PaymentsAccountRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = Optional.ofNullable(raw); - return this; - } - - public Builder raw(Optional raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder type(AccountType type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public PaymentsAccount build() { - - return new PaymentsAccount( - accountName, connectorID, createdAt, - defaultAsset, defaultCurrency, id, - metadata, pools, provider, - raw, reference, type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountRaw.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountRaw.java deleted file mode 100644 index 909225de8..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountRaw.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class PaymentsAccountRaw { - @JsonCreator - public PaymentsAccountRaw() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(PaymentsAccountRaw.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public PaymentsAccountRaw build() { - - return new PaymentsAccountRaw( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountResponse.java deleted file mode 100644 index 7712e6e3d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsAccountResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PaymentsAccountResponse - * - *

OK - */ -public class PaymentsAccountResponse { - - @JsonProperty("data") - private PaymentsAccount data; - - @JsonCreator - public PaymentsAccountResponse( - @JsonProperty("data") PaymentsAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public PaymentsAccount data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentsAccountResponse withData(PaymentsAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsAccountResponse other = (PaymentsAccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(PaymentsAccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private PaymentsAccount data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(PaymentsAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PaymentsAccountResponse build() { - - return new PaymentsAccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursor.java deleted file mode 100644 index 21f95a186..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PaymentsCursor - * - *

OK - */ -public class PaymentsCursor { - - @JsonProperty("cursor") - private PaymentsCursorCursor cursor; - - @JsonCreator - public PaymentsCursor( - @JsonProperty("cursor") PaymentsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public PaymentsCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentsCursor withCursor(PaymentsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsCursor other = (PaymentsCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(PaymentsCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private PaymentsCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(PaymentsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public PaymentsCursor build() { - - return new PaymentsCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursorCursor.java deleted file mode 100644 index 732172666..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class PaymentsCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public PaymentsCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public PaymentsCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentsCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PaymentsCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public PaymentsCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public PaymentsCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public PaymentsCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public PaymentsCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public PaymentsCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsCursorCursor other = (PaymentsCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(PaymentsCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public PaymentsCursorCursor build() { - - return new PaymentsCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsServerInfo.java b/src/main/java/com/formance/formance_sdk/models/shared/PaymentsServerInfo.java deleted file mode 100644 index ff6426f23..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PaymentsServerInfo.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - -/** - * PaymentsServerInfo - * - *

Server information - */ -public class PaymentsServerInfo { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("debug") - private Optional debug; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - @JsonCreator - public PaymentsServerInfo( - @JsonProperty("debug") Optional debug, - @JsonProperty("version") Optional version) { - Utils.checkNotNull(debug, "debug"); - Utils.checkNotNull(version, "version"); - this.debug = debug; - this.version = version; - } - - public PaymentsServerInfo() { - this(Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional debug() { - return debug; - } - - @JsonIgnore - public Optional version() { - return version; - } - - public static Builder builder() { - return new Builder(); - } - - - public PaymentsServerInfo withDebug(boolean debug) { - Utils.checkNotNull(debug, "debug"); - this.debug = Optional.ofNullable(debug); - return this; - } - - - public PaymentsServerInfo withDebug(Optional debug) { - Utils.checkNotNull(debug, "debug"); - this.debug = debug; - return this; - } - - public PaymentsServerInfo withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - - public PaymentsServerInfo withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PaymentsServerInfo other = (PaymentsServerInfo) o; - return - Utils.enhancedDeepEquals(this.debug, other.debug) && - Utils.enhancedDeepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - debug, version); - } - - @Override - public String toString() { - return Utils.toString(PaymentsServerInfo.class, - "debug", debug, - "version", version); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional debug = Optional.empty(); - - private Optional version = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder debug(boolean debug) { - Utils.checkNotNull(debug, "debug"); - this.debug = Optional.ofNullable(debug); - return this; - } - - public Builder debug(Optional debug) { - Utils.checkNotNull(debug, "debug"); - this.debug = debug; - return this; - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public PaymentsServerInfo build() { - - return new PaymentsServerInfo( - debug, version); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PolicyResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/PolicyResponse.java deleted file mode 100644 index ffbdc3df3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PolicyResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PolicyResponse - * - *

OK - */ -public class PolicyResponse { - - @JsonProperty("data") - private Policy data; - - @JsonCreator - public PolicyResponse( - @JsonProperty("data") Policy data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Policy data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public PolicyResponse withData(Policy data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyResponse other = (PolicyResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(PolicyResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Policy data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Policy data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PolicyResponse build() { - - return new PolicyResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesLatestResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesLatestResponse.java deleted file mode 100644 index 88b8f8173..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesLatestResponse.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - -/** - * PoolBalancesLatestResponse - * - *

OK - */ -public class PoolBalancesLatestResponse { - - @JsonProperty("data") - private List data; - - @JsonCreator - public PoolBalancesLatestResponse( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public PoolBalancesLatestResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PoolBalancesLatestResponse other = (PoolBalancesLatestResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(PoolBalancesLatestResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PoolBalancesLatestResponse build() { - - return new PoolBalancesLatestResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesResponse.java deleted file mode 100644 index 16c1e022f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolBalancesResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PoolBalancesResponse - * - *

OK - */ -public class PoolBalancesResponse { - - @JsonProperty("data") - private PoolBalances data; - - @JsonCreator - public PoolBalancesResponse( - @JsonProperty("data") PoolBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public PoolBalances data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public PoolBalancesResponse withData(PoolBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PoolBalancesResponse other = (PoolBalancesResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(PoolBalancesResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private PoolBalances data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(PoolBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PoolBalancesResponse build() { - - return new PoolBalancesResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/PoolResponse.java deleted file mode 100644 index 91e6cf219..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PoolResponse - * - *

OK - */ -public class PoolResponse { - - @JsonProperty("data") - private Pool data; - - @JsonCreator - public PoolResponse( - @JsonProperty("data") Pool data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Pool data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public PoolResponse withData(Pool data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PoolResponse other = (PoolResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(PoolResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Pool data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Pool data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PoolResponse build() { - - return new PoolResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolsCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/PoolsCursor.java deleted file mode 100644 index ad472fcbb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolsCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * PoolsCursor - * - *

OK - */ -public class PoolsCursor { - - @JsonProperty("cursor") - private PoolsCursorCursor cursor; - - @JsonCreator - public PoolsCursor( - @JsonProperty("cursor") PoolsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public PoolsCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public PoolsCursor withCursor(PoolsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PoolsCursor other = (PoolsCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(PoolsCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private PoolsCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(PoolsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public PoolsCursor build() { - - return new PoolsCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PoolsCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/PoolsCursorCursor.java deleted file mode 100644 index dbb74ea09..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PoolsCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class PoolsCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public PoolsCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public PoolsCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public PoolsCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public PoolsCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public PoolsCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public PoolsCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public PoolsCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public PoolsCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public PoolsCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PoolsCursorCursor other = (PoolsCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(PoolsCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public PoolsCursorCursor build() { - - return new PoolsCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/PostTransaction.java deleted file mode 100644 index 802a890a3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PostTransaction.java +++ /dev/null @@ -1,294 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class PostTransaction { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postings") - private Optional> postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("script") - private Optional script; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public PostTransaction( - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("postings") Optional> postings, - @JsonProperty("reference") Optional reference, - @JsonProperty("script") Optional script, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(script, "script"); - Utils.checkNotNull(timestamp, "timestamp"); - this.metadata = metadata; - this.postings = postings; - this.reference = reference; - this.script = script; - this.timestamp = timestamp; - } - - public PostTransaction() { - this(JsonNullable.undefined(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> postings() { - return (Optional>) postings; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional script() { - return (Optional) script; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public PostTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public PostTransaction withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public PostTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - - public PostTransaction withPostings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public PostTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public PostTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public PostTransaction withScript(PostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - - public PostTransaction withScript(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - public PostTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public PostTransaction withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PostTransaction other = (PostTransaction) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.script, other.script) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, postings, reference, - script, timestamp); - } - - @Override - public String toString() { - return Utils.toString(PostTransaction.class, - "metadata", metadata, - "postings", postings, - "reference", reference, - "script", script, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private JsonNullable> metadata = JsonNullable.undefined(); - - private Optional> postings = Optional.empty(); - - private Optional reference = Optional.empty(); - - private Optional script = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - public Builder postings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder script(PostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - public Builder script(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public PostTransaction build() { - - return new PostTransaction( - metadata, postings, reference, - script, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/shared/PostTransactionScript.java deleted file mode 100644 index fed743b7f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/PostTransactionScript.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class PostTransactionScript { - - @JsonProperty("plain") - private String plain; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - @JsonCreator - public PostTransactionScript( - @JsonProperty("plain") String plain, - @JsonProperty("vars") Optional> vars) { - Utils.checkNotNull(plain, "plain"); - Utils.checkNotNull(vars, "vars"); - this.plain = plain; - this.vars = vars; - } - - public PostTransactionScript( - String plain) { - this(plain, Optional.empty()); - } - - @JsonIgnore - public String plain() { - return plain; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - public static Builder builder() { - return new Builder(); - } - - - public PostTransactionScript withPlain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - public PostTransactionScript withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public PostTransactionScript withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PostTransactionScript other = (PostTransactionScript) o; - return - Utils.enhancedDeepEquals(this.plain, other.plain) && - Utils.enhancedDeepEquals(this.vars, other.vars); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - plain, vars); - } - - @Override - public String toString() { - return Utils.toString(PostTransactionScript.class, - "plain", plain, - "vars", vars); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String plain; - - private Optional> vars = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder plain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public PostTransactionScript build() { - - return new PostTransactionScript( - plain, vars); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Posting.java b/src/main/java/com/formance/formance_sdk/models/shared/Posting.java deleted file mode 100644 index 5cc4f8c17..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Posting.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; - - -public class Posting { - - @JsonProperty("amount") - private BigInteger amount; - - - @JsonProperty("asset") - private String asset; - - - @JsonProperty("destination") - private String destination; - - - @JsonProperty("source") - private String source; - - @JsonCreator - public Posting( - @JsonProperty("amount") BigInteger amount, - @JsonProperty("asset") String asset, - @JsonProperty("destination") String destination, - @JsonProperty("source") String source) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(source, "source"); - this.amount = amount; - this.asset = asset; - this.destination = destination; - this.source = source; - } - - @JsonIgnore - public BigInteger amount() { - return amount; - } - - @JsonIgnore - public String asset() { - return asset; - } - - @JsonIgnore - public String destination() { - return destination; - } - - @JsonIgnore - public String source() { - return source; - } - - public static Builder builder() { - return new Builder(); - } - - - public Posting withAmount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Posting withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public Posting withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public Posting withDestination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - public Posting withSource(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Posting other = (Posting) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.source, other.source); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, destination, - source); - } - - @Override - public String toString() { - return Utils.toString(Posting.class, - "amount", amount, - "asset", asset, - "destination", destination, - "source", source); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger amount; - - private String asset; - - private String destination; - - private String source; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder destination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - public Builder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public Posting build() { - - return new Posting( - amount, asset, destination, - source); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/QueryRaw.java b/src/main/java/com/formance/formance_sdk/models/shared/QueryRaw.java deleted file mode 100644 index 1ffc8d5de..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/QueryRaw.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class QueryRaw { - @JsonCreator - public QueryRaw() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(QueryRaw.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public QueryRaw build() { - - return new QueryRaw( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReadClientResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ReadClientResponse.java deleted file mode 100644 index a1b31c941..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReadClientResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class ReadClientResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public ReadClientResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public ReadClientResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ReadClientResponse withData(Client data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public ReadClientResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadClientResponse other = (ReadClientResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ReadClientResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Client data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ReadClientResponse build() { - - return new ReadClientResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReadTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ReadTriggerResponse.java deleted file mode 100644 index a1e2b5eb1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReadTriggerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ReadTriggerResponse { - - @JsonProperty("data") - private Trigger data; - - @JsonCreator - public ReadTriggerResponse( - @JsonProperty("data") Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Trigger data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ReadTriggerResponse withData(Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadTriggerResponse other = (ReadTriggerResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ReadTriggerResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Trigger data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ReadTriggerResponse build() { - - return new ReadTriggerResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReadUserResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ReadUserResponse.java deleted file mode 100644 index 88a1c7a4e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReadUserResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class ReadUserResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public ReadUserResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public ReadUserResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ReadUserResponse withData(User data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public ReadUserResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReadUserResponse other = (ReadUserResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ReadUserResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(User data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ReadUserResponse build() { - - return new ReadUserResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationResponse.java deleted file mode 100644 index 49363efc3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ReconciliationResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * ReconciliationResponse - * - *

OK - */ -public class ReconciliationResponse { - - @JsonProperty("data") - private Reconciliation data; - - @JsonCreator - public ReconciliationResponse( - @JsonProperty("data") Reconciliation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Reconciliation data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public ReconciliationResponse withData(Reconciliation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ReconciliationResponse other = (ReconciliationResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(ReconciliationResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Reconciliation data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Reconciliation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ReconciliationResponse build() { - - return new ReconciliationResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/ResponseCursor.java deleted file mode 100644 index 216af59a8..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ResponseCursor.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class ResponseCursor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional>> data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasMore") - private Optional hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("pageSize") - private Optional pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("total") - private Optional total; - - @JsonCreator - public ResponseCursor( - @JsonProperty("data") Optional>> data, - @JsonProperty("hasMore") Optional hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") Optional pageSize, - @JsonProperty("previous") Optional previous, - @JsonProperty("total") Optional total) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - Utils.checkNotNull(total, "total"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - this.total = total; - } - - public ResponseCursor() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> data() { - return (Optional>>) data; - } - - @JsonIgnore - public Optional hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public Optional pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional total() { - return (Optional) total; - } - - public static Builder builder() { - return new Builder(); - } - - - public ResponseCursor withData(List> data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public ResponseCursor withData(Optional>> data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public ResponseCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - - public ResponseCursor withHasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public ResponseCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public ResponseCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public ResponseCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = Optional.ofNullable(pageSize); - return this; - } - - - public ResponseCursor withPageSize(Optional pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public ResponseCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public ResponseCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public ResponseCursor withTotal(Total total) { - Utils.checkNotNull(total, "total"); - this.total = Optional.ofNullable(total); - return this; - } - - - public ResponseCursor withTotal(Optional total) { - Utils.checkNotNull(total, "total"); - this.total = total; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ResponseCursor other = (ResponseCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous) && - Utils.enhancedDeepEquals(this.total, other.total); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous, total); - } - - @Override - public String toString() { - return Utils.toString(ResponseCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous, - "total", total); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional>> data = Optional.empty(); - - private Optional hasMore = Optional.empty(); - - private Optional next = Optional.empty(); - - private Optional pageSize = Optional.empty(); - - private Optional previous = Optional.empty(); - - private Optional total = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List> data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional>> data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - public Builder hasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = Optional.ofNullable(pageSize); - return this; - } - - public Builder pageSize(Optional pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - - public Builder total(Total total) { - Utils.checkNotNull(total, "total"); - this.total = Optional.ofNullable(total); - return this; - } - - public Builder total(Optional total) { - Utils.checkNotNull(total, "total"); - this.total = total; - return this; - } - - public ResponseCursor build() { - - return new ResponseCursor( - data, hasMore, next, - pageSize, previous, total); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/RevertTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/RevertTransactionResponse.java deleted file mode 100644 index 9c4914227..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/RevertTransactionResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class RevertTransactionResponse { - - @JsonProperty("data") - private OrchestrationTransaction data; - - @JsonCreator - public RevertTransactionResponse( - @JsonProperty("data") OrchestrationTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public OrchestrationTransaction data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public RevertTransactionResponse withData(OrchestrationTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RevertTransactionResponse other = (RevertTransactionResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(RevertTransactionResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OrchestrationTransaction data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public RevertTransactionResponse build() { - - return new RevertTransactionResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/RunWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/RunWorkflowResponse.java deleted file mode 100644 index 323b61e93..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/RunWorkflowResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class RunWorkflowResponse { - - @JsonProperty("data") - private WorkflowInstance data; - - @JsonCreator - public RunWorkflowResponse( - @JsonProperty("data") WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public WorkflowInstance data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public RunWorkflowResponse withData(WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RunWorkflowResponse other = (RunWorkflowResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(RunWorkflowResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WorkflowInstance data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public RunWorkflowResponse build() { - - return new RunWorkflowResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Secret.java b/src/main/java/com/formance/formance_sdk/models/shared/Secret.java deleted file mode 100644 index 2ae9f7425..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Secret.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Secret { - - @JsonProperty("clear") - private String clear; - - - @JsonProperty("id") - private String id; - - - @JsonProperty("lastDigits") - private String lastDigits; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public Secret( - @JsonProperty("clear") String clear, - @JsonProperty("id") String id, - @JsonProperty("lastDigits") String lastDigits, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(clear, "clear"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(lastDigits, "lastDigits"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.clear = clear; - this.id = id; - this.lastDigits = lastDigits; - this.metadata = metadata; - this.name = name; - } - - public Secret( - String clear, - String id, - String lastDigits, - String name) { - this(clear, id, lastDigits, - JsonNullable.undefined(), name); - } - - @JsonIgnore - public String clear() { - return clear; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public String lastDigits() { - return lastDigits; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public Secret withClear(String clear) { - Utils.checkNotNull(clear, "clear"); - this.clear = clear; - return this; - } - - public Secret withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Secret withLastDigits(String lastDigits) { - Utils.checkNotNull(lastDigits, "lastDigits"); - this.lastDigits = lastDigits; - return this; - } - - public Secret withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Secret withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Secret withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Secret other = (Secret) o; - return - Utils.enhancedDeepEquals(this.clear, other.clear) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.lastDigits, other.lastDigits) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - clear, id, lastDigits, - metadata, name); - } - - @Override - public String toString() { - return Utils.toString(Secret.class, - "clear", clear, - "id", id, - "lastDigits", lastDigits, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String clear; - - private String id; - - private String lastDigits; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder clear(String clear) { - Utils.checkNotNull(clear, "clear"); - this.clear = clear; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder lastDigits(String lastDigits) { - Utils.checkNotNull(lastDigits, "lastDigits"); - this.lastDigits = lastDigits; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Secret build() { - - return new Secret( - clear, id, lastDigits, - metadata, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/shared/ServerInfo.java deleted file mode 100644 index 0654e4e26..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/ServerInfo.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class ServerInfo { - - @JsonProperty("version") - private String version; - - @JsonCreator - public ServerInfo( - @JsonProperty("version") String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - } - - @JsonIgnore - public String version() { - return version; - } - - public static Builder builder() { - return new Builder(); - } - - - public ServerInfo withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ServerInfo other = (ServerInfo) o; - return - Utils.enhancedDeepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - version); - } - - @Override - public String toString() { - return Utils.toString(ServerInfo.class, - "version", version); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String version; - - private Builder() { - // force use of static builder() method - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public ServerInfo build() { - - return new ServerInfo( - version); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSend.java b/src/main/java/com/formance/formance_sdk/models/shared/StageSend.java deleted file mode 100644 index e22865e09..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSend.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - - -public class StageSend { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source") - private Optional source; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public StageSend( - @JsonProperty("amount") Optional amount, - @JsonProperty("destination") Optional destination, - @JsonProperty("metadata") Optional> metadata, - @JsonProperty("source") Optional source, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(source, "source"); - Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; - this.destination = destination; - this.metadata = metadata; - this.source = source; - this.timestamp = timestamp; - } - - public StageSend() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional source() { - return (Optional) source; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public StageSend withAmount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - - public StageSend withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public StageSend withDestination(StageSendDestination destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public StageSend withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - public StageSend withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public StageSend withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public StageSend withSource(StageSendSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - - public StageSend withSource(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public StageSend withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public StageSend withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StageSend other = (StageSend) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.source, other.source) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, destination, metadata, - source, timestamp); - } - - @Override - public String toString() { - return Utils.toString(StageSend.class, - "amount", amount, - "destination", destination, - "metadata", metadata, - "source", source, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional destination = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Optional source = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder destination(StageSendDestination destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder source(StageSendSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - public Builder source(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public StageSend build() { - - return new StageSend( - amount, destination, metadata, - source, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestination.java b/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestination.java deleted file mode 100644 index 2909cce28..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestination.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class StageSendDestination { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account") - private Optional account; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment") - private Optional payment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("wallet") - private Optional wallet; - - @JsonCreator - public StageSendDestination( - @JsonProperty("account") Optional account, - @JsonProperty("payment") Optional payment, - @JsonProperty("wallet") Optional wallet) { - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(payment, "payment"); - Utils.checkNotNull(wallet, "wallet"); - this.account = account; - this.payment = payment; - this.wallet = wallet; - } - - public StageSendDestination() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional account() { - return (Optional) account; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional payment() { - return (Optional) payment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional wallet() { - return (Optional) wallet; - } - - public static Builder builder() { - return new Builder(); - } - - - public StageSendDestination withAccount(StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - - public StageSendDestination withAccount(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public StageSendDestination withPayment(StageSendDestinationPayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - - public StageSendDestination withPayment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - public StageSendDestination withWallet(StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - - public StageSendDestination withWallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StageSendDestination other = (StageSendDestination) o; - return - Utils.enhancedDeepEquals(this.account, other.account) && - Utils.enhancedDeepEquals(this.payment, other.payment) && - Utils.enhancedDeepEquals(this.wallet, other.wallet); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account, payment, wallet); - } - - @Override - public String toString() { - return Utils.toString(StageSendDestination.class, - "account", account, - "payment", payment, - "wallet", wallet); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional account = Optional.empty(); - - private Optional payment = Optional.empty(); - - private Optional wallet = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder account(StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - - public Builder payment(StageSendDestinationPayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - public Builder payment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - - public Builder wallet(StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - public Builder wallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - public StageSendDestination build() { - - return new StageSendDestination( - account, payment, wallet); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationAccount.java b/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationAccount.java deleted file mode 100644 index 0e5d2acf6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationAccount.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class StageSendDestinationAccount { - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ledger") - private Optional ledger; - - @JsonCreator - public StageSendDestinationAccount( - @JsonProperty("id") String id, - @JsonProperty("ledger") Optional ledger) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(ledger, "ledger"); - this.id = id; - this.ledger = ledger; - } - - public StageSendDestinationAccount( - String id) { - this(id, Optional.empty()); - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public Optional ledger() { - return ledger; - } - - public static Builder builder() { - return new Builder(); - } - - - public StageSendDestinationAccount withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public StageSendDestinationAccount withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - - public StageSendDestinationAccount withLedger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StageSendDestinationAccount other = (StageSendDestinationAccount) o; - return - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.ledger, other.ledger); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - id, ledger); - } - - @Override - public String toString() { - return Utils.toString(StageSendDestinationAccount.class, - "id", id, - "ledger", ledger); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String id; - - private Optional ledger = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - public Builder ledger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - public StageSendDestinationAccount build() { - - return new StageSendDestinationAccount( - id, ledger); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationWallet.java deleted file mode 100644 index b8f1a574e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSendDestinationWallet.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class StageSendDestinationWallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - - @JsonProperty("id") - private String id; - - @JsonCreator - public StageSendDestinationWallet( - @JsonProperty("balance") Optional balance, - @JsonProperty("id") String id) { - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(id, "id"); - this.balance = balance; - this.id = id; - } - - public StageSendDestinationWallet( - String id) { - this(Optional.empty(), id); - } - - @JsonIgnore - public Optional balance() { - return balance; - } - - @JsonIgnore - public String id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public StageSendDestinationWallet withBalance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - - public StageSendDestinationWallet withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - public StageSendDestinationWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StageSendDestinationWallet other = (StageSendDestinationWallet) o; - return - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balance, id); - } - - @Override - public String toString() { - return Utils.toString(StageSendDestinationWallet.class, - "balance", balance, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional balance = Optional.empty(); - - private String id; - - private Builder() { - // force use of static builder() method - } - - - public Builder balance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public StageSendDestinationWallet build() { - - return new StageSendDestinationWallet( - balance, id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StageSendSource.java b/src/main/java/com/formance/formance_sdk/models/shared/StageSendSource.java deleted file mode 100644 index 4ad4cea78..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/StageSendSource.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class StageSendSource { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account") - private Optional account; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment") - private Optional payment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("wallet") - private Optional wallet; - - @JsonCreator - public StageSendSource( - @JsonProperty("account") Optional account, - @JsonProperty("payment") Optional payment, - @JsonProperty("wallet") Optional wallet) { - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(payment, "payment"); - Utils.checkNotNull(wallet, "wallet"); - this.account = account; - this.payment = payment; - this.wallet = wallet; - } - - public StageSendSource() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional account() { - return (Optional) account; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional payment() { - return (Optional) payment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional wallet() { - return (Optional) wallet; - } - - public static Builder builder() { - return new Builder(); - } - - - public StageSendSource withAccount(StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - - public StageSendSource withAccount(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public StageSendSource withPayment(StageSendSourcePayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - - public StageSendSource withPayment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - public StageSendSource withWallet(StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - - public StageSendSource withWallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StageSendSource other = (StageSendSource) o; - return - Utils.enhancedDeepEquals(this.account, other.account) && - Utils.enhancedDeepEquals(this.payment, other.payment) && - Utils.enhancedDeepEquals(this.wallet, other.wallet); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account, payment, wallet); - } - - @Override - public String toString() { - return Utils.toString(StageSendSource.class, - "account", account, - "payment", payment, - "wallet", wallet); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional account = Optional.empty(); - - private Optional payment = Optional.empty(); - - private Optional wallet = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder account(StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - - public Builder payment(StageSendSourcePayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - public Builder payment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - - public Builder wallet(StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - public Builder wallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - public StageSendSource build() { - - return new StageSendSource( - account, payment, wallet); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/StatsResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/StatsResponse.java deleted file mode 100644 index aeeed4c2e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/StatsResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class StatsResponse { - - @JsonProperty("data") - private Stats data; - - @JsonCreator - public StatsResponse( - @JsonProperty("data") Stats data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Stats data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public StatsResponse withData(Stats data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - StatsResponse other = (StatsResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(StatsResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Stats data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Stats data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public StatsResponse build() { - - return new StatsResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Subject.java b/src/main/java/com/formance/formance_sdk/models/shared/Subject.java deleted file mode 100644 index eacd098ae..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Subject.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonTypeInfo.As; -import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; -import java.lang.String; - -@JsonTypeInfo( - use = Id.CUSTOM, - property = "type", - include = As.EXISTING_PROPERTY, - visible = true, - defaultImpl = UnknownSubject.class -) -@JsonTypeIdResolver(SubjectTypeIdResolver.class) -public interface Subject { - - String type(); - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/SubjectTypeIdResolver.java b/src/main/java/com/formance/formance_sdk/models/shared/SubjectTypeIdResolver.java deleted file mode 100644 index 383cecaa8..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/SubjectTypeIdResolver.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.formance.formance_sdk.utils.GenericTypeIdResolver; -import java.lang.IllegalArgumentException; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; - - -public class SubjectTypeIdResolver extends GenericTypeIdResolver { - - public SubjectTypeIdResolver() { - super(UnknownSubject.class); - initializeTypeMap(); - } - - private void initializeTypeMap() { - registerType("ACCOUNT", LedgerAccountSubject.class); - registerType("WALLET", WalletSubject.class); - } - - @Override - public String idFromValue(Object value) { - if (value == null) { - return null; - } - - // Handle known types by checking if they implement the discriminator method - if (value instanceof Subject) { - Subject discriminated = (Subject) value; - return discriminated.type(); - } - - throw new IllegalArgumentException("Unknown value type: " + value.getClass().getName()); - } - - @Override - public String getDescForKnownTypeIds() { - return "Subject type resolver"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircle.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircle.java deleted file mode 100644 index 96a14e70b..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircle.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskBankingCircle { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskBankingCircleDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskBankingCircle( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskBankingCircleDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskBankingCircle( - String connectorID, - OffsetDateTime createdAt, - TaskBankingCircleDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskBankingCircleDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskBankingCircle withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskBankingCircle withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskBankingCircle withDescriptor(TaskBankingCircleDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskBankingCircle withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskBankingCircle withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskBankingCircle withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskBankingCircle withState(TaskBankingCircleState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskBankingCircle withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskBankingCircle withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskBankingCircle withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskBankingCircle other = (TaskBankingCircle) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskBankingCircle.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskBankingCircleDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskBankingCircleDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskBankingCircleState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskBankingCircle build() { - - return new TaskBankingCircle( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleDescriptor.java deleted file mode 100644 index 395ced544..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleDescriptor.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskBankingCircleDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonCreator - public TaskBankingCircleDescriptor( - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - this.key = key; - this.name = name; - } - - public TaskBankingCircleDescriptor() { - this(Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional key() { - return key; - } - - @JsonIgnore - public Optional name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskBankingCircleDescriptor withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public TaskBankingCircleDescriptor withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TaskBankingCircleDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskBankingCircleDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskBankingCircleDescriptor other = (TaskBankingCircleDescriptor) o; - return - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - key, name); - } - - @Override - public String toString() { - return Utils.toString(TaskBankingCircleDescriptor.class, - "key", key, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskBankingCircleDescriptor build() { - - return new TaskBankingCircleDescriptor( - key, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleState.java deleted file mode 100644 index c1583b722..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskBankingCircleState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskBankingCircleState { - @JsonCreator - public TaskBankingCircleState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskBankingCircleState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskBankingCircleState build() { - - return new TaskBankingCircleState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloud.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloud.java deleted file mode 100644 index 0e649ad55..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloud.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskCurrencyCloud { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskCurrencyCloudDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskCurrencyCloud( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskCurrencyCloudDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskCurrencyCloud( - String connectorID, - OffsetDateTime createdAt, - TaskCurrencyCloudDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskCurrencyCloudDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskCurrencyCloud withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskCurrencyCloud withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskCurrencyCloud withDescriptor(TaskCurrencyCloudDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskCurrencyCloud withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskCurrencyCloud withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskCurrencyCloud withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskCurrencyCloud withState(TaskCurrencyCloudState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskCurrencyCloud withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskCurrencyCloud withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskCurrencyCloud withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskCurrencyCloud other = (TaskCurrencyCloud) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskCurrencyCloud.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskCurrencyCloudDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskCurrencyCloudDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskCurrencyCloudState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskCurrencyCloud build() { - - return new TaskCurrencyCloud( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudDescriptor.java deleted file mode 100644 index a65ed9abd..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudDescriptor.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskCurrencyCloudDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonCreator - public TaskCurrencyCloudDescriptor( - @JsonProperty("name") Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - } - - public TaskCurrencyCloudDescriptor() { - this(Optional.empty()); - } - - @JsonIgnore - public Optional name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskCurrencyCloudDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskCurrencyCloudDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskCurrencyCloudDescriptor other = (TaskCurrencyCloudDescriptor) o; - return - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - name); - } - - @Override - public String toString() { - return Utils.toString(TaskCurrencyCloudDescriptor.class, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional name = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskCurrencyCloudDescriptor build() { - - return new TaskCurrencyCloudDescriptor( - name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudState.java deleted file mode 100644 index 5b690f7b1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskCurrencyCloudState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskCurrencyCloudState { - @JsonCreator - public TaskCurrencyCloudState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskCurrencyCloudState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskCurrencyCloudState build() { - - return new TaskCurrencyCloudState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPay.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPay.java deleted file mode 100644 index 50f8206b1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPay.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskDummyPay { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskDummyPayDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskDummyPay( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskDummyPayDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskDummyPay( - String connectorID, - OffsetDateTime createdAt, - TaskDummyPayDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskDummyPayDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskDummyPay withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskDummyPay withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskDummyPay withDescriptor(TaskDummyPayDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskDummyPay withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskDummyPay withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskDummyPay withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskDummyPay withState(TaskDummyPayState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskDummyPay withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskDummyPay withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskDummyPay withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskDummyPay other = (TaskDummyPay) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskDummyPay.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskDummyPayDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskDummyPayDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskDummyPayState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskDummyPay build() { - - return new TaskDummyPay( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayDescriptor.java deleted file mode 100644 index cdbfb230c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayDescriptor.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskDummyPayDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("fileName") - private Optional fileName; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonCreator - public TaskDummyPayDescriptor( - @JsonProperty("fileName") Optional fileName, - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name) { - Utils.checkNotNull(fileName, "fileName"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - this.fileName = fileName; - this.key = key; - this.name = name; - } - - public TaskDummyPayDescriptor() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional fileName() { - return fileName; - } - - @JsonIgnore - public Optional key() { - return key; - } - - @JsonIgnore - public Optional name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskDummyPayDescriptor withFileName(String fileName) { - Utils.checkNotNull(fileName, "fileName"); - this.fileName = Optional.ofNullable(fileName); - return this; - } - - - public TaskDummyPayDescriptor withFileName(Optional fileName) { - Utils.checkNotNull(fileName, "fileName"); - this.fileName = fileName; - return this; - } - - public TaskDummyPayDescriptor withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public TaskDummyPayDescriptor withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TaskDummyPayDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskDummyPayDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskDummyPayDescriptor other = (TaskDummyPayDescriptor) o; - return - Utils.enhancedDeepEquals(this.fileName, other.fileName) && - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - fileName, key, name); - } - - @Override - public String toString() { - return Utils.toString(TaskDummyPayDescriptor.class, - "fileName", fileName, - "key", key, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional fileName = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder fileName(String fileName) { - Utils.checkNotNull(fileName, "fileName"); - this.fileName = Optional.ofNullable(fileName); - return this; - } - - public Builder fileName(Optional fileName) { - Utils.checkNotNull(fileName, "fileName"); - this.fileName = fileName; - return this; - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskDummyPayDescriptor build() { - - return new TaskDummyPayDescriptor( - fileName, key, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayState.java deleted file mode 100644 index 8b4431d57..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskDummyPayState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskDummyPayState { - @JsonCreator - public TaskDummyPayState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskDummyPayState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskDummyPayState build() { - - return new TaskDummyPayState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPay.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPay.java deleted file mode 100644 index 0f8c4bce3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPay.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskMangoPay { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskMangoPayDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskMangoPay( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskMangoPayDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskMangoPay( - String connectorID, - OffsetDateTime createdAt, - TaskMangoPayDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskMangoPayDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskMangoPay withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskMangoPay withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskMangoPay withDescriptor(TaskMangoPayDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskMangoPay withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskMangoPay withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskMangoPay withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskMangoPay withState(TaskMangoPayState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskMangoPay withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskMangoPay withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskMangoPay withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskMangoPay other = (TaskMangoPay) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskMangoPay.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskMangoPayDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskMangoPayDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskMangoPayState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskMangoPay build() { - - return new TaskMangoPay( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayDescriptor.java deleted file mode 100644 index 97915d895..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayDescriptor.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskMangoPayDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("userID") - private Optional userID; - - @JsonCreator - public TaskMangoPayDescriptor( - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name, - @JsonProperty("userID") Optional userID) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(userID, "userID"); - this.key = key; - this.name = name; - this.userID = userID; - } - - public TaskMangoPayDescriptor() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional key() { - return key; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional userID() { - return userID; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskMangoPayDescriptor withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public TaskMangoPayDescriptor withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TaskMangoPayDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskMangoPayDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskMangoPayDescriptor withUserID(String userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = Optional.ofNullable(userID); - return this; - } - - - public TaskMangoPayDescriptor withUserID(Optional userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = userID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskMangoPayDescriptor other = (TaskMangoPayDescriptor) o; - return - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.userID, other.userID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - key, name, userID); - } - - @Override - public String toString() { - return Utils.toString(TaskMangoPayDescriptor.class, - "key", key, - "name", name, - "userID", userID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional userID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder userID(String userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = Optional.ofNullable(userID); - return this; - } - - public Builder userID(Optional userID) { - Utils.checkNotNull(userID, "userID"); - this.userID = userID; - return this; - } - - public TaskMangoPayDescriptor build() { - - return new TaskMangoPayDescriptor( - key, name, userID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayState.java deleted file mode 100644 index 083902330..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskMangoPayState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskMangoPayState { - @JsonCreator - public TaskMangoPayState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskMangoPayState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskMangoPayState build() { - - return new TaskMangoPayState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskModulr.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskModulr.java deleted file mode 100644 index 41b675e48..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskModulr.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskModulr { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskModulrDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskModulr( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskModulrDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskModulr( - String connectorID, - OffsetDateTime createdAt, - TaskModulrDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskModulrDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskModulr withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskModulr withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskModulr withDescriptor(TaskModulrDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskModulr withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskModulr withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskModulr withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskModulr withState(TaskModulrState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskModulr withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskModulr withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskModulr withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskModulr other = (TaskModulr) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskModulr.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskModulrDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskModulrDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskModulrState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskModulr build() { - - return new TaskModulr( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskModulrDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskModulrDescriptor.java deleted file mode 100644 index 292f2d42f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskModulrDescriptor.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskModulrDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountID") - private Optional accountID; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonCreator - public TaskModulrDescriptor( - @JsonProperty("accountID") Optional accountID, - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name) { - Utils.checkNotNull(accountID, "accountID"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - this.accountID = accountID; - this.key = key; - this.name = name; - } - - public TaskModulrDescriptor() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional accountID() { - return accountID; - } - - @JsonIgnore - public Optional key() { - return key; - } - - @JsonIgnore - public Optional name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskModulrDescriptor withAccountID(String accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - - public TaskModulrDescriptor withAccountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public TaskModulrDescriptor withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public TaskModulrDescriptor withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TaskModulrDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskModulrDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskModulrDescriptor other = (TaskModulrDescriptor) o; - return - Utils.enhancedDeepEquals(this.accountID, other.accountID) && - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountID, key, name); - } - - @Override - public String toString() { - return Utils.toString(TaskModulrDescriptor.class, - "accountID", accountID, - "key", key, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional accountID = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder accountID(String accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public Builder accountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskModulrDescriptor build() { - - return new TaskModulrDescriptor( - accountID, key, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskModulrState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskModulrState.java deleted file mode 100644 index 8d819d029..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskModulrState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskModulrState { - @JsonCreator - public TaskModulrState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskModulrState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskModulrState build() { - - return new TaskModulrState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorp.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorp.java deleted file mode 100644 index cf7f51140..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorp.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskMoneycorp { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskMoneycorpDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskMoneycorp( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskMoneycorpDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskMoneycorp( - String connectorID, - OffsetDateTime createdAt, - TaskMoneycorpDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskMoneycorpDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskMoneycorp withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskMoneycorp withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskMoneycorp withDescriptor(TaskMoneycorpDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskMoneycorp withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskMoneycorp withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskMoneycorp withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskMoneycorp withState(TaskMoneycorpState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskMoneycorp withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskMoneycorp withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskMoneycorp withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskMoneycorp other = (TaskMoneycorp) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskMoneycorp.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskMoneycorpDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskMoneycorpDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskMoneycorpState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskMoneycorp build() { - - return new TaskMoneycorp( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpDescriptor.java deleted file mode 100644 index 83c903e64..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpDescriptor.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskMoneycorpDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountID") - private Optional accountID; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - @JsonCreator - public TaskMoneycorpDescriptor( - @JsonProperty("accountID") Optional accountID, - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name) { - Utils.checkNotNull(accountID, "accountID"); - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - this.accountID = accountID; - this.key = key; - this.name = name; - } - - public TaskMoneycorpDescriptor() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional accountID() { - return accountID; - } - - @JsonIgnore - public Optional key() { - return key; - } - - @JsonIgnore - public Optional name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskMoneycorpDescriptor withAccountID(String accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - - public TaskMoneycorpDescriptor withAccountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - public TaskMoneycorpDescriptor withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public TaskMoneycorpDescriptor withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TaskMoneycorpDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskMoneycorpDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskMoneycorpDescriptor other = (TaskMoneycorpDescriptor) o; - return - Utils.enhancedDeepEquals(this.accountID, other.accountID) && - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountID, key, name); - } - - @Override - public String toString() { - return Utils.toString(TaskMoneycorpDescriptor.class, - "accountID", accountID, - "key", key, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional accountID = Optional.empty(); - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder accountID(String accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = Optional.ofNullable(accountID); - return this; - } - - public Builder accountID(Optional accountID) { - Utils.checkNotNull(accountID, "accountID"); - this.accountID = accountID; - return this; - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskMoneycorpDescriptor build() { - - return new TaskMoneycorpDescriptor( - accountID, key, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpState.java deleted file mode 100644 index d6cb4adf9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskMoneycorpState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskMoneycorpState { - @JsonCreator - public TaskMoneycorpState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskMoneycorpState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskMoneycorpState build() { - - return new TaskMoneycorpState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskResponseData.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskResponseData.java deleted file mode 100644 index 5edd7192a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskResponseData.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.formance.formance_sdk.utils.OneOfDeserializer; -import com.formance.formance_sdk.utils.TypedObject; -import com.formance.formance_sdk.utils.Utils.JsonShape; -import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; - -@JsonDeserialize(using = TaskResponseData._Deserializer.class) -public class TaskResponseData { - - @JsonValue - private final TypedObject value; - - private TaskResponseData(TypedObject value) { - this.value = value; - } - - public static TaskResponseData of(TaskStripe value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskWise value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskCurrencyCloud value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskDummyPay value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskModulr value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskBankingCircle value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskMangoPay value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TaskResponseData of(TaskMoneycorp value) { - Utils.checkNotNull(value, "value"); - return new TaskResponseData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - /** - * Returns an instance of one of these types: - *

    - *
  • {@code com.formance.formance_sdk.models.shared.TaskStripe}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskWise}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskCurrencyCloud}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskDummyPay}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskModulr}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskBankingCircle}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskMangoPay}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskMoneycorp}
  • - *
- * - *

Use {@code instanceof} to determine what type is returned. For example: - * - *

-     * if (obj.value() instanceof String) {
-     *     String answer = (String) obj.value();
-     *     System.out.println("answer=" + answer);
-     * }
-     * 
- * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskResponseData other = (TaskResponseData) o; - return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return Utils.enhancedHash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer { - - public _Deserializer() { - super(TaskResponseData.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(TaskResponseData.class, - "value", value); - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskStripe.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskStripe.java deleted file mode 100644 index 6ca74d9dd..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskStripe.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskStripe { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskStripeDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskStripe( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskStripeDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskStripe( - String connectorID, - OffsetDateTime createdAt, - TaskStripeDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskStripeDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskStripe withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskStripe withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskStripe withDescriptor(TaskStripeDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskStripe withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskStripe withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskStripe withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskStripe withState(TaskStripeState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskStripe withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskStripe withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskStripe withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskStripe other = (TaskStripe) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskStripe.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskStripeDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskStripeDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskStripeState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskStripe build() { - - return new TaskStripe( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskStripeDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskStripeDescriptor.java deleted file mode 100644 index 675470baf..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskStripeDescriptor.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskStripeDescriptor { - - @JsonProperty("account") - private String account; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("main") - private Optional main; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public TaskStripeDescriptor( - @JsonProperty("account") String account, - @JsonProperty("main") Optional main, - @JsonProperty("name") String name) { - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(main, "main"); - Utils.checkNotNull(name, "name"); - this.account = account; - this.main = main; - this.name = name; - } - - public TaskStripeDescriptor( - String account, - String name) { - this(account, Optional.empty(), name); - } - - @JsonIgnore - public String account() { - return account; - } - - @JsonIgnore - public Optional main() { - return main; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskStripeDescriptor withAccount(String account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public TaskStripeDescriptor withMain(boolean main) { - Utils.checkNotNull(main, "main"); - this.main = Optional.ofNullable(main); - return this; - } - - - public TaskStripeDescriptor withMain(Optional main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - public TaskStripeDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskStripeDescriptor other = (TaskStripeDescriptor) o; - return - Utils.enhancedDeepEquals(this.account, other.account) && - Utils.enhancedDeepEquals(this.main, other.main) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account, main, name); - } - - @Override - public String toString() { - return Utils.toString(TaskStripeDescriptor.class, - "account", account, - "main", main, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String account; - - private Optional main = Optional.empty(); - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder account(String account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - - public Builder main(boolean main) { - Utils.checkNotNull(main, "main"); - this.main = Optional.ofNullable(main); - return this; - } - - public Builder main(Optional main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskStripeDescriptor build() { - - return new TaskStripeDescriptor( - account, main, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskStripeState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskStripeState.java deleted file mode 100644 index fedd7d3fb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskStripeState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskStripeState { - @JsonCreator - public TaskStripeState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskStripeState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskStripeState build() { - - return new TaskStripeState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskWise.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskWise.java deleted file mode 100644 index 61f54e186..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskWise.java +++ /dev/null @@ -1,341 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TaskWise { - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("descriptor") - private TaskWiseDescriptor descriptor; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("state") - private JsonNullable state; - - - @JsonProperty("status") - private TaskStatus status; - - - @JsonProperty("updatedAt") - private OffsetDateTime updatedAt; - - @JsonCreator - public TaskWise( - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("descriptor") TaskWiseDescriptor descriptor, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("state") JsonNullable state, - @JsonProperty("status") TaskStatus status, - @JsonProperty("updatedAt") OffsetDateTime updatedAt) { - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(descriptor, "descriptor"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(state, "state"); - Utils.checkNotNull(status, "status"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.connectorID = connectorID; - this.createdAt = createdAt; - this.descriptor = descriptor; - this.error = error; - this.id = id; - this.state = state; - this.status = status; - this.updatedAt = updatedAt; - } - - public TaskWise( - String connectorID, - OffsetDateTime createdAt, - TaskWiseDescriptor descriptor, - String id, - TaskStatus status, - OffsetDateTime updatedAt) { - this(connectorID, createdAt, descriptor, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status, updatedAt); - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public TaskWiseDescriptor descriptor() { - return descriptor; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable state() { - return (JsonNullable) state; - } - - @JsonIgnore - public TaskStatus status() { - return status; - } - - @JsonIgnore - public OffsetDateTime updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskWise withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public TaskWise withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TaskWise withDescriptor(TaskWiseDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - public TaskWise withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TaskWise withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TaskWise withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public TaskWise withState(TaskWiseState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public TaskWise withState(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - public TaskWise withStatus(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TaskWise withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskWise other = (TaskWise) o; - return - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.descriptor, other.descriptor) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.state, other.state) && - Utils.enhancedDeepEquals(this.status, other.status) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(TaskWise.class, - "connectorID", connectorID, - "createdAt", createdAt, - "descriptor", descriptor, - "error", error, - "id", id, - "state", state, - "status", status, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectorID; - - private OffsetDateTime createdAt; - - private TaskWiseDescriptor descriptor; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable state = JsonNullable.undefined(); - - private TaskStatus status; - - private OffsetDateTime updatedAt; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder descriptor(TaskWiseDescriptor descriptor) { - Utils.checkNotNull(descriptor, "descriptor"); - this.descriptor = descriptor; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder state(TaskWiseState state) { - Utils.checkNotNull(state, "state"); - this.state = JsonNullable.of(state); - return this; - } - - public Builder state(JsonNullable state) { - Utils.checkNotNull(state, "state"); - this.state = state; - return this; - } - - - public Builder status(TaskStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public TaskWise build() { - - return new TaskWise( - connectorID, createdAt, descriptor, - error, id, state, - status, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskWiseDescriptor.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskWiseDescriptor.java deleted file mode 100644 index 4c7a91f6b..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskWiseDescriptor.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class TaskWiseDescriptor { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("key") - private Optional key; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("profileID") - private Optional profileID; - - @JsonCreator - public TaskWiseDescriptor( - @JsonProperty("key") Optional key, - @JsonProperty("name") Optional name, - @JsonProperty("profileID") Optional profileID) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(profileID, "profileID"); - this.key = key; - this.name = name; - this.profileID = profileID; - } - - public TaskWiseDescriptor() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional key() { - return key; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public Optional profileID() { - return profileID; - } - - public static Builder builder() { - return new Builder(); - } - - - public TaskWiseDescriptor withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - - public TaskWiseDescriptor withKey(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public TaskWiseDescriptor withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TaskWiseDescriptor withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TaskWiseDescriptor withProfileID(long profileID) { - Utils.checkNotNull(profileID, "profileID"); - this.profileID = Optional.ofNullable(profileID); - return this; - } - - - public TaskWiseDescriptor withProfileID(Optional profileID) { - Utils.checkNotNull(profileID, "profileID"); - this.profileID = profileID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TaskWiseDescriptor other = (TaskWiseDescriptor) o; - return - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.profileID, other.profileID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - key, name, profileID); - } - - @Override - public String toString() { - return Utils.toString(TaskWiseDescriptor.class, - "key", key, - "name", name, - "profileID", profileID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional key = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional profileID = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = Optional.ofNullable(key); - return this; - } - - public Builder key(Optional key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder profileID(long profileID) { - Utils.checkNotNull(profileID, "profileID"); - this.profileID = Optional.ofNullable(profileID); - return this; - } - - public Builder profileID(Optional profileID) { - Utils.checkNotNull(profileID, "profileID"); - this.profileID = profileID; - return this; - } - - public TaskWiseDescriptor build() { - - return new TaskWiseDescriptor( - key, name, profileID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TaskWiseState.java b/src/main/java/com/formance/formance_sdk/models/shared/TaskWiseState.java deleted file mode 100644 index d847f2e18..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TaskWiseState.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TaskWiseState { - @JsonCreator - public TaskWiseState() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(TaskWiseState.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public TaskWiseState build() { - - return new TaskWiseState( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TasksCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/TasksCursor.java deleted file mode 100644 index 760f28b8f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TasksCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * TasksCursor - * - *

OK - */ -public class TasksCursor { - - @JsonProperty("cursor") - private TasksCursorCursor cursor; - - @JsonCreator - public TasksCursor( - @JsonProperty("cursor") TasksCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public TasksCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public TasksCursor withCursor(TasksCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TasksCursor other = (TasksCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(TasksCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private TasksCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(TasksCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public TasksCursor build() { - - return new TasksCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TasksCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/TasksCursorCursor.java deleted file mode 100644 index 4983392f9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TasksCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class TasksCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public TasksCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public TasksCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public TasksCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public TasksCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public TasksCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public TasksCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public TasksCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public TasksCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public TasksCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TasksCursorCursor other = (TasksCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(TasksCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public TasksCursorCursor build() { - - return new TasksCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TasksCursorData.java b/src/main/java/com/formance/formance_sdk/models/shared/TasksCursorData.java deleted file mode 100644 index 9d72e1b31..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TasksCursorData.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.formance.formance_sdk.utils.OneOfDeserializer; -import com.formance.formance_sdk.utils.TypedObject; -import com.formance.formance_sdk.utils.Utils.JsonShape; -import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; - -@JsonDeserialize(using = TasksCursorData._Deserializer.class) -public class TasksCursorData { - - @JsonValue - private final TypedObject value; - - private TasksCursorData(TypedObject value) { - this.value = value; - } - - public static TasksCursorData of(TaskStripe value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskWise value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskCurrencyCloud value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskDummyPay value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskModulr value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskBankingCircle value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskMangoPay value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static TasksCursorData of(TaskMoneycorp value) { - Utils.checkNotNull(value, "value"); - return new TasksCursorData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - /** - * Returns an instance of one of these types: - *

    - *
  • {@code com.formance.formance_sdk.models.shared.TaskStripe}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskWise}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskCurrencyCloud}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskDummyPay}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskModulr}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskBankingCircle}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskMangoPay}
  • - *
  • {@code com.formance.formance_sdk.models.shared.TaskMoneycorp}
  • - *
- * - *

Use {@code instanceof} to determine what type is returned. For example: - * - *

-     * if (obj.value() instanceof String) {
-     *     String answer = (String) obj.value();
-     *     System.out.println("answer=" + answer);
-     * }
-     * 
- * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TasksCursorData other = (TasksCursorData) o; - return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return Utils.enhancedHash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer { - - public _Deserializer() { - super(TasksCursorData.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(TasksCursorData.class, - "value", value); - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Transaction.java b/src/main/java/com/formance/formance_sdk/models/shared/Transaction.java deleted file mode 100644 index 39c8c2f59..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Transaction.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class Transaction { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postCommitVolumes") - private Optional>> postCommitVolumes; - - - @JsonProperty("postings") - private List postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("preCommitVolumes") - private Optional>> preCommitVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - - @JsonProperty("txid") - private BigInteger txid; - - @JsonCreator - public Transaction( - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("postCommitVolumes") Optional>> postCommitVolumes, - @JsonProperty("postings") List postings, - @JsonProperty("preCommitVolumes") Optional>> preCommitVolumes, - @JsonProperty("reference") Optional reference, - @JsonProperty("timestamp") OffsetDateTime timestamp, - @JsonProperty("txid") BigInteger txid) { - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(timestamp, "timestamp"); - Utils.checkNotNull(txid, "txid"); - this.metadata = metadata; - this.postCommitVolumes = postCommitVolumes; - this.postings = postings; - this.preCommitVolumes = preCommitVolumes; - this.reference = reference; - this.timestamp = timestamp; - this.txid = txid; - } - - public Transaction( - List postings, - OffsetDateTime timestamp, - BigInteger txid) { - this(JsonNullable.undefined(), Optional.empty(), postings, - Optional.empty(), Optional.empty(), timestamp, - txid); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> postCommitVolumes() { - return (Optional>>) postCommitVolumes; - } - - @JsonIgnore - public List postings() { - return postings; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> preCommitVolumes() { - return (Optional>>) preCommitVolumes; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @JsonIgnore - public OffsetDateTime timestamp() { - return timestamp; - } - - @JsonIgnore - public BigInteger txid() { - return txid; - } - - public static Builder builder() { - return new Builder(); - } - - - public Transaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Transaction withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Transaction withPostCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - - public Transaction withPostCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - public Transaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public Transaction withPreCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - - public Transaction withPreCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - public Transaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public Transaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public Transaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public Transaction withTxid(long txid) { - this.txid = BigInteger.valueOf(txid); - return this; - } - - public Transaction withTxid(BigInteger txid) { - Utils.checkNotNull(txid, "txid"); - this.txid = txid; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Transaction other = (Transaction) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postCommitVolumes, other.postCommitVolumes) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.preCommitVolumes, other.preCommitVolumes) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && - Utils.enhancedDeepEquals(this.txid, other.txid); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, postCommitVolumes, postings, - preCommitVolumes, reference, timestamp, - txid); - } - - @Override - public String toString() { - return Utils.toString(Transaction.class, - "metadata", metadata, - "postCommitVolumes", postCommitVolumes, - "postings", postings, - "preCommitVolumes", preCommitVolumes, - "reference", reference, - "timestamp", timestamp, - "txid", txid); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private JsonNullable> metadata = JsonNullable.undefined(); - - private Optional>> postCommitVolumes = Optional.empty(); - - private List postings; - - private Optional>> preCommitVolumes = Optional.empty(); - - private Optional reference = Optional.empty(); - - private OffsetDateTime timestamp; - - private BigInteger txid; - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - public Builder postCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder preCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - public Builder preCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - - public Builder txid(long txid) { - this.txid = BigInteger.valueOf(txid); - return this; - } - - public Builder txid(BigInteger txid) { - Utils.checkNotNull(txid, "txid"); - this.txid = txid; - return this; - } - - public Transaction build() { - - return new Transaction( - metadata, postCommitVolumes, postings, - preCommitVolumes, reference, timestamp, - txid); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/TransactionResponse.java deleted file mode 100644 index 98581c3b6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransactionResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class TransactionResponse { - - @JsonProperty("data") - private Transaction data; - - @JsonCreator - public TransactionResponse( - @JsonProperty("data") Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Transaction data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public TransactionResponse withData(Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransactionResponse other = (TransactionResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(TransactionResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Transaction data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public TransactionResponse build() { - - return new TransactionResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationPayments.java b/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationPayments.java deleted file mode 100644 index fa9c82d43..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationPayments.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class TransferInitiationPayments { - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("paymentID") - private String paymentID; - - - @JsonProperty("status") - private LegacyPaymentStatus status; - - @JsonCreator - public TransferInitiationPayments( - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("error") JsonNullable error, - @JsonProperty("paymentID") String paymentID, - @JsonProperty("status") LegacyPaymentStatus status) { - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(paymentID, "paymentID"); - Utils.checkNotNull(status, "status"); - this.createdAt = createdAt; - this.error = error; - this.paymentID = paymentID; - this.status = status; - } - - public TransferInitiationPayments( - OffsetDateTime createdAt, - String paymentID, - LegacyPaymentStatus status) { - this(createdAt, JsonNullable.undefined(), paymentID, - status); - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String paymentID() { - return paymentID; - } - - @JsonIgnore - public LegacyPaymentStatus status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public TransferInitiationPayments withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public TransferInitiationPayments withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public TransferInitiationPayments withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public TransferInitiationPayments withPaymentID(String paymentID) { - Utils.checkNotNull(paymentID, "paymentID"); - this.paymentID = paymentID; - return this; - } - - public TransferInitiationPayments withStatus(LegacyPaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransferInitiationPayments other = (TransferInitiationPayments) o; - return - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.paymentID, other.paymentID) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createdAt, error, paymentID, - status); - } - - @Override - public String toString() { - return Utils.toString(TransferInitiationPayments.class, - "createdAt", createdAt, - "error", error, - "paymentID", paymentID, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OffsetDateTime createdAt; - - private JsonNullable error = JsonNullable.undefined(); - - private String paymentID; - - private LegacyPaymentStatus status; - - private Builder() { - // force use of static builder() method - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder paymentID(String paymentID) { - Utils.checkNotNull(paymentID, "paymentID"); - this.paymentID = paymentID; - return this; - } - - - public Builder status(LegacyPaymentStatus status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public TransferInitiationPayments build() { - - return new TransferInitiationPayments( - createdAt, error, paymentID, - status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationResponse.java deleted file mode 100644 index 0028afd0e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationResponse.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * TransferInitiationResponse - * - *

OK - */ -public class TransferInitiationResponse { - - @JsonProperty("data") - private TransferInitiation data; - - @JsonCreator - public TransferInitiationResponse( - @JsonProperty("data") TransferInitiation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public TransferInitiation data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public TransferInitiationResponse withData(TransferInitiation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransferInitiationResponse other = (TransferInitiationResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(TransferInitiationResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private TransferInitiation data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(TransferInitiation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public TransferInitiationResponse build() { - - return new TransferInitiationResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursor.java deleted file mode 100644 index 9377a2ca9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursor.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * TransferInitiationsCursor - * - *

OK - */ -public class TransferInitiationsCursor { - - @JsonProperty("cursor") - private TransferInitiationsCursorCursor cursor; - - @JsonCreator - public TransferInitiationsCursor( - @JsonProperty("cursor") TransferInitiationsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public TransferInitiationsCursorCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public TransferInitiationsCursor withCursor(TransferInitiationsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransferInitiationsCursor other = (TransferInitiationsCursor) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(TransferInitiationsCursor.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private TransferInitiationsCursorCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(TransferInitiationsCursorCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public TransferInitiationsCursor build() { - - return new TransferInitiationsCursor( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursorCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursorCursor.java deleted file mode 100644 index 061d981c1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TransferInitiationsCursorCursor.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class TransferInitiationsCursorCursor { - - @JsonProperty("data") - private List data; - - - @JsonProperty("hasMore") - private boolean hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public TransferInitiationsCursorCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") boolean hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public TransferInitiationsCursorCursor( - List data, - boolean hasMore, - long pageSize) { - this(data, hasMore, Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public boolean hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public TransferInitiationsCursorCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public TransferInitiationsCursorCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public TransferInitiationsCursorCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public TransferInitiationsCursorCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public TransferInitiationsCursorCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public TransferInitiationsCursorCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public TransferInitiationsCursorCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TransferInitiationsCursorCursor other = (TransferInitiationsCursorCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(TransferInitiationsCursorCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Boolean hasMore; - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public TransferInitiationsCursorCursor build() { - - return new TransferInitiationsCursorCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Trigger.java b/src/main/java/com/formance/formance_sdk/models/shared/Trigger.java deleted file mode 100644 index 914a40922..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Trigger.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - - -public class Trigger { - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("event") - private String event; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - - @JsonProperty("workflowID") - private String workflowID; - - @JsonCreator - public Trigger( - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("event") String event, - @JsonProperty("filter") Optional filter, - @JsonProperty("id") String id, - @JsonProperty("name") Optional name, - @JsonProperty("vars") Optional> vars, - @JsonProperty("version") Optional version, - @JsonProperty("workflowID") String workflowID) { - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(event, "event"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(vars, "vars"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(workflowID, "workflowID"); - this.createdAt = createdAt; - this.event = event; - this.filter = filter; - this.id = id; - this.name = name; - this.vars = vars; - this.version = version; - this.workflowID = workflowID; - } - - public Trigger( - OffsetDateTime createdAt, - String event, - String id, - String workflowID) { - this(createdAt, event, Optional.empty(), - id, Optional.empty(), Optional.empty(), - Optional.empty(), workflowID); - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String event() { - return event; - } - - @JsonIgnore - public Optional filter() { - return filter; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - @JsonIgnore - public Optional version() { - return version; - } - - @JsonIgnore - public String workflowID() { - return workflowID; - } - - public static Builder builder() { - return new Builder(); - } - - - public Trigger withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public Trigger withEvent(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - public Trigger withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - - public Trigger withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public Trigger withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Trigger withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public Trigger withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Trigger withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public Trigger withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public Trigger withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - - public Trigger withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public Trigger withWorkflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Trigger other = (Trigger) o; - return - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.event, other.event) && - Utils.enhancedDeepEquals(this.filter, other.filter) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.vars, other.vars) && - Utils.enhancedDeepEquals(this.version, other.version) && - Utils.enhancedDeepEquals(this.workflowID, other.workflowID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createdAt, event, filter, - id, name, vars, - version, workflowID); - } - - @Override - public String toString() { - return Utils.toString(Trigger.class, - "createdAt", createdAt, - "event", event, - "filter", filter, - "id", id, - "name", name, - "vars", vars, - "version", version, - "workflowID", workflowID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OffsetDateTime createdAt; - - private String event; - - private Optional filter = Optional.empty(); - - private String id; - - private Optional name = Optional.empty(); - - private Optional> vars = Optional.empty(); - - private Optional version = Optional.empty(); - - private String workflowID; - - private Builder() { - // force use of static builder() method - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder event(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - - public Builder workflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - public Trigger build() { - - return new Trigger( - createdAt, event, filter, - id, name, vars, - version, workflowID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/TriggerData.java b/src/main/java/com/formance/formance_sdk/models/shared/TriggerData.java deleted file mode 100644 index d58406e5d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/TriggerData.java +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class TriggerData { - - @JsonProperty("event") - private String event; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - - @JsonProperty("workflowID") - private String workflowID; - - @JsonCreator - public TriggerData( - @JsonProperty("event") String event, - @JsonProperty("filter") Optional filter, - @JsonProperty("name") Optional name, - @JsonProperty("vars") Optional> vars, - @JsonProperty("version") Optional version, - @JsonProperty("workflowID") String workflowID) { - Utils.checkNotNull(event, "event"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(vars, "vars"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(workflowID, "workflowID"); - this.event = event; - this.filter = filter; - this.name = name; - this.vars = vars; - this.version = version; - this.workflowID = workflowID; - } - - public TriggerData( - String event, - String workflowID) { - this(event, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), workflowID); - } - - @JsonIgnore - public String event() { - return event; - } - - @JsonIgnore - public Optional filter() { - return filter; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - @JsonIgnore - public Optional version() { - return version; - } - - @JsonIgnore - public String workflowID() { - return workflowID; - } - - public static Builder builder() { - return new Builder(); - } - - - public TriggerData withEvent(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - public TriggerData withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - - public TriggerData withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public TriggerData withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public TriggerData withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public TriggerData withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public TriggerData withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public TriggerData withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - - public TriggerData withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public TriggerData withWorkflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - TriggerData other = (TriggerData) o; - return - Utils.enhancedDeepEquals(this.event, other.event) && - Utils.enhancedDeepEquals(this.filter, other.filter) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.vars, other.vars) && - Utils.enhancedDeepEquals(this.version, other.version) && - Utils.enhancedDeepEquals(this.workflowID, other.workflowID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - event, filter, name, - vars, version, workflowID); - } - - @Override - public String toString() { - return Utils.toString(TriggerData.class, - "event", event, - "filter", filter, - "name", name, - "vars", vars, - "version", version, - "workflowID", workflowID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String event; - - private Optional filter = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> vars = Optional.empty(); - - private Optional version = Optional.empty(); - - private String workflowID; - - private Builder() { - // force use of static builder() method - } - - - public Builder event(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - - public Builder workflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - public TriggerData build() { - - return new TriggerData( - event, filter, name, - vars, version, workflowID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UnknownConnectorConfig.java b/src/main/java/com/formance/formance_sdk/models/shared/UnknownConnectorConfig.java deleted file mode 100644 index fa7bf1b05..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UnknownConnectorConfig.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.databind.JsonNode; -import com.formance.formance_sdk.utils.UnknownType; -import java.lang.Override; -import java.lang.String; - - -public class UnknownConnectorConfig extends UnknownType implements ConnectorConfig { - - @JsonCreator - public UnknownConnectorConfig(JsonNode rawNode) { - super(rawNode); - } - - @Override - public String provider() { - return extractDiscriminator("provider").orElse("UNKNOWN"); - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UnknownSubject.java b/src/main/java/com/formance/formance_sdk/models/shared/UnknownSubject.java deleted file mode 100644 index 437d6db0e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UnknownSubject.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.databind.JsonNode; -import com.formance.formance_sdk.utils.UnknownType; -import java.lang.Override; -import java.lang.String; - - -public class UnknownSubject extends UnknownType implements Subject { - - @JsonCreator - public UnknownSubject(JsonNode rawNode) { - super(rawNode); - } - - @Override - public String type() { - return extractDiscriminator("type").orElse("UNKNOWN"); - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElement.java b/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElement.java deleted file mode 100644 index 327343b1d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElement.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.databind.JsonNode; -import com.formance.formance_sdk.utils.UnknownType; -import java.lang.Override; -import java.lang.String; - - -public class UnknownV2BulkElement extends UnknownType implements V2BulkElement { - - @JsonCreator - public UnknownV2BulkElement(JsonNode rawNode) { - super(rawNode); - } - - @Override - public String action() { - return extractDiscriminator("action").orElse("UNKNOWN"); - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElementResult.java deleted file mode 100644 index 1136a351d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2BulkElementResult.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.databind.JsonNode; -import com.formance.formance_sdk.utils.UnknownType; -import java.lang.Override; -import java.lang.String; - - -public class UnknownV2BulkElementResult extends UnknownType implements V2BulkElementResult { - - @JsonCreator - public UnknownV2BulkElementResult(JsonNode rawNode) { - super(rawNode); - } - - @Override - public String responseType() { - return extractDiscriminator("responseType").orElse("UNKNOWN"); - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2Subject.java b/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2Subject.java deleted file mode 100644 index 3f48877e6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV2Subject.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.databind.JsonNode; -import com.formance.formance_sdk.utils.UnknownType; -import java.lang.Override; -import java.lang.String; - - -public class UnknownV2Subject extends UnknownType implements V2Subject { - - @JsonCreator - public UnknownV2Subject(JsonNode rawNode) { - super(rawNode); - } - - @Override - public String type() { - return extractDiscriminator("type").orElse("UNKNOWN"); - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV3InstallConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/UnknownV3InstallConnectorRequest.java deleted file mode 100644 index dfd8f4dc8..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UnknownV3InstallConnectorRequest.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.databind.JsonNode; -import com.formance.formance_sdk.utils.UnknownType; -import java.lang.Override; -import java.lang.String; - - -public class UnknownV3InstallConnectorRequest extends UnknownType implements V3InstallConnectorRequest { - - @JsonCreator - public UnknownV3InstallConnectorRequest(JsonNode rawNode) { - super(rawNode); - } - - @Override - public String provider() { - return extractDiscriminator("provider").orElse("UNKNOWN"); - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Update.java b/src/main/java/com/formance/formance_sdk/models/shared/Update.java deleted file mode 100644 index 1c34242db..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Update.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class Update { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account") - private Optional account; - - @JsonCreator - public Update( - @JsonProperty("account") Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - } - - public Update() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional account() { - return (Optional) account; - } - - public static Builder builder() { - return new Builder(); - } - - - public Update withAccount(UpdateAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - - public Update withAccount(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Update other = (Update) o; - return - Utils.enhancedDeepEquals(this.account, other.account); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account); - } - - @Override - public String toString() { - return Utils.toString(Update.class, - "account", account); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional account = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder account(UpdateAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public Update build() { - - return new Update( - account); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UpdateBankAccountMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/UpdateBankAccountMetadataRequest.java deleted file mode 100644 index e8b3b7a03..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UpdateBankAccountMetadataRequest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class UpdateBankAccountMetadataRequest { - - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional> metadata; - - @JsonCreator - public UpdateBankAccountMetadataRequest( - @JsonProperty("metadata") Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - } - - public UpdateBankAccountMetadataRequest() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public static Builder builder() { - return new Builder(); - } - - - public UpdateBankAccountMetadataRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public UpdateBankAccountMetadataRequest withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateBankAccountMetadataRequest other = (UpdateBankAccountMetadataRequest) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata); - } - - @Override - public String toString() { - return Utils.toString(UpdateBankAccountMetadataRequest.class, - "metadata", metadata); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public UpdateBankAccountMetadataRequest build() { - - return new UpdateBankAccountMetadataRequest( - metadata); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/UpdateClientResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/UpdateClientResponse.java deleted file mode 100644 index 2194750fe..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/UpdateClientResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class UpdateClientResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public UpdateClientResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public UpdateClientResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public UpdateClientResponse withData(Client data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public UpdateClientResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateClientResponse other = (UpdateClientResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(UpdateClientResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Client data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public UpdateClientResponse build() { - - return new UpdateClientResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Account.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Account.java deleted file mode 100644 index 594f57eec..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Account.java +++ /dev/null @@ -1,355 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - - -public class V2Account { - - @JsonProperty("address") - private String address; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("effectiveVolumes") - private Optional> effectiveVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("firstUsage") - private Optional firstUsage; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("insertionDate") - private Optional insertionDate; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("volumes") - private Optional> volumes; - - @JsonCreator - public V2Account( - @JsonProperty("address") String address, - @JsonProperty("effectiveVolumes") Optional> effectiveVolumes, - @JsonProperty("firstUsage") Optional firstUsage, - @JsonProperty("insertionDate") Optional insertionDate, - @JsonProperty("metadata") Map metadata, - @JsonProperty("updatedAt") Optional updatedAt, - @JsonProperty("volumes") Optional> volumes) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - Utils.checkNotNull(firstUsage, "firstUsage"); - Utils.checkNotNull(insertionDate, "insertionDate"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(updatedAt, "updatedAt"); - Utils.checkNotNull(volumes, "volumes"); - this.address = address; - this.effectiveVolumes = effectiveVolumes; - this.firstUsage = firstUsage; - this.insertionDate = insertionDate; - this.metadata = metadata; - this.updatedAt = updatedAt; - this.volumes = volumes; - } - - public V2Account( - String address, - Map metadata) { - this(address, Optional.empty(), Optional.empty(), - Optional.empty(), metadata, Optional.empty(), - Optional.empty()); - } - - @JsonIgnore - public String address() { - return address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> effectiveVolumes() { - return (Optional>) effectiveVolumes; - } - - @JsonIgnore - public Optional firstUsage() { - return firstUsage; - } - - @JsonIgnore - public Optional insertionDate() { - return insertionDate; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public Optional updatedAt() { - return updatedAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> volumes() { - return (Optional>) volumes; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Account withAddress(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public V2Account withEffectiveVolumes(Map effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = Optional.ofNullable(effectiveVolumes); - return this; - } - - - public V2Account withEffectiveVolumes(Optional> effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = effectiveVolumes; - return this; - } - - public V2Account withFirstUsage(OffsetDateTime firstUsage) { - Utils.checkNotNull(firstUsage, "firstUsage"); - this.firstUsage = Optional.ofNullable(firstUsage); - return this; - } - - - public V2Account withFirstUsage(Optional firstUsage) { - Utils.checkNotNull(firstUsage, "firstUsage"); - this.firstUsage = firstUsage; - return this; - } - - public V2Account withInsertionDate(OffsetDateTime insertionDate) { - Utils.checkNotNull(insertionDate, "insertionDate"); - this.insertionDate = Optional.ofNullable(insertionDate); - return this; - } - - - public V2Account withInsertionDate(Optional insertionDate) { - Utils.checkNotNull(insertionDate, "insertionDate"); - this.insertionDate = insertionDate; - return this; - } - - public V2Account withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2Account withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - - public V2Account withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public V2Account withVolumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - - public V2Account withVolumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Account other = (V2Account) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.effectiveVolumes, other.effectiveVolumes) && - Utils.enhancedDeepEquals(this.firstUsage, other.firstUsage) && - Utils.enhancedDeepEquals(this.insertionDate, other.insertionDate) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt) && - Utils.enhancedDeepEquals(this.volumes, other.volumes); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, effectiveVolumes, firstUsage, - insertionDate, metadata, updatedAt, - volumes); - } - - @Override - public String toString() { - return Utils.toString(V2Account.class, - "address", address, - "effectiveVolumes", effectiveVolumes, - "firstUsage", firstUsage, - "insertionDate", insertionDate, - "metadata", metadata, - "updatedAt", updatedAt, - "volumes", volumes); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String address; - - private Optional> effectiveVolumes = Optional.empty(); - - private Optional firstUsage = Optional.empty(); - - private Optional insertionDate = Optional.empty(); - - private Map metadata; - - private Optional updatedAt = Optional.empty(); - - private Optional> volumes = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder address(String address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - public Builder effectiveVolumes(Map effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = Optional.ofNullable(effectiveVolumes); - return this; - } - - public Builder effectiveVolumes(Optional> effectiveVolumes) { - Utils.checkNotNull(effectiveVolumes, "effectiveVolumes"); - this.effectiveVolumes = effectiveVolumes; - return this; - } - - - public Builder firstUsage(OffsetDateTime firstUsage) { - Utils.checkNotNull(firstUsage, "firstUsage"); - this.firstUsage = Optional.ofNullable(firstUsage); - return this; - } - - public Builder firstUsage(Optional firstUsage) { - Utils.checkNotNull(firstUsage, "firstUsage"); - this.firstUsage = firstUsage; - return this; - } - - - public Builder insertionDate(OffsetDateTime insertionDate) { - Utils.checkNotNull(insertionDate, "insertionDate"); - this.insertionDate = Optional.ofNullable(insertionDate); - return this; - } - - public Builder insertionDate(Optional insertionDate) { - Utils.checkNotNull(insertionDate, "insertionDate"); - this.insertionDate = insertionDate; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - - public Builder volumes(Map volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = Optional.ofNullable(volumes); - return this; - } - - public Builder volumes(Optional> volumes) { - Utils.checkNotNull(volumes, "volumes"); - this.volumes = volumes; - return this; - } - - public V2Account build() { - - return new V2Account( - address, effectiveVolumes, firstUsage, - insertionDate, metadata, updatedAt, - volumes); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2AccountResponse.java deleted file mode 100644 index 66f0fbf7e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2AccountResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2AccountResponse { - - @JsonProperty("data") - private V2Account data; - - @JsonCreator - public V2AccountResponse( - @JsonProperty("data") V2Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Account data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2AccountResponse withData(V2Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2AccountResponse other = (V2AccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2AccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Account data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2AccountResponse build() { - - return new V2AccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransaction.java deleted file mode 100644 index ea1d0470d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransaction.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2ActivityCreateTransaction { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ledger") - private Optional ledger; - - @JsonCreator - public V2ActivityCreateTransaction( - @JsonProperty("data") Optional data, - @JsonProperty("ledger") Optional ledger) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(ledger, "ledger"); - this.data = data; - this.ledger = ledger; - } - - public V2ActivityCreateTransaction() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional ledger() { - return ledger; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityCreateTransaction withData(OrchestrationV2PostTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2ActivityCreateTransaction withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityCreateTransaction withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - - public V2ActivityCreateTransaction withLedger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityCreateTransaction other = (V2ActivityCreateTransaction) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.ledger, other.ledger); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, ledger); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityCreateTransaction.class, - "data", data, - "ledger", ledger); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Optional ledger = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationV2PostTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - public Builder ledger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - public V2ActivityCreateTransaction build() { - - return new V2ActivityCreateTransaction( - data, ledger); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransactionOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransactionOutput.java deleted file mode 100644 index 8802358d0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreateTransactionOutput.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class V2ActivityCreateTransactionOutput { - - @JsonProperty("data") - private List data; - - @JsonCreator - public V2ActivityCreateTransactionOutput( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityCreateTransactionOutput withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityCreateTransactionOutput other = (V2ActivityCreateTransactionOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityCreateTransactionOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityCreateTransactionOutput build() { - - return new V2ActivityCreateTransactionOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreditWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreditWallet.java deleted file mode 100644 index c8a4e7173..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityCreditWallet.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2ActivityCreditWallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public V2ActivityCreditWallet( - @JsonProperty("data") Optional data, - @JsonProperty("id") Optional id) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(id, "id"); - this.data = data; - this.id = id; - } - - public V2ActivityCreditWallet() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityCreditWallet withData(V2CreditWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2ActivityCreditWallet withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityCreditWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - - public V2ActivityCreditWallet withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityCreditWallet other = (V2ActivityCreditWallet) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, id); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityCreditWallet.class, - "data", data, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2CreditWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2ActivityCreditWallet build() { - - return new V2ActivityCreditWallet( - data, id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWallet.java deleted file mode 100644 index e61417864..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWallet.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2ActivityDebitWallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("id") - private Optional id; - - @JsonCreator - public V2ActivityDebitWallet( - @JsonProperty("data") Optional data, - @JsonProperty("id") Optional id) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(id, "id"); - this.data = data; - this.id = id; - } - - public V2ActivityDebitWallet() { - this(Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityDebitWallet withData(V2DebitWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2ActivityDebitWallet withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityDebitWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - - public V2ActivityDebitWallet withId(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityDebitWallet other = (V2ActivityDebitWallet) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, id); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityDebitWallet.class, - "data", data, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Optional id = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2DebitWalletRequest data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = Optional.ofNullable(id); - return this; - } - - public Builder id(Optional id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2ActivityDebitWallet build() { - - return new V2ActivityDebitWallet( - data, id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWalletOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWalletOutput.java deleted file mode 100644 index 5a0d3238d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityDebitWalletOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ActivityDebitWalletOutput { - - @JsonProperty("data") - private V2Hold data; - - @JsonCreator - public V2ActivityDebitWalletOutput( - @JsonProperty("data") V2Hold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Hold data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityDebitWalletOutput withData(V2Hold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityDebitWalletOutput other = (V2ActivityDebitWalletOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityDebitWalletOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Hold data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Hold data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityDebitWalletOutput build() { - - return new V2ActivityDebitWalletOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccountOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccountOutput.java deleted file mode 100644 index 7d98b8e1f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetAccountOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ActivityGetAccountOutput { - - @JsonProperty("data") - private OrchestrationV2Account data; - - @JsonCreator - public V2ActivityGetAccountOutput( - @JsonProperty("data") OrchestrationV2Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public OrchestrationV2Account data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityGetAccountOutput withData(OrchestrationV2Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityGetAccountOutput other = (V2ActivityGetAccountOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityGetAccountOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OrchestrationV2Account data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(OrchestrationV2Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityGetAccountOutput build() { - - return new V2ActivityGetAccountOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPaymentOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPaymentOutput.java deleted file mode 100644 index 3bf466460..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetPaymentOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ActivityGetPaymentOutput { - - @JsonProperty("data") - private V2Payment data; - - @JsonCreator - public V2ActivityGetPaymentOutput( - @JsonProperty("data") V2Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Payment data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityGetPaymentOutput withData(V2Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityGetPaymentOutput other = (V2ActivityGetPaymentOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityGetPaymentOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Payment data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityGetPaymentOutput build() { - - return new V2ActivityGetPaymentOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWalletOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWalletOutput.java deleted file mode 100644 index 218c1ca03..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityGetWalletOutput.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ActivityGetWalletOutput { - - @JsonProperty("data") - private V2WalletWithBalances data; - - @JsonCreator - public V2ActivityGetWalletOutput( - @JsonProperty("data") V2WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2WalletWithBalances data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityGetWalletOutput withData(V2WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityGetWalletOutput other = (V2ActivityGetWalletOutput) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityGetWalletOutput.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2WalletWithBalances data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2WalletWithBalances data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ActivityGetWalletOutput build() { - - return new V2ActivityGetWalletOutput( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransfer.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransfer.java deleted file mode 100644 index 61a4402fb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransfer.java +++ /dev/null @@ -1,378 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.utils.LazySingletonValue; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.util.Optional; - - -public class V2ActivityStripeTransfer { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("asset") - private Optional asset; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("connectorID") - private Optional connectorID; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("waitingValidation") - private Optional waitingValidation; - - @JsonCreator - public V2ActivityStripeTransfer( - @JsonProperty("amount") Optional amount, - @JsonProperty("asset") Optional asset, - @JsonProperty("connectorID") Optional connectorID, - @JsonProperty("destination") Optional destination, - @JsonProperty("metadata") Optional metadata, - @JsonProperty("waitingValidation") Optional waitingValidation) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.amount = amount; - this.asset = asset; - this.connectorID = connectorID; - this.destination = destination; - this.metadata = metadata; - this.waitingValidation = waitingValidation; - } - - public V2ActivityStripeTransfer() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @JsonIgnore - public Optional asset() { - return asset; - } - - @JsonIgnore - public Optional connectorID() { - return connectorID; - } - - @JsonIgnore - public Optional destination() { - return destination; - } - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional metadata() { - return (Optional) metadata; - } - - @JsonIgnore - public Optional waitingValidation() { - return waitingValidation; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ActivityStripeTransfer withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public V2ActivityStripeTransfer withAmount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - - public V2ActivityStripeTransfer withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public V2ActivityStripeTransfer withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - - public V2ActivityStripeTransfer withAsset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public V2ActivityStripeTransfer withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = Optional.ofNullable(connectorID); - return this; - } - - - public V2ActivityStripeTransfer withConnectorID(Optional connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public V2ActivityStripeTransfer withDestination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public V2ActivityStripeTransfer withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public V2ActivityStripeTransfer withMetadata(V2ActivityStripeTransferMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public V2ActivityStripeTransfer withMetadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2ActivityStripeTransfer withWaitingValidation(boolean waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = Optional.ofNullable(waitingValidation); - return this; - } - - - public V2ActivityStripeTransfer withWaitingValidation(Optional waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = waitingValidation; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ActivityStripeTransfer other = (V2ActivityStripeTransfer) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.waitingValidation, other.waitingValidation); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, connectorID, - destination, metadata, waitingValidation); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityStripeTransfer.class, - "amount", amount, - "asset", asset, - "connectorID", connectorID, - "destination", destination, - "metadata", metadata, - "waitingValidation", waitingValidation); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional asset = Optional.empty(); - - private Optional connectorID = Optional.empty(); - - private Optional destination = Optional.empty(); - - private Optional metadata = Optional.empty(); - - private Optional waitingValidation; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - public Builder asset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = Optional.ofNullable(connectorID); - return this; - } - - public Builder connectorID(Optional connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder destination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public Builder metadata(V2ActivityStripeTransferMetadata metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - /** - * A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ - public Builder metadata(Optional metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder waitingValidation(boolean waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = Optional.ofNullable(waitingValidation); - return this; - } - - public Builder waitingValidation(Optional waitingValidation) { - Utils.checkNotNull(waitingValidation, "waitingValidation"); - this.waitingValidation = waitingValidation; - return this; - } - - public V2ActivityStripeTransfer build() { - if (waitingValidation == null) { - waitingValidation = _SINGLETON_VALUE_WaitingValidation.value(); - } - - return new V2ActivityStripeTransfer( - amount, asset, connectorID, - destination, metadata, waitingValidation); - } - - - private static final LazySingletonValue> _SINGLETON_VALUE_WaitingValidation = - new LazySingletonValue<>( - "waitingValidation", - "false", - new TypeReference>() {}); - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransferMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransferMetadata.java deleted file mode 100644 index 74ce3e869..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ActivityStripeTransferMetadata.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2ActivityStripeTransferMetadata - * - *

A set of key/value pairs that you can attach to a transfer object. - * It can be useful for storing additional information about the transfer in a structured format. - */ -public class V2ActivityStripeTransferMetadata { - @JsonCreator - public V2ActivityStripeTransferMetadata() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(V2ActivityStripeTransferMetadata.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public V2ActivityStripeTransferMetadata build() { - - return new V2ActivityStripeTransferMetadata( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2AggregateBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2AggregateBalancesResponse.java deleted file mode 100644 index bb5f8487a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2AggregateBalancesResponse.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; -import java.util.Map; - - -public class V2AggregateBalancesResponse { - - @JsonProperty("data") - private Map data; - - @JsonCreator - public V2AggregateBalancesResponse( - @JsonProperty("data") Map data) { - data = Utils.emptyMapIfNull(data); - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public Map data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2AggregateBalancesResponse withData(Map data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2AggregateBalancesResponse other = (V2AggregateBalancesResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2AggregateBalancesResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(Map data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2AggregateBalancesResponse build() { - - return new V2AggregateBalancesResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElement.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElement.java deleted file mode 100644 index f11701341..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElement.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonTypeInfo.As; -import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; -import java.lang.String; - -@JsonTypeInfo( - use = Id.CUSTOM, - property = "action", - include = As.EXISTING_PROPERTY, - visible = true, - defaultImpl = UnknownV2BulkElement.class -) -@JsonTypeIdResolver(V2BulkElementTypeIdResolver.class) -public interface V2BulkElement { - - String action(); - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadata.java deleted file mode 100644 index 63ec1db11..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadata.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2BulkElementAddMetadata implements V2BulkElement { - - @JsonProperty("action") - private String action; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ik") - private Optional ik; - - @JsonCreator - public V2BulkElementAddMetadata( - @JsonProperty("action") String action, - @JsonProperty("data") Optional data, - @JsonProperty("ik") Optional ik) { - Utils.checkNotNull(action, "action"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(ik, "ik"); - this.action = action; - this.data = data; - this.ik = ik; - } - - public V2BulkElementAddMetadata( - String action) { - this(action, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - @Override - public String action() { - return Utils.discriminatorToString(action); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional ik() { - return ik; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementAddMetadata withAction(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - public V2BulkElementAddMetadata withData(V2BulkElementAddMetadataData data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2BulkElementAddMetadata withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2BulkElementAddMetadata withIk(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - - public V2BulkElementAddMetadata withIk(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementAddMetadata other = (V2BulkElementAddMetadata) o; - return - Utils.enhancedDeepEquals(this.action, other.action) && - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.ik, other.ik); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - action, data, ik); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementAddMetadata.class, - "action", action, - "data", data, - "ik", ik); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String action; - - private Optional data = Optional.empty(); - - private Optional ik = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder action(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - - public Builder data(V2BulkElementAddMetadataData data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder ik(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - public Builder ik(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - public V2BulkElementAddMetadata build() { - - return new V2BulkElementAddMetadata( - action, data, ik); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadataData.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadataData.java deleted file mode 100644 index a6808f858..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementAddMetadataData.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Map; - - -public class V2BulkElementAddMetadataData { - - @JsonProperty("metadata") - private Map metadata; - - - @JsonProperty("targetId") - private V2TargetId targetId; - - - @JsonProperty("targetType") - private V2TargetType targetType; - - @JsonCreator - public V2BulkElementAddMetadataData( - @JsonProperty("metadata") Map metadata, - @JsonProperty("targetId") V2TargetId targetId, - @JsonProperty("targetType") V2TargetType targetType) { - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(targetId, "targetId"); - Utils.checkNotNull(targetType, "targetType"); - this.metadata = metadata; - this.targetId = targetId; - this.targetType = targetType; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public V2TargetId targetId() { - return targetId; - } - - @JsonIgnore - public V2TargetType targetType() { - return targetType; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementAddMetadataData withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2BulkElementAddMetadataData withTargetId(V2TargetId targetId) { - Utils.checkNotNull(targetId, "targetId"); - this.targetId = targetId; - return this; - } - - public V2BulkElementAddMetadataData withTargetType(V2TargetType targetType) { - Utils.checkNotNull(targetType, "targetType"); - this.targetType = targetType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementAddMetadataData other = (V2BulkElementAddMetadataData) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.targetId, other.targetId) && - Utils.enhancedDeepEquals(this.targetType, other.targetType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata, targetId, targetType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementAddMetadataData.class, - "metadata", metadata, - "targetId", targetId, - "targetType", targetType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map metadata; - - private V2TargetId targetId; - - private V2TargetType targetType; - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder targetId(V2TargetId targetId) { - Utils.checkNotNull(targetId, "targetId"); - this.targetId = targetId; - return this; - } - - - public Builder targetType(V2TargetType targetType) { - Utils.checkNotNull(targetType, "targetType"); - this.targetType = targetType; - return this; - } - - public V2BulkElementAddMetadataData build() { - - return new V2BulkElementAddMetadataData( - metadata, targetId, targetType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementCreateTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementCreateTransaction.java deleted file mode 100644 index 75e67be1f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementCreateTransaction.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2BulkElementCreateTransaction implements V2BulkElement { - - @JsonProperty("action") - private String action; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ik") - private Optional ik; - - @JsonCreator - public V2BulkElementCreateTransaction( - @JsonProperty("action") String action, - @JsonProperty("data") Optional data, - @JsonProperty("ik") Optional ik) { - Utils.checkNotNull(action, "action"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(ik, "ik"); - this.action = action; - this.data = data; - this.ik = ik; - } - - public V2BulkElementCreateTransaction( - String action) { - this(action, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - @Override - public String action() { - return Utils.discriminatorToString(action); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional ik() { - return ik; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementCreateTransaction withAction(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - public V2BulkElementCreateTransaction withData(V2PostTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2BulkElementCreateTransaction withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2BulkElementCreateTransaction withIk(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - - public V2BulkElementCreateTransaction withIk(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementCreateTransaction other = (V2BulkElementCreateTransaction) o; - return - Utils.enhancedDeepEquals(this.action, other.action) && - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.ik, other.ik); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - action, data, ik); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementCreateTransaction.class, - "action", action, - "data", data, - "ik", ik); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String action; - - private Optional data = Optional.empty(); - - private Optional ik = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder action(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - - public Builder data(V2PostTransaction data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder ik(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - public Builder ik(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - public V2BulkElementCreateTransaction build() { - - return new V2BulkElementCreateTransaction( - action, data, ik); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadata.java deleted file mode 100644 index b27781eb3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadata.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2BulkElementDeleteMetadata implements V2BulkElement { - - @JsonProperty("action") - private String action; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ik") - private Optional ik; - - @JsonCreator - public V2BulkElementDeleteMetadata( - @JsonProperty("action") String action, - @JsonProperty("data") Optional data, - @JsonProperty("ik") Optional ik) { - Utils.checkNotNull(action, "action"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(ik, "ik"); - this.action = action; - this.data = data; - this.ik = ik; - } - - public V2BulkElementDeleteMetadata( - String action) { - this(action, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - @Override - public String action() { - return Utils.discriminatorToString(action); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional ik() { - return ik; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementDeleteMetadata withAction(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - public V2BulkElementDeleteMetadata withData(V2BulkElementDeleteMetadataData data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2BulkElementDeleteMetadata withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2BulkElementDeleteMetadata withIk(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - - public V2BulkElementDeleteMetadata withIk(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementDeleteMetadata other = (V2BulkElementDeleteMetadata) o; - return - Utils.enhancedDeepEquals(this.action, other.action) && - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.ik, other.ik); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - action, data, ik); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementDeleteMetadata.class, - "action", action, - "data", data, - "ik", ik); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String action; - - private Optional data = Optional.empty(); - - private Optional ik = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder action(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - - public Builder data(V2BulkElementDeleteMetadataData data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder ik(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - public Builder ik(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - public V2BulkElementDeleteMetadata build() { - - return new V2BulkElementDeleteMetadata( - action, data, ik); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadataData.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadataData.java deleted file mode 100644 index ea38a7b08..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementDeleteMetadataData.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementDeleteMetadataData { - - @JsonProperty("key") - private String key; - - - @JsonProperty("targetId") - private V2TargetId targetId; - - - @JsonProperty("targetType") - private V2TargetType targetType; - - @JsonCreator - public V2BulkElementDeleteMetadataData( - @JsonProperty("key") String key, - @JsonProperty("targetId") V2TargetId targetId, - @JsonProperty("targetType") V2TargetType targetType) { - Utils.checkNotNull(key, "key"); - Utils.checkNotNull(targetId, "targetId"); - Utils.checkNotNull(targetType, "targetType"); - this.key = key; - this.targetId = targetId; - this.targetType = targetType; - } - - @JsonIgnore - public String key() { - return key; - } - - @JsonIgnore - public V2TargetId targetId() { - return targetId; - } - - @JsonIgnore - public V2TargetType targetType() { - return targetType; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementDeleteMetadataData withKey(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - public V2BulkElementDeleteMetadataData withTargetId(V2TargetId targetId) { - Utils.checkNotNull(targetId, "targetId"); - this.targetId = targetId; - return this; - } - - public V2BulkElementDeleteMetadataData withTargetType(V2TargetType targetType) { - Utils.checkNotNull(targetType, "targetType"); - this.targetType = targetType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementDeleteMetadataData other = (V2BulkElementDeleteMetadataData) o; - return - Utils.enhancedDeepEquals(this.key, other.key) && - Utils.enhancedDeepEquals(this.targetId, other.targetId) && - Utils.enhancedDeepEquals(this.targetType, other.targetType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - key, targetId, targetType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementDeleteMetadataData.class, - "key", key, - "targetId", targetId, - "targetType", targetType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String key; - - private V2TargetId targetId; - - private V2TargetType targetType; - - private Builder() { - // force use of static builder() method - } - - - public Builder key(String key) { - Utils.checkNotNull(key, "key"); - this.key = key; - return this; - } - - - public Builder targetId(V2TargetId targetId) { - Utils.checkNotNull(targetId, "targetId"); - this.targetId = targetId; - return this; - } - - - public Builder targetType(V2TargetType targetType) { - Utils.checkNotNull(targetType, "targetType"); - this.targetType = targetType; - return this; - } - - public V2BulkElementDeleteMetadataData build() { - - return new V2BulkElementDeleteMetadataData( - key, targetId, targetType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResult.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResult.java deleted file mode 100644 index 5f25c6487..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResult.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonTypeInfo.As; -import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; -import java.lang.String; - -@JsonTypeInfo( - use = Id.CUSTOM, - property = "responseType", - include = As.EXISTING_PROPERTY, - visible = true, - defaultImpl = UnknownV2BulkElementResult.class -) -@JsonTypeIdResolver(V2BulkElementResultTypeIdResolver.class) -public interface V2BulkElementResult { - - String responseType(); - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultAddMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultAddMetadata.java deleted file mode 100644 index c6c78c11c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultAddMetadata.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementResultAddMetadata implements V2BulkElementResult { - - @JsonProperty("logID") - private long logID; - - - @JsonProperty("responseType") - private String responseType; - - @JsonCreator - public V2BulkElementResultAddMetadata( - @JsonProperty("logID") long logID, - @JsonProperty("responseType") String responseType) { - Utils.checkNotNull(logID, "logID"); - Utils.checkNotNull(responseType, "responseType"); - this.logID = logID; - this.responseType = responseType; - } - - @JsonIgnore - public long logID() { - return logID; - } - - @JsonIgnore - @Override - public String responseType() { - return Utils.discriminatorToString(responseType); - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementResultAddMetadata withLogID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - public V2BulkElementResultAddMetadata withResponseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementResultAddMetadata other = (V2BulkElementResultAddMetadata) o; - return - Utils.enhancedDeepEquals(this.logID, other.logID) && - Utils.enhancedDeepEquals(this.responseType, other.responseType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - logID, responseType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementResultAddMetadata.class, - "logID", logID, - "responseType", responseType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long logID; - - private String responseType; - - private Builder() { - // force use of static builder() method - } - - - public Builder logID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - - public Builder responseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - public V2BulkElementResultAddMetadata build() { - - return new V2BulkElementResultAddMetadata( - logID, responseType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultCreateTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultCreateTransaction.java deleted file mode 100644 index 5361ce34a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultCreateTransaction.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementResultCreateTransaction implements V2BulkElementResult { - - @JsonProperty("data") - private V2Transaction data; - - - @JsonProperty("logID") - private long logID; - - - @JsonProperty("responseType") - private String responseType; - - @JsonCreator - public V2BulkElementResultCreateTransaction( - @JsonProperty("data") V2Transaction data, - @JsonProperty("logID") long logID, - @JsonProperty("responseType") String responseType) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(logID, "logID"); - Utils.checkNotNull(responseType, "responseType"); - this.data = data; - this.logID = logID; - this.responseType = responseType; - } - - @JsonIgnore - public V2Transaction data() { - return data; - } - - @JsonIgnore - public long logID() { - return logID; - } - - @JsonIgnore - @Override - public String responseType() { - return Utils.discriminatorToString(responseType); - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementResultCreateTransaction withData(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2BulkElementResultCreateTransaction withLogID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - public V2BulkElementResultCreateTransaction withResponseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementResultCreateTransaction other = (V2BulkElementResultCreateTransaction) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.logID, other.logID) && - Utils.enhancedDeepEquals(this.responseType, other.responseType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, logID, responseType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementResultCreateTransaction.class, - "data", data, - "logID", logID, - "responseType", responseType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Transaction data; - - private Long logID; - - private String responseType; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder logID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - - public Builder responseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - public V2BulkElementResultCreateTransaction build() { - - return new V2BulkElementResultCreateTransaction( - data, logID, responseType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultDeleteMetadata.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultDeleteMetadata.java deleted file mode 100644 index 31b81d9e7..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultDeleteMetadata.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementResultDeleteMetadata implements V2BulkElementResult { - - @JsonProperty("logID") - private long logID; - - - @JsonProperty("responseType") - private String responseType; - - @JsonCreator - public V2BulkElementResultDeleteMetadata( - @JsonProperty("logID") long logID, - @JsonProperty("responseType") String responseType) { - Utils.checkNotNull(logID, "logID"); - Utils.checkNotNull(responseType, "responseType"); - this.logID = logID; - this.responseType = responseType; - } - - @JsonIgnore - public long logID() { - return logID; - } - - @JsonIgnore - @Override - public String responseType() { - return Utils.discriminatorToString(responseType); - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementResultDeleteMetadata withLogID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - public V2BulkElementResultDeleteMetadata withResponseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementResultDeleteMetadata other = (V2BulkElementResultDeleteMetadata) o; - return - Utils.enhancedDeepEquals(this.logID, other.logID) && - Utils.enhancedDeepEquals(this.responseType, other.responseType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - logID, responseType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementResultDeleteMetadata.class, - "logID", logID, - "responseType", responseType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long logID; - - private String responseType; - - private Builder() { - // force use of static builder() method - } - - - public Builder logID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - - public Builder responseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - public V2BulkElementResultDeleteMetadata build() { - - return new V2BulkElementResultDeleteMetadata( - logID, responseType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultError.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultError.java deleted file mode 100644 index fc0b7e22d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultError.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class V2BulkElementResultError implements V2BulkElementResult { - - @JsonProperty("errorCode") - private String errorCode; - - - @JsonProperty("errorDescription") - private String errorDescription; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("errorDetails") - private Optional errorDetails; - - - @JsonProperty("logID") - private long logID; - - - @JsonProperty("responseType") - private String responseType; - - @JsonCreator - public V2BulkElementResultError( - @JsonProperty("errorCode") String errorCode, - @JsonProperty("errorDescription") String errorDescription, - @JsonProperty("errorDetails") Optional errorDetails, - @JsonProperty("logID") long logID, - @JsonProperty("responseType") String responseType) { - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorDescription, "errorDescription"); - Utils.checkNotNull(errorDetails, "errorDetails"); - Utils.checkNotNull(logID, "logID"); - Utils.checkNotNull(responseType, "responseType"); - this.errorCode = errorCode; - this.errorDescription = errorDescription; - this.errorDetails = errorDetails; - this.logID = logID; - this.responseType = responseType; - } - - public V2BulkElementResultError( - String errorCode, - String errorDescription, - long logID, - String responseType) { - this(errorCode, errorDescription, Optional.empty(), - logID, responseType); - } - - @JsonIgnore - public String errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorDescription() { - return errorDescription; - } - - @JsonIgnore - public Optional errorDetails() { - return errorDetails; - } - - @JsonIgnore - public long logID() { - return logID; - } - - @JsonIgnore - @Override - public String responseType() { - return Utils.discriminatorToString(responseType); - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementResultError withErrorCode(String errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public V2BulkElementResultError withErrorDescription(String errorDescription) { - Utils.checkNotNull(errorDescription, "errorDescription"); - this.errorDescription = errorDescription; - return this; - } - - public V2BulkElementResultError withErrorDetails(String errorDetails) { - Utils.checkNotNull(errorDetails, "errorDetails"); - this.errorDetails = Optional.ofNullable(errorDetails); - return this; - } - - - public V2BulkElementResultError withErrorDetails(Optional errorDetails) { - Utils.checkNotNull(errorDetails, "errorDetails"); - this.errorDetails = errorDetails; - return this; - } - - public V2BulkElementResultError withLogID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - public V2BulkElementResultError withResponseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementResultError other = (V2BulkElementResultError) o; - return - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorDescription, other.errorDescription) && - Utils.enhancedDeepEquals(this.errorDetails, other.errorDetails) && - Utils.enhancedDeepEquals(this.logID, other.logID) && - Utils.enhancedDeepEquals(this.responseType, other.responseType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - errorCode, errorDescription, errorDetails, - logID, responseType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementResultError.class, - "errorCode", errorCode, - "errorDescription", errorDescription, - "errorDetails", errorDetails, - "logID", logID, - "responseType", responseType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String errorCode; - - private String errorDescription; - - private Optional errorDetails = Optional.empty(); - - private Long logID; - - private String responseType; - - private Builder() { - // force use of static builder() method - } - - - public Builder errorCode(String errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorDescription(String errorDescription) { - Utils.checkNotNull(errorDescription, "errorDescription"); - this.errorDescription = errorDescription; - return this; - } - - - public Builder errorDetails(String errorDetails) { - Utils.checkNotNull(errorDetails, "errorDetails"); - this.errorDetails = Optional.ofNullable(errorDetails); - return this; - } - - public Builder errorDetails(Optional errorDetails) { - Utils.checkNotNull(errorDetails, "errorDetails"); - this.errorDetails = errorDetails; - return this; - } - - - public Builder logID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - - public Builder responseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - public V2BulkElementResultError build() { - - return new V2BulkElementResultError( - errorCode, errorDescription, errorDetails, - logID, responseType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultRevertTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultRevertTransaction.java deleted file mode 100644 index 040c00209..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultRevertTransaction.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementResultRevertTransaction implements V2BulkElementResult { - - @JsonProperty("data") - private V2Transaction data; - - - @JsonProperty("logID") - private long logID; - - - @JsonProperty("responseType") - private String responseType; - - @JsonCreator - public V2BulkElementResultRevertTransaction( - @JsonProperty("data") V2Transaction data, - @JsonProperty("logID") long logID, - @JsonProperty("responseType") String responseType) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(logID, "logID"); - Utils.checkNotNull(responseType, "responseType"); - this.data = data; - this.logID = logID; - this.responseType = responseType; - } - - @JsonIgnore - public V2Transaction data() { - return data; - } - - @JsonIgnore - public long logID() { - return logID; - } - - @JsonIgnore - @Override - public String responseType() { - return Utils.discriminatorToString(responseType); - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementResultRevertTransaction withData(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2BulkElementResultRevertTransaction withLogID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - public V2BulkElementResultRevertTransaction withResponseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementResultRevertTransaction other = (V2BulkElementResultRevertTransaction) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.logID, other.logID) && - Utils.enhancedDeepEquals(this.responseType, other.responseType); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, logID, responseType); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementResultRevertTransaction.class, - "data", data, - "logID", logID, - "responseType", responseType); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Transaction data; - - private Long logID; - - private String responseType; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder logID(long logID) { - Utils.checkNotNull(logID, "logID"); - this.logID = logID; - return this; - } - - - public Builder responseType(String responseType) { - Utils.checkNotNull(responseType, "responseType"); - this.responseType = responseType; - return this; - } - - public V2BulkElementResultRevertTransaction build() { - - return new V2BulkElementResultRevertTransaction( - data, logID, responseType); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultTypeIdResolver.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultTypeIdResolver.java deleted file mode 100644 index cfbab600d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementResultTypeIdResolver.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.formance.formance_sdk.utils.GenericTypeIdResolver; -import java.lang.IllegalArgumentException; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementResultTypeIdResolver extends GenericTypeIdResolver { - - public V2BulkElementResultTypeIdResolver() { - super(UnknownV2BulkElementResult.class); - initializeTypeMap(); - } - - private void initializeTypeMap() { - registerType("ADD_METADATA", V2BulkElementResultAddMetadata.class); - registerType("CREATE_TRANSACTION", V2BulkElementResultCreateTransaction.class); - registerType("DELETE_METADATA", V2BulkElementResultDeleteMetadata.class); - registerType("ERROR", V2BulkElementResultError.class); - registerType("REVERT_TRANSACTION", V2BulkElementResultRevertTransaction.class); - } - - @Override - public String idFromValue(Object value) { - if (value == null) { - return null; - } - - // Handle known types by checking if they implement the discriminator method - if (value instanceof V2BulkElementResult) { - V2BulkElementResult discriminated = (V2BulkElementResult) value; - return discriminated.responseType(); - } - - throw new IllegalArgumentException("Unknown value type: " + value.getClass().getName()); - } - - @Override - public String getDescForKnownTypeIds() { - return "V2BulkElementResult type resolver"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransaction.java deleted file mode 100644 index 534af6c7e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransaction.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2BulkElementRevertTransaction implements V2BulkElement { - - @JsonProperty("action") - private String action; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ik") - private Optional ik; - - @JsonCreator - public V2BulkElementRevertTransaction( - @JsonProperty("action") String action, - @JsonProperty("data") Optional data, - @JsonProperty("ik") Optional ik) { - Utils.checkNotNull(action, "action"); - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(ik, "ik"); - this.action = action; - this.data = data; - this.ik = ik; - } - - public V2BulkElementRevertTransaction( - String action) { - this(action, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - @Override - public String action() { - return Utils.discriminatorToString(action); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - @JsonIgnore - public Optional ik() { - return ik; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementRevertTransaction withAction(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - public V2BulkElementRevertTransaction withData(V2BulkElementRevertTransactionData data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2BulkElementRevertTransaction withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2BulkElementRevertTransaction withIk(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - - public V2BulkElementRevertTransaction withIk(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementRevertTransaction other = (V2BulkElementRevertTransaction) o; - return - Utils.enhancedDeepEquals(this.action, other.action) && - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.ik, other.ik); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - action, data, ik); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementRevertTransaction.class, - "action", action, - "data", data, - "ik", ik); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String action; - - private Optional data = Optional.empty(); - - private Optional ik = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder action(String action) { - Utils.checkNotNull(action, "action"); - this.action = action; - return this; - } - - - public Builder data(V2BulkElementRevertTransactionData data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder ik(String ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = Optional.ofNullable(ik); - return this; - } - - public Builder ik(Optional ik) { - Utils.checkNotNull(ik, "ik"); - this.ik = ik; - return this; - } - - public V2BulkElementRevertTransaction build() { - - return new V2BulkElementRevertTransaction( - action, data, ik); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransactionData.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransactionData.java deleted file mode 100644 index 5d06c588c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementRevertTransactionData.java +++ /dev/null @@ -1,245 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.util.Map; -import java.util.Optional; - - -public class V2BulkElementRevertTransactionData { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("atEffectiveDate") - private Optional atEffectiveDate; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("force") - private Optional force; - - - @JsonProperty("id") - private BigInteger id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional> metadata; - - @JsonCreator - public V2BulkElementRevertTransactionData( - @JsonProperty("atEffectiveDate") Optional atEffectiveDate, - @JsonProperty("force") Optional force, - @JsonProperty("id") BigInteger id, - @JsonProperty("metadata") Optional> metadata) { - Utils.checkNotNull(atEffectiveDate, "atEffectiveDate"); - Utils.checkNotNull(force, "force"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - this.atEffectiveDate = atEffectiveDate; - this.force = force; - this.id = id; - this.metadata = metadata; - } - - public V2BulkElementRevertTransactionData( - BigInteger id) { - this(Optional.empty(), Optional.empty(), id, - Optional.empty()); - } - - @JsonIgnore - public Optional atEffectiveDate() { - return atEffectiveDate; - } - - @JsonIgnore - public Optional force() { - return force; - } - - @JsonIgnore - public BigInteger id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2BulkElementRevertTransactionData withAtEffectiveDate(boolean atEffectiveDate) { - Utils.checkNotNull(atEffectiveDate, "atEffectiveDate"); - this.atEffectiveDate = Optional.ofNullable(atEffectiveDate); - return this; - } - - - public V2BulkElementRevertTransactionData withAtEffectiveDate(Optional atEffectiveDate) { - Utils.checkNotNull(atEffectiveDate, "atEffectiveDate"); - this.atEffectiveDate = atEffectiveDate; - return this; - } - - public V2BulkElementRevertTransactionData withForce(boolean force) { - Utils.checkNotNull(force, "force"); - this.force = Optional.ofNullable(force); - return this; - } - - - public V2BulkElementRevertTransactionData withForce(Optional force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - public V2BulkElementRevertTransactionData withId(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public V2BulkElementRevertTransactionData withId(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2BulkElementRevertTransactionData withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V2BulkElementRevertTransactionData withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2BulkElementRevertTransactionData other = (V2BulkElementRevertTransactionData) o; - return - Utils.enhancedDeepEquals(this.atEffectiveDate, other.atEffectiveDate) && - Utils.enhancedDeepEquals(this.force, other.force) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - atEffectiveDate, force, id, - metadata); - } - - @Override - public String toString() { - return Utils.toString(V2BulkElementRevertTransactionData.class, - "atEffectiveDate", atEffectiveDate, - "force", force, - "id", id, - "metadata", metadata); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional atEffectiveDate = Optional.empty(); - - private Optional force = Optional.empty(); - - private BigInteger id; - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder atEffectiveDate(boolean atEffectiveDate) { - Utils.checkNotNull(atEffectiveDate, "atEffectiveDate"); - this.atEffectiveDate = Optional.ofNullable(atEffectiveDate); - return this; - } - - public Builder atEffectiveDate(Optional atEffectiveDate) { - Utils.checkNotNull(atEffectiveDate, "atEffectiveDate"); - this.atEffectiveDate = atEffectiveDate; - return this; - } - - - public Builder force(boolean force) { - Utils.checkNotNull(force, "force"); - this.force = Optional.ofNullable(force); - return this; - } - - public Builder force(Optional force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - - public Builder id(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public Builder id(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2BulkElementRevertTransactionData build() { - - return new V2BulkElementRevertTransactionData( - atEffectiveDate, force, id, - metadata); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementTypeIdResolver.java b/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementTypeIdResolver.java deleted file mode 100644 index 09b842f8a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2BulkElementTypeIdResolver.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.formance.formance_sdk.utils.GenericTypeIdResolver; -import java.lang.IllegalArgumentException; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; - - -public class V2BulkElementTypeIdResolver extends GenericTypeIdResolver { - - public V2BulkElementTypeIdResolver() { - super(UnknownV2BulkElement.class); - initializeTypeMap(); - } - - private void initializeTypeMap() { - registerType("ADD_METADATA", V2BulkElementAddMetadata.class); - registerType("CREATE_TRANSACTION", V2BulkElementCreateTransaction.class); - registerType("DELETE_METADATA", V2BulkElementDeleteMetadata.class); - registerType("REVERT_TRANSACTION", V2BulkElementRevertTransaction.class); - } - - @Override - public String idFromValue(Object value) { - if (value == null) { - return null; - } - - // Handle known types by checking if they implement the discriminator method - if (value instanceof V2BulkElement) { - V2BulkElement discriminated = (V2BulkElement) value; - return discriminated.action(); - } - - throw new IllegalArgumentException("Unknown value type: " + value.getClass().getName()); - } - - @Override - public String getDescForKnownTypeIds() { - return "V2BulkElement type resolver"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ConfigInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ConfigInfoResponse.java deleted file mode 100644 index 9b9711298..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ConfigInfoResponse.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ConfigInfoResponse { - - @JsonProperty("server") - private String server; - - - @JsonProperty("version") - private String version; - - @JsonCreator - public V2ConfigInfoResponse( - @JsonProperty("server") String server, - @JsonProperty("version") String version) { - Utils.checkNotNull(server, "server"); - Utils.checkNotNull(version, "version"); - this.server = server; - this.version = version; - } - - @JsonIgnore - public String server() { - return server; - } - - @JsonIgnore - public String version() { - return version; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ConfigInfoResponse withServer(String server) { - Utils.checkNotNull(server, "server"); - this.server = server; - return this; - } - - public V2ConfigInfoResponse withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ConfigInfoResponse other = (V2ConfigInfoResponse) o; - return - Utils.enhancedDeepEquals(this.server, other.server) && - Utils.enhancedDeepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - server, version); - } - - @Override - public String toString() { - return Utils.toString(V2ConfigInfoResponse.class, - "server", server, - "version", version); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String server; - - private String version; - - private Builder() { - // force use of static builder() method - } - - - public Builder server(String server) { - Utils.checkNotNull(server, "server"); - this.server = server; - return this; - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public V2ConfigInfoResponse build() { - - return new V2ConfigInfoResponse( - server, version); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateExporterRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V2CreateExporterRequest.java deleted file mode 100644 index ee0fcb9b3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateExporterRequest.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.util.Map; - - -public class V2CreateExporterRequest { - - @JsonProperty("config") - private Map config; - - - @JsonProperty("driver") - private String driver; - - @JsonCreator - public V2CreateExporterRequest( - @JsonProperty("config") Map config, - @JsonProperty("driver") String driver) { - config = Utils.emptyMapIfNull(config); - Utils.checkNotNull(config, "config"); - Utils.checkNotNull(driver, "driver"); - this.config = config; - this.driver = driver; - } - - @JsonIgnore - public Map config() { - return config; - } - - @JsonIgnore - public String driver() { - return driver; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreateExporterRequest withConfig(Map config) { - Utils.checkNotNull(config, "config"); - this.config = config; - return this; - } - - public V2CreateExporterRequest withDriver(String driver) { - Utils.checkNotNull(driver, "driver"); - this.driver = driver; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreateExporterRequest other = (V2CreateExporterRequest) o; - return - Utils.enhancedDeepEquals(this.config, other.config) && - Utils.enhancedDeepEquals(this.driver, other.driver); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - config, driver); - } - - @Override - public String toString() { - return Utils.toString(V2CreateExporterRequest.class, - "config", config, - "driver", driver); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map config; - - private String driver; - - private Builder() { - // force use of static builder() method - } - - - public Builder config(Map config) { - Utils.checkNotNull(config, "config"); - this.config = config; - return this; - } - - - public Builder driver(String driver) { - Utils.checkNotNull(driver, "driver"); - this.driver = driver; - return this; - } - - public V2CreateExporterRequest build() { - - return new V2CreateExporterRequest( - config, driver); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2CreateTransactionResponse.java deleted file mode 100644 index fffab6692..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateTransactionResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2CreateTransactionResponse { - - @JsonProperty("data") - private V2Transaction data; - - @JsonCreator - public V2CreateTransactionResponse( - @JsonProperty("data") V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Transaction data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreateTransactionResponse withData(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreateTransactionResponse other = (V2CreateTransactionResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2CreateTransactionResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Transaction data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2CreateTransactionResponse build() { - - return new V2CreateTransactionResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2CreateTriggerResponse.java deleted file mode 100644 index 56d781259..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateTriggerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2CreateTriggerResponse { - - @JsonProperty("data") - private V2Trigger data; - - @JsonCreator - public V2CreateTriggerResponse( - @JsonProperty("data") V2Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Trigger data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreateTriggerResponse withData(V2Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreateTriggerResponse other = (V2CreateTriggerResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2CreateTriggerResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Trigger data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2CreateTriggerResponse build() { - - return new V2CreateTriggerResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowRequest.java deleted file mode 100644 index 2db5f16d3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowRequest.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class V2CreateWorkflowRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonProperty("stages") - private List> stages; - - @JsonCreator - public V2CreateWorkflowRequest( - @JsonProperty("name") Optional name, - @JsonProperty("stages") List> stages) { - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(stages, "stages"); - this.name = name; - this.stages = stages; - } - - public V2CreateWorkflowRequest( - List> stages) { - this(Optional.empty(), stages); - } - - @JsonIgnore - public Optional name() { - return name; - } - - @JsonIgnore - public List> stages() { - return stages; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreateWorkflowRequest withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public V2CreateWorkflowRequest withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V2CreateWorkflowRequest withStages(List> stages) { - Utils.checkNotNull(stages, "stages"); - this.stages = stages; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreateWorkflowRequest other = (V2CreateWorkflowRequest) o; - return - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.stages, other.stages); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - name, stages); - } - - @Override - public String toString() { - return Utils.toString(V2CreateWorkflowRequest.class, - "name", name, - "stages", stages); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional name = Optional.empty(); - - private List> stages; - - private Builder() { - // force use of static builder() method - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder stages(List> stages) { - Utils.checkNotNull(stages, "stages"); - this.stages = stages; - return this; - } - - public V2CreateWorkflowRequest build() { - - return new V2CreateWorkflowRequest( - name, stages); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowResponse.java deleted file mode 100644 index f5d2c64ca..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2CreateWorkflowResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2CreateWorkflowResponse { - - @JsonProperty("data") - private V2Workflow data; - - @JsonCreator - public V2CreateWorkflowResponse( - @JsonProperty("data") V2Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Workflow data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2CreateWorkflowResponse withData(V2Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2CreateWorkflowResponse other = (V2CreateWorkflowResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2CreateWorkflowResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Workflow data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2CreateWorkflowResponse build() { - - return new V2CreateWorkflowResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ErrorResponse.java deleted file mode 100644 index 1bdd3350e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ErrorResponse.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class V2ErrorResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("details") - private Optional details; - - - @JsonProperty("errorCode") - private V2ErrorsEnum errorCode; - - - @JsonProperty("errorMessage") - private String errorMessage; - - @JsonCreator - public V2ErrorResponse( - @JsonProperty("details") Optional details, - @JsonProperty("errorCode") V2ErrorsEnum errorCode, - @JsonProperty("errorMessage") String errorMessage) { - Utils.checkNotNull(details, "details"); - Utils.checkNotNull(errorCode, "errorCode"); - Utils.checkNotNull(errorMessage, "errorMessage"); - this.details = details; - this.errorCode = errorCode; - this.errorMessage = errorMessage; - } - - public V2ErrorResponse( - V2ErrorsEnum errorCode, - String errorMessage) { - this(Optional.empty(), errorCode, errorMessage); - } - - @JsonIgnore - public Optional details() { - return details; - } - - @JsonIgnore - public V2ErrorsEnum errorCode() { - return errorCode; - } - - @JsonIgnore - public String errorMessage() { - return errorMessage; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ErrorResponse withDetails(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - - public V2ErrorResponse withDetails(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - public V2ErrorResponse withErrorCode(V2ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - public V2ErrorResponse withErrorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ErrorResponse other = (V2ErrorResponse) o; - return - Utils.enhancedDeepEquals(this.details, other.details) && - Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && - Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - details, errorCode, errorMessage); - } - - @Override - public String toString() { - return Utils.toString(V2ErrorResponse.class, - "details", details, - "errorCode", errorCode, - "errorMessage", errorMessage); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional details = Optional.empty(); - - private V2ErrorsEnum errorCode; - - private String errorMessage; - - private Builder() { - // force use of static builder() method - } - - - public Builder details(String details) { - Utils.checkNotNull(details, "details"); - this.details = Optional.ofNullable(details); - return this; - } - - public Builder details(Optional details) { - Utils.checkNotNull(details, "details"); - this.details = details; - return this; - } - - - public Builder errorCode(V2ErrorsEnum errorCode) { - Utils.checkNotNull(errorCode, "errorCode"); - this.errorCode = errorCode; - return this; - } - - - public Builder errorMessage(String errorMessage) { - Utils.checkNotNull(errorMessage, "errorMessage"); - this.errorMessage = errorMessage; - return this; - } - - public V2ErrorResponse build() { - - return new V2ErrorResponse( - details, errorCode, errorMessage); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Exporter.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Exporter.java deleted file mode 100644 index 5048777d0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Exporter.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import java.util.Map; - - -public class V2Exporter { - - @JsonProperty("config") - private Map config; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("driver") - private String driver; - - - @JsonProperty("id") - private String id; - - @JsonCreator - public V2Exporter( - @JsonProperty("config") Map config, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("driver") String driver, - @JsonProperty("id") String id) { - config = Utils.emptyMapIfNull(config); - Utils.checkNotNull(config, "config"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(driver, "driver"); - Utils.checkNotNull(id, "id"); - this.config = config; - this.createdAt = createdAt; - this.driver = driver; - this.id = id; - } - - @JsonIgnore - public Map config() { - return config; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String driver() { - return driver; - } - - @JsonIgnore - public String id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Exporter withConfig(Map config) { - Utils.checkNotNull(config, "config"); - this.config = config; - return this; - } - - public V2Exporter withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V2Exporter withDriver(String driver) { - Utils.checkNotNull(driver, "driver"); - this.driver = driver; - return this; - } - - public V2Exporter withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Exporter other = (V2Exporter) o; - return - Utils.enhancedDeepEquals(this.config, other.config) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.driver, other.driver) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - config, createdAt, driver, - id); - } - - @Override - public String toString() { - return Utils.toString(V2Exporter.class, - "config", config, - "createdAt", createdAt, - "driver", driver, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map config; - - private OffsetDateTime createdAt; - - private String driver; - - private String id; - - private Builder() { - // force use of static builder() method - } - - - public Builder config(Map config) { - Utils.checkNotNull(config, "config"); - this.config = config; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder driver(String driver) { - Utils.checkNotNull(driver, "driver"); - this.driver = driver; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2Exporter build() { - - return new V2Exporter( - config, createdAt, driver, - id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2GetLedgerResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2GetLedgerResponse.java deleted file mode 100644 index 3e04d5c24..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2GetLedgerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2GetLedgerResponse { - - @JsonProperty("data") - private V2Ledger data; - - @JsonCreator - public V2GetLedgerResponse( - @JsonProperty("data") V2Ledger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Ledger data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetLedgerResponse withData(V2Ledger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetLedgerResponse other = (V2GetLedgerResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetLedgerResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Ledger data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Ledger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetLedgerResponse build() { - - return new V2GetLedgerResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2GetTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2GetTransactionResponse.java deleted file mode 100644 index 2b0f72f0a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2GetTransactionResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2GetTransactionResponse { - - @JsonProperty("data") - private V2Transaction data; - - @JsonCreator - public V2GetTransactionResponse( - @JsonProperty("data") V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Transaction data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetTransactionResponse withData(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetTransactionResponse other = (V2GetTransactionResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetTransactionResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Transaction data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetTransactionResponse build() { - - return new V2GetTransactionResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryResponse.java deleted file mode 100644 index 762ffbd2e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class V2GetWorkflowInstanceHistoryResponse { - - @JsonProperty("data") - private List data; - - @JsonCreator - public V2GetWorkflowInstanceHistoryResponse( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetWorkflowInstanceHistoryResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetWorkflowInstanceHistoryResponse other = (V2GetWorkflowInstanceHistoryResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetWorkflowInstanceHistoryResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetWorkflowInstanceHistoryResponse build() { - - return new V2GetWorkflowInstanceHistoryResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryStageResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryStageResponse.java deleted file mode 100644 index da8653ca0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceHistoryStageResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class V2GetWorkflowInstanceHistoryStageResponse { - - @JsonProperty("data") - private List data; - - @JsonCreator - public V2GetWorkflowInstanceHistoryStageResponse( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetWorkflowInstanceHistoryStageResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetWorkflowInstanceHistoryStageResponse other = (V2GetWorkflowInstanceHistoryStageResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetWorkflowInstanceHistoryStageResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetWorkflowInstanceHistoryStageResponse build() { - - return new V2GetWorkflowInstanceHistoryStageResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceResponse.java deleted file mode 100644 index a5034d78b..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowInstanceResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2GetWorkflowInstanceResponse { - - @JsonProperty("data") - private V2WorkflowInstance data; - - @JsonCreator - public V2GetWorkflowInstanceResponse( - @JsonProperty("data") V2WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2WorkflowInstance data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetWorkflowInstanceResponse withData(V2WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetWorkflowInstanceResponse other = (V2GetWorkflowInstanceResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetWorkflowInstanceResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2WorkflowInstance data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetWorkflowInstanceResponse build() { - - return new V2GetWorkflowInstanceResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowResponse.java deleted file mode 100644 index 5d16e879a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2GetWorkflowResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2GetWorkflowResponse { - - @JsonProperty("data") - private V2Workflow data; - - @JsonCreator - public V2GetWorkflowResponse( - @JsonProperty("data") V2Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Workflow data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2GetWorkflowResponse withData(V2Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2GetWorkflowResponse other = (V2GetWorkflowResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2GetWorkflowResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Workflow data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Workflow data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2GetWorkflowResponse build() { - - return new V2GetWorkflowResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoResponse.java deleted file mode 100644 index d4d5dae7b..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LedgerInfoResponse.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2LedgerInfoResponse { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("data") - private Optional data; - - @JsonCreator - public V2LedgerInfoResponse( - @JsonProperty("data") Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - public V2LedgerInfoResponse() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional data() { - return (Optional) data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2LedgerInfoResponse withData(V2LedgerInfo data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - - public V2LedgerInfoResponse withData(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2LedgerInfoResponse other = (V2LedgerInfoResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2LedgerInfoResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional data = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2LedgerInfo data) { - Utils.checkNotNull(data, "data"); - this.data = Optional.ofNullable(data); - return this; - } - - public Builder data(Optional data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2LedgerInfoResponse build() { - - return new V2LedgerInfoResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponse.java deleted file mode 100644 index aabff1c7c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ListWalletsResponse { - - @JsonProperty("cursor") - private V2ListWalletsResponseCursor cursor; - - @JsonCreator - public V2ListWalletsResponse( - @JsonProperty("cursor") V2ListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public V2ListWalletsResponseCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListWalletsResponse withCursor(V2ListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListWalletsResponse other = (V2ListWalletsResponse) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(V2ListWalletsResponse.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2ListWalletsResponseCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(V2ListWalletsResponseCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public V2ListWalletsResponse build() { - - return new V2ListWalletsResponse( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponseCursor.java deleted file mode 100644 index 525b8b8dd..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ListWalletsResponseCursor.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.util.List; -import java.util.Optional; - - -public class V2ListWalletsResponseCursor { - - @JsonProperty("data") - private List data; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("hasMore") - private Optional hasMore; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("next") - private Optional next; - - - @JsonProperty("pageSize") - private long pageSize; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("previous") - private Optional previous; - - @JsonCreator - public V2ListWalletsResponseCursor( - @JsonProperty("data") List data, - @JsonProperty("hasMore") Optional hasMore, - @JsonProperty("next") Optional next, - @JsonProperty("pageSize") long pageSize, - @JsonProperty("previous") Optional previous) { - Utils.checkNotNull(data, "data"); - Utils.checkNotNull(hasMore, "hasMore"); - Utils.checkNotNull(next, "next"); - Utils.checkNotNull(pageSize, "pageSize"); - Utils.checkNotNull(previous, "previous"); - this.data = data; - this.hasMore = hasMore; - this.next = next; - this.pageSize = pageSize; - this.previous = previous; - } - - public V2ListWalletsResponseCursor( - List data, - long pageSize) { - this(data, Optional.empty(), Optional.empty(), - pageSize, Optional.empty()); - } - - @JsonIgnore - public List data() { - return data; - } - - @JsonIgnore - public Optional hasMore() { - return hasMore; - } - - @JsonIgnore - public Optional next() { - return next; - } - - @JsonIgnore - public long pageSize() { - return pageSize; - } - - @JsonIgnore - public Optional previous() { - return previous; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ListWalletsResponseCursor withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ListWalletsResponseCursor withHasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - - public V2ListWalletsResponseCursor withHasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - public V2ListWalletsResponseCursor withNext(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - - public V2ListWalletsResponseCursor withNext(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - public V2ListWalletsResponseCursor withPageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - public V2ListWalletsResponseCursor withPrevious(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - - public V2ListWalletsResponseCursor withPrevious(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ListWalletsResponseCursor other = (V2ListWalletsResponseCursor) o; - return - Utils.enhancedDeepEquals(this.data, other.data) && - Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && - Utils.enhancedDeepEquals(this.next, other.next) && - Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && - Utils.enhancedDeepEquals(this.previous, other.previous); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data, hasMore, next, - pageSize, previous); - } - - @Override - public String toString() { - return Utils.toString(V2ListWalletsResponseCursor.class, - "data", data, - "hasMore", hasMore, - "next", next, - "pageSize", pageSize, - "previous", previous); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Optional hasMore = Optional.empty(); - - private Optional next = Optional.empty(); - - private Long pageSize; - - private Optional previous = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - - public Builder hasMore(boolean hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = Optional.ofNullable(hasMore); - return this; - } - - public Builder hasMore(Optional hasMore) { - Utils.checkNotNull(hasMore, "hasMore"); - this.hasMore = hasMore; - return this; - } - - - public Builder next(String next) { - Utils.checkNotNull(next, "next"); - this.next = Optional.ofNullable(next); - return this; - } - - public Builder next(Optional next) { - Utils.checkNotNull(next, "next"); - this.next = next; - return this; - } - - - public Builder pageSize(long pageSize) { - Utils.checkNotNull(pageSize, "pageSize"); - this.pageSize = pageSize; - return this; - } - - - public Builder previous(String previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = Optional.ofNullable(previous); - return this; - } - - public Builder previous(Optional previous) { - Utils.checkNotNull(previous, "previous"); - this.previous = previous; - return this; - } - - public V2ListWalletsResponseCursor build() { - - return new V2ListWalletsResponseCursor( - data, hasMore, next, - pageSize, previous); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogData.java b/src/main/java/com/formance/formance_sdk/models/shared/V2LogData.java deleted file mode 100644 index 2a425a09c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogData.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.formance.formance_sdk.utils.OneOfDeserializer; -import com.formance.formance_sdk.utils.TypedObject; -import com.formance.formance_sdk.utils.Utils.JsonShape; -import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; - -/** - * V2LogData - * - *

The payload of the log entry. Structure depends on the log type: - * - NEW_TRANSACTION: V2LogDataNewTransaction - * - SET_METADATA: V2LogDataSetMetadata - * - REVERTED_TRANSACTION: V2LogDataRevertedTransaction - * - DELETE_METADATA: V2LogDataDeleteMetadata - * - INSERTED_SCHEMA: V2LogDataInsertedSchema - */ -@JsonDeserialize(using = V2LogData._Deserializer.class) -public class V2LogData { - - @JsonValue - private final TypedObject value; - - private V2LogData(TypedObject value) { - this.value = value; - } - - public static V2LogData of(V2LogDataNewTransaction value) { - Utils.checkNotNull(value, "value"); - return new V2LogData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static V2LogData of(V2LogDataSetMetadata value) { - Utils.checkNotNull(value, "value"); - return new V2LogData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static V2LogData of(V2LogDataRevertedTransaction value) { - Utils.checkNotNull(value, "value"); - return new V2LogData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static V2LogData of(V2LogDataDeleteMetadata value) { - Utils.checkNotNull(value, "value"); - return new V2LogData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static V2LogData of(V2LogDataInsertedSchema value) { - Utils.checkNotNull(value, "value"); - return new V2LogData(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - /** - * Returns an instance of one of these types: - *

    - *
  • {@code com.formance.formance_sdk.models.shared.V2LogDataNewTransaction}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2LogDataSetMetadata}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2LogDataRevertedTransaction}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2LogDataDeleteMetadata}
  • - *
  • {@code com.formance.formance_sdk.models.shared.V2LogDataInsertedSchema}
  • - *
- * - *

Use {@code instanceof} to determine what type is returned. For example: - * - *

-     * if (obj.value() instanceof String) {
-     *     String answer = (String) obj.value();
-     *     System.out.println("answer=" + answer);
-     * }
-     * 
- * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2LogData other = (V2LogData) o; - return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return Utils.enhancedHash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer { - - public _Deserializer() { - super(V2LogData.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(V2LogData.class, - "value", value); - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataInsertedSchema.java b/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataInsertedSchema.java deleted file mode 100644 index 8f376737d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataInsertedSchema.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2LogDataInsertedSchema - * - *

Payload for INSERTED_SCHEMA log entries. Contains the schema that was inserted into the ledger. - */ -public class V2LogDataInsertedSchema { - /** - * Complete schema structure with metadata - */ - @JsonProperty("schema") - private V2Schema schema; - - @JsonCreator - public V2LogDataInsertedSchema( - @JsonProperty("schema") V2Schema schema) { - Utils.checkNotNull(schema, "schema"); - this.schema = schema; - } - - /** - * Complete schema structure with metadata - */ - @JsonIgnore - public V2Schema schema() { - return schema; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Complete schema structure with metadata - */ - public V2LogDataInsertedSchema withSchema(V2Schema schema) { - Utils.checkNotNull(schema, "schema"); - this.schema = schema; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2LogDataInsertedSchema other = (V2LogDataInsertedSchema) o; - return - Utils.enhancedDeepEquals(this.schema, other.schema); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - schema); - } - - @Override - public String toString() { - return Utils.toString(V2LogDataInsertedSchema.class, - "schema", schema); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Schema schema; - - private Builder() { - // force use of static builder() method - } - - - /** - * Complete schema structure with metadata - */ - public Builder schema(V2Schema schema) { - Utils.checkNotNull(schema, "schema"); - this.schema = schema; - return this; - } - - public V2LogDataInsertedSchema build() { - - return new V2LogDataInsertedSchema( - schema); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataNewTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataNewTransaction.java deleted file mode 100644 index f5721f4e0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataNewTransaction.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Map; - -/** - * V2LogDataNewTransaction - * - *

Payload for NEW_TRANSACTION log entries. Contains the created transaction and any account metadata - * set during creation. - */ -public class V2LogDataNewTransaction { - /** - * Metadata applied to accounts involved in the transaction - */ - @JsonProperty("accountMetadata") - private Map> accountMetadata; - - /** - * Transaction structure as it appears in log payloads - */ - @JsonProperty("transaction") - private V2LogTransaction transaction; - - @JsonCreator - public V2LogDataNewTransaction( - @JsonProperty("accountMetadata") Map> accountMetadata, - @JsonProperty("transaction") V2LogTransaction transaction) { - accountMetadata = Utils.emptyMapIfNull(accountMetadata); - Utils.checkNotNull(accountMetadata, "accountMetadata"); - Utils.checkNotNull(transaction, "transaction"); - this.accountMetadata = accountMetadata; - this.transaction = transaction; - } - - /** - * Metadata applied to accounts involved in the transaction - */ - @JsonIgnore - public Map> accountMetadata() { - return accountMetadata; - } - - /** - * Transaction structure as it appears in log payloads - */ - @JsonIgnore - public V2LogTransaction transaction() { - return transaction; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Metadata applied to accounts involved in the transaction - */ - public V2LogDataNewTransaction withAccountMetadata(Map> accountMetadata) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - this.accountMetadata = accountMetadata; - return this; - } - - /** - * Transaction structure as it appears in log payloads - */ - public V2LogDataNewTransaction withTransaction(V2LogTransaction transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = transaction; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2LogDataNewTransaction other = (V2LogDataNewTransaction) o; - return - Utils.enhancedDeepEquals(this.accountMetadata, other.accountMetadata) && - Utils.enhancedDeepEquals(this.transaction, other.transaction); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountMetadata, transaction); - } - - @Override - public String toString() { - return Utils.toString(V2LogDataNewTransaction.class, - "accountMetadata", accountMetadata, - "transaction", transaction); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map> accountMetadata; - - private V2LogTransaction transaction; - - private Builder() { - // force use of static builder() method - } - - - /** - * Metadata applied to accounts involved in the transaction - */ - public Builder accountMetadata(Map> accountMetadata) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - this.accountMetadata = accountMetadata; - return this; - } - - - /** - * Transaction structure as it appears in log payloads - */ - public Builder transaction(V2LogTransaction transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = transaction; - return this; - } - - public V2LogDataNewTransaction build() { - - return new V2LogDataNewTransaction( - accountMetadata, transaction); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataRevertedTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataRevertedTransaction.java deleted file mode 100644 index 2de379e3d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogDataRevertedTransaction.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - -/** - * V2LogDataRevertedTransaction - * - *

Payload for REVERTED_TRANSACTION log entries. Contains both the original reverted transaction and - * the new reverting transaction. - */ -public class V2LogDataRevertedTransaction { - /** - * Transaction structure as it appears in log payloads - */ - @JsonProperty("revertedTransaction") - private V2LogTransaction revertedTransaction; - - /** - * Transaction structure as it appears in log payloads - */ - @JsonProperty("transaction") - private V2LogTransaction transaction; - - @JsonCreator - public V2LogDataRevertedTransaction( - @JsonProperty("revertedTransaction") V2LogTransaction revertedTransaction, - @JsonProperty("transaction") V2LogTransaction transaction) { - Utils.checkNotNull(revertedTransaction, "revertedTransaction"); - Utils.checkNotNull(transaction, "transaction"); - this.revertedTransaction = revertedTransaction; - this.transaction = transaction; - } - - /** - * Transaction structure as it appears in log payloads - */ - @JsonIgnore - public V2LogTransaction revertedTransaction() { - return revertedTransaction; - } - - /** - * Transaction structure as it appears in log payloads - */ - @JsonIgnore - public V2LogTransaction transaction() { - return transaction; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Transaction structure as it appears in log payloads - */ - public V2LogDataRevertedTransaction withRevertedTransaction(V2LogTransaction revertedTransaction) { - Utils.checkNotNull(revertedTransaction, "revertedTransaction"); - this.revertedTransaction = revertedTransaction; - return this; - } - - /** - * Transaction structure as it appears in log payloads - */ - public V2LogDataRevertedTransaction withTransaction(V2LogTransaction transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = transaction; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2LogDataRevertedTransaction other = (V2LogDataRevertedTransaction) o; - return - Utils.enhancedDeepEquals(this.revertedTransaction, other.revertedTransaction) && - Utils.enhancedDeepEquals(this.transaction, other.transaction); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - revertedTransaction, transaction); - } - - @Override - public String toString() { - return Utils.toString(V2LogDataRevertedTransaction.class, - "revertedTransaction", revertedTransaction, - "transaction", transaction); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2LogTransaction revertedTransaction; - - private V2LogTransaction transaction; - - private Builder() { - // force use of static builder() method - } - - - /** - * Transaction structure as it appears in log payloads - */ - public Builder revertedTransaction(V2LogTransaction revertedTransaction) { - Utils.checkNotNull(revertedTransaction, "revertedTransaction"); - this.revertedTransaction = revertedTransaction; - return this; - } - - - /** - * Transaction structure as it appears in log payloads - */ - public Builder transaction(V2LogTransaction transaction) { - Utils.checkNotNull(transaction, "transaction"); - this.transaction = transaction; - return this; - } - - public V2LogDataRevertedTransaction build() { - - return new V2LogDataRevertedTransaction( - revertedTransaction, transaction); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2LogTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2LogTransaction.java deleted file mode 100644 index 6959962e5..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2LogTransaction.java +++ /dev/null @@ -1,670 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - -/** - * V2LogTransaction - * - *

Transaction structure as it appears in log payloads - */ -public class V2LogTransaction { - - @JsonProperty("id") - private BigInteger id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("insertedAt") - private Optional insertedAt; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postCommitEffectiveVolumes") - private Optional>> postCommitEffectiveVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postCommitVolumes") - private Optional>> postCommitVolumes; - - - @JsonProperty("postings") - private List postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("preCommitEffectiveVolumes") - private Optional>> preCommitEffectiveVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("preCommitVolumes") - private Optional>> preCommitVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - /** - * Indicates if the transaction has been reverted - */ - @JsonProperty("reverted") - private boolean reverted; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("revertedAt") - private Optional revertedAt; - - /** - * Transaction template used - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("template") - private Optional template; - - - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public V2LogTransaction( - @JsonProperty("id") BigInteger id, - @JsonProperty("insertedAt") Optional insertedAt, - @JsonProperty("metadata") Map metadata, - @JsonProperty("postCommitEffectiveVolumes") Optional>> postCommitEffectiveVolumes, - @JsonProperty("postCommitVolumes") Optional>> postCommitVolumes, - @JsonProperty("postings") List postings, - @JsonProperty("preCommitEffectiveVolumes") Optional>> preCommitEffectiveVolumes, - @JsonProperty("preCommitVolumes") Optional>> preCommitVolumes, - @JsonProperty("reference") Optional reference, - @JsonProperty("reverted") boolean reverted, - @JsonProperty("revertedAt") Optional revertedAt, - @JsonProperty("template") Optional template, - @JsonProperty("timestamp") OffsetDateTime timestamp, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(insertedAt, "insertedAt"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(reverted, "reverted"); - Utils.checkNotNull(revertedAt, "revertedAt"); - Utils.checkNotNull(template, "template"); - Utils.checkNotNull(timestamp, "timestamp"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.id = id; - this.insertedAt = insertedAt; - this.metadata = metadata; - this.postCommitEffectiveVolumes = postCommitEffectiveVolumes; - this.postCommitVolumes = postCommitVolumes; - this.postings = postings; - this.preCommitEffectiveVolumes = preCommitEffectiveVolumes; - this.preCommitVolumes = preCommitVolumes; - this.reference = reference; - this.reverted = reverted; - this.revertedAt = revertedAt; - this.template = template; - this.timestamp = timestamp; - this.updatedAt = updatedAt; - } - - public V2LogTransaction( - BigInteger id, - Map metadata, - List postings, - boolean reverted, - OffsetDateTime timestamp) { - this(id, Optional.empty(), metadata, - Optional.empty(), Optional.empty(), postings, - Optional.empty(), Optional.empty(), Optional.empty(), - reverted, Optional.empty(), Optional.empty(), - timestamp, Optional.empty()); - } - - @JsonIgnore - public BigInteger id() { - return id; - } - - @JsonIgnore - public Optional insertedAt() { - return insertedAt; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> postCommitEffectiveVolumes() { - return (Optional>>) postCommitEffectiveVolumes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> postCommitVolumes() { - return (Optional>>) postCommitVolumes; - } - - @JsonIgnore - public List postings() { - return postings; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> preCommitEffectiveVolumes() { - return (Optional>>) preCommitEffectiveVolumes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> preCommitVolumes() { - return (Optional>>) preCommitVolumes; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - /** - * Indicates if the transaction has been reverted - */ - @JsonIgnore - public boolean reverted() { - return reverted; - } - - @JsonIgnore - public Optional revertedAt() { - return revertedAt; - } - - /** - * Transaction template used - */ - @JsonIgnore - public Optional template() { - return template; - } - - @JsonIgnore - public OffsetDateTime timestamp() { - return timestamp; - } - - @JsonIgnore - public Optional updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2LogTransaction withId(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public V2LogTransaction withId(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2LogTransaction withInsertedAt(OffsetDateTime insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = Optional.ofNullable(insertedAt); - return this; - } - - - public V2LogTransaction withInsertedAt(Optional insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = insertedAt; - return this; - } - - public V2LogTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2LogTransaction withPostCommitEffectiveVolumes(Map> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = Optional.ofNullable(postCommitEffectiveVolumes); - return this; - } - - - public V2LogTransaction withPostCommitEffectiveVolumes(Optional>> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = postCommitEffectiveVolumes; - return this; - } - - public V2LogTransaction withPostCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - - public V2LogTransaction withPostCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - public V2LogTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public V2LogTransaction withPreCommitEffectiveVolumes(Map> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = Optional.ofNullable(preCommitEffectiveVolumes); - return this; - } - - - public V2LogTransaction withPreCommitEffectiveVolumes(Optional>> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = preCommitEffectiveVolumes; - return this; - } - - public V2LogTransaction withPreCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - - public V2LogTransaction withPreCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - public V2LogTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public V2LogTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - /** - * Indicates if the transaction has been reverted - */ - public V2LogTransaction withReverted(boolean reverted) { - Utils.checkNotNull(reverted, "reverted"); - this.reverted = reverted; - return this; - } - - public V2LogTransaction withRevertedAt(OffsetDateTime revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = Optional.ofNullable(revertedAt); - return this; - } - - - public V2LogTransaction withRevertedAt(Optional revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = revertedAt; - return this; - } - - /** - * Transaction template used - */ - public V2LogTransaction withTemplate(String template) { - Utils.checkNotNull(template, "template"); - this.template = Optional.ofNullable(template); - return this; - } - - - /** - * Transaction template used - */ - public V2LogTransaction withTemplate(Optional template) { - Utils.checkNotNull(template, "template"); - this.template = template; - return this; - } - - public V2LogTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public V2LogTransaction withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - - public V2LogTransaction withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2LogTransaction other = (V2LogTransaction) o; - return - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.insertedAt, other.insertedAt) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postCommitEffectiveVolumes, other.postCommitEffectiveVolumes) && - Utils.enhancedDeepEquals(this.postCommitVolumes, other.postCommitVolumes) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.preCommitEffectiveVolumes, other.preCommitEffectiveVolumes) && - Utils.enhancedDeepEquals(this.preCommitVolumes, other.preCommitVolumes) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.reverted, other.reverted) && - Utils.enhancedDeepEquals(this.revertedAt, other.revertedAt) && - Utils.enhancedDeepEquals(this.template, other.template) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - id, insertedAt, metadata, - postCommitEffectiveVolumes, postCommitVolumes, postings, - preCommitEffectiveVolumes, preCommitVolumes, reference, - reverted, revertedAt, template, - timestamp, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(V2LogTransaction.class, - "id", id, - "insertedAt", insertedAt, - "metadata", metadata, - "postCommitEffectiveVolumes", postCommitEffectiveVolumes, - "postCommitVolumes", postCommitVolumes, - "postings", postings, - "preCommitEffectiveVolumes", preCommitEffectiveVolumes, - "preCommitVolumes", preCommitVolumes, - "reference", reference, - "reverted", reverted, - "revertedAt", revertedAt, - "template", template, - "timestamp", timestamp, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger id; - - private Optional insertedAt = Optional.empty(); - - private Map metadata; - - private Optional>> postCommitEffectiveVolumes = Optional.empty(); - - private Optional>> postCommitVolumes = Optional.empty(); - - private List postings; - - private Optional>> preCommitEffectiveVolumes = Optional.empty(); - - private Optional>> preCommitVolumes = Optional.empty(); - - private Optional reference = Optional.empty(); - - private Boolean reverted; - - private Optional revertedAt = Optional.empty(); - - private Optional template = Optional.empty(); - - private OffsetDateTime timestamp; - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder id(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public Builder id(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder insertedAt(OffsetDateTime insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = Optional.ofNullable(insertedAt); - return this; - } - - public Builder insertedAt(Optional insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = insertedAt; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postCommitEffectiveVolumes(Map> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = Optional.ofNullable(postCommitEffectiveVolumes); - return this; - } - - public Builder postCommitEffectiveVolumes(Optional>> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = postCommitEffectiveVolumes; - return this; - } - - - public Builder postCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - public Builder postCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder preCommitEffectiveVolumes(Map> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = Optional.ofNullable(preCommitEffectiveVolumes); - return this; - } - - public Builder preCommitEffectiveVolumes(Optional>> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = preCommitEffectiveVolumes; - return this; - } - - - public Builder preCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - public Builder preCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - /** - * Indicates if the transaction has been reverted - */ - public Builder reverted(boolean reverted) { - Utils.checkNotNull(reverted, "reverted"); - this.reverted = reverted; - return this; - } - - - public Builder revertedAt(OffsetDateTime revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = Optional.ofNullable(revertedAt); - return this; - } - - public Builder revertedAt(Optional revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = revertedAt; - return this; - } - - - /** - * Transaction template used - */ - public Builder template(String template) { - Utils.checkNotNull(template, "template"); - this.template = Optional.ofNullable(template); - return this; - } - - /** - * Transaction template used - */ - public Builder template(Optional template) { - Utils.checkNotNull(template, "template"); - this.template = template; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public V2LogTransaction build() { - - return new V2LogTransaction( - id, insertedAt, metadata, - postCommitEffectiveVolumes, postCommitVolumes, postings, - preCommitEffectiveVolumes, preCommitVolumes, reference, - reverted, revertedAt, template, - timestamp, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Pipeline.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Pipeline.java deleted file mode 100644 index 7d7c9572b..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Pipeline.java +++ /dev/null @@ -1,280 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import java.util.Optional; - - -public class V2Pipeline { - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("enabled") - private Optional enabled; - - - @JsonProperty("exporterID") - private String exporterID; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogID") - private Optional lastLogID; - - - @JsonProperty("ledger") - private String ledger; - - @JsonCreator - public V2Pipeline( - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("enabled") Optional enabled, - @JsonProperty("exporterID") String exporterID, - @JsonProperty("id") String id, - @JsonProperty("lastLogID") Optional lastLogID, - @JsonProperty("ledger") String ledger) { - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(enabled, "enabled"); - Utils.checkNotNull(exporterID, "exporterID"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(lastLogID, "lastLogID"); - Utils.checkNotNull(ledger, "ledger"); - this.createdAt = createdAt; - this.enabled = enabled; - this.exporterID = exporterID; - this.id = id; - this.lastLogID = lastLogID; - this.ledger = ledger; - } - - public V2Pipeline( - OffsetDateTime createdAt, - String exporterID, - String id, - String ledger) { - this(createdAt, Optional.empty(), exporterID, - id, Optional.empty(), ledger); - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public Optional enabled() { - return enabled; - } - - @JsonIgnore - public String exporterID() { - return exporterID; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public Optional lastLogID() { - return lastLogID; - } - - @JsonIgnore - public String ledger() { - return ledger; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Pipeline withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V2Pipeline withEnabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = Optional.ofNullable(enabled); - return this; - } - - - public V2Pipeline withEnabled(Optional enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - public V2Pipeline withExporterID(String exporterID) { - Utils.checkNotNull(exporterID, "exporterID"); - this.exporterID = exporterID; - return this; - } - - public V2Pipeline withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2Pipeline withLastLogID(long lastLogID) { - Utils.checkNotNull(lastLogID, "lastLogID"); - this.lastLogID = Optional.ofNullable(lastLogID); - return this; - } - - - public V2Pipeline withLastLogID(Optional lastLogID) { - Utils.checkNotNull(lastLogID, "lastLogID"); - this.lastLogID = lastLogID; - return this; - } - - public V2Pipeline withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Pipeline other = (V2Pipeline) o; - return - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.enabled, other.enabled) && - Utils.enhancedDeepEquals(this.exporterID, other.exporterID) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.lastLogID, other.lastLogID) && - Utils.enhancedDeepEquals(this.ledger, other.ledger); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createdAt, enabled, exporterID, - id, lastLogID, ledger); - } - - @Override - public String toString() { - return Utils.toString(V2Pipeline.class, - "createdAt", createdAt, - "enabled", enabled, - "exporterID", exporterID, - "id", id, - "lastLogID", lastLogID, - "ledger", ledger); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OffsetDateTime createdAt; - - private Optional enabled = Optional.empty(); - - private String exporterID; - - private String id; - - private Optional lastLogID = Optional.empty(); - - private String ledger; - - private Builder() { - // force use of static builder() method - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder enabled(boolean enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = Optional.ofNullable(enabled); - return this; - } - - public Builder enabled(Optional enabled) { - Utils.checkNotNull(enabled, "enabled"); - this.enabled = enabled; - return this; - } - - - public Builder exporterID(String exporterID) { - Utils.checkNotNull(exporterID, "exporterID"); - this.exporterID = exporterID; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder lastLogID(long lastLogID) { - Utils.checkNotNull(lastLogID, "lastLogID"); - this.lastLogID = Optional.ofNullable(lastLogID); - return this; - } - - public Builder lastLogID(Optional lastLogID) { - Utils.checkNotNull(lastLogID, "lastLogID"); - this.lastLogID = lastLogID; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - public V2Pipeline build() { - - return new V2Pipeline( - createdAt, enabled, exporterID, - id, lastLogID, ledger); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PostTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2PostTransaction.java deleted file mode 100644 index 018e02e4e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PostTransaction.java +++ /dev/null @@ -1,438 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class V2PostTransaction { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("accountMetadata") - private Optional>> accountMetadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("force") - private Optional force; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postings") - private Optional> postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - /** - * The numscript runtime used to execute the script. Uses "machine" by default, unless the - * "--experimental-numscript-interpreter" feature flag is passed. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("runtime") - private Optional runtime; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("script") - private Optional script; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public V2PostTransaction( - @JsonProperty("accountMetadata") Optional>> accountMetadata, - @JsonProperty("force") Optional force, - @JsonProperty("metadata") Map metadata, - @JsonProperty("postings") Optional> postings, - @JsonProperty("reference") Optional reference, - @JsonProperty("runtime") Optional runtime, - @JsonProperty("script") Optional script, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - Utils.checkNotNull(force, "force"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(runtime, "runtime"); - Utils.checkNotNull(script, "script"); - Utils.checkNotNull(timestamp, "timestamp"); - this.accountMetadata = accountMetadata; - this.force = force; - this.metadata = metadata; - this.postings = postings; - this.reference = reference; - this.runtime = runtime; - this.script = script; - this.timestamp = timestamp; - } - - public V2PostTransaction( - Map metadata) { - this(Optional.empty(), Optional.empty(), metadata, - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> accountMetadata() { - return (Optional>>) accountMetadata; - } - - @JsonIgnore - public Optional force() { - return force; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> postings() { - return (Optional>) postings; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - /** - * The numscript runtime used to execute the script. Uses "machine" by default, unless the - * "--experimental-numscript-interpreter" feature flag is passed. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional runtime() { - return (Optional) runtime; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional script() { - return (Optional) script; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2PostTransaction withAccountMetadata(Map> accountMetadata) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - this.accountMetadata = Optional.ofNullable(accountMetadata); - return this; - } - - - public V2PostTransaction withAccountMetadata(Optional>> accountMetadata) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - this.accountMetadata = accountMetadata; - return this; - } - - public V2PostTransaction withForce(boolean force) { - Utils.checkNotNull(force, "force"); - this.force = Optional.ofNullable(force); - return this; - } - - - public V2PostTransaction withForce(Optional force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - public V2PostTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2PostTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - - public V2PostTransaction withPostings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public V2PostTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public V2PostTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - /** - * The numscript runtime used to execute the script. Uses "machine" by default, unless the - * "--experimental-numscript-interpreter" feature flag is passed. - */ - public V2PostTransaction withRuntime(Runtime runtime) { - Utils.checkNotNull(runtime, "runtime"); - this.runtime = Optional.ofNullable(runtime); - return this; - } - - - /** - * The numscript runtime used to execute the script. Uses "machine" by default, unless the - * "--experimental-numscript-interpreter" feature flag is passed. - */ - public V2PostTransaction withRuntime(Optional runtime) { - Utils.checkNotNull(runtime, "runtime"); - this.runtime = runtime; - return this; - } - - public V2PostTransaction withScript(V2PostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - - public V2PostTransaction withScript(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - public V2PostTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public V2PostTransaction withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2PostTransaction other = (V2PostTransaction) o; - return - Utils.enhancedDeepEquals(this.accountMetadata, other.accountMetadata) && - Utils.enhancedDeepEquals(this.force, other.force) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.runtime, other.runtime) && - Utils.enhancedDeepEquals(this.script, other.script) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountMetadata, force, metadata, - postings, reference, runtime, - script, timestamp); - } - - @Override - public String toString() { - return Utils.toString(V2PostTransaction.class, - "accountMetadata", accountMetadata, - "force", force, - "metadata", metadata, - "postings", postings, - "reference", reference, - "runtime", runtime, - "script", script, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional>> accountMetadata = Optional.empty(); - - private Optional force = Optional.empty(); - - private Map metadata; - - private Optional> postings = Optional.empty(); - - private Optional reference = Optional.empty(); - - private Optional runtime = Optional.empty(); - - private Optional script = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder accountMetadata(Map> accountMetadata) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - this.accountMetadata = Optional.ofNullable(accountMetadata); - return this; - } - - public Builder accountMetadata(Optional>> accountMetadata) { - Utils.checkNotNull(accountMetadata, "accountMetadata"); - this.accountMetadata = accountMetadata; - return this; - } - - - public Builder force(boolean force) { - Utils.checkNotNull(force, "force"); - this.force = Optional.ofNullable(force); - return this; - } - - public Builder force(Optional force) { - Utils.checkNotNull(force, "force"); - this.force = force; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = Optional.ofNullable(postings); - return this; - } - - public Builder postings(Optional> postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - /** - * The numscript runtime used to execute the script. Uses "machine" by default, unless the - * "--experimental-numscript-interpreter" feature flag is passed. - */ - public Builder runtime(Runtime runtime) { - Utils.checkNotNull(runtime, "runtime"); - this.runtime = Optional.ofNullable(runtime); - return this; - } - - /** - * The numscript runtime used to execute the script. Uses "machine" by default, unless the - * "--experimental-numscript-interpreter" feature flag is passed. - */ - public Builder runtime(Optional runtime) { - Utils.checkNotNull(runtime, "runtime"); - this.runtime = runtime; - return this; - } - - - public Builder script(V2PostTransactionScript script) { - Utils.checkNotNull(script, "script"); - this.script = Optional.ofNullable(script); - return this; - } - - public Builder script(Optional script) { - Utils.checkNotNull(script, "script"); - this.script = script; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public V2PostTransaction build() { - - return new V2PostTransaction( - accountMetadata, force, metadata, - postings, reference, runtime, - script, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2PostTransactionScript.java b/src/main/java/com/formance/formance_sdk/models/shared/V2PostTransactionScript.java deleted file mode 100644 index 30c45dd22..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2PostTransactionScript.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class V2PostTransactionScript { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("plain") - private Optional plain; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("template") - private Optional template; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - @JsonCreator - public V2PostTransactionScript( - @JsonProperty("plain") Optional plain, - @JsonProperty("template") Optional template, - @JsonProperty("vars") Optional> vars) { - Utils.checkNotNull(plain, "plain"); - Utils.checkNotNull(template, "template"); - Utils.checkNotNull(vars, "vars"); - this.plain = plain; - this.template = template; - this.vars = vars; - } - - public V2PostTransactionScript() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Optional plain() { - return plain; - } - - @JsonIgnore - public Optional template() { - return template; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2PostTransactionScript withPlain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = Optional.ofNullable(plain); - return this; - } - - - public V2PostTransactionScript withPlain(Optional plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - public V2PostTransactionScript withTemplate(String template) { - Utils.checkNotNull(template, "template"); - this.template = Optional.ofNullable(template); - return this; - } - - - public V2PostTransactionScript withTemplate(Optional template) { - Utils.checkNotNull(template, "template"); - this.template = template; - return this; - } - - public V2PostTransactionScript withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public V2PostTransactionScript withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2PostTransactionScript other = (V2PostTransactionScript) o; - return - Utils.enhancedDeepEquals(this.plain, other.plain) && - Utils.enhancedDeepEquals(this.template, other.template) && - Utils.enhancedDeepEquals(this.vars, other.vars); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - plain, template, vars); - } - - @Override - public String toString() { - return Utils.toString(V2PostTransactionScript.class, - "plain", plain, - "template", template, - "vars", vars); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional plain = Optional.empty(); - - private Optional template = Optional.empty(); - - private Optional> vars = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder plain(String plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = Optional.ofNullable(plain); - return this; - } - - public Builder plain(Optional plain) { - Utils.checkNotNull(plain, "plain"); - this.plain = plain; - return this; - } - - - public Builder template(String template) { - Utils.checkNotNull(template, "template"); - this.template = Optional.ofNullable(template); - return this; - } - - public Builder template(Optional template) { - Utils.checkNotNull(template, "template"); - this.template = template; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public V2PostTransactionScript build() { - - return new V2PostTransactionScript( - plain, template, vars); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Posting.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Posting.java deleted file mode 100644 index 63b9d8aef..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Posting.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; - - -public class V2Posting { - - @JsonProperty("amount") - private BigInteger amount; - - - @JsonProperty("asset") - private String asset; - - - @JsonProperty("destination") - private String destination; - - - @JsonProperty("source") - private String source; - - @JsonCreator - public V2Posting( - @JsonProperty("amount") BigInteger amount, - @JsonProperty("asset") String asset, - @JsonProperty("destination") String destination, - @JsonProperty("source") String source) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(source, "source"); - this.amount = amount; - this.asset = asset; - this.destination = destination; - this.source = source; - } - - @JsonIgnore - public BigInteger amount() { - return amount; - } - - @JsonIgnore - public String asset() { - return asset; - } - - @JsonIgnore - public String destination() { - return destination; - } - - @JsonIgnore - public String source() { - return source; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Posting withAmount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public V2Posting withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public V2Posting withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public V2Posting withDestination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - public V2Posting withSource(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Posting other = (V2Posting) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.source, other.source); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, destination, - source); - } - - @Override - public String toString() { - return Utils.toString(V2Posting.class, - "amount", amount, - "asset", asset, - "destination", destination, - "source", source); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger amount; - - private String asset; - - private String destination; - - private String source; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(long amount) { - this.amount = BigInteger.valueOf(amount); - return this; - } - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder destination(String destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - public Builder source(String source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public V2Posting build() { - - return new V2Posting( - amount, asset, destination, - source); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplate.java b/src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplate.java deleted file mode 100644 index 40cf3b937..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2QueryTemplate.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class V2QueryTemplate { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("body") - private Optional> body; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("description") - private Optional description; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("params") - private Optional params; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("resource") - private Optional resource; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - @JsonCreator - public V2QueryTemplate( - @JsonProperty("body") Optional> body, - @JsonProperty("description") Optional description, - @JsonProperty("params") Optional params, - @JsonProperty("resource") Optional resource, - @JsonProperty("vars") Optional> vars) { - Utils.checkNotNull(body, "body"); - Utils.checkNotNull(description, "description"); - Utils.checkNotNull(params, "params"); - Utils.checkNotNull(resource, "resource"); - Utils.checkNotNull(vars, "vars"); - this.body = body; - this.description = description; - this.params = params; - this.resource = resource; - this.vars = vars; - } - - public V2QueryTemplate() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> body() { - return (Optional>) body; - } - - @JsonIgnore - public Optional description() { - return description; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional params() { - return (Optional) params; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional resource() { - return (Optional) resource; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2QueryTemplate withBody(Map body) { - Utils.checkNotNull(body, "body"); - this.body = Optional.ofNullable(body); - return this; - } - - - public V2QueryTemplate withBody(Optional> body) { - Utils.checkNotNull(body, "body"); - this.body = body; - return this; - } - - public V2QueryTemplate withDescription(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - - public V2QueryTemplate withDescription(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - public V2QueryTemplate withParams(V2QueryParams params) { - Utils.checkNotNull(params, "params"); - this.params = Optional.ofNullable(params); - return this; - } - - - public V2QueryTemplate withParams(Optional params) { - Utils.checkNotNull(params, "params"); - this.params = params; - return this; - } - - public V2QueryTemplate withResource(V2QueryResource resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = Optional.ofNullable(resource); - return this; - } - - - public V2QueryTemplate withResource(Optional resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - public V2QueryTemplate withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public V2QueryTemplate withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2QueryTemplate other = (V2QueryTemplate) o; - return - Utils.enhancedDeepEquals(this.body, other.body) && - Utils.enhancedDeepEquals(this.description, other.description) && - Utils.enhancedDeepEquals(this.params, other.params) && - Utils.enhancedDeepEquals(this.resource, other.resource) && - Utils.enhancedDeepEquals(this.vars, other.vars); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - body, description, params, - resource, vars); - } - - @Override - public String toString() { - return Utils.toString(V2QueryTemplate.class, - "body", body, - "description", description, - "params", params, - "resource", resource, - "vars", vars); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional> body = Optional.empty(); - - private Optional description = Optional.empty(); - - private Optional params = Optional.empty(); - - private Optional resource = Optional.empty(); - - private Optional> vars = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder body(Map body) { - Utils.checkNotNull(body, "body"); - this.body = Optional.ofNullable(body); - return this; - } - - public Builder body(Optional> body) { - Utils.checkNotNull(body, "body"); - this.body = body; - return this; - } - - - public Builder description(String description) { - Utils.checkNotNull(description, "description"); - this.description = Optional.ofNullable(description); - return this; - } - - public Builder description(Optional description) { - Utils.checkNotNull(description, "description"); - this.description = description; - return this; - } - - - public Builder params(V2QueryParams params) { - Utils.checkNotNull(params, "params"); - this.params = Optional.ofNullable(params); - return this; - } - - public Builder params(Optional params) { - Utils.checkNotNull(params, "params"); - this.params = params; - return this; - } - - - public Builder resource(V2QueryResource resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = Optional.ofNullable(resource); - return this; - } - - public Builder resource(Optional resource) { - Utils.checkNotNull(resource, "resource"); - this.resource = resource; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public V2QueryTemplate build() { - - return new V2QueryTemplate( - body, description, params, - resource, vars); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2ReadTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2ReadTriggerResponse.java deleted file mode 100644 index 21596178e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2ReadTriggerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2ReadTriggerResponse { - - @JsonProperty("data") - private V2Trigger data; - - @JsonCreator - public V2ReadTriggerResponse( - @JsonProperty("data") V2Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Trigger data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2ReadTriggerResponse withData(V2Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2ReadTriggerResponse other = (V2ReadTriggerResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2ReadTriggerResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Trigger data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Trigger data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2ReadTriggerResponse build() { - - return new V2ReadTriggerResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionResponse.java deleted file mode 100644 index 5d9331ecd..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2RevertTransactionResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2RevertTransactionResponse { - - @JsonProperty("data") - private V2Transaction data; - - @JsonCreator - public V2RevertTransactionResponse( - @JsonProperty("data") V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Transaction data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2RevertTransactionResponse withData(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2RevertTransactionResponse other = (V2RevertTransactionResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2RevertTransactionResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Transaction data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Transaction data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2RevertTransactionResponse build() { - - return new V2RevertTransactionResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2RunWorkflowResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2RunWorkflowResponse.java deleted file mode 100644 index a139d4240..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2RunWorkflowResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2RunWorkflowResponse { - - @JsonProperty("data") - private V2WorkflowInstance data; - - @JsonCreator - public V2RunWorkflowResponse( - @JsonProperty("data") V2WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2WorkflowInstance data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2RunWorkflowResponse withData(V2WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2RunWorkflowResponse other = (V2RunWorkflowResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2RunWorkflowResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2WorkflowInstance data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2WorkflowInstance data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2RunWorkflowResponse build() { - - return new V2RunWorkflowResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Schema.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Schema.java deleted file mode 100644 index 28ddeccea..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Schema.java +++ /dev/null @@ -1,324 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - -/** - * V2Schema - * - *

Complete schema structure with metadata - */ -public class V2Schema { - /** - * Chart of account - */ - @JsonProperty("chart") - private Map chart; - - /** - * Schema creation timestamp - */ - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - /** - * Query templates - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("queries") - private Optional> queries; - - /** - * Transaction templates - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transactions") - private Optional> transactions; - - /** - * Schema version - */ - @JsonProperty("version") - private String version; - - @JsonCreator - public V2Schema( - @JsonProperty("chart") Map chart, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("queries") Optional> queries, - @JsonProperty("transactions") Optional> transactions, - @JsonProperty("version") String version) { - chart = Utils.emptyMapIfNull(chart); - Utils.checkNotNull(chart, "chart"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(queries, "queries"); - Utils.checkNotNull(transactions, "transactions"); - Utils.checkNotNull(version, "version"); - this.chart = chart; - this.createdAt = createdAt; - this.queries = queries; - this.transactions = transactions; - this.version = version; - } - - public V2Schema( - Map chart, - OffsetDateTime createdAt, - String version) { - this(chart, createdAt, Optional.empty(), - Optional.empty(), version); - } - - /** - * Chart of account - */ - @JsonIgnore - public Map chart() { - return chart; - } - - /** - * Schema creation timestamp - */ - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - /** - * Query templates - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> queries() { - return (Optional>) queries; - } - - /** - * Transaction templates - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> transactions() { - return (Optional>) transactions; - } - - /** - * Schema version - */ - @JsonIgnore - public String version() { - return version; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Chart of account - */ - public V2Schema withChart(Map chart) { - Utils.checkNotNull(chart, "chart"); - this.chart = chart; - return this; - } - - /** - * Schema creation timestamp - */ - public V2Schema withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * Query templates - */ - public V2Schema withQueries(Map queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = Optional.ofNullable(queries); - return this; - } - - - /** - * Query templates - */ - public V2Schema withQueries(Optional> queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = queries; - return this; - } - - /** - * Transaction templates - */ - public V2Schema withTransactions(Map transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = Optional.ofNullable(transactions); - return this; - } - - - /** - * Transaction templates - */ - public V2Schema withTransactions(Optional> transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = transactions; - return this; - } - - /** - * Schema version - */ - public V2Schema withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Schema other = (V2Schema) o; - return - Utils.enhancedDeepEquals(this.chart, other.chart) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.queries, other.queries) && - Utils.enhancedDeepEquals(this.transactions, other.transactions) && - Utils.enhancedDeepEquals(this.version, other.version); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - chart, createdAt, queries, - transactions, version); - } - - @Override - public String toString() { - return Utils.toString(V2Schema.class, - "chart", chart, - "createdAt", createdAt, - "queries", queries, - "transactions", transactions, - "version", version); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map chart; - - private OffsetDateTime createdAt; - - private Optional> queries = Optional.empty(); - - private Optional> transactions = Optional.empty(); - - private String version; - - private Builder() { - // force use of static builder() method - } - - - /** - * Chart of account - */ - public Builder chart(Map chart) { - Utils.checkNotNull(chart, "chart"); - this.chart = chart; - return this; - } - - - /** - * Schema creation timestamp - */ - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - /** - * Query templates - */ - public Builder queries(Map queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = Optional.ofNullable(queries); - return this; - } - - /** - * Query templates - */ - public Builder queries(Optional> queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = queries; - return this; - } - - - /** - * Transaction templates - */ - public Builder transactions(Map transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = Optional.ofNullable(transactions); - return this; - } - - /** - * Transaction templates - */ - public Builder transactions(Optional> transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = transactions; - return this; - } - - - /** - * Schema version - */ - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public V2Schema build() { - - return new V2Schema( - chart, createdAt, queries, - transactions, version); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemaData.java b/src/main/java/com/formance/formance_sdk/models/shared/V2SchemaData.java deleted file mode 100644 index f22d26131..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemaData.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - -/** - * V2SchemaData - * - *

Schema data structure for ledger schemas - */ -public class V2SchemaData { - /** - * Chart of account - */ - @JsonProperty("chart") - private Map chart; - - /** - * Query templates - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("queries") - private Optional> queries; - - /** - * Transaction templates - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("transactions") - private Optional> transactions; - - @JsonCreator - public V2SchemaData( - @JsonProperty("chart") Map chart, - @JsonProperty("queries") Optional> queries, - @JsonProperty("transactions") Optional> transactions) { - chart = Utils.emptyMapIfNull(chart); - Utils.checkNotNull(chart, "chart"); - Utils.checkNotNull(queries, "queries"); - Utils.checkNotNull(transactions, "transactions"); - this.chart = chart; - this.queries = queries; - this.transactions = transactions; - } - - public V2SchemaData( - Map chart) { - this(chart, Optional.empty(), Optional.empty()); - } - - /** - * Chart of account - */ - @JsonIgnore - public Map chart() { - return chart; - } - - /** - * Query templates - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> queries() { - return (Optional>) queries; - } - - /** - * Transaction templates - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> transactions() { - return (Optional>) transactions; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Chart of account - */ - public V2SchemaData withChart(Map chart) { - Utils.checkNotNull(chart, "chart"); - this.chart = chart; - return this; - } - - /** - * Query templates - */ - public V2SchemaData withQueries(Map queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = Optional.ofNullable(queries); - return this; - } - - - /** - * Query templates - */ - public V2SchemaData withQueries(Optional> queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = queries; - return this; - } - - /** - * Transaction templates - */ - public V2SchemaData withTransactions(Map transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = Optional.ofNullable(transactions); - return this; - } - - - /** - * Transaction templates - */ - public V2SchemaData withTransactions(Optional> transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = transactions; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2SchemaData other = (V2SchemaData) o; - return - Utils.enhancedDeepEquals(this.chart, other.chart) && - Utils.enhancedDeepEquals(this.queries, other.queries) && - Utils.enhancedDeepEquals(this.transactions, other.transactions); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - chart, queries, transactions); - } - - @Override - public String toString() { - return Utils.toString(V2SchemaData.class, - "chart", chart, - "queries", queries, - "transactions", transactions); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Map chart; - - private Optional> queries = Optional.empty(); - - private Optional> transactions = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Chart of account - */ - public Builder chart(Map chart) { - Utils.checkNotNull(chart, "chart"); - this.chart = chart; - return this; - } - - - /** - * Query templates - */ - public Builder queries(Map queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = Optional.ofNullable(queries); - return this; - } - - /** - * Query templates - */ - public Builder queries(Optional> queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = queries; - return this; - } - - - /** - * Transaction templates - */ - public Builder transactions(Map transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = Optional.ofNullable(transactions); - return this; - } - - /** - * Transaction templates - */ - public Builder transactions(Optional> transactions) { - Utils.checkNotNull(transactions, "transactions"); - this.transactions = transactions; - return this; - } - - public V2SchemaData build() { - - return new V2SchemaData( - chart, queries, transactions); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemaResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2SchemaResponse.java deleted file mode 100644 index 92da99e55..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemaResponse.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2SchemaResponse { - /** - * Complete schema structure with metadata - */ - @JsonProperty("data") - private V2Schema data; - - @JsonCreator - public V2SchemaResponse( - @JsonProperty("data") V2Schema data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - /** - * Complete schema structure with metadata - */ - @JsonIgnore - public V2Schema data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Complete schema structure with metadata - */ - public V2SchemaResponse withData(V2Schema data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2SchemaResponse other = (V2SchemaResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2SchemaResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Schema data; - - private Builder() { - // force use of static builder() method - } - - - /** - * Complete schema structure with metadata - */ - public Builder data(V2Schema data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2SchemaResponse build() { - - return new V2SchemaResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursorResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursorResponse.java deleted file mode 100644 index bf5dac0c3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2SchemasCursorResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2SchemasCursorResponse { - - @JsonProperty("cursor") - private V2SchemasCursor cursor; - - @JsonCreator - public V2SchemasCursorResponse( - @JsonProperty("cursor") V2SchemasCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - } - - @JsonIgnore - public V2SchemasCursor cursor() { - return cursor; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2SchemasCursorResponse withCursor(V2SchemasCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2SchemasCursorResponse other = (V2SchemasCursorResponse) o; - return - Utils.enhancedDeepEquals(this.cursor, other.cursor); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - cursor); - } - - @Override - public String toString() { - return Utils.toString(V2SchemasCursorResponse.class, - "cursor", cursor); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2SchemasCursor cursor; - - private Builder() { - // force use of static builder() method - } - - - public Builder cursor(V2SchemasCursor cursor) { - Utils.checkNotNull(cursor, "cursor"); - this.cursor = cursor; - return this; - } - - public V2SchemasCursorResponse build() { - - return new V2SchemasCursorResponse( - cursor); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSend.java b/src/main/java/com/formance/formance_sdk/models/shared/V2StageSend.java deleted file mode 100644 index 195f07325..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSend.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - - -public class V2StageSend { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("destination") - private Optional destination; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private Optional> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("source") - private Optional source; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timestamp") - private Optional timestamp; - - @JsonCreator - public V2StageSend( - @JsonProperty("amount") Optional amount, - @JsonProperty("destination") Optional destination, - @JsonProperty("metadata") Optional> metadata, - @JsonProperty("source") Optional source, - @JsonProperty("timestamp") Optional timestamp) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(destination, "destination"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(source, "source"); - Utils.checkNotNull(timestamp, "timestamp"); - this.amount = amount; - this.destination = destination; - this.metadata = metadata; - this.source = source; - this.timestamp = timestamp; - } - - public V2StageSend() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional destination() { - return (Optional) destination; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional source() { - return (Optional) source; - } - - @JsonIgnore - public Optional timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2StageSend withAmount(V2Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - - public V2StageSend withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public V2StageSend withDestination(V2StageSendDestination destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - - public V2StageSend withDestination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - public V2StageSend withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V2StageSend withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2StageSend withSource(V2StageSendSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - - public V2StageSend withSource(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - public V2StageSend withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - - public V2StageSend withTimestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2StageSend other = (V2StageSend) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.destination, other.destination) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.source, other.source) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, destination, metadata, - source, timestamp); - } - - @Override - public String toString() { - return Utils.toString(V2StageSend.class, - "amount", amount, - "destination", destination, - "metadata", metadata, - "source", source, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional destination = Optional.empty(); - - private Optional> metadata = Optional.empty(); - - private Optional source = Optional.empty(); - - private Optional timestamp = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(V2Monetary amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder destination(V2StageSendDestination destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = Optional.ofNullable(destination); - return this; - } - - public Builder destination(Optional destination) { - Utils.checkNotNull(destination, "destination"); - this.destination = destination; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder source(V2StageSendSource source) { - Utils.checkNotNull(source, "source"); - this.source = Optional.ofNullable(source); - return this; - } - - public Builder source(Optional source) { - Utils.checkNotNull(source, "source"); - this.source = source; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = Optional.ofNullable(timestamp); - return this; - } - - public Builder timestamp(Optional timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public V2StageSend build() { - - return new V2StageSend( - amount, destination, metadata, - source, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestination.java b/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestination.java deleted file mode 100644 index 7d4f3f172..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestination.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2StageSendDestination { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account") - private Optional account; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment") - private Optional payment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("wallet") - private Optional wallet; - - @JsonCreator - public V2StageSendDestination( - @JsonProperty("account") Optional account, - @JsonProperty("payment") Optional payment, - @JsonProperty("wallet") Optional wallet) { - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(payment, "payment"); - Utils.checkNotNull(wallet, "wallet"); - this.account = account; - this.payment = payment; - this.wallet = wallet; - } - - public V2StageSendDestination() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional account() { - return (Optional) account; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional payment() { - return (Optional) payment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional wallet() { - return (Optional) wallet; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2StageSendDestination withAccount(V2StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - - public V2StageSendDestination withAccount(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public V2StageSendDestination withPayment(V2StageSendDestinationPayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - - public V2StageSendDestination withPayment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - public V2StageSendDestination withWallet(V2StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - - public V2StageSendDestination withWallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2StageSendDestination other = (V2StageSendDestination) o; - return - Utils.enhancedDeepEquals(this.account, other.account) && - Utils.enhancedDeepEquals(this.payment, other.payment) && - Utils.enhancedDeepEquals(this.wallet, other.wallet); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account, payment, wallet); - } - - @Override - public String toString() { - return Utils.toString(V2StageSendDestination.class, - "account", account, - "payment", payment, - "wallet", wallet); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional account = Optional.empty(); - - private Optional payment = Optional.empty(); - - private Optional wallet = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder account(V2StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - - public Builder payment(V2StageSendDestinationPayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - public Builder payment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - - public Builder wallet(V2StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - public Builder wallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - public V2StageSendDestination build() { - - return new V2StageSendDestination( - account, payment, wallet); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationAccount.java b/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationAccount.java deleted file mode 100644 index 6bce8a40f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationAccount.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class V2StageSendDestinationAccount { - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ledger") - private Optional ledger; - - @JsonCreator - public V2StageSendDestinationAccount( - @JsonProperty("id") String id, - @JsonProperty("ledger") Optional ledger) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(ledger, "ledger"); - this.id = id; - this.ledger = ledger; - } - - public V2StageSendDestinationAccount( - String id) { - this(id, Optional.empty()); - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public Optional ledger() { - return ledger; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2StageSendDestinationAccount withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2StageSendDestinationAccount withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - - public V2StageSendDestinationAccount withLedger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2StageSendDestinationAccount other = (V2StageSendDestinationAccount) o; - return - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.ledger, other.ledger); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - id, ledger); - } - - @Override - public String toString() { - return Utils.toString(V2StageSendDestinationAccount.class, - "id", id, - "ledger", ledger); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String id; - - private Optional ledger = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - public Builder ledger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - public V2StageSendDestinationAccount build() { - - return new V2StageSendDestinationAccount( - id, ledger); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationWallet.java b/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationWallet.java deleted file mode 100644 index 8c6d206d1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendDestinationWallet.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class V2StageSendDestinationWallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - - @JsonProperty("id") - private String id; - - @JsonCreator - public V2StageSendDestinationWallet( - @JsonProperty("balance") Optional balance, - @JsonProperty("id") String id) { - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(id, "id"); - this.balance = balance; - this.id = id; - } - - public V2StageSendDestinationWallet( - String id) { - this(Optional.empty(), id); - } - - @JsonIgnore - public Optional balance() { - return balance; - } - - @JsonIgnore - public String id() { - return id; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2StageSendDestinationWallet withBalance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - - public V2StageSendDestinationWallet withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - public V2StageSendDestinationWallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2StageSendDestinationWallet other = (V2StageSendDestinationWallet) o; - return - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.id, other.id); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balance, id); - } - - @Override - public String toString() { - return Utils.toString(V2StageSendDestinationWallet.class, - "balance", balance, - "id", id); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional balance = Optional.empty(); - - private String id; - - private Builder() { - // force use of static builder() method - } - - - public Builder balance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2StageSendDestinationWallet build() { - - return new V2StageSendDestinationWallet( - balance, id); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSource.java b/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSource.java deleted file mode 100644 index 3c2110309..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StageSendSource.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2StageSendSource { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account") - private Optional account; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("payment") - private Optional payment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("wallet") - private Optional wallet; - - @JsonCreator - public V2StageSendSource( - @JsonProperty("account") Optional account, - @JsonProperty("payment") Optional payment, - @JsonProperty("wallet") Optional wallet) { - Utils.checkNotNull(account, "account"); - Utils.checkNotNull(payment, "payment"); - Utils.checkNotNull(wallet, "wallet"); - this.account = account; - this.payment = payment; - this.wallet = wallet; - } - - public V2StageSendSource() { - this(Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional account() { - return (Optional) account; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional payment() { - return (Optional) payment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional wallet() { - return (Optional) wallet; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2StageSendSource withAccount(V2StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - - public V2StageSendSource withAccount(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public V2StageSendSource withPayment(V2StageSendSourcePayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - - public V2StageSendSource withPayment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - public V2StageSendSource withWallet(V2StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - - public V2StageSendSource withWallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2StageSendSource other = (V2StageSendSource) o; - return - Utils.enhancedDeepEquals(this.account, other.account) && - Utils.enhancedDeepEquals(this.payment, other.payment) && - Utils.enhancedDeepEquals(this.wallet, other.wallet); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account, payment, wallet); - } - - @Override - public String toString() { - return Utils.toString(V2StageSendSource.class, - "account", account, - "payment", payment, - "wallet", wallet); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional account = Optional.empty(); - - private Optional payment = Optional.empty(); - - private Optional wallet = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder account(V2StageSendDestinationAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - - public Builder payment(V2StageSendSourcePayment payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = Optional.ofNullable(payment); - return this; - } - - public Builder payment(Optional payment) { - Utils.checkNotNull(payment, "payment"); - this.payment = payment; - return this; - } - - - public Builder wallet(V2StageSendDestinationWallet wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = Optional.ofNullable(wallet); - return this; - } - - public Builder wallet(Optional wallet) { - Utils.checkNotNull(wallet, "wallet"); - this.wallet = wallet; - return this; - } - - public V2StageSendSource build() { - - return new V2StageSendSource( - account, payment, wallet); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2StatsResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2StatsResponse.java deleted file mode 100644 index 087fe9cec..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2StatsResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2StatsResponse { - - @JsonProperty("data") - private V2Stats data; - - @JsonCreator - public V2StatsResponse( - @JsonProperty("data") V2Stats data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2Stats data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2StatsResponse withData(V2Stats data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2StatsResponse other = (V2StatsResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2StatsResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2Stats data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2Stats data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2StatsResponse build() { - - return new V2StatsResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Subject.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Subject.java deleted file mode 100644 index a75c8b984..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Subject.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonTypeInfo.As; -import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; -import java.lang.String; - -@JsonTypeInfo( - use = Id.CUSTOM, - property = "type", - include = As.EXISTING_PROPERTY, - visible = true, - defaultImpl = UnknownV2Subject.class -) -@JsonTypeIdResolver(V2SubjectTypeIdResolver.class) -public interface V2Subject { - - String type(); - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2SubjectTypeIdResolver.java b/src/main/java/com/formance/formance_sdk/models/shared/V2SubjectTypeIdResolver.java deleted file mode 100644 index 87dedf16f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2SubjectTypeIdResolver.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.formance.formance_sdk.utils.GenericTypeIdResolver; -import java.lang.IllegalArgumentException; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; - - -public class V2SubjectTypeIdResolver extends GenericTypeIdResolver { - - public V2SubjectTypeIdResolver() { - super(UnknownV2Subject.class); - initializeTypeMap(); - } - - private void initializeTypeMap() { - registerType("ACCOUNT", V2LedgerAccountSubject.class); - registerType("WALLET", V2WalletSubject.class); - } - - @Override - public String idFromValue(Object value) { - if (value == null) { - return null; - } - - // Handle known types by checking if they implement the discriminator method - if (value instanceof V2Subject) { - V2Subject discriminated = (V2Subject) value; - return discriminated.type(); - } - - throw new IllegalArgumentException("Unknown value type: " + value.getClass().getName()); - } - - @Override - public String getDescForKnownTypeIds() { - return "V2Subject type resolver"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TargetId.java b/src/main/java/com/formance/formance_sdk/models/shared/V2TargetId.java deleted file mode 100644 index 816f648ec..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TargetId.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import com.fasterxml.jackson.core.type.TypeReference; -import com.fasterxml.jackson.databind.annotation.JsonDeserialize; -import com.formance.formance_sdk.utils.OneOfDeserializer; -import com.formance.formance_sdk.utils.TypedObject; -import com.formance.formance_sdk.utils.Utils.JsonShape; -import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; - -@JsonDeserialize(using = V2TargetId._Deserializer.class) -public class V2TargetId { - - @JsonValue - private final TypedObject value; - - private V2TargetId(TypedObject value) { - this.value = value; - } - - public static V2TargetId of(String value) { - Utils.checkNotNull(value, "value"); - return new V2TargetId(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - public static V2TargetId of(BigInteger value) { - Utils.checkNotNull(value, "value"); - return new V2TargetId(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); - } - - /** - * Returns an instance of one of these types: - *

    - *
  • {@code java.lang.String}
  • - *
  • {@code java.math.BigInteger}
  • - *
- * - *

Use {@code instanceof} to determine what type is returned. For example: - * - *

-     * if (obj.value() instanceof String) {
-     *     String answer = (String) obj.value();
-     *     System.out.println("answer=" + answer);
-     * }
-     * 
- * - * @return value of oneOf type - **/ - public java.lang.Object value() { - return value.value(); - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2TargetId other = (V2TargetId) o; - return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); - } - - @Override - public int hashCode() { - return Utils.enhancedHash(value.value()); - } - - @SuppressWarnings("serial") - public static final class _Deserializer extends OneOfDeserializer { - - public _Deserializer() { - super(V2TargetId.class, false, - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), - TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); - } - } - - @Override - public String toString() { - return Utils.toString(V2TargetId.class, - "value", value); - } - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TargetType.java b/src/main/java/com/formance/formance_sdk/models/shared/V2TargetType.java deleted file mode 100644 index cbd2ad785..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TargetType.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum V2TargetType { - TRANSACTION("TRANSACTION"), - ACCOUNT("ACCOUNT"); - - @JsonValue - private final String value; - - V2TargetType(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (V2TargetType o: V2TargetType.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TestTriggerResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V2TestTriggerResponse.java deleted file mode 100644 index 85e003618..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TestTriggerResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2TestTriggerResponse { - - @JsonProperty("data") - private V2TriggerTest data; - - @JsonCreator - public V2TestTriggerResponse( - @JsonProperty("data") V2TriggerTest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V2TriggerTest data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2TestTriggerResponse withData(V2TriggerTest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2TestTriggerResponse other = (V2TestTriggerResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V2TestTriggerResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2TriggerTest data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V2TriggerTest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V2TestTriggerResponse build() { - - return new V2TestTriggerResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Transaction.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Transaction.java deleted file mode 100644 index 20a448992..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Transaction.java +++ /dev/null @@ -1,638 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class V2Transaction { - - @JsonProperty("id") - private BigInteger id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("insertedAt") - private Optional insertedAt; - - - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postCommitEffectiveVolumes") - private Optional>> postCommitEffectiveVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postCommitVolumes") - private Optional>> postCommitVolumes; - - - @JsonProperty("postings") - private List postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("preCommitEffectiveVolumes") - private Optional>> preCommitEffectiveVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("preCommitVolumes") - private Optional>> preCommitVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonProperty("reverted") - private boolean reverted; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("revertedAt") - private Optional revertedAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("template") - private Optional template; - - - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("updatedAt") - private Optional updatedAt; - - @JsonCreator - public V2Transaction( - @JsonProperty("id") BigInteger id, - @JsonProperty("insertedAt") Optional insertedAt, - @JsonProperty("metadata") Map metadata, - @JsonProperty("postCommitEffectiveVolumes") Optional>> postCommitEffectiveVolumes, - @JsonProperty("postCommitVolumes") Optional>> postCommitVolumes, - @JsonProperty("postings") List postings, - @JsonProperty("preCommitEffectiveVolumes") Optional>> preCommitEffectiveVolumes, - @JsonProperty("preCommitVolumes") Optional>> preCommitVolumes, - @JsonProperty("reference") Optional reference, - @JsonProperty("reverted") boolean reverted, - @JsonProperty("revertedAt") Optional revertedAt, - @JsonProperty("template") Optional template, - @JsonProperty("timestamp") OffsetDateTime timestamp, - @JsonProperty("updatedAt") Optional updatedAt) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(insertedAt, "insertedAt"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(reverted, "reverted"); - Utils.checkNotNull(revertedAt, "revertedAt"); - Utils.checkNotNull(template, "template"); - Utils.checkNotNull(timestamp, "timestamp"); - Utils.checkNotNull(updatedAt, "updatedAt"); - this.id = id; - this.insertedAt = insertedAt; - this.metadata = metadata; - this.postCommitEffectiveVolumes = postCommitEffectiveVolumes; - this.postCommitVolumes = postCommitVolumes; - this.postings = postings; - this.preCommitEffectiveVolumes = preCommitEffectiveVolumes; - this.preCommitVolumes = preCommitVolumes; - this.reference = reference; - this.reverted = reverted; - this.revertedAt = revertedAt; - this.template = template; - this.timestamp = timestamp; - this.updatedAt = updatedAt; - } - - public V2Transaction( - BigInteger id, - Map metadata, - List postings, - boolean reverted, - OffsetDateTime timestamp) { - this(id, Optional.empty(), metadata, - Optional.empty(), Optional.empty(), postings, - Optional.empty(), Optional.empty(), Optional.empty(), - reverted, Optional.empty(), Optional.empty(), - timestamp, Optional.empty()); - } - - @JsonIgnore - public BigInteger id() { - return id; - } - - @JsonIgnore - public Optional insertedAt() { - return insertedAt; - } - - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> postCommitEffectiveVolumes() { - return (Optional>>) postCommitEffectiveVolumes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> postCommitVolumes() { - return (Optional>>) postCommitVolumes; - } - - @JsonIgnore - public List postings() { - return postings; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> preCommitEffectiveVolumes() { - return (Optional>>) preCommitEffectiveVolumes; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> preCommitVolumes() { - return (Optional>>) preCommitVolumes; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @JsonIgnore - public boolean reverted() { - return reverted; - } - - @JsonIgnore - public Optional revertedAt() { - return revertedAt; - } - - @JsonIgnore - public Optional template() { - return template; - } - - @JsonIgnore - public OffsetDateTime timestamp() { - return timestamp; - } - - @JsonIgnore - public Optional updatedAt() { - return updatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Transaction withId(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public V2Transaction withId(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2Transaction withInsertedAt(OffsetDateTime insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = Optional.ofNullable(insertedAt); - return this; - } - - - public V2Transaction withInsertedAt(Optional insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = insertedAt; - return this; - } - - public V2Transaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V2Transaction withPostCommitEffectiveVolumes(Map> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = Optional.ofNullable(postCommitEffectiveVolumes); - return this; - } - - - public V2Transaction withPostCommitEffectiveVolumes(Optional>> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = postCommitEffectiveVolumes; - return this; - } - - public V2Transaction withPostCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - - public V2Transaction withPostCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - public V2Transaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public V2Transaction withPreCommitEffectiveVolumes(Map> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = Optional.ofNullable(preCommitEffectiveVolumes); - return this; - } - - - public V2Transaction withPreCommitEffectiveVolumes(Optional>> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = preCommitEffectiveVolumes; - return this; - } - - public V2Transaction withPreCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - - public V2Transaction withPreCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - public V2Transaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public V2Transaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public V2Transaction withReverted(boolean reverted) { - Utils.checkNotNull(reverted, "reverted"); - this.reverted = reverted; - return this; - } - - public V2Transaction withRevertedAt(OffsetDateTime revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = Optional.ofNullable(revertedAt); - return this; - } - - - public V2Transaction withRevertedAt(Optional revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = revertedAt; - return this; - } - - public V2Transaction withTemplate(String template) { - Utils.checkNotNull(template, "template"); - this.template = Optional.ofNullable(template); - return this; - } - - - public V2Transaction withTemplate(Optional template) { - Utils.checkNotNull(template, "template"); - this.template = template; - return this; - } - - public V2Transaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public V2Transaction withUpdatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - - public V2Transaction withUpdatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Transaction other = (V2Transaction) o; - return - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.insertedAt, other.insertedAt) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postCommitEffectiveVolumes, other.postCommitEffectiveVolumes) && - Utils.enhancedDeepEquals(this.postCommitVolumes, other.postCommitVolumes) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.preCommitEffectiveVolumes, other.preCommitEffectiveVolumes) && - Utils.enhancedDeepEquals(this.preCommitVolumes, other.preCommitVolumes) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.reverted, other.reverted) && - Utils.enhancedDeepEquals(this.revertedAt, other.revertedAt) && - Utils.enhancedDeepEquals(this.template, other.template) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp) && - Utils.enhancedDeepEquals(this.updatedAt, other.updatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - id, insertedAt, metadata, - postCommitEffectiveVolumes, postCommitVolumes, postings, - preCommitEffectiveVolumes, preCommitVolumes, reference, - reverted, revertedAt, template, - timestamp, updatedAt); - } - - @Override - public String toString() { - return Utils.toString(V2Transaction.class, - "id", id, - "insertedAt", insertedAt, - "metadata", metadata, - "postCommitEffectiveVolumes", postCommitEffectiveVolumes, - "postCommitVolumes", postCommitVolumes, - "postings", postings, - "preCommitEffectiveVolumes", preCommitEffectiveVolumes, - "preCommitVolumes", preCommitVolumes, - "reference", reference, - "reverted", reverted, - "revertedAt", revertedAt, - "template", template, - "timestamp", timestamp, - "updatedAt", updatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger id; - - private Optional insertedAt = Optional.empty(); - - private Map metadata; - - private Optional>> postCommitEffectiveVolumes = Optional.empty(); - - private Optional>> postCommitVolumes = Optional.empty(); - - private List postings; - - private Optional>> preCommitEffectiveVolumes = Optional.empty(); - - private Optional>> preCommitVolumes = Optional.empty(); - - private Optional reference = Optional.empty(); - - private Boolean reverted; - - private Optional revertedAt = Optional.empty(); - - private Optional template = Optional.empty(); - - private OffsetDateTime timestamp; - - private Optional updatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder id(long id) { - this.id = BigInteger.valueOf(id); - return this; - } - - public Builder id(BigInteger id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder insertedAt(OffsetDateTime insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = Optional.ofNullable(insertedAt); - return this; - } - - public Builder insertedAt(Optional insertedAt) { - Utils.checkNotNull(insertedAt, "insertedAt"); - this.insertedAt = insertedAt; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postCommitEffectiveVolumes(Map> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = Optional.ofNullable(postCommitEffectiveVolumes); - return this; - } - - public Builder postCommitEffectiveVolumes(Optional>> postCommitEffectiveVolumes) { - Utils.checkNotNull(postCommitEffectiveVolumes, "postCommitEffectiveVolumes"); - this.postCommitEffectiveVolumes = postCommitEffectiveVolumes; - return this; - } - - - public Builder postCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - public Builder postCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder preCommitEffectiveVolumes(Map> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = Optional.ofNullable(preCommitEffectiveVolumes); - return this; - } - - public Builder preCommitEffectiveVolumes(Optional>> preCommitEffectiveVolumes) { - Utils.checkNotNull(preCommitEffectiveVolumes, "preCommitEffectiveVolumes"); - this.preCommitEffectiveVolumes = preCommitEffectiveVolumes; - return this; - } - - - public Builder preCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - public Builder preCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder reverted(boolean reverted) { - Utils.checkNotNull(reverted, "reverted"); - this.reverted = reverted; - return this; - } - - - public Builder revertedAt(OffsetDateTime revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = Optional.ofNullable(revertedAt); - return this; - } - - public Builder revertedAt(Optional revertedAt) { - Utils.checkNotNull(revertedAt, "revertedAt"); - this.revertedAt = revertedAt; - return this; - } - - - public Builder template(String template) { - Utils.checkNotNull(template, "template"); - this.template = Optional.ofNullable(template); - return this; - } - - public Builder template(Optional template) { - Utils.checkNotNull(template, "template"); - this.template = template; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - - public Builder updatedAt(OffsetDateTime updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = Optional.ofNullable(updatedAt); - return this; - } - - public Builder updatedAt(Optional updatedAt) { - Utils.checkNotNull(updatedAt, "updatedAt"); - this.updatedAt = updatedAt; - return this; - } - - public V2Transaction build() { - - return new V2Transaction( - id, insertedAt, metadata, - postCommitEffectiveVolumes, postCommitVolumes, postings, - preCommitEffectiveVolumes, preCommitVolumes, reference, - reverted, revertedAt, template, - timestamp, updatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Trigger.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Trigger.java deleted file mode 100644 index afeb48dfc..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Trigger.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - - -public class V2Trigger { - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("event") - private String event; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - - @JsonProperty("workflowID") - private String workflowID; - - @JsonCreator - public V2Trigger( - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("event") String event, - @JsonProperty("filter") Optional filter, - @JsonProperty("id") String id, - @JsonProperty("name") Optional name, - @JsonProperty("vars") Optional> vars, - @JsonProperty("version") Optional version, - @JsonProperty("workflowID") String workflowID) { - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(event, "event"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(vars, "vars"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(workflowID, "workflowID"); - this.createdAt = createdAt; - this.event = event; - this.filter = filter; - this.id = id; - this.name = name; - this.vars = vars; - this.version = version; - this.workflowID = workflowID; - } - - public V2Trigger( - OffsetDateTime createdAt, - String event, - String id, - String workflowID) { - this(createdAt, event, Optional.empty(), - id, Optional.empty(), Optional.empty(), - Optional.empty(), workflowID); - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String event() { - return event; - } - - @JsonIgnore - public Optional filter() { - return filter; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - @JsonIgnore - public Optional version() { - return version; - } - - @JsonIgnore - public String workflowID() { - return workflowID; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Trigger withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V2Trigger withEvent(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - public V2Trigger withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - - public V2Trigger withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public V2Trigger withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V2Trigger withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public V2Trigger withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V2Trigger withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public V2Trigger withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public V2Trigger withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - - public V2Trigger withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public V2Trigger withWorkflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Trigger other = (V2Trigger) o; - return - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.event, other.event) && - Utils.enhancedDeepEquals(this.filter, other.filter) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.vars, other.vars) && - Utils.enhancedDeepEquals(this.version, other.version) && - Utils.enhancedDeepEquals(this.workflowID, other.workflowID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createdAt, event, filter, - id, name, vars, - version, workflowID); - } - - @Override - public String toString() { - return Utils.toString(V2Trigger.class, - "createdAt", createdAt, - "event", event, - "filter", filter, - "id", id, - "name", name, - "vars", vars, - "version", version, - "workflowID", workflowID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private OffsetDateTime createdAt; - - private String event; - - private Optional filter = Optional.empty(); - - private String id; - - private Optional name = Optional.empty(); - - private Optional> vars = Optional.empty(); - - private Optional version = Optional.empty(); - - private String workflowID; - - private Builder() { - // force use of static builder() method - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder event(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - - public Builder workflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - public V2Trigger build() { - - return new V2Trigger( - createdAt, event, filter, - id, name, vars, - version, workflowID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerData.java b/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerData.java deleted file mode 100644 index e08873ebe..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2TriggerData.java +++ /dev/null @@ -1,307 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class V2TriggerData { - - @JsonProperty("event") - private String event; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("filter") - private Optional filter; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private Optional name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("vars") - private Optional> vars; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("version") - private Optional version; - - - @JsonProperty("workflowID") - private String workflowID; - - @JsonCreator - public V2TriggerData( - @JsonProperty("event") String event, - @JsonProperty("filter") Optional filter, - @JsonProperty("name") Optional name, - @JsonProperty("vars") Optional> vars, - @JsonProperty("version") Optional version, - @JsonProperty("workflowID") String workflowID) { - Utils.checkNotNull(event, "event"); - Utils.checkNotNull(filter, "filter"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(vars, "vars"); - Utils.checkNotNull(version, "version"); - Utils.checkNotNull(workflowID, "workflowID"); - this.event = event; - this.filter = filter; - this.name = name; - this.vars = vars; - this.version = version; - this.workflowID = workflowID; - } - - public V2TriggerData( - String event, - String workflowID) { - this(event, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), workflowID); - } - - @JsonIgnore - public String event() { - return event; - } - - @JsonIgnore - public Optional filter() { - return filter; - } - - @JsonIgnore - public Optional name() { - return name; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> vars() { - return (Optional>) vars; - } - - @JsonIgnore - public Optional version() { - return version; - } - - @JsonIgnore - public String workflowID() { - return workflowID; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2TriggerData withEvent(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - public V2TriggerData withFilter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - - public V2TriggerData withFilter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - public V2TriggerData withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - - public V2TriggerData withName(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V2TriggerData withVars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - - public V2TriggerData withVars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - public V2TriggerData withVersion(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - - public V2TriggerData withVersion(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - public V2TriggerData withWorkflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2TriggerData other = (V2TriggerData) o; - return - Utils.enhancedDeepEquals(this.event, other.event) && - Utils.enhancedDeepEquals(this.filter, other.filter) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.vars, other.vars) && - Utils.enhancedDeepEquals(this.version, other.version) && - Utils.enhancedDeepEquals(this.workflowID, other.workflowID); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - event, filter, name, - vars, version, workflowID); - } - - @Override - public String toString() { - return Utils.toString(V2TriggerData.class, - "event", event, - "filter", filter, - "name", name, - "vars", vars, - "version", version, - "workflowID", workflowID); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String event; - - private Optional filter = Optional.empty(); - - private Optional name = Optional.empty(); - - private Optional> vars = Optional.empty(); - - private Optional version = Optional.empty(); - - private String workflowID; - - private Builder() { - // force use of static builder() method - } - - - public Builder event(String event) { - Utils.checkNotNull(event, "event"); - this.event = event; - return this; - } - - - public Builder filter(String filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = Optional.ofNullable(filter); - return this; - } - - public Builder filter(Optional filter) { - Utils.checkNotNull(filter, "filter"); - this.filter = filter; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = Optional.ofNullable(name); - return this; - } - - public Builder name(Optional name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder vars(Map vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = Optional.ofNullable(vars); - return this; - } - - public Builder vars(Optional> vars) { - Utils.checkNotNull(vars, "vars"); - this.vars = vars; - return this; - } - - - public Builder version(String version) { - Utils.checkNotNull(version, "version"); - this.version = Optional.ofNullable(version); - return this; - } - - public Builder version(Optional version) { - Utils.checkNotNull(version, "version"); - this.version = version; - return this; - } - - - public Builder workflowID(String workflowID) { - Utils.checkNotNull(workflowID, "workflowID"); - this.workflowID = workflowID; - return this; - } - - public V2TriggerData build() { - - return new V2TriggerData( - event, filter, name, - vars, version, workflowID); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Update.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Update.java deleted file mode 100644 index e1028ef8e..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Update.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2Update { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("account") - private Optional account; - - @JsonCreator - public V2Update( - @JsonProperty("account") Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - } - - public V2Update() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional account() { - return (Optional) account; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Update withAccount(V2UpdateAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - - public V2Update withAccount(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Update other = (V2Update) o; - return - Utils.enhancedDeepEquals(this.account, other.account); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - account); - } - - @Override - public String toString() { - return Utils.toString(V2Update.class, - "account", account); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional account = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder account(V2UpdateAccount account) { - Utils.checkNotNull(account, "account"); - this.account = Optional.ofNullable(account); - return this; - } - - public Builder account(Optional account) { - Utils.checkNotNull(account, "account"); - this.account = account; - return this; - } - - public V2Update build() { - - return new V2Update( - account); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2Volume.java b/src/main/java/com/formance/formance_sdk/models/shared/V2Volume.java deleted file mode 100644 index 0bc053c60..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2Volume.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.util.Optional; - - -public class V2Volume { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - - @JsonProperty("input") - private BigInteger input; - - - @JsonProperty("output") - private BigInteger output; - - @JsonCreator - public V2Volume( - @JsonProperty("balance") Optional balance, - @JsonProperty("input") BigInteger input, - @JsonProperty("output") BigInteger output) { - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(input, "input"); - Utils.checkNotNull(output, "output"); - this.balance = balance; - this.input = input; - this.output = output; - } - - public V2Volume( - BigInteger input, - BigInteger output) { - this(Optional.empty(), input, output); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional balance() { - return (Optional) balance; - } - - @JsonIgnore - public BigInteger input() { - return input; - } - - @JsonIgnore - public BigInteger output() { - return output; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2Volume withBalance(BigInteger balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public V2Volume withBalance(long balance) { - this.balance = Optional.of(BigInteger.valueOf(balance)); - return this; - } - - - public V2Volume withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - public V2Volume withInput(long input) { - this.input = BigInteger.valueOf(input); - return this; - } - - public V2Volume withInput(BigInteger input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public V2Volume withOutput(long output) { - this.output = BigInteger.valueOf(output); - return this; - } - - public V2Volume withOutput(BigInteger output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2Volume other = (V2Volume) o; - return - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.input, other.input) && - Utils.enhancedDeepEquals(this.output, other.output); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balance, input, output); - } - - @Override - public String toString() { - return Utils.toString(V2Volume.class, - "balance", balance, - "input", input, - "output", output); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional balance = Optional.empty(); - - private BigInteger input; - - private BigInteger output; - - private Builder() { - // force use of static builder() method - } - - - public Builder balance(BigInteger balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public Builder balance(long balance) { - this.balance = Optional.of(BigInteger.valueOf(balance)); - return this; - } - - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - public Builder input(long input) { - this.input = BigInteger.valueOf(input); - return this; - } - - public Builder input(BigInteger input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - - public Builder output(long output) { - this.output = BigInteger.valueOf(output); - return this; - } - - public Builder output(BigInteger output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - public V2Volume build() { - - return new V2Volume( - balance, input, output); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalancesBalances.java b/src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalancesBalances.java deleted file mode 100644 index a5acef687..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WalletWithBalancesBalances.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V2WalletWithBalancesBalances { - - @JsonProperty("main") - private V2AssetHolder main; - - @JsonCreator - public V2WalletWithBalancesBalances( - @JsonProperty("main") V2AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - } - - @JsonIgnore - public V2AssetHolder main() { - return main; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2WalletWithBalancesBalances withMain(V2AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2WalletWithBalancesBalances other = (V2WalletWithBalancesBalances) o; - return - Utils.enhancedDeepEquals(this.main, other.main); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - main); - } - - @Override - public String toString() { - return Utils.toString(V2WalletWithBalancesBalances.class, - "main", main); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V2AssetHolder main; - - private Builder() { - // force use of static builder() method - } - - - public Builder main(V2AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - public V2WalletWithBalancesBalances build() { - - return new V2WalletWithBalancesBalances( - main); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStage.java b/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStage.java deleted file mode 100644 index 81d97facf..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStage.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Optional; - - -public class V2WorkflowInstanceHistoryStage { - - @JsonProperty("attempt") - private long attempt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private Optional error; - - - @JsonProperty("input") - private V2WorkflowInstanceHistoryStageInput input; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastFailure") - private Optional lastFailure; - - - @JsonProperty("name") - private String name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("nextExecution") - private Optional nextExecution; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("output") - private Optional output; - - - @JsonProperty("startedAt") - private OffsetDateTime startedAt; - - - @JsonProperty("terminated") - private boolean terminated; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("terminatedAt") - private Optional terminatedAt; - - @JsonCreator - public V2WorkflowInstanceHistoryStage( - @JsonProperty("attempt") long attempt, - @JsonProperty("error") Optional error, - @JsonProperty("input") V2WorkflowInstanceHistoryStageInput input, - @JsonProperty("lastFailure") Optional lastFailure, - @JsonProperty("name") String name, - @JsonProperty("nextExecution") Optional nextExecution, - @JsonProperty("output") Optional output, - @JsonProperty("startedAt") OffsetDateTime startedAt, - @JsonProperty("terminated") boolean terminated, - @JsonProperty("terminatedAt") Optional terminatedAt) { - Utils.checkNotNull(attempt, "attempt"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(input, "input"); - Utils.checkNotNull(lastFailure, "lastFailure"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(nextExecution, "nextExecution"); - Utils.checkNotNull(output, "output"); - Utils.checkNotNull(startedAt, "startedAt"); - Utils.checkNotNull(terminated, "terminated"); - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.attempt = attempt; - this.error = error; - this.input = input; - this.lastFailure = lastFailure; - this.name = name; - this.nextExecution = nextExecution; - this.output = output; - this.startedAt = startedAt; - this.terminated = terminated; - this.terminatedAt = terminatedAt; - } - - public V2WorkflowInstanceHistoryStage( - long attempt, - V2WorkflowInstanceHistoryStageInput input, - String name, - OffsetDateTime startedAt, - boolean terminated) { - this(attempt, Optional.empty(), input, - Optional.empty(), name, Optional.empty(), - Optional.empty(), startedAt, terminated, - Optional.empty()); - } - - @JsonIgnore - public long attempt() { - return attempt; - } - - @JsonIgnore - public Optional error() { - return error; - } - - @JsonIgnore - public V2WorkflowInstanceHistoryStageInput input() { - return input; - } - - @JsonIgnore - public Optional lastFailure() { - return lastFailure; - } - - @JsonIgnore - public String name() { - return name; - } - - @JsonIgnore - public Optional nextExecution() { - return nextExecution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional output() { - return (Optional) output; - } - - @JsonIgnore - public OffsetDateTime startedAt() { - return startedAt; - } - - @JsonIgnore - public boolean terminated() { - return terminated; - } - - @JsonIgnore - public Optional terminatedAt() { - return terminatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2WorkflowInstanceHistoryStage withAttempt(long attempt) { - Utils.checkNotNull(attempt, "attempt"); - this.attempt = attempt; - return this; - } - - public V2WorkflowInstanceHistoryStage withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = Optional.ofNullable(error); - return this; - } - - - public V2WorkflowInstanceHistoryStage withError(Optional error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public V2WorkflowInstanceHistoryStage withInput(V2WorkflowInstanceHistoryStageInput input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public V2WorkflowInstanceHistoryStage withLastFailure(String lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = Optional.ofNullable(lastFailure); - return this; - } - - - public V2WorkflowInstanceHistoryStage withLastFailure(Optional lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = lastFailure; - return this; - } - - public V2WorkflowInstanceHistoryStage withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V2WorkflowInstanceHistoryStage withNextExecution(OffsetDateTime nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = Optional.ofNullable(nextExecution); - return this; - } - - - public V2WorkflowInstanceHistoryStage withNextExecution(Optional nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = nextExecution; - return this; - } - - public V2WorkflowInstanceHistoryStage withOutput(V2WorkflowInstanceHistoryStageOutput output) { - Utils.checkNotNull(output, "output"); - this.output = Optional.ofNullable(output); - return this; - } - - - public V2WorkflowInstanceHistoryStage withOutput(Optional output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - public V2WorkflowInstanceHistoryStage withStartedAt(OffsetDateTime startedAt) { - Utils.checkNotNull(startedAt, "startedAt"); - this.startedAt = startedAt; - return this; - } - - public V2WorkflowInstanceHistoryStage withTerminated(boolean terminated) { - Utils.checkNotNull(terminated, "terminated"); - this.terminated = terminated; - return this; - } - - public V2WorkflowInstanceHistoryStage withTerminatedAt(OffsetDateTime terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = Optional.ofNullable(terminatedAt); - return this; - } - - - public V2WorkflowInstanceHistoryStage withTerminatedAt(Optional terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = terminatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2WorkflowInstanceHistoryStage other = (V2WorkflowInstanceHistoryStage) o; - return - Utils.enhancedDeepEquals(this.attempt, other.attempt) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.input, other.input) && - Utils.enhancedDeepEquals(this.lastFailure, other.lastFailure) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.nextExecution, other.nextExecution) && - Utils.enhancedDeepEquals(this.output, other.output) && - Utils.enhancedDeepEquals(this.startedAt, other.startedAt) && - Utils.enhancedDeepEquals(this.terminated, other.terminated) && - Utils.enhancedDeepEquals(this.terminatedAt, other.terminatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - attempt, error, input, - lastFailure, name, nextExecution, - output, startedAt, terminated, - terminatedAt); - } - - @Override - public String toString() { - return Utils.toString(V2WorkflowInstanceHistoryStage.class, - "attempt", attempt, - "error", error, - "input", input, - "lastFailure", lastFailure, - "name", name, - "nextExecution", nextExecution, - "output", output, - "startedAt", startedAt, - "terminated", terminated, - "terminatedAt", terminatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long attempt; - - private Optional error = Optional.empty(); - - private V2WorkflowInstanceHistoryStageInput input; - - private Optional lastFailure = Optional.empty(); - - private String name; - - private Optional nextExecution = Optional.empty(); - - private Optional output = Optional.empty(); - - private OffsetDateTime startedAt; - - private Boolean terminated; - - private Optional terminatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder attempt(long attempt) { - Utils.checkNotNull(attempt, "attempt"); - this.attempt = attempt; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = Optional.ofNullable(error); - return this; - } - - public Builder error(Optional error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder input(V2WorkflowInstanceHistoryStageInput input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - - public Builder lastFailure(String lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = Optional.ofNullable(lastFailure); - return this; - } - - public Builder lastFailure(Optional lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = lastFailure; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder nextExecution(OffsetDateTime nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = Optional.ofNullable(nextExecution); - return this; - } - - public Builder nextExecution(Optional nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = nextExecution; - return this; - } - - - public Builder output(V2WorkflowInstanceHistoryStageOutput output) { - Utils.checkNotNull(output, "output"); - this.output = Optional.ofNullable(output); - return this; - } - - public Builder output(Optional output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - - public Builder startedAt(OffsetDateTime startedAt) { - Utils.checkNotNull(startedAt, "startedAt"); - this.startedAt = startedAt; - return this; - } - - - public Builder terminated(boolean terminated) { - Utils.checkNotNull(terminated, "terminated"); - this.terminated = terminated; - return this; - } - - - public Builder terminatedAt(OffsetDateTime terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = Optional.ofNullable(terminatedAt); - return this; - } - - public Builder terminatedAt(Optional terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = terminatedAt; - return this; - } - - public V2WorkflowInstanceHistoryStage build() { - - return new V2WorkflowInstanceHistoryStage( - attempt, error, input, - lastFailure, name, nextExecution, - output, startedAt, terminated, - terminatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageInput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageInput.java deleted file mode 100644 index 9844674ac..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageInput.java +++ /dev/null @@ -1,562 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2WorkflowInstanceHistoryStageInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("AddAccountMetadata") - private Optional addAccountMetadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ConfirmHold") - private Optional confirmHold; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("CreateTransaction") - private Optional createTransaction; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("CreditWallet") - private Optional creditWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("DebitWallet") - private Optional debitWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetAccount") - private Optional getAccount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetPayment") - private Optional getPayment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetWallet") - private Optional getWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ListWallets") - private Optional listWallets; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("StripeTransfer") - private Optional stripeTransfer; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("VoidHold") - private Optional voidHold; - - @JsonCreator - public V2WorkflowInstanceHistoryStageInput( - @JsonProperty("AddAccountMetadata") Optional addAccountMetadata, - @JsonProperty("ConfirmHold") Optional confirmHold, - @JsonProperty("CreateTransaction") Optional createTransaction, - @JsonProperty("CreditWallet") Optional creditWallet, - @JsonProperty("DebitWallet") Optional debitWallet, - @JsonProperty("GetAccount") Optional getAccount, - @JsonProperty("GetPayment") Optional getPayment, - @JsonProperty("GetWallet") Optional getWallet, - @JsonProperty("ListWallets") Optional listWallets, - @JsonProperty("StripeTransfer") Optional stripeTransfer, - @JsonProperty("VoidHold") Optional voidHold) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - Utils.checkNotNull(confirmHold, "confirmHold"); - Utils.checkNotNull(createTransaction, "createTransaction"); - Utils.checkNotNull(creditWallet, "creditWallet"); - Utils.checkNotNull(debitWallet, "debitWallet"); - Utils.checkNotNull(getAccount, "getAccount"); - Utils.checkNotNull(getPayment, "getPayment"); - Utils.checkNotNull(getWallet, "getWallet"); - Utils.checkNotNull(listWallets, "listWallets"); - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - Utils.checkNotNull(voidHold, "voidHold"); - this.addAccountMetadata = addAccountMetadata; - this.confirmHold = confirmHold; - this.createTransaction = createTransaction; - this.creditWallet = creditWallet; - this.debitWallet = debitWallet; - this.getAccount = getAccount; - this.getPayment = getPayment; - this.getWallet = getWallet; - this.listWallets = listWallets; - this.stripeTransfer = stripeTransfer; - this.voidHold = voidHold; - } - - public V2WorkflowInstanceHistoryStageInput() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addAccountMetadata() { - return (Optional) addAccountMetadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional confirmHold() { - return (Optional) confirmHold; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createTransaction() { - return (Optional) createTransaction; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional creditWallet() { - return (Optional) creditWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional debitWallet() { - return (Optional) debitWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getAccount() { - return (Optional) getAccount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getPayment() { - return (Optional) getPayment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getWallet() { - return (Optional) getWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional listWallets() { - return (Optional) listWallets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional stripeTransfer() { - return (Optional) stripeTransfer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional voidHold() { - return (Optional) voidHold; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2WorkflowInstanceHistoryStageInput withAddAccountMetadata(V2ActivityAddAccountMetadata addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = Optional.ofNullable(addAccountMetadata); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withAddAccountMetadata(Optional addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = addAccountMetadata; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withConfirmHold(V2ActivityConfirmHold confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = Optional.ofNullable(confirmHold); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withConfirmHold(Optional confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = confirmHold; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withCreateTransaction(V2ActivityCreateTransaction createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withCreateTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withCreditWallet(V2ActivityCreditWallet creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = Optional.ofNullable(creditWallet); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withCreditWallet(Optional creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = creditWallet; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withDebitWallet(V2ActivityDebitWallet debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withDebitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withGetAccount(V2ActivityGetAccount getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withGetAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withGetPayment(V2ActivityGetPayment getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withGetPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withGetWallet(V2ActivityGetWallet getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withGetWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withListWallets(V2ActivityListWallets listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withListWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withStripeTransfer(V2ActivityStripeTransfer stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = Optional.ofNullable(stripeTransfer); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withStripeTransfer(Optional stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = stripeTransfer; - return this; - } - - public V2WorkflowInstanceHistoryStageInput withVoidHold(V2ActivityVoidHold voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = Optional.ofNullable(voidHold); - return this; - } - - - public V2WorkflowInstanceHistoryStageInput withVoidHold(Optional voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = voidHold; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2WorkflowInstanceHistoryStageInput other = (V2WorkflowInstanceHistoryStageInput) o; - return - Utils.enhancedDeepEquals(this.addAccountMetadata, other.addAccountMetadata) && - Utils.enhancedDeepEquals(this.confirmHold, other.confirmHold) && - Utils.enhancedDeepEquals(this.createTransaction, other.createTransaction) && - Utils.enhancedDeepEquals(this.creditWallet, other.creditWallet) && - Utils.enhancedDeepEquals(this.debitWallet, other.debitWallet) && - Utils.enhancedDeepEquals(this.getAccount, other.getAccount) && - Utils.enhancedDeepEquals(this.getPayment, other.getPayment) && - Utils.enhancedDeepEquals(this.getWallet, other.getWallet) && - Utils.enhancedDeepEquals(this.listWallets, other.listWallets) && - Utils.enhancedDeepEquals(this.stripeTransfer, other.stripeTransfer) && - Utils.enhancedDeepEquals(this.voidHold, other.voidHold); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - addAccountMetadata, confirmHold, createTransaction, - creditWallet, debitWallet, getAccount, - getPayment, getWallet, listWallets, - stripeTransfer, voidHold); - } - - @Override - public String toString() { - return Utils.toString(V2WorkflowInstanceHistoryStageInput.class, - "addAccountMetadata", addAccountMetadata, - "confirmHold", confirmHold, - "createTransaction", createTransaction, - "creditWallet", creditWallet, - "debitWallet", debitWallet, - "getAccount", getAccount, - "getPayment", getPayment, - "getWallet", getWallet, - "listWallets", listWallets, - "stripeTransfer", stripeTransfer, - "voidHold", voidHold); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional addAccountMetadata = Optional.empty(); - - private Optional confirmHold = Optional.empty(); - - private Optional createTransaction = Optional.empty(); - - private Optional creditWallet = Optional.empty(); - - private Optional debitWallet = Optional.empty(); - - private Optional getAccount = Optional.empty(); - - private Optional getPayment = Optional.empty(); - - private Optional getWallet = Optional.empty(); - - private Optional listWallets = Optional.empty(); - - private Optional stripeTransfer = Optional.empty(); - - private Optional voidHold = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder addAccountMetadata(V2ActivityAddAccountMetadata addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = Optional.ofNullable(addAccountMetadata); - return this; - } - - public Builder addAccountMetadata(Optional addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = addAccountMetadata; - return this; - } - - - public Builder confirmHold(V2ActivityConfirmHold confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = Optional.ofNullable(confirmHold); - return this; - } - - public Builder confirmHold(Optional confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = confirmHold; - return this; - } - - - public Builder createTransaction(V2ActivityCreateTransaction createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - public Builder createTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - - public Builder creditWallet(V2ActivityCreditWallet creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = Optional.ofNullable(creditWallet); - return this; - } - - public Builder creditWallet(Optional creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = creditWallet; - return this; - } - - - public Builder debitWallet(V2ActivityDebitWallet debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - public Builder debitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - - public Builder getAccount(V2ActivityGetAccount getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - public Builder getAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - - public Builder getPayment(V2ActivityGetPayment getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - public Builder getPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - - public Builder getWallet(V2ActivityGetWallet getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - public Builder getWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - - public Builder listWallets(V2ActivityListWallets listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - public Builder listWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - - public Builder stripeTransfer(V2ActivityStripeTransfer stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = Optional.ofNullable(stripeTransfer); - return this; - } - - public Builder stripeTransfer(Optional stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = stripeTransfer; - return this; - } - - - public Builder voidHold(V2ActivityVoidHold voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = Optional.ofNullable(voidHold); - return this; - } - - public Builder voidHold(Optional voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = voidHold; - return this; - } - - public V2WorkflowInstanceHistoryStageInput build() { - - return new V2WorkflowInstanceHistoryStageInput( - addAccountMetadata, confirmHold, createTransaction, - creditWallet, debitWallet, getAccount, - getPayment, getWallet, listWallets, - stripeTransfer, voidHold); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageOutput.java deleted file mode 100644 index eae5e82ad..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V2WorkflowInstanceHistoryStageOutput.java +++ /dev/null @@ -1,336 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class V2WorkflowInstanceHistoryStageOutput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("CreateTransaction") - private Optional createTransaction; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("DebitWallet") - private Optional debitWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetAccount") - private Optional getAccount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetPayment") - private Optional getPayment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetWallet") - private Optional getWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ListWallets") - private Optional listWallets; - - @JsonCreator - public V2WorkflowInstanceHistoryStageOutput( - @JsonProperty("CreateTransaction") Optional createTransaction, - @JsonProperty("DebitWallet") Optional debitWallet, - @JsonProperty("GetAccount") Optional getAccount, - @JsonProperty("GetPayment") Optional getPayment, - @JsonProperty("GetWallet") Optional getWallet, - @JsonProperty("ListWallets") Optional listWallets) { - Utils.checkNotNull(createTransaction, "createTransaction"); - Utils.checkNotNull(debitWallet, "debitWallet"); - Utils.checkNotNull(getAccount, "getAccount"); - Utils.checkNotNull(getPayment, "getPayment"); - Utils.checkNotNull(getWallet, "getWallet"); - Utils.checkNotNull(listWallets, "listWallets"); - this.createTransaction = createTransaction; - this.debitWallet = debitWallet; - this.getAccount = getAccount; - this.getPayment = getPayment; - this.getWallet = getWallet; - this.listWallets = listWallets; - } - - public V2WorkflowInstanceHistoryStageOutput() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createTransaction() { - return (Optional) createTransaction; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional debitWallet() { - return (Optional) debitWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getAccount() { - return (Optional) getAccount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getPayment() { - return (Optional) getPayment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getWallet() { - return (Optional) getWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional listWallets() { - return (Optional) listWallets; - } - - public static Builder builder() { - return new Builder(); - } - - - public V2WorkflowInstanceHistoryStageOutput withCreateTransaction(V2ActivityCreateTransactionOutput createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - - public V2WorkflowInstanceHistoryStageOutput withCreateTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - public V2WorkflowInstanceHistoryStageOutput withDebitWallet(V2ActivityDebitWalletOutput debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - - public V2WorkflowInstanceHistoryStageOutput withDebitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - public V2WorkflowInstanceHistoryStageOutput withGetAccount(V2ActivityGetAccountOutput getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - - public V2WorkflowInstanceHistoryStageOutput withGetAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - public V2WorkflowInstanceHistoryStageOutput withGetPayment(V2ActivityGetPaymentOutput getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - - public V2WorkflowInstanceHistoryStageOutput withGetPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - public V2WorkflowInstanceHistoryStageOutput withGetWallet(V2ActivityGetWalletOutput getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - - public V2WorkflowInstanceHistoryStageOutput withGetWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - public V2WorkflowInstanceHistoryStageOutput withListWallets(V2ListWalletsResponse listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - - public V2WorkflowInstanceHistoryStageOutput withListWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2WorkflowInstanceHistoryStageOutput other = (V2WorkflowInstanceHistoryStageOutput) o; - return - Utils.enhancedDeepEquals(this.createTransaction, other.createTransaction) && - Utils.enhancedDeepEquals(this.debitWallet, other.debitWallet) && - Utils.enhancedDeepEquals(this.getAccount, other.getAccount) && - Utils.enhancedDeepEquals(this.getPayment, other.getPayment) && - Utils.enhancedDeepEquals(this.getWallet, other.getWallet) && - Utils.enhancedDeepEquals(this.listWallets, other.listWallets); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createTransaction, debitWallet, getAccount, - getPayment, getWallet, listWallets); - } - - @Override - public String toString() { - return Utils.toString(V2WorkflowInstanceHistoryStageOutput.class, - "createTransaction", createTransaction, - "debitWallet", debitWallet, - "getAccount", getAccount, - "getPayment", getPayment, - "getWallet", getWallet, - "listWallets", listWallets); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional createTransaction = Optional.empty(); - - private Optional debitWallet = Optional.empty(); - - private Optional getAccount = Optional.empty(); - - private Optional getPayment = Optional.empty(); - - private Optional getWallet = Optional.empty(); - - private Optional listWallets = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder createTransaction(V2ActivityCreateTransactionOutput createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - public Builder createTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - - public Builder debitWallet(V2ActivityDebitWalletOutput debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - public Builder debitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - - public Builder getAccount(V2ActivityGetAccountOutput getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - public Builder getAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - - public Builder getPayment(V2ActivityGetPaymentOutput getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - public Builder getPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - - public Builder getWallet(V2ActivityGetWalletOutput getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - public Builder getWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - - public Builder listWallets(V2ListWalletsResponse listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - public Builder listWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - public V2WorkflowInstanceHistoryStageOutput build() { - - return new V2WorkflowInstanceHistoryStageOutput( - createTransaction, debitWallet, getAccount, - getPayment, getWallet, listWallets); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3Account.java b/src/main/java/com/formance/formance_sdk/models/shared/V3Account.java deleted file mode 100644 index c2ececc39..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3Account.java +++ /dev/null @@ -1,462 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3Account { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("connector") - private Optional connector; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultAsset") - private JsonNullable defaultAsset; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("name") - private JsonNullable name; - - - @JsonProperty("provider") - private String provider; - - - @JsonProperty("raw") - private V3AccountRaw raw; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("type") - private V3AccountTypeEnum type; - - @JsonCreator - public V3Account( - @JsonProperty("connector") Optional connector, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("defaultAsset") JsonNullable defaultAsset, - @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") JsonNullable name, - @JsonProperty("provider") String provider, - @JsonProperty("raw") V3AccountRaw raw, - @JsonProperty("reference") String reference, - @JsonProperty("type") V3AccountTypeEnum type) { - Utils.checkNotNull(connector, "connector"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(defaultAsset, "defaultAsset"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(provider, "provider"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(type, "type"); - this.connector = connector; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.defaultAsset = defaultAsset; - this.id = id; - this.metadata = metadata; - this.name = name; - this.provider = provider; - this.raw = raw; - this.reference = reference; - this.type = type; - } - - public V3Account( - String connectorID, - OffsetDateTime createdAt, - String id, - String provider, - V3AccountRaw raw, - String reference, - V3AccountTypeEnum type) { - this(Optional.empty(), connectorID, createdAt, - JsonNullable.undefined(), id, JsonNullable.undefined(), - JsonNullable.undefined(), provider, raw, - reference, type); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional connector() { - return (Optional) connector; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public JsonNullable defaultAsset() { - return defaultAsset; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public JsonNullable name() { - return name; - } - - @JsonIgnore - public String provider() { - return provider; - } - - @JsonIgnore - public V3AccountRaw raw() { - return raw; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public V3AccountTypeEnum type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3Account withConnector(V3ConnectorBase connector) { - Utils.checkNotNull(connector, "connector"); - this.connector = Optional.ofNullable(connector); - return this; - } - - - public V3Account withConnector(Optional connector) { - Utils.checkNotNull(connector, "connector"); - this.connector = connector; - return this; - } - - public V3Account withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public V3Account withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3Account withDefaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = JsonNullable.of(defaultAsset); - return this; - } - - public V3Account withDefaultAsset(JsonNullable defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - public V3Account withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V3Account withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3Account withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3Account withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - public V3Account withName(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V3Account withProvider(String provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - public V3Account withRaw(V3AccountRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public V3Account withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public V3Account withType(V3AccountTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3Account other = (V3Account) o; - return - Utils.enhancedDeepEquals(this.connector, other.connector) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.provider, other.provider) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connector, connectorID, createdAt, - defaultAsset, id, metadata, - name, provider, raw, - reference, type); - } - - @Override - public String toString() { - return Utils.toString(V3Account.class, - "connector", connector, - "connectorID", connectorID, - "createdAt", createdAt, - "defaultAsset", defaultAsset, - "id", id, - "metadata", metadata, - "name", name, - "provider", provider, - "raw", raw, - "reference", reference, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional connector = Optional.empty(); - - private String connectorID; - - private OffsetDateTime createdAt; - - private JsonNullable defaultAsset = JsonNullable.undefined(); - - private String id; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private JsonNullable name = JsonNullable.undefined(); - - private String provider; - - private V3AccountRaw raw; - - private String reference; - - private V3AccountTypeEnum type; - - private Builder() { - // force use of static builder() method - } - - - public Builder connector(V3ConnectorBase connector) { - Utils.checkNotNull(connector, "connector"); - this.connector = Optional.ofNullable(connector); - return this; - } - - public Builder connector(Optional connector) { - Utils.checkNotNull(connector, "connector"); - this.connector = connector; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder defaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = JsonNullable.of(defaultAsset); - return this; - } - - public Builder defaultAsset(JsonNullable defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = JsonNullable.of(name); - return this; - } - - public Builder name(JsonNullable name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder provider(String provider) { - Utils.checkNotNull(provider, "provider"); - this.provider = provider; - return this; - } - - - public Builder raw(V3AccountRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder type(V3AccountTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public V3Account build() { - - return new V3Account( - connector, connectorID, createdAt, - defaultAsset, id, metadata, - name, provider, raw, - reference, type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfig.java b/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfig.java deleted file mode 100644 index 3ac13e9a7..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorConfig.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3ConnectorConfig { - @JsonCreator - public V3ConnectorConfig() { - } - - public static Builder builder() { - return new Builder(); - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - ); - } - - @Override - public String toString() { - return Utils.toString(V3ConnectorConfig.class); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Builder() { - // force use of static builder() method - } - - public V3ConnectorConfig build() { - - return new V3ConnectorConfig( - ); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleResponse.java deleted file mode 100644 index 8562c2aa3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3ConnectorScheduleResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3ConnectorScheduleResponse { - - @JsonProperty("data") - private V3Schedule data; - - @JsonCreator - public V3ConnectorScheduleResponse( - @JsonProperty("data") V3Schedule data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Schedule data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3ConnectorScheduleResponse withData(V3Schedule data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3ConnectorScheduleResponse other = (V3ConnectorScheduleResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3ConnectorScheduleResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Schedule data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Schedule data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3ConnectorScheduleResponse build() { - - return new V3ConnectorScheduleResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountRequest.java deleted file mode 100644 index 399aa6e89..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountRequest.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3CreateAccountRequest { - - @JsonProperty("accountName") - private String accountName; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("defaultAsset") - private JsonNullable defaultAsset; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("type") - private V3AccountTypeEnum type; - - @JsonCreator - public V3CreateAccountRequest( - @JsonProperty("accountName") String accountName, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("defaultAsset") JsonNullable defaultAsset, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("reference") String reference, - @JsonProperty("type") V3AccountTypeEnum type) { - Utils.checkNotNull(accountName, "accountName"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(defaultAsset, "defaultAsset"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(type, "type"); - this.accountName = accountName; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.defaultAsset = defaultAsset; - this.metadata = metadata; - this.reference = reference; - this.type = type; - } - - public V3CreateAccountRequest( - String accountName, - String connectorID, - OffsetDateTime createdAt, - String reference, - V3AccountTypeEnum type) { - this(accountName, connectorID, createdAt, - JsonNullable.undefined(), JsonNullable.undefined(), reference, - type); - } - - @JsonIgnore - public String accountName() { - return accountName; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public JsonNullable defaultAsset() { - return defaultAsset; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public V3AccountTypeEnum type() { - return type; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3CreateAccountRequest withAccountName(String accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = accountName; - return this; - } - - public V3CreateAccountRequest withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public V3CreateAccountRequest withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3CreateAccountRequest withDefaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = JsonNullable.of(defaultAsset); - return this; - } - - public V3CreateAccountRequest withDefaultAsset(JsonNullable defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - public V3CreateAccountRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3CreateAccountRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3CreateAccountRequest withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public V3CreateAccountRequest withType(V3AccountTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3CreateAccountRequest other = (V3CreateAccountRequest) o; - return - Utils.enhancedDeepEquals(this.accountName, other.accountName) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.defaultAsset, other.defaultAsset) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - accountName, connectorID, createdAt, - defaultAsset, metadata, reference, - type); - } - - @Override - public String toString() { - return Utils.toString(V3CreateAccountRequest.class, - "accountName", accountName, - "connectorID", connectorID, - "createdAt", createdAt, - "defaultAsset", defaultAsset, - "metadata", metadata, - "reference", reference, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String accountName; - - private String connectorID; - - private OffsetDateTime createdAt; - - private JsonNullable defaultAsset = JsonNullable.undefined(); - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String reference; - - private V3AccountTypeEnum type; - - private Builder() { - // force use of static builder() method - } - - - public Builder accountName(String accountName) { - Utils.checkNotNull(accountName, "accountName"); - this.accountName = accountName; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder defaultAsset(String defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = JsonNullable.of(defaultAsset); - return this; - } - - public Builder defaultAsset(JsonNullable defaultAsset) { - Utils.checkNotNull(defaultAsset, "defaultAsset"); - this.defaultAsset = defaultAsset; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder type(V3AccountTypeEnum type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public V3CreateAccountRequest build() { - - return new V3CreateAccountRequest( - accountName, connectorID, createdAt, - defaultAsset, metadata, reference, - type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountResponse.java deleted file mode 100644 index 696e2234f..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreateAccountResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3CreateAccountResponse { - - @JsonProperty("data") - private V3Account data; - - @JsonCreator - public V3CreateAccountResponse( - @JsonProperty("data") V3Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Account data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3CreateAccountResponse withData(V3Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3CreateAccountResponse other = (V3CreateAccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3CreateAccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Account data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3CreateAccountResponse build() { - - return new V3CreateAccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentAdjustmentRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentAdjustmentRequest.java deleted file mode 100644 index dfe7fd0f9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentAdjustmentRequest.java +++ /dev/null @@ -1,306 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3CreatePaymentAdjustmentRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("asset") - private Optional asset; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("status") - private V3PaymentStatusEnum status; - - @JsonCreator - public V3CreatePaymentAdjustmentRequest( - @JsonProperty("amount") Optional amount, - @JsonProperty("asset") Optional asset, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("reference") String reference, - @JsonProperty("status") V3PaymentStatusEnum status) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(status, "status"); - this.amount = amount; - this.asset = asset; - this.createdAt = createdAt; - this.metadata = metadata; - this.reference = reference; - this.status = status; - } - - public V3CreatePaymentAdjustmentRequest( - OffsetDateTime createdAt, - String reference, - V3PaymentStatusEnum status) { - this(Optional.empty(), Optional.empty(), createdAt, - JsonNullable.undefined(), reference, status); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @JsonIgnore - public Optional asset() { - return asset; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public V3PaymentStatusEnum status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3CreatePaymentAdjustmentRequest withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public V3CreatePaymentAdjustmentRequest withAmount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - - public V3CreatePaymentAdjustmentRequest withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public V3CreatePaymentAdjustmentRequest withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - - public V3CreatePaymentAdjustmentRequest withAsset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public V3CreatePaymentAdjustmentRequest withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3CreatePaymentAdjustmentRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3CreatePaymentAdjustmentRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3CreatePaymentAdjustmentRequest withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public V3CreatePaymentAdjustmentRequest withStatus(V3PaymentStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3CreatePaymentAdjustmentRequest other = (V3CreatePaymentAdjustmentRequest) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, createdAt, - metadata, reference, status); - } - - @Override - public String toString() { - return Utils.toString(V3CreatePaymentAdjustmentRequest.class, - "amount", amount, - "asset", asset, - "createdAt", createdAt, - "metadata", metadata, - "reference", reference, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional asset = Optional.empty(); - - private OffsetDateTime createdAt; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String reference; - - private V3PaymentStatusEnum status; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - public Builder asset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder status(V3PaymentStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3CreatePaymentAdjustmentRequest build() { - - return new V3CreatePaymentAdjustmentRequest( - amount, asset, createdAt, - metadata, reference, status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentResponse.java deleted file mode 100644 index c89a09c47..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3CreatePaymentResponse { - - @JsonProperty("data") - private V3Payment data; - - @JsonCreator - public V3CreatePaymentResponse( - @JsonProperty("data") V3Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Payment data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3CreatePaymentResponse withData(V3Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3CreatePaymentResponse other = (V3CreatePaymentResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3CreatePaymentResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Payment data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3CreatePaymentResponse build() { - - return new V3CreatePaymentResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserRequest.java deleted file mode 100644 index d8886dc0a..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3CreatePaymentServiceUserRequest.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3CreatePaymentServiceUserRequest { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bankAccountIDs") - private JsonNullable> bankAccountIDs; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contactDetails") - private Optional contactDetails; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public V3CreatePaymentServiceUserRequest( - @JsonProperty("address") Optional address, - @JsonProperty("bankAccountIDs") JsonNullable> bankAccountIDs, - @JsonProperty("contactDetails") Optional contactDetails, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - Utils.checkNotNull(contactDetails, "contactDetails"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.address = address; - this.bankAccountIDs = bankAccountIDs; - this.contactDetails = contactDetails; - this.metadata = metadata; - this.name = name; - } - - public V3CreatePaymentServiceUserRequest( - String name) { - this(Optional.empty(), JsonNullable.undefined(), Optional.empty(), - JsonNullable.undefined(), name); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional address() { - return (Optional) address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> bankAccountIDs() { - return (JsonNullable>) bankAccountIDs; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contactDetails() { - return (Optional) contactDetails; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3CreatePaymentServiceUserRequest withAddress(V3AddressRequest address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - - public V3CreatePaymentServiceUserRequest withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public V3CreatePaymentServiceUserRequest withBankAccountIDs(List bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = JsonNullable.of(bankAccountIDs); - return this; - } - - public V3CreatePaymentServiceUserRequest withBankAccountIDs(JsonNullable> bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = bankAccountIDs; - return this; - } - - public V3CreatePaymentServiceUserRequest withContactDetails(V3ContactDetailsRequest contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = Optional.ofNullable(contactDetails); - return this; - } - - - public V3CreatePaymentServiceUserRequest withContactDetails(Optional contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = contactDetails; - return this; - } - - public V3CreatePaymentServiceUserRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3CreatePaymentServiceUserRequest withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3CreatePaymentServiceUserRequest withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3CreatePaymentServiceUserRequest other = (V3CreatePaymentServiceUserRequest) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.bankAccountIDs, other.bankAccountIDs) && - Utils.enhancedDeepEquals(this.contactDetails, other.contactDetails) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, bankAccountIDs, contactDetails, - metadata, name); - } - - @Override - public String toString() { - return Utils.toString(V3CreatePaymentServiceUserRequest.class, - "address", address, - "bankAccountIDs", bankAccountIDs, - "contactDetails", contactDetails, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional address = Optional.empty(); - - private JsonNullable> bankAccountIDs = JsonNullable.undefined(); - - private Optional contactDetails = Optional.empty(); - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder address(V3AddressRequest address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - public Builder bankAccountIDs(List bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = JsonNullable.of(bankAccountIDs); - return this; - } - - public Builder bankAccountIDs(JsonNullable> bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = bankAccountIDs; - return this; - } - - - public Builder contactDetails(V3ContactDetailsRequest contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = Optional.ofNullable(contactDetails); - return this; - } - - public Builder contactDetails(Optional contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = contactDetails; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V3CreatePaymentServiceUserRequest build() { - - return new V3CreatePaymentServiceUserRequest( - address, bankAccountIDs, contactDetails, - metadata, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetAccountResponse.java deleted file mode 100644 index bdfb9db44..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetAccountResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetAccountResponse { - - @JsonProperty("data") - private V3Account data; - - @JsonCreator - public V3GetAccountResponse( - @JsonProperty("data") V3Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Account data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetAccountResponse withData(V3Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetAccountResponse other = (V3GetAccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetAccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Account data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Account data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetAccountResponse build() { - - return new V3GetAccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetBankAccountResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetBankAccountResponse.java deleted file mode 100644 index 75f5c4136..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetBankAccountResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetBankAccountResponse { - - @JsonProperty("data") - private V3BankAccount data; - - @JsonCreator - public V3GetBankAccountResponse( - @JsonProperty("data") V3BankAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3BankAccount data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetBankAccountResponse withData(V3BankAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetBankAccountResponse other = (V3GetBankAccountResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetBankAccountResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3BankAccount data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3BankAccount data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetBankAccountResponse build() { - - return new V3GetBankAccountResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetConnectorConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetConnectorConfigResponse.java deleted file mode 100644 index 9570d3801..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetConnectorConfigResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetConnectorConfigResponse { - - @JsonProperty("data") - private V3InstallConnectorRequest data; - - @JsonCreator - public V3GetConnectorConfigResponse( - @JsonProperty("data") V3InstallConnectorRequest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3InstallConnectorRequest data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetConnectorConfigResponse withData(V3InstallConnectorRequest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetConnectorConfigResponse other = (V3GetConnectorConfigResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetConnectorConfigResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3InstallConnectorRequest data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3InstallConnectorRequest data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetConnectorConfigResponse build() { - - return new V3GetConnectorConfigResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentInitiationResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentInitiationResponse.java deleted file mode 100644 index 5ee8d3ac3..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentInitiationResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetPaymentInitiationResponse { - - @JsonProperty("data") - private V3PaymentInitiation data; - - @JsonCreator - public V3GetPaymentInitiationResponse( - @JsonProperty("data") V3PaymentInitiation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3PaymentInitiation data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetPaymentInitiationResponse withData(V3PaymentInitiation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetPaymentInitiationResponse other = (V3GetPaymentInitiationResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetPaymentInitiationResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3PaymentInitiation data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3PaymentInitiation data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetPaymentInitiationResponse build() { - - return new V3GetPaymentInitiationResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentResponse.java deleted file mode 100644 index 5ac687002..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetPaymentResponse { - - @JsonProperty("data") - private V3Payment data; - - @JsonCreator - public V3GetPaymentResponse( - @JsonProperty("data") V3Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Payment data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetPaymentResponse withData(V3Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetPaymentResponse other = (V3GetPaymentResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetPaymentResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Payment data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Payment data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetPaymentResponse build() { - - return new V3GetPaymentResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentServiceUserResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentServiceUserResponse.java deleted file mode 100644 index 2ad12acc6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPaymentServiceUserResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetPaymentServiceUserResponse { - - @JsonProperty("data") - private V3PaymentServiceUser data; - - @JsonCreator - public V3GetPaymentServiceUserResponse( - @JsonProperty("data") V3PaymentServiceUser data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3PaymentServiceUser data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetPaymentServiceUserResponse withData(V3PaymentServiceUser data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetPaymentServiceUserResponse other = (V3GetPaymentServiceUserResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetPaymentServiceUserResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3PaymentServiceUser data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3PaymentServiceUser data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetPaymentServiceUserResponse build() { - - return new V3GetPaymentServiceUserResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPoolResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetPoolResponse.java deleted file mode 100644 index 91936c8d1..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetPoolResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetPoolResponse { - - @JsonProperty("data") - private V3Pool data; - - @JsonCreator - public V3GetPoolResponse( - @JsonProperty("data") V3Pool data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Pool data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetPoolResponse withData(V3Pool data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetPoolResponse other = (V3GetPoolResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetPoolResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Pool data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Pool data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetPoolResponse build() { - - return new V3GetPoolResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3GetTaskResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3GetTaskResponse.java deleted file mode 100644 index 7fd343175..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3GetTaskResponse.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class V3GetTaskResponse { - - @JsonProperty("data") - private V3Task data; - - @JsonCreator - public V3GetTaskResponse( - @JsonProperty("data") V3Task data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public V3Task data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3GetTaskResponse withData(V3Task data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3GetTaskResponse other = (V3GetTaskResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3GetTaskResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private V3Task data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(V3Task data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3GetTaskResponse build() { - - return new V3GetTaskResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequest.java deleted file mode 100644 index 9fd4fe4cd..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequest.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonTypeInfo.As; -import com.fasterxml.jackson.annotation.JsonTypeInfo.Id; -import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.databind.annotation.JsonTypeIdResolver; -import java.lang.String; - -@JsonTypeInfo( - use = Id.CUSTOM, - property = "provider", - include = As.EXISTING_PROPERTY, - visible = true, - defaultImpl = UnknownV3InstallConnectorRequest.class -) -@JsonTypeIdResolver(V3InstallConnectorRequestTypeIdResolver.class) -public interface V3InstallConnectorRequest { - - String provider(); - -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequestTypeIdResolver.java b/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequestTypeIdResolver.java deleted file mode 100644 index 6c7aea489..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3InstallConnectorRequestTypeIdResolver.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -package com.formance.formance_sdk.models.shared; - -import com.formance.formance_sdk.utils.GenericTypeIdResolver; -import java.lang.IllegalArgumentException; -import java.lang.Object; -import java.lang.Override; -import java.lang.String; - - -public class V3InstallConnectorRequestTypeIdResolver extends GenericTypeIdResolver { - - public V3InstallConnectorRequestTypeIdResolver() { - super(UnknownV3InstallConnectorRequest.class); - initializeTypeMap(); - } - - private void initializeTypeMap() { - registerType("Adyen", V3AdyenConfig.class); - registerType("Atlar", V3AtlarConfig.class); - registerType("Bankingcircle", V3BankingcircleConfig.class); - registerType("Coinbaseprime", V3CoinbaseprimeConfig.class); - registerType("Column", V3ColumnConfig.class); - registerType("Currencycloud", V3CurrencycloudConfig.class); - registerType("Dummypay", V3DummypayConfig.class); - registerType("Fireblocks", V3FireblocksConfig.class); - registerType("Generic", V3GenericConfig.class); - registerType("Increase", V3IncreaseConfig.class); - registerType("Mangopay", V3MangopayConfig.class); - registerType("Modulr", V3ModulrConfig.class); - registerType("Moneycorp", V3MoneycorpConfig.class); - registerType("Plaid", V3PlaidConfig.class); - registerType("Powens", V3PowensConfig.class); - registerType("Qonto", V3QontoConfig.class); - registerType("Stripe", V3StripeConfig.class); - registerType("Tink", V3TinkConfig.class); - registerType("Wise", V3WiseConfig.class); - } - - @Override - public String idFromValue(Object value) { - if (value == null) { - return null; - } - - // Handle known types by checking if they implement the discriminator method - if (value instanceof V3InstallConnectorRequest) { - V3InstallConnectorRequest discriminated = (V3InstallConnectorRequest) value; - return discriminated.provider(); - } - - throw new IllegalArgumentException("Unknown value type: " + value.getClass().getName()); - } - - @Override - public String getDescForKnownTypeIds() { - return "V3InstallConnectorRequest type resolver"; - } - -} \ No newline at end of file diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustment.java b/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustment.java deleted file mode 100644 index 61f6d34a9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentAdjustment.java +++ /dev/null @@ -1,369 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3PaymentAdjustment { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("asset") - private Optional asset; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("raw") - private V3PaymentAdjustmentRaw raw; - - - @JsonProperty("reference") - private String reference; - - - @JsonProperty("status") - private V3PaymentStatusEnum status; - - @JsonCreator - public V3PaymentAdjustment( - @JsonProperty("amount") Optional amount, - @JsonProperty("asset") Optional asset, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("raw") V3PaymentAdjustmentRaw raw, - @JsonProperty("reference") String reference, - @JsonProperty("status") V3PaymentStatusEnum status) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(raw, "raw"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(status, "status"); - this.amount = amount; - this.asset = asset; - this.createdAt = createdAt; - this.id = id; - this.metadata = metadata; - this.raw = raw; - this.reference = reference; - this.status = status; - } - - public V3PaymentAdjustment( - OffsetDateTime createdAt, - String id, - V3PaymentAdjustmentRaw raw, - String reference, - V3PaymentStatusEnum status) { - this(Optional.empty(), Optional.empty(), createdAt, - id, JsonNullable.undefined(), raw, - reference, status); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @JsonIgnore - public Optional asset() { - return asset; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public V3PaymentAdjustmentRaw raw() { - return raw; - } - - @JsonIgnore - public String reference() { - return reference; - } - - @JsonIgnore - public V3PaymentStatusEnum status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3PaymentAdjustment withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public V3PaymentAdjustment withAmount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - - public V3PaymentAdjustment withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public V3PaymentAdjustment withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - - public V3PaymentAdjustment withAsset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public V3PaymentAdjustment withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3PaymentAdjustment withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V3PaymentAdjustment withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3PaymentAdjustment withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3PaymentAdjustment withRaw(V3PaymentAdjustmentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - public V3PaymentAdjustment withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public V3PaymentAdjustment withStatus(V3PaymentStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3PaymentAdjustment other = (V3PaymentAdjustment) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.raw, other.raw) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, createdAt, - id, metadata, raw, - reference, status); - } - - @Override - public String toString() { - return Utils.toString(V3PaymentAdjustment.class, - "amount", amount, - "asset", asset, - "createdAt", createdAt, - "id", id, - "metadata", metadata, - "raw", raw, - "reference", reference, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional asset = Optional.empty(); - - private OffsetDateTime createdAt; - - private String id; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private V3PaymentAdjustmentRaw raw; - - private String reference; - - private V3PaymentStatusEnum status; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - public Builder asset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder raw(V3PaymentAdjustmentRaw raw) { - Utils.checkNotNull(raw, "raw"); - this.raw = raw; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder status(V3PaymentStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3PaymentAdjustment build() { - - return new V3PaymentAdjustment( - amount, asset, createdAt, - id, metadata, raw, - reference, status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustment.java b/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustment.java deleted file mode 100644 index c7d0e5ff2..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentInitiationAdjustment.java +++ /dev/null @@ -1,351 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3PaymentInitiationAdjustment { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("amount") - private Optional amount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("asset") - private Optional asset; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("status") - private V3PaymentInitiationStatusEnum status; - - @JsonCreator - public V3PaymentInitiationAdjustment( - @JsonProperty("amount") Optional amount, - @JsonProperty("asset") Optional asset, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("status") V3PaymentInitiationStatusEnum status) { - Utils.checkNotNull(amount, "amount"); - Utils.checkNotNull(asset, "asset"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(status, "status"); - this.amount = amount; - this.asset = asset; - this.createdAt = createdAt; - this.error = error; - this.id = id; - this.metadata = metadata; - this.status = status; - } - - public V3PaymentInitiationAdjustment( - OffsetDateTime createdAt, - String id, - V3PaymentInitiationStatusEnum status) { - this(Optional.empty(), Optional.empty(), createdAt, - JsonNullable.undefined(), id, JsonNullable.undefined(), - status); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional amount() { - return (Optional) amount; - } - - @JsonIgnore - public Optional asset() { - return asset; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public V3PaymentInitiationStatusEnum status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3PaymentInitiationAdjustment withAmount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public V3PaymentInitiationAdjustment withAmount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - - public V3PaymentInitiationAdjustment withAmount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - public V3PaymentInitiationAdjustment withAsset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - - public V3PaymentInitiationAdjustment withAsset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - public V3PaymentInitiationAdjustment withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3PaymentInitiationAdjustment withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public V3PaymentInitiationAdjustment withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public V3PaymentInitiationAdjustment withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V3PaymentInitiationAdjustment withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3PaymentInitiationAdjustment withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3PaymentInitiationAdjustment withStatus(V3PaymentInitiationStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3PaymentInitiationAdjustment other = (V3PaymentInitiationAdjustment) o; - return - Utils.enhancedDeepEquals(this.amount, other.amount) && - Utils.enhancedDeepEquals(this.asset, other.asset) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - amount, asset, createdAt, - error, id, metadata, - status); - } - - @Override - public String toString() { - return Utils.toString(V3PaymentInitiationAdjustment.class, - "amount", amount, - "asset", asset, - "createdAt", createdAt, - "error", error, - "id", id, - "metadata", metadata, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional amount = Optional.empty(); - - private Optional asset = Optional.empty(); - - private OffsetDateTime createdAt; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private V3PaymentInitiationStatusEnum status; - - private Builder() { - // force use of static builder() method - } - - - public Builder amount(BigInteger amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = Optional.ofNullable(amount); - return this; - } - - public Builder amount(long amount) { - this.amount = Optional.of(BigInteger.valueOf(amount)); - return this; - } - - public Builder amount(Optional amount) { - Utils.checkNotNull(amount, "amount"); - this.amount = amount; - return this; - } - - - public Builder asset(String asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = Optional.ofNullable(asset); - return this; - } - - public Builder asset(Optional asset) { - Utils.checkNotNull(asset, "asset"); - this.asset = asset; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder status(V3PaymentInitiationStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3PaymentInitiationAdjustment build() { - - return new V3PaymentInitiationAdjustment( - amount, asset, createdAt, - error, id, metadata, - status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUser.java deleted file mode 100644 index 2976fa9bb..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUser.java +++ /dev/null @@ -1,343 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3PaymentServiceUser { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("address") - private Optional address; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("bankAccountIDs") - private JsonNullable> bankAccountIDs; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("contactDetails") - private Optional contactDetails; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("id") - private String id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public V3PaymentServiceUser( - @JsonProperty("address") Optional address, - @JsonProperty("bankAccountIDs") JsonNullable> bankAccountIDs, - @JsonProperty("contactDetails") Optional contactDetails, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("id") String id, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(address, "address"); - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - Utils.checkNotNull(contactDetails, "contactDetails"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.address = address; - this.bankAccountIDs = bankAccountIDs; - this.contactDetails = contactDetails; - this.createdAt = createdAt; - this.id = id; - this.metadata = metadata; - this.name = name; - } - - public V3PaymentServiceUser( - OffsetDateTime createdAt, - String id, - String name) { - this(Optional.empty(), JsonNullable.undefined(), Optional.empty(), - createdAt, id, JsonNullable.undefined(), - name); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional address() { - return (Optional) address; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> bankAccountIDs() { - return (JsonNullable>) bankAccountIDs; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional contactDetails() { - return (Optional) contactDetails; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public String id() { - return id; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3PaymentServiceUser withAddress(V3Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - - public V3PaymentServiceUser withAddress(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - public V3PaymentServiceUser withBankAccountIDs(List bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = JsonNullable.of(bankAccountIDs); - return this; - } - - public V3PaymentServiceUser withBankAccountIDs(JsonNullable> bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = bankAccountIDs; - return this; - } - - public V3PaymentServiceUser withContactDetails(V3ContactDetails contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = Optional.ofNullable(contactDetails); - return this; - } - - - public V3PaymentServiceUser withContactDetails(Optional contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = contactDetails; - return this; - } - - public V3PaymentServiceUser withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3PaymentServiceUser withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V3PaymentServiceUser withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3PaymentServiceUser withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3PaymentServiceUser withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3PaymentServiceUser other = (V3PaymentServiceUser) o; - return - Utils.enhancedDeepEquals(this.address, other.address) && - Utils.enhancedDeepEquals(this.bankAccountIDs, other.bankAccountIDs) && - Utils.enhancedDeepEquals(this.contactDetails, other.contactDetails) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - address, bankAccountIDs, contactDetails, - createdAt, id, metadata, - name); - } - - @Override - public String toString() { - return Utils.toString(V3PaymentServiceUser.class, - "address", address, - "bankAccountIDs", bankAccountIDs, - "contactDetails", contactDetails, - "createdAt", createdAt, - "id", id, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional address = Optional.empty(); - - private JsonNullable> bankAccountIDs = JsonNullable.undefined(); - - private Optional contactDetails = Optional.empty(); - - private OffsetDateTime createdAt; - - private String id; - - private JsonNullable> metadata = JsonNullable.undefined(); - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder address(V3Address address) { - Utils.checkNotNull(address, "address"); - this.address = Optional.ofNullable(address); - return this; - } - - public Builder address(Optional address) { - Utils.checkNotNull(address, "address"); - this.address = address; - return this; - } - - - public Builder bankAccountIDs(List bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = JsonNullable.of(bankAccountIDs); - return this; - } - - public Builder bankAccountIDs(JsonNullable> bankAccountIDs) { - Utils.checkNotNull(bankAccountIDs, "bankAccountIDs"); - this.bankAccountIDs = bankAccountIDs; - return this; - } - - - public Builder contactDetails(V3ContactDetails contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = Optional.ofNullable(contactDetails); - return this; - } - - public Builder contactDetails(Optional contactDetails) { - Utils.checkNotNull(contactDetails, "contactDetails"); - this.contactDetails = contactDetails; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public V3PaymentServiceUser build() { - - return new V3PaymentServiceUser( - address, bankAccountIDs, contactDetails, - createdAt, id, metadata, - name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnection.java b/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnection.java deleted file mode 100644 index 04094fdb5..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserConnection.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3PaymentServiceUserConnection { - - @JsonProperty("connectionID") - private String connectionID; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonProperty("dataUpdatedAt") - private OffsetDateTime dataUpdatedAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("metadata") - private JsonNullable> metadata; - - - @JsonProperty("status") - private V3ConnectionStatusEnum status; - - @JsonCreator - public V3PaymentServiceUserConnection( - @JsonProperty("connectionID") String connectionID, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("dataUpdatedAt") OffsetDateTime dataUpdatedAt, - @JsonProperty("error") JsonNullable error, - @JsonProperty("metadata") JsonNullable> metadata, - @JsonProperty("status") V3ConnectionStatusEnum status) { - Utils.checkNotNull(connectionID, "connectionID"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(dataUpdatedAt, "dataUpdatedAt"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(status, "status"); - this.connectionID = connectionID; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.dataUpdatedAt = dataUpdatedAt; - this.error = error; - this.metadata = metadata; - this.status = status; - } - - public V3PaymentServiceUserConnection( - String connectionID, - String connectorID, - OffsetDateTime createdAt, - OffsetDateTime dataUpdatedAt, - V3ConnectionStatusEnum status) { - this(connectionID, connectorID, createdAt, - dataUpdatedAt, JsonNullable.undefined(), JsonNullable.undefined(), - status); - } - - @JsonIgnore - public String connectionID() { - return connectionID; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public OffsetDateTime dataUpdatedAt() { - return dataUpdatedAt; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public JsonNullable> metadata() { - return (JsonNullable>) metadata; - } - - @JsonIgnore - public V3ConnectionStatusEnum status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3PaymentServiceUserConnection withConnectionID(String connectionID) { - Utils.checkNotNull(connectionID, "connectionID"); - this.connectionID = connectionID; - return this; - } - - public V3PaymentServiceUserConnection withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public V3PaymentServiceUserConnection withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3PaymentServiceUserConnection withDataUpdatedAt(OffsetDateTime dataUpdatedAt) { - Utils.checkNotNull(dataUpdatedAt, "dataUpdatedAt"); - this.dataUpdatedAt = dataUpdatedAt; - return this; - } - - public V3PaymentServiceUserConnection withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public V3PaymentServiceUserConnection withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public V3PaymentServiceUserConnection withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public V3PaymentServiceUserConnection withMetadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3PaymentServiceUserConnection withStatus(V3ConnectionStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3PaymentServiceUserConnection other = (V3PaymentServiceUserConnection) o; - return - Utils.enhancedDeepEquals(this.connectionID, other.connectionID) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.dataUpdatedAt, other.dataUpdatedAt) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - connectionID, connectorID, createdAt, - dataUpdatedAt, error, metadata, - status); - } - - @Override - public String toString() { - return Utils.toString(V3PaymentServiceUserConnection.class, - "connectionID", connectionID, - "connectorID", connectorID, - "createdAt", createdAt, - "dataUpdatedAt", dataUpdatedAt, - "error", error, - "metadata", metadata, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String connectionID; - - private String connectorID; - - private OffsetDateTime createdAt; - - private OffsetDateTime dataUpdatedAt; - - private JsonNullable error = JsonNullable.undefined(); - - private JsonNullable> metadata = JsonNullable.undefined(); - - private V3ConnectionStatusEnum status; - - private Builder() { - // force use of static builder() method - } - - - public Builder connectionID(String connectionID) { - Utils.checkNotNull(connectionID, "connectionID"); - this.connectionID = connectionID; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder dataUpdatedAt(OffsetDateTime dataUpdatedAt) { - Utils.checkNotNull(dataUpdatedAt, "dataUpdatedAt"); - this.dataUpdatedAt = dataUpdatedAt; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = JsonNullable.of(metadata); - return this; - } - - public Builder metadata(JsonNullable> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder status(V3ConnectionStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3PaymentServiceUserConnection build() { - - return new V3PaymentServiceUserConnection( - connectionID, connectorID, createdAt, - dataUpdatedAt, error, metadata, - status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttempt.java b/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttempt.java deleted file mode 100644 index c6df4d646..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PaymentServiceUserLinkAttempt.java +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import org.openapitools.jackson.nullable.JsonNullable; - - -public class V3PaymentServiceUserLinkAttempt { - - @JsonProperty("clientRedirectURL") - private String clientRedirectURL; - - - @JsonProperty("connectorID") - private String connectorID; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private JsonNullable error; - - - @JsonProperty("id") - private String id; - - - @JsonProperty("psuID") - private String psuID; - - - @JsonProperty("status") - private V3OpenBankingConnectionAttemptStatusEnum status; - - @JsonCreator - public V3PaymentServiceUserLinkAttempt( - @JsonProperty("clientRedirectURL") String clientRedirectURL, - @JsonProperty("connectorID") String connectorID, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("error") JsonNullable error, - @JsonProperty("id") String id, - @JsonProperty("psuID") String psuID, - @JsonProperty("status") V3OpenBankingConnectionAttemptStatusEnum status) { - Utils.checkNotNull(clientRedirectURL, "clientRedirectURL"); - Utils.checkNotNull(connectorID, "connectorID"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(psuID, "psuID"); - Utils.checkNotNull(status, "status"); - this.clientRedirectURL = clientRedirectURL; - this.connectorID = connectorID; - this.createdAt = createdAt; - this.error = error; - this.id = id; - this.psuID = psuID; - this.status = status; - } - - public V3PaymentServiceUserLinkAttempt( - String clientRedirectURL, - String connectorID, - OffsetDateTime createdAt, - String id, - String psuID, - V3OpenBankingConnectionAttemptStatusEnum status) { - this(clientRedirectURL, connectorID, createdAt, - JsonNullable.undefined(), id, psuID, - status); - } - - @JsonIgnore - public String clientRedirectURL() { - return clientRedirectURL; - } - - @JsonIgnore - public String connectorID() { - return connectorID; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - @JsonIgnore - public JsonNullable error() { - return error; - } - - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public String psuID() { - return psuID; - } - - @JsonIgnore - public V3OpenBankingConnectionAttemptStatusEnum status() { - return status; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3PaymentServiceUserLinkAttempt withClientRedirectURL(String clientRedirectURL) { - Utils.checkNotNull(clientRedirectURL, "clientRedirectURL"); - this.clientRedirectURL = clientRedirectURL; - return this; - } - - public V3PaymentServiceUserLinkAttempt withConnectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - public V3PaymentServiceUserLinkAttempt withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - public V3PaymentServiceUserLinkAttempt withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public V3PaymentServiceUserLinkAttempt withError(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public V3PaymentServiceUserLinkAttempt withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public V3PaymentServiceUserLinkAttempt withPsuID(String psuID) { - Utils.checkNotNull(psuID, "psuID"); - this.psuID = psuID; - return this; - } - - public V3PaymentServiceUserLinkAttempt withStatus(V3OpenBankingConnectionAttemptStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3PaymentServiceUserLinkAttempt other = (V3PaymentServiceUserLinkAttempt) o; - return - Utils.enhancedDeepEquals(this.clientRedirectURL, other.clientRedirectURL) && - Utils.enhancedDeepEquals(this.connectorID, other.connectorID) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.psuID, other.psuID) && - Utils.enhancedDeepEquals(this.status, other.status); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - clientRedirectURL, connectorID, createdAt, - error, id, psuID, - status); - } - - @Override - public String toString() { - return Utils.toString(V3PaymentServiceUserLinkAttempt.class, - "clientRedirectURL", clientRedirectURL, - "connectorID", connectorID, - "createdAt", createdAt, - "error", error, - "id", id, - "psuID", psuID, - "status", status); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String clientRedirectURL; - - private String connectorID; - - private OffsetDateTime createdAt; - - private JsonNullable error = JsonNullable.undefined(); - - private String id; - - private String psuID; - - private V3OpenBankingConnectionAttemptStatusEnum status; - - private Builder() { - // force use of static builder() method - } - - - public Builder clientRedirectURL(String clientRedirectURL) { - Utils.checkNotNull(clientRedirectURL, "clientRedirectURL"); - this.clientRedirectURL = clientRedirectURL; - return this; - } - - - public Builder connectorID(String connectorID) { - Utils.checkNotNull(connectorID, "connectorID"); - this.connectorID = connectorID; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = JsonNullable.of(error); - return this; - } - - public Builder error(JsonNullable error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder psuID(String psuID) { - Utils.checkNotNull(psuID, "psuID"); - this.psuID = psuID; - return this; - } - - - public Builder status(V3OpenBankingConnectionAttemptStatusEnum status) { - Utils.checkNotNull(status, "status"); - this.status = status; - return this; - } - - public V3PaymentServiceUserLinkAttempt build() { - - return new V3PaymentServiceUserLinkAttempt( - clientRedirectURL, connectorID, createdAt, - error, id, psuID, - status); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalancesResponse.java deleted file mode 100644 index 988973496..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3PoolBalancesResponse.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.List; - - -public class V3PoolBalancesResponse { - - @JsonProperty("data") - private List data; - - @JsonCreator - public V3PoolBalancesResponse( - @JsonProperty("data") List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - } - - @JsonIgnore - public List data() { - return data; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3PoolBalancesResponse withData(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3PoolBalancesResponse other = (V3PoolBalancesResponse) o; - return - Utils.enhancedDeepEquals(this.data, other.data); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - data); - } - - @Override - public String toString() { - return Utils.toString(V3PoolBalancesResponse.class, - "data", data); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private List data; - - private Builder() { - // force use of static builder() method - } - - - public Builder data(List data) { - Utils.checkNotNull(data, "data"); - this.data = data; - return this; - } - - public V3PoolBalancesResponse build() { - - return new V3PoolBalancesResponse( - data); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3UpdateBankAccountMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V3UpdateBankAccountMetadataRequest.java deleted file mode 100644 index 3acd9b0b9..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3UpdateBankAccountMetadataRequest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class V3UpdateBankAccountMetadataRequest { - - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional> metadata; - - @JsonCreator - public V3UpdateBankAccountMetadataRequest( - @JsonProperty("metadata") Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - } - - public V3UpdateBankAccountMetadataRequest() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3UpdateBankAccountMetadataRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V3UpdateBankAccountMetadataRequest withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3UpdateBankAccountMetadataRequest other = (V3UpdateBankAccountMetadataRequest) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata); - } - - @Override - public String toString() { - return Utils.toString(V3UpdateBankAccountMetadataRequest.class, - "metadata", metadata); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3UpdateBankAccountMetadataRequest build() { - - return new V3UpdateBankAccountMetadataRequest( - metadata); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePaymentMetadataRequest.java b/src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePaymentMetadataRequest.java deleted file mode 100644 index 2c502058c..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/V3UpdatePaymentMetadataRequest.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Map; -import java.util.Optional; - - -public class V3UpdatePaymentMetadataRequest { - - @JsonInclude(Include.ALWAYS) - @JsonProperty("metadata") - private Optional> metadata; - - @JsonCreator - public V3UpdatePaymentMetadataRequest( - @JsonProperty("metadata") Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - } - - public V3UpdatePaymentMetadataRequest() { - this(Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> metadata() { - return (Optional>) metadata; - } - - public static Builder builder() { - return new Builder(); - } - - - public V3UpdatePaymentMetadataRequest withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - - public V3UpdatePaymentMetadataRequest withMetadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V3UpdatePaymentMetadataRequest other = (V3UpdatePaymentMetadataRequest) o; - return - Utils.enhancedDeepEquals(this.metadata, other.metadata); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - metadata); - } - - @Override - public String toString() { - return Utils.toString(V3UpdatePaymentMetadataRequest.class, - "metadata", metadata); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional> metadata = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = Optional.ofNullable(metadata); - return this; - } - - public Builder metadata(Optional> metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public V3UpdatePaymentMetadataRequest build() { - - return new V3UpdatePaymentMetadataRequest( - metadata); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Volume.java b/src/main/java/com/formance/formance_sdk/models/shared/Volume.java deleted file mode 100644 index 3debdcf94..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Volume.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.math.BigInteger; -import java.util.Optional; - - -public class Volume { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - - @JsonProperty("input") - private BigInteger input; - - - @JsonProperty("output") - private BigInteger output; - - @JsonCreator - public Volume( - @JsonProperty("balance") Optional balance, - @JsonProperty("input") BigInteger input, - @JsonProperty("output") BigInteger output) { - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(input, "input"); - Utils.checkNotNull(output, "output"); - this.balance = balance; - this.input = input; - this.output = output; - } - - public Volume( - BigInteger input, - BigInteger output) { - this(Optional.empty(), input, output); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional balance() { - return (Optional) balance; - } - - @JsonIgnore - public BigInteger input() { - return input; - } - - @JsonIgnore - public BigInteger output() { - return output; - } - - public static Builder builder() { - return new Builder(); - } - - - public Volume withBalance(BigInteger balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public Volume withBalance(long balance) { - this.balance = Optional.of(BigInteger.valueOf(balance)); - return this; - } - - - public Volume withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - public Volume withInput(long input) { - this.input = BigInteger.valueOf(input); - return this; - } - - public Volume withInput(BigInteger input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public Volume withOutput(long output) { - this.output = BigInteger.valueOf(output); - return this; - } - - public Volume withOutput(BigInteger output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Volume other = (Volume) o; - return - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.input, other.input) && - Utils.enhancedDeepEquals(this.output, other.output); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balance, input, output); - } - - @Override - public String toString() { - return Utils.toString(Volume.class, - "balance", balance, - "input", input, - "output", output); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional balance = Optional.empty(); - - private BigInteger input; - - private BigInteger output; - - private Builder() { - // force use of static builder() method - } - - - public Builder balance(BigInteger balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public Builder balance(long balance) { - this.balance = Optional.of(BigInteger.valueOf(balance)); - return this; - } - - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - public Builder input(long input) { - this.input = BigInteger.valueOf(input); - return this; - } - - public Builder input(BigInteger input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - - public Builder output(long output) { - this.output = BigInteger.valueOf(output); - return this; - } - - public Builder output(BigInteger output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - public Volume build() { - - return new Volume( - balance, input, output); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Wallet.java b/src/main/java/com/formance/formance_sdk/models/shared/Wallet.java deleted file mode 100644 index 7df0105db..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/Wallet.java +++ /dev/null @@ -1,291 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Map; -import java.util.Optional; - - -public class Wallet { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balances") - private Optional balances; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - /** - * The unique ID of the wallet. - */ - @JsonProperty("id") - private String id; - - - @JsonProperty("ledger") - private String ledger; - - /** - * Metadata associated with the wallet. - */ - @JsonProperty("metadata") - private Map metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public Wallet( - @JsonProperty("balances") Optional balances, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("id") String id, - @JsonProperty("ledger") String ledger, - @JsonProperty("metadata") Map metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(balances, "balances"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(ledger, "ledger"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.balances = balances; - this.createdAt = createdAt; - this.id = id; - this.ledger = ledger; - this.metadata = metadata; - this.name = name; - } - - public Wallet( - OffsetDateTime createdAt, - String id, - String ledger, - Map metadata, - String name) { - this(Optional.empty(), createdAt, id, - ledger, metadata, name); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional balances() { - return (Optional) balances; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - /** - * The unique ID of the wallet. - */ - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public String ledger() { - return ledger; - } - - /** - * Metadata associated with the wallet. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public Wallet withBalances(WalletBalances balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = Optional.ofNullable(balances); - return this; - } - - - public Wallet withBalances(Optional balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = balances; - return this; - } - - public Wallet withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The unique ID of the wallet. - */ - public Wallet withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public Wallet withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public Wallet withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public Wallet withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Wallet other = (Wallet) o; - return - Utils.enhancedDeepEquals(this.balances, other.balances) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.ledger, other.ledger) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balances, createdAt, id, - ledger, metadata, name); - } - - @Override - public String toString() { - return Utils.toString(Wallet.class, - "balances", balances, - "createdAt", createdAt, - "id", id, - "ledger", ledger, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional balances = Optional.empty(); - - private OffsetDateTime createdAt; - - private String id; - - private String ledger; - - private Map metadata; - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder balances(WalletBalances balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = Optional.ofNullable(balances); - return this; - } - - public Builder balances(Optional balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = balances; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - /** - * The unique ID of the wallet. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public Wallet build() { - - return new Wallet( - balances, createdAt, id, - ledger, metadata, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletBalances.java b/src/main/java/com/formance/formance_sdk/models/shared/WalletBalances.java deleted file mode 100644 index 4367d25d0..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletBalances.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class WalletBalances { - - @JsonProperty("main") - private AssetHolder main; - - @JsonCreator - public WalletBalances( - @JsonProperty("main") AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - } - - @JsonIgnore - public AssetHolder main() { - return main; - } - - public static Builder builder() { - return new Builder(); - } - - - public WalletBalances withMain(AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletBalances other = (WalletBalances) o; - return - Utils.enhancedDeepEquals(this.main, other.main); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - main); - } - - @Override - public String toString() { - return Utils.toString(WalletBalances.class, - "main", main); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private AssetHolder main; - - private Builder() { - // force use of static builder() method - } - - - public Builder main(AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - public WalletBalances build() { - - return new WalletBalances( - main); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletSubject.java b/src/main/java/com/formance/formance_sdk/models/shared/WalletSubject.java deleted file mode 100644 index 5201552a7..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletSubject.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.util.Optional; - - -public class WalletSubject implements Subject { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("balance") - private Optional balance; - - - @JsonProperty("identifier") - private String identifier; - - - @JsonProperty("type") - private String type; - - @JsonCreator - public WalletSubject( - @JsonProperty("balance") Optional balance, - @JsonProperty("identifier") String identifier, - @JsonProperty("type") String type) { - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(identifier, "identifier"); - Utils.checkNotNull(type, "type"); - this.balance = balance; - this.identifier = identifier; - this.type = type; - } - - public WalletSubject( - String identifier, - String type) { - this(Optional.empty(), identifier, type); - } - - @JsonIgnore - public Optional balance() { - return balance; - } - - @JsonIgnore - public String identifier() { - return identifier; - } - - @JsonIgnore - @Override - public String type() { - return Utils.discriminatorToString(type); - } - - public static Builder builder() { - return new Builder(); - } - - - public WalletSubject withBalance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - - public WalletSubject withBalance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - public WalletSubject withIdentifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - public WalletSubject withType(String type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletSubject other = (WalletSubject) o; - return - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.identifier, other.identifier) && - Utils.enhancedDeepEquals(this.type, other.type); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balance, identifier, type); - } - - @Override - public String toString() { - return Utils.toString(WalletSubject.class, - "balance", balance, - "identifier", identifier, - "type", type); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional balance = Optional.empty(); - - private String identifier; - - private String type; - - private Builder() { - // force use of static builder() method - } - - - public Builder balance(String balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = Optional.ofNullable(balance); - return this; - } - - public Builder balance(Optional balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - public Builder identifier(String identifier) { - Utils.checkNotNull(identifier, "identifier"); - this.identifier = identifier; - return this; - } - - - public Builder type(String type) { - Utils.checkNotNull(type, "type"); - this.type = type; - return this; - } - - public WalletSubject build() { - - return new WalletSubject( - balance, identifier, type); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalances.java b/src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalances.java deleted file mode 100644 index ab975ffa4..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalances.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.time.OffsetDateTime; -import java.util.Map; - - -public class WalletWithBalances { - - @JsonProperty("balances") - private WalletWithBalancesBalances balances; - - - @JsonProperty("createdAt") - private OffsetDateTime createdAt; - - /** - * The unique ID of the wallet. - */ - @JsonProperty("id") - private String id; - - - @JsonProperty("ledger") - private String ledger; - - /** - * Metadata associated with the wallet. - */ - @JsonProperty("metadata") - private Map metadata; - - - @JsonProperty("name") - private String name; - - @JsonCreator - public WalletWithBalances( - @JsonProperty("balances") WalletWithBalancesBalances balances, - @JsonProperty("createdAt") OffsetDateTime createdAt, - @JsonProperty("id") String id, - @JsonProperty("ledger") String ledger, - @JsonProperty("metadata") Map metadata, - @JsonProperty("name") String name) { - Utils.checkNotNull(balances, "balances"); - Utils.checkNotNull(createdAt, "createdAt"); - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(ledger, "ledger"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(name, "name"); - this.balances = balances; - this.createdAt = createdAt; - this.id = id; - this.ledger = ledger; - this.metadata = metadata; - this.name = name; - } - - @JsonIgnore - public WalletWithBalancesBalances balances() { - return balances; - } - - @JsonIgnore - public OffsetDateTime createdAt() { - return createdAt; - } - - /** - * The unique ID of the wallet. - */ - @JsonIgnore - public String id() { - return id; - } - - @JsonIgnore - public String ledger() { - return ledger; - } - - /** - * Metadata associated with the wallet. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - @JsonIgnore - public String name() { - return name; - } - - public static Builder builder() { - return new Builder(); - } - - - public WalletWithBalances withBalances(WalletWithBalancesBalances balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = balances; - return this; - } - - public WalletWithBalances withCreatedAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - /** - * The unique ID of the wallet. - */ - public WalletWithBalances withId(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public WalletWithBalances withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public WalletWithBalances withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public WalletWithBalances withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletWithBalances other = (WalletWithBalances) o; - return - Utils.enhancedDeepEquals(this.balances, other.balances) && - Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.ledger, other.ledger) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.name, other.name); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balances, createdAt, id, - ledger, metadata, name); - } - - @Override - public String toString() { - return Utils.toString(WalletWithBalances.class, - "balances", balances, - "createdAt", createdAt, - "id", id, - "ledger", ledger, - "metadata", metadata, - "name", name); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private WalletWithBalancesBalances balances; - - private OffsetDateTime createdAt; - - private String id; - - private String ledger; - - private Map metadata; - - private String name; - - private Builder() { - // force use of static builder() method - } - - - public Builder balances(WalletWithBalancesBalances balances) { - Utils.checkNotNull(balances, "balances"); - this.balances = balances; - return this; - } - - - public Builder createdAt(OffsetDateTime createdAt) { - Utils.checkNotNull(createdAt, "createdAt"); - this.createdAt = createdAt; - return this; - } - - - /** - * The unique ID of the wallet. - */ - public Builder id(String id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public WalletWithBalances build() { - - return new WalletWithBalances( - balances, createdAt, id, - ledger, metadata, name); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalancesBalances.java b/src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalancesBalances.java deleted file mode 100644 index db8623eaa..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletWithBalancesBalances.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; - - -public class WalletWithBalancesBalances { - - @JsonProperty("main") - private AssetHolder main; - - @JsonCreator - public WalletWithBalancesBalances( - @JsonProperty("main") AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - } - - @JsonIgnore - public AssetHolder main() { - return main; - } - - public static Builder builder() { - return new Builder(); - } - - - public WalletWithBalancesBalances withMain(AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletWithBalancesBalances other = (WalletWithBalancesBalances) o; - return - Utils.enhancedDeepEquals(this.main, other.main); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - main); - } - - @Override - public String toString() { - return Utils.toString(WalletWithBalancesBalances.class, - "main", main); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private AssetHolder main; - - private Builder() { - // force use of static builder() method - } - - - public Builder main(AssetHolder main) { - Utils.checkNotNull(main, "main"); - this.main = main; - return this; - } - - public WalletWithBalancesBalances build() { - - return new WalletWithBalancesBalances( - main); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletsTransaction.java b/src/main/java/com/formance/formance_sdk/models/shared/WalletsTransaction.java deleted file mode 100644 index cda489b88..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletsTransaction.java +++ /dev/null @@ -1,385 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; -import java.util.Optional; - - -public class WalletsTransaction { - - @JsonProperty("id") - private long id; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ledger") - private Optional ledger; - - /** - * Metadata associated with the wallet. - */ - @JsonProperty("metadata") - private Map metadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("postCommitVolumes") - private Optional>> postCommitVolumes; - - - @JsonProperty("postings") - private List postings; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("preCommitVolumes") - private Optional>> preCommitVolumes; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("reference") - private Optional reference; - - - @JsonProperty("timestamp") - private OffsetDateTime timestamp; - - @JsonCreator - public WalletsTransaction( - @JsonProperty("id") long id, - @JsonProperty("ledger") Optional ledger, - @JsonProperty("metadata") Map metadata, - @JsonProperty("postCommitVolumes") Optional>> postCommitVolumes, - @JsonProperty("postings") List postings, - @JsonProperty("preCommitVolumes") Optional>> preCommitVolumes, - @JsonProperty("reference") Optional reference, - @JsonProperty("timestamp") OffsetDateTime timestamp) { - Utils.checkNotNull(id, "id"); - Utils.checkNotNull(ledger, "ledger"); - metadata = Utils.emptyMapIfNull(metadata); - Utils.checkNotNull(metadata, "metadata"); - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - Utils.checkNotNull(postings, "postings"); - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - Utils.checkNotNull(reference, "reference"); - Utils.checkNotNull(timestamp, "timestamp"); - this.id = id; - this.ledger = ledger; - this.metadata = metadata; - this.postCommitVolumes = postCommitVolumes; - this.postings = postings; - this.preCommitVolumes = preCommitVolumes; - this.reference = reference; - this.timestamp = timestamp; - } - - public WalletsTransaction( - long id, - Map metadata, - List postings, - OffsetDateTime timestamp) { - this(id, Optional.empty(), metadata, - Optional.empty(), postings, Optional.empty(), - Optional.empty(), timestamp); - } - - @JsonIgnore - public long id() { - return id; - } - - @JsonIgnore - public Optional ledger() { - return ledger; - } - - /** - * Metadata associated with the wallet. - */ - @JsonIgnore - public Map metadata() { - return metadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> postCommitVolumes() { - return (Optional>>) postCommitVolumes; - } - - @JsonIgnore - public List postings() { - return postings; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional>> preCommitVolumes() { - return (Optional>>) preCommitVolumes; - } - - @JsonIgnore - public Optional reference() { - return reference; - } - - @JsonIgnore - public OffsetDateTime timestamp() { - return timestamp; - } - - public static Builder builder() { - return new Builder(); - } - - - public WalletsTransaction withId(long id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - public WalletsTransaction withLedger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - - public WalletsTransaction withLedger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - /** - * Metadata associated with the wallet. - */ - public WalletsTransaction withMetadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - public WalletsTransaction withPostCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - - public WalletsTransaction withPostCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - public WalletsTransaction withPostings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - public WalletsTransaction withPreCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - - public WalletsTransaction withPreCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - public WalletsTransaction withReference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - - public WalletsTransaction withReference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - public WalletsTransaction withTimestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletsTransaction other = (WalletsTransaction) o; - return - Utils.enhancedDeepEquals(this.id, other.id) && - Utils.enhancedDeepEquals(this.ledger, other.ledger) && - Utils.enhancedDeepEquals(this.metadata, other.metadata) && - Utils.enhancedDeepEquals(this.postCommitVolumes, other.postCommitVolumes) && - Utils.enhancedDeepEquals(this.postings, other.postings) && - Utils.enhancedDeepEquals(this.preCommitVolumes, other.preCommitVolumes) && - Utils.enhancedDeepEquals(this.reference, other.reference) && - Utils.enhancedDeepEquals(this.timestamp, other.timestamp); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - id, ledger, metadata, - postCommitVolumes, postings, preCommitVolumes, - reference, timestamp); - } - - @Override - public String toString() { - return Utils.toString(WalletsTransaction.class, - "id", id, - "ledger", ledger, - "metadata", metadata, - "postCommitVolumes", postCommitVolumes, - "postings", postings, - "preCommitVolumes", preCommitVolumes, - "reference", reference, - "timestamp", timestamp); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long id; - - private Optional ledger = Optional.empty(); - - private Map metadata; - - private Optional>> postCommitVolumes = Optional.empty(); - - private List postings; - - private Optional>> preCommitVolumes = Optional.empty(); - - private Optional reference = Optional.empty(); - - private OffsetDateTime timestamp; - - private Builder() { - // force use of static builder() method - } - - - public Builder id(long id) { - Utils.checkNotNull(id, "id"); - this.id = id; - return this; - } - - - public Builder ledger(String ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = Optional.ofNullable(ledger); - return this; - } - - public Builder ledger(Optional ledger) { - Utils.checkNotNull(ledger, "ledger"); - this.ledger = ledger; - return this; - } - - - /** - * Metadata associated with the wallet. - */ - public Builder metadata(Map metadata) { - Utils.checkNotNull(metadata, "metadata"); - this.metadata = metadata; - return this; - } - - - public Builder postCommitVolumes(Map> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = Optional.ofNullable(postCommitVolumes); - return this; - } - - public Builder postCommitVolumes(Optional>> postCommitVolumes) { - Utils.checkNotNull(postCommitVolumes, "postCommitVolumes"); - this.postCommitVolumes = postCommitVolumes; - return this; - } - - - public Builder postings(List postings) { - Utils.checkNotNull(postings, "postings"); - this.postings = postings; - return this; - } - - - public Builder preCommitVolumes(Map> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = Optional.ofNullable(preCommitVolumes); - return this; - } - - public Builder preCommitVolumes(Optional>> preCommitVolumes) { - Utils.checkNotNull(preCommitVolumes, "preCommitVolumes"); - this.preCommitVolumes = preCommitVolumes; - return this; - } - - - public Builder reference(String reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = Optional.ofNullable(reference); - return this; - } - - public Builder reference(Optional reference) { - Utils.checkNotNull(reference, "reference"); - this.reference = reference; - return this; - } - - - public Builder timestamp(OffsetDateTime timestamp) { - Utils.checkNotNull(timestamp, "timestamp"); - this.timestamp = timestamp; - return this; - } - - public WalletsTransaction build() { - - return new WalletsTransaction( - id, ledger, metadata, - postCommitVolumes, postings, preCommitVolumes, - reference, timestamp); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletsVolume.java b/src/main/java/com/formance/formance_sdk/models/shared/WalletsVolume.java deleted file mode 100644 index 6c5e47d8d..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletsVolume.java +++ /dev/null @@ -1,179 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonIgnore; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.math.BigInteger; - - -public class WalletsVolume { - - @JsonProperty("balance") - private BigInteger balance; - - - @JsonProperty("input") - private BigInteger input; - - - @JsonProperty("output") - private BigInteger output; - - @JsonCreator - public WalletsVolume( - @JsonProperty("balance") BigInteger balance, - @JsonProperty("input") BigInteger input, - @JsonProperty("output") BigInteger output) { - Utils.checkNotNull(balance, "balance"); - Utils.checkNotNull(input, "input"); - Utils.checkNotNull(output, "output"); - this.balance = balance; - this.input = input; - this.output = output; - } - - @JsonIgnore - public BigInteger balance() { - return balance; - } - - @JsonIgnore - public BigInteger input() { - return input; - } - - @JsonIgnore - public BigInteger output() { - return output; - } - - public static Builder builder() { - return new Builder(); - } - - - public WalletsVolume withBalance(long balance) { - this.balance = BigInteger.valueOf(balance); - return this; - } - - public WalletsVolume withBalance(BigInteger balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - public WalletsVolume withInput(long input) { - this.input = BigInteger.valueOf(input); - return this; - } - - public WalletsVolume withInput(BigInteger input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public WalletsVolume withOutput(long output) { - this.output = BigInteger.valueOf(output); - return this; - } - - public WalletsVolume withOutput(BigInteger output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WalletsVolume other = (WalletsVolume) o; - return - Utils.enhancedDeepEquals(this.balance, other.balance) && - Utils.enhancedDeepEquals(this.input, other.input) && - Utils.enhancedDeepEquals(this.output, other.output); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - balance, input, output); - } - - @Override - public String toString() { - return Utils.toString(WalletsVolume.class, - "balance", balance, - "input", input, - "output", output); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private BigInteger balance; - - private BigInteger input; - - private BigInteger output; - - private Builder() { - // force use of static builder() method - } - - - public Builder balance(long balance) { - this.balance = BigInteger.valueOf(balance); - return this; - } - - public Builder balance(BigInteger balance) { - Utils.checkNotNull(balance, "balance"); - this.balance = balance; - return this; - } - - - public Builder input(long input) { - this.input = BigInteger.valueOf(input); - return this; - } - - public Builder input(BigInteger input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - - public Builder output(long output) { - this.output = BigInteger.valueOf(output); - return this; - } - - public Builder output(BigInteger output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - public WalletsVolume build() { - - return new WalletsVolume( - balance, input, output); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WebhooksErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/shared/WebhooksErrorsEnum.java deleted file mode 100644 index 3be3cd784..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WebhooksErrorsEnum.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum WebhooksErrorsEnum { - INTERNAL("INTERNAL"), - VALIDATION("VALIDATION"), - NOT_FOUND("NOT_FOUND"); - - @JsonValue - private final String value; - - WebhooksErrorsEnum(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (WebhooksErrorsEnum o: WebhooksErrorsEnum.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStage.java b/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStage.java deleted file mode 100644 index 7ef880b22..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStage.java +++ /dev/null @@ -1,447 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Boolean; -import java.lang.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.time.OffsetDateTime; -import java.util.Optional; - - -public class WorkflowInstanceHistoryStage { - - @JsonProperty("attempt") - private long attempt; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("error") - private Optional error; - - - @JsonProperty("input") - private WorkflowInstanceHistoryStageInput input; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastFailure") - private Optional lastFailure; - - - @JsonProperty("name") - private String name; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("nextExecution") - private Optional nextExecution; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("output") - private Optional output; - - - @JsonProperty("startedAt") - private OffsetDateTime startedAt; - - - @JsonProperty("terminated") - private boolean terminated; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("terminatedAt") - private Optional terminatedAt; - - @JsonCreator - public WorkflowInstanceHistoryStage( - @JsonProperty("attempt") long attempt, - @JsonProperty("error") Optional error, - @JsonProperty("input") WorkflowInstanceHistoryStageInput input, - @JsonProperty("lastFailure") Optional lastFailure, - @JsonProperty("name") String name, - @JsonProperty("nextExecution") Optional nextExecution, - @JsonProperty("output") Optional output, - @JsonProperty("startedAt") OffsetDateTime startedAt, - @JsonProperty("terminated") boolean terminated, - @JsonProperty("terminatedAt") Optional terminatedAt) { - Utils.checkNotNull(attempt, "attempt"); - Utils.checkNotNull(error, "error"); - Utils.checkNotNull(input, "input"); - Utils.checkNotNull(lastFailure, "lastFailure"); - Utils.checkNotNull(name, "name"); - Utils.checkNotNull(nextExecution, "nextExecution"); - Utils.checkNotNull(output, "output"); - Utils.checkNotNull(startedAt, "startedAt"); - Utils.checkNotNull(terminated, "terminated"); - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.attempt = attempt; - this.error = error; - this.input = input; - this.lastFailure = lastFailure; - this.name = name; - this.nextExecution = nextExecution; - this.output = output; - this.startedAt = startedAt; - this.terminated = terminated; - this.terminatedAt = terminatedAt; - } - - public WorkflowInstanceHistoryStage( - long attempt, - WorkflowInstanceHistoryStageInput input, - String name, - OffsetDateTime startedAt, - boolean terminated) { - this(attempt, Optional.empty(), input, - Optional.empty(), name, Optional.empty(), - Optional.empty(), startedAt, terminated, - Optional.empty()); - } - - @JsonIgnore - public long attempt() { - return attempt; - } - - @JsonIgnore - public Optional error() { - return error; - } - - @JsonIgnore - public WorkflowInstanceHistoryStageInput input() { - return input; - } - - @JsonIgnore - public Optional lastFailure() { - return lastFailure; - } - - @JsonIgnore - public String name() { - return name; - } - - @JsonIgnore - public Optional nextExecution() { - return nextExecution; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional output() { - return (Optional) output; - } - - @JsonIgnore - public OffsetDateTime startedAt() { - return startedAt; - } - - @JsonIgnore - public boolean terminated() { - return terminated; - } - - @JsonIgnore - public Optional terminatedAt() { - return terminatedAt; - } - - public static Builder builder() { - return new Builder(); - } - - - public WorkflowInstanceHistoryStage withAttempt(long attempt) { - Utils.checkNotNull(attempt, "attempt"); - this.attempt = attempt; - return this; - } - - public WorkflowInstanceHistoryStage withError(String error) { - Utils.checkNotNull(error, "error"); - this.error = Optional.ofNullable(error); - return this; - } - - - public WorkflowInstanceHistoryStage withError(Optional error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - public WorkflowInstanceHistoryStage withInput(WorkflowInstanceHistoryStageInput input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - public WorkflowInstanceHistoryStage withLastFailure(String lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = Optional.ofNullable(lastFailure); - return this; - } - - - public WorkflowInstanceHistoryStage withLastFailure(Optional lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = lastFailure; - return this; - } - - public WorkflowInstanceHistoryStage withName(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - public WorkflowInstanceHistoryStage withNextExecution(OffsetDateTime nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = Optional.ofNullable(nextExecution); - return this; - } - - - public WorkflowInstanceHistoryStage withNextExecution(Optional nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = nextExecution; - return this; - } - - public WorkflowInstanceHistoryStage withOutput(WorkflowInstanceHistoryStageOutput output) { - Utils.checkNotNull(output, "output"); - this.output = Optional.ofNullable(output); - return this; - } - - - public WorkflowInstanceHistoryStage withOutput(Optional output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - public WorkflowInstanceHistoryStage withStartedAt(OffsetDateTime startedAt) { - Utils.checkNotNull(startedAt, "startedAt"); - this.startedAt = startedAt; - return this; - } - - public WorkflowInstanceHistoryStage withTerminated(boolean terminated) { - Utils.checkNotNull(terminated, "terminated"); - this.terminated = terminated; - return this; - } - - public WorkflowInstanceHistoryStage withTerminatedAt(OffsetDateTime terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = Optional.ofNullable(terminatedAt); - return this; - } - - - public WorkflowInstanceHistoryStage withTerminatedAt(Optional terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = terminatedAt; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WorkflowInstanceHistoryStage other = (WorkflowInstanceHistoryStage) o; - return - Utils.enhancedDeepEquals(this.attempt, other.attempt) && - Utils.enhancedDeepEquals(this.error, other.error) && - Utils.enhancedDeepEquals(this.input, other.input) && - Utils.enhancedDeepEquals(this.lastFailure, other.lastFailure) && - Utils.enhancedDeepEquals(this.name, other.name) && - Utils.enhancedDeepEquals(this.nextExecution, other.nextExecution) && - Utils.enhancedDeepEquals(this.output, other.output) && - Utils.enhancedDeepEquals(this.startedAt, other.startedAt) && - Utils.enhancedDeepEquals(this.terminated, other.terminated) && - Utils.enhancedDeepEquals(this.terminatedAt, other.terminatedAt); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - attempt, error, input, - lastFailure, name, nextExecution, - output, startedAt, terminated, - terminatedAt); - } - - @Override - public String toString() { - return Utils.toString(WorkflowInstanceHistoryStage.class, - "attempt", attempt, - "error", error, - "input", input, - "lastFailure", lastFailure, - "name", name, - "nextExecution", nextExecution, - "output", output, - "startedAt", startedAt, - "terminated", terminated, - "terminatedAt", terminatedAt); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Long attempt; - - private Optional error = Optional.empty(); - - private WorkflowInstanceHistoryStageInput input; - - private Optional lastFailure = Optional.empty(); - - private String name; - - private Optional nextExecution = Optional.empty(); - - private Optional output = Optional.empty(); - - private OffsetDateTime startedAt; - - private Boolean terminated; - - private Optional terminatedAt = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder attempt(long attempt) { - Utils.checkNotNull(attempt, "attempt"); - this.attempt = attempt; - return this; - } - - - public Builder error(String error) { - Utils.checkNotNull(error, "error"); - this.error = Optional.ofNullable(error); - return this; - } - - public Builder error(Optional error) { - Utils.checkNotNull(error, "error"); - this.error = error; - return this; - } - - - public Builder input(WorkflowInstanceHistoryStageInput input) { - Utils.checkNotNull(input, "input"); - this.input = input; - return this; - } - - - public Builder lastFailure(String lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = Optional.ofNullable(lastFailure); - return this; - } - - public Builder lastFailure(Optional lastFailure) { - Utils.checkNotNull(lastFailure, "lastFailure"); - this.lastFailure = lastFailure; - return this; - } - - - public Builder name(String name) { - Utils.checkNotNull(name, "name"); - this.name = name; - return this; - } - - - public Builder nextExecution(OffsetDateTime nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = Optional.ofNullable(nextExecution); - return this; - } - - public Builder nextExecution(Optional nextExecution) { - Utils.checkNotNull(nextExecution, "nextExecution"); - this.nextExecution = nextExecution; - return this; - } - - - public Builder output(WorkflowInstanceHistoryStageOutput output) { - Utils.checkNotNull(output, "output"); - this.output = Optional.ofNullable(output); - return this; - } - - public Builder output(Optional output) { - Utils.checkNotNull(output, "output"); - this.output = output; - return this; - } - - - public Builder startedAt(OffsetDateTime startedAt) { - Utils.checkNotNull(startedAt, "startedAt"); - this.startedAt = startedAt; - return this; - } - - - public Builder terminated(boolean terminated) { - Utils.checkNotNull(terminated, "terminated"); - this.terminated = terminated; - return this; - } - - - public Builder terminatedAt(OffsetDateTime terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = Optional.ofNullable(terminatedAt); - return this; - } - - public Builder terminatedAt(Optional terminatedAt) { - Utils.checkNotNull(terminatedAt, "terminatedAt"); - this.terminatedAt = terminatedAt; - return this; - } - - public WorkflowInstanceHistoryStage build() { - - return new WorkflowInstanceHistoryStage( - attempt, error, input, - lastFailure, name, nextExecution, - output, startedAt, terminated, - terminatedAt); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageInput.java b/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageInput.java deleted file mode 100644 index 188639ca6..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageInput.java +++ /dev/null @@ -1,606 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class WorkflowInstanceHistoryStageInput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("AddAccountMetadata") - private Optional addAccountMetadata; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ConfirmHold") - private Optional confirmHold; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("CreateTransaction") - private Optional createTransaction; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("CreditWallet") - private Optional creditWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("DebitWallet") - private Optional debitWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetAccount") - private Optional getAccount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetPayment") - private Optional getPayment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetWallet") - private Optional getWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ListWallets") - private Optional listWallets; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("RevertTransaction") - private Optional revertTransaction; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("StripeTransfer") - private Optional stripeTransfer; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("VoidHold") - private Optional voidHold; - - @JsonCreator - public WorkflowInstanceHistoryStageInput( - @JsonProperty("AddAccountMetadata") Optional addAccountMetadata, - @JsonProperty("ConfirmHold") Optional confirmHold, - @JsonProperty("CreateTransaction") Optional createTransaction, - @JsonProperty("CreditWallet") Optional creditWallet, - @JsonProperty("DebitWallet") Optional debitWallet, - @JsonProperty("GetAccount") Optional getAccount, - @JsonProperty("GetPayment") Optional getPayment, - @JsonProperty("GetWallet") Optional getWallet, - @JsonProperty("ListWallets") Optional listWallets, - @JsonProperty("RevertTransaction") Optional revertTransaction, - @JsonProperty("StripeTransfer") Optional stripeTransfer, - @JsonProperty("VoidHold") Optional voidHold) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - Utils.checkNotNull(confirmHold, "confirmHold"); - Utils.checkNotNull(createTransaction, "createTransaction"); - Utils.checkNotNull(creditWallet, "creditWallet"); - Utils.checkNotNull(debitWallet, "debitWallet"); - Utils.checkNotNull(getAccount, "getAccount"); - Utils.checkNotNull(getPayment, "getPayment"); - Utils.checkNotNull(getWallet, "getWallet"); - Utils.checkNotNull(listWallets, "listWallets"); - Utils.checkNotNull(revertTransaction, "revertTransaction"); - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - Utils.checkNotNull(voidHold, "voidHold"); - this.addAccountMetadata = addAccountMetadata; - this.confirmHold = confirmHold; - this.createTransaction = createTransaction; - this.creditWallet = creditWallet; - this.debitWallet = debitWallet; - this.getAccount = getAccount; - this.getPayment = getPayment; - this.getWallet = getWallet; - this.listWallets = listWallets; - this.revertTransaction = revertTransaction; - this.stripeTransfer = stripeTransfer; - this.voidHold = voidHold; - } - - public WorkflowInstanceHistoryStageInput() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional addAccountMetadata() { - return (Optional) addAccountMetadata; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional confirmHold() { - return (Optional) confirmHold; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createTransaction() { - return (Optional) createTransaction; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional creditWallet() { - return (Optional) creditWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional debitWallet() { - return (Optional) debitWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getAccount() { - return (Optional) getAccount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getPayment() { - return (Optional) getPayment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getWallet() { - return (Optional) getWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional listWallets() { - return (Optional) listWallets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional revertTransaction() { - return (Optional) revertTransaction; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional stripeTransfer() { - return (Optional) stripeTransfer; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional voidHold() { - return (Optional) voidHold; - } - - public static Builder builder() { - return new Builder(); - } - - - public WorkflowInstanceHistoryStageInput withAddAccountMetadata(ActivityAddAccountMetadata addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = Optional.ofNullable(addAccountMetadata); - return this; - } - - - public WorkflowInstanceHistoryStageInput withAddAccountMetadata(Optional addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = addAccountMetadata; - return this; - } - - public WorkflowInstanceHistoryStageInput withConfirmHold(ActivityConfirmHold confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = Optional.ofNullable(confirmHold); - return this; - } - - - public WorkflowInstanceHistoryStageInput withConfirmHold(Optional confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = confirmHold; - return this; - } - - public WorkflowInstanceHistoryStageInput withCreateTransaction(ActivityCreateTransaction createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - - public WorkflowInstanceHistoryStageInput withCreateTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - public WorkflowInstanceHistoryStageInput withCreditWallet(ActivityCreditWallet creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = Optional.ofNullable(creditWallet); - return this; - } - - - public WorkflowInstanceHistoryStageInput withCreditWallet(Optional creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = creditWallet; - return this; - } - - public WorkflowInstanceHistoryStageInput withDebitWallet(ActivityDebitWallet debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - - public WorkflowInstanceHistoryStageInput withDebitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - public WorkflowInstanceHistoryStageInput withGetAccount(ActivityGetAccount getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - - public WorkflowInstanceHistoryStageInput withGetAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - public WorkflowInstanceHistoryStageInput withGetPayment(ActivityGetPayment getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - - public WorkflowInstanceHistoryStageInput withGetPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - public WorkflowInstanceHistoryStageInput withGetWallet(ActivityGetWallet getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - - public WorkflowInstanceHistoryStageInput withGetWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - public WorkflowInstanceHistoryStageInput withListWallets(ActivityListWallets listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - - public WorkflowInstanceHistoryStageInput withListWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - public WorkflowInstanceHistoryStageInput withRevertTransaction(ActivityRevertTransaction revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = Optional.ofNullable(revertTransaction); - return this; - } - - - public WorkflowInstanceHistoryStageInput withRevertTransaction(Optional revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = revertTransaction; - return this; - } - - public WorkflowInstanceHistoryStageInput withStripeTransfer(ActivityStripeTransfer stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = Optional.ofNullable(stripeTransfer); - return this; - } - - - public WorkflowInstanceHistoryStageInput withStripeTransfer(Optional stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = stripeTransfer; - return this; - } - - public WorkflowInstanceHistoryStageInput withVoidHold(ActivityVoidHold voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = Optional.ofNullable(voidHold); - return this; - } - - - public WorkflowInstanceHistoryStageInput withVoidHold(Optional voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = voidHold; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WorkflowInstanceHistoryStageInput other = (WorkflowInstanceHistoryStageInput) o; - return - Utils.enhancedDeepEquals(this.addAccountMetadata, other.addAccountMetadata) && - Utils.enhancedDeepEquals(this.confirmHold, other.confirmHold) && - Utils.enhancedDeepEquals(this.createTransaction, other.createTransaction) && - Utils.enhancedDeepEquals(this.creditWallet, other.creditWallet) && - Utils.enhancedDeepEquals(this.debitWallet, other.debitWallet) && - Utils.enhancedDeepEquals(this.getAccount, other.getAccount) && - Utils.enhancedDeepEquals(this.getPayment, other.getPayment) && - Utils.enhancedDeepEquals(this.getWallet, other.getWallet) && - Utils.enhancedDeepEquals(this.listWallets, other.listWallets) && - Utils.enhancedDeepEquals(this.revertTransaction, other.revertTransaction) && - Utils.enhancedDeepEquals(this.stripeTransfer, other.stripeTransfer) && - Utils.enhancedDeepEquals(this.voidHold, other.voidHold); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - addAccountMetadata, confirmHold, createTransaction, - creditWallet, debitWallet, getAccount, - getPayment, getWallet, listWallets, - revertTransaction, stripeTransfer, voidHold); - } - - @Override - public String toString() { - return Utils.toString(WorkflowInstanceHistoryStageInput.class, - "addAccountMetadata", addAccountMetadata, - "confirmHold", confirmHold, - "createTransaction", createTransaction, - "creditWallet", creditWallet, - "debitWallet", debitWallet, - "getAccount", getAccount, - "getPayment", getPayment, - "getWallet", getWallet, - "listWallets", listWallets, - "revertTransaction", revertTransaction, - "stripeTransfer", stripeTransfer, - "voidHold", voidHold); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional addAccountMetadata = Optional.empty(); - - private Optional confirmHold = Optional.empty(); - - private Optional createTransaction = Optional.empty(); - - private Optional creditWallet = Optional.empty(); - - private Optional debitWallet = Optional.empty(); - - private Optional getAccount = Optional.empty(); - - private Optional getPayment = Optional.empty(); - - private Optional getWallet = Optional.empty(); - - private Optional listWallets = Optional.empty(); - - private Optional revertTransaction = Optional.empty(); - - private Optional stripeTransfer = Optional.empty(); - - private Optional voidHold = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder addAccountMetadata(ActivityAddAccountMetadata addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = Optional.ofNullable(addAccountMetadata); - return this; - } - - public Builder addAccountMetadata(Optional addAccountMetadata) { - Utils.checkNotNull(addAccountMetadata, "addAccountMetadata"); - this.addAccountMetadata = addAccountMetadata; - return this; - } - - - public Builder confirmHold(ActivityConfirmHold confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = Optional.ofNullable(confirmHold); - return this; - } - - public Builder confirmHold(Optional confirmHold) { - Utils.checkNotNull(confirmHold, "confirmHold"); - this.confirmHold = confirmHold; - return this; - } - - - public Builder createTransaction(ActivityCreateTransaction createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - public Builder createTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - - public Builder creditWallet(ActivityCreditWallet creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = Optional.ofNullable(creditWallet); - return this; - } - - public Builder creditWallet(Optional creditWallet) { - Utils.checkNotNull(creditWallet, "creditWallet"); - this.creditWallet = creditWallet; - return this; - } - - - public Builder debitWallet(ActivityDebitWallet debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - public Builder debitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - - public Builder getAccount(ActivityGetAccount getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - public Builder getAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - - public Builder getPayment(ActivityGetPayment getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - public Builder getPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - - public Builder getWallet(ActivityGetWallet getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - public Builder getWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - - public Builder listWallets(ActivityListWallets listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - public Builder listWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - - public Builder revertTransaction(ActivityRevertTransaction revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = Optional.ofNullable(revertTransaction); - return this; - } - - public Builder revertTransaction(Optional revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = revertTransaction; - return this; - } - - - public Builder stripeTransfer(ActivityStripeTransfer stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = Optional.ofNullable(stripeTransfer); - return this; - } - - public Builder stripeTransfer(Optional stripeTransfer) { - Utils.checkNotNull(stripeTransfer, "stripeTransfer"); - this.stripeTransfer = stripeTransfer; - return this; - } - - - public Builder voidHold(ActivityVoidHold voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = Optional.ofNullable(voidHold); - return this; - } - - public Builder voidHold(Optional voidHold) { - Utils.checkNotNull(voidHold, "voidHold"); - this.voidHold = voidHold; - return this; - } - - public WorkflowInstanceHistoryStageInput build() { - - return new WorkflowInstanceHistoryStageInput( - addAccountMetadata, confirmHold, createTransaction, - creditWallet, debitWallet, getAccount, - getPayment, getWallet, listWallets, - revertTransaction, stripeTransfer, voidHold); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageOutput.java b/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageOutput.java deleted file mode 100644 index 6e84427e4..000000000 --- a/src/main/java/com/formance/formance_sdk/models/shared/WorkflowInstanceHistoryStageOutput.java +++ /dev/null @@ -1,383 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.models.shared; - -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.formance.formance_sdk.utils.Utils; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.Optional; - - -public class WorkflowInstanceHistoryStageOutput { - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("CreateTransaction") - private Optional createTransaction; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("DebitWallet") - private Optional debitWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetAccount") - private Optional getAccount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetPayment") - private Optional getPayment; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("GetWallet") - private Optional getWallet; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ListWallets") - private Optional listWallets; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("RevertTransaction") - private Optional revertTransaction; - - @JsonCreator - public WorkflowInstanceHistoryStageOutput( - @JsonProperty("CreateTransaction") Optional createTransaction, - @JsonProperty("DebitWallet") Optional debitWallet, - @JsonProperty("GetAccount") Optional getAccount, - @JsonProperty("GetPayment") Optional getPayment, - @JsonProperty("GetWallet") Optional getWallet, - @JsonProperty("ListWallets") Optional listWallets, - @JsonProperty("RevertTransaction") Optional revertTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - Utils.checkNotNull(debitWallet, "debitWallet"); - Utils.checkNotNull(getAccount, "getAccount"); - Utils.checkNotNull(getPayment, "getPayment"); - Utils.checkNotNull(getWallet, "getWallet"); - Utils.checkNotNull(listWallets, "listWallets"); - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.createTransaction = createTransaction; - this.debitWallet = debitWallet; - this.getAccount = getAccount; - this.getPayment = getPayment; - this.getWallet = getWallet; - this.listWallets = listWallets; - this.revertTransaction = revertTransaction; - } - - public WorkflowInstanceHistoryStageOutput() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional createTransaction() { - return (Optional) createTransaction; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional debitWallet() { - return (Optional) debitWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getAccount() { - return (Optional) getAccount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getPayment() { - return (Optional) getPayment; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional getWallet() { - return (Optional) getWallet; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional listWallets() { - return (Optional) listWallets; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional revertTransaction() { - return (Optional) revertTransaction; - } - - public static Builder builder() { - return new Builder(); - } - - - public WorkflowInstanceHistoryStageOutput withCreateTransaction(RevertTransactionResponse createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withCreateTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - public WorkflowInstanceHistoryStageOutput withDebitWallet(ActivityDebitWalletOutput debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withDebitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - public WorkflowInstanceHistoryStageOutput withGetAccount(ActivityGetAccountOutput getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withGetAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - public WorkflowInstanceHistoryStageOutput withGetPayment(ActivityGetPaymentOutput getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withGetPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - public WorkflowInstanceHistoryStageOutput withGetWallet(ActivityGetWalletOutput getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withGetWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - public WorkflowInstanceHistoryStageOutput withListWallets(OrchestrationListWalletsResponse listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withListWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - public WorkflowInstanceHistoryStageOutput withRevertTransaction(RevertTransactionResponse revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = Optional.ofNullable(revertTransaction); - return this; - } - - - public WorkflowInstanceHistoryStageOutput withRevertTransaction(Optional revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = revertTransaction; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - WorkflowInstanceHistoryStageOutput other = (WorkflowInstanceHistoryStageOutput) o; - return - Utils.enhancedDeepEquals(this.createTransaction, other.createTransaction) && - Utils.enhancedDeepEquals(this.debitWallet, other.debitWallet) && - Utils.enhancedDeepEquals(this.getAccount, other.getAccount) && - Utils.enhancedDeepEquals(this.getPayment, other.getPayment) && - Utils.enhancedDeepEquals(this.getWallet, other.getWallet) && - Utils.enhancedDeepEquals(this.listWallets, other.listWallets) && - Utils.enhancedDeepEquals(this.revertTransaction, other.revertTransaction); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - createTransaction, debitWallet, getAccount, - getPayment, getWallet, listWallets, - revertTransaction); - } - - @Override - public String toString() { - return Utils.toString(WorkflowInstanceHistoryStageOutput.class, - "createTransaction", createTransaction, - "debitWallet", debitWallet, - "getAccount", getAccount, - "getPayment", getPayment, - "getWallet", getWallet, - "listWallets", listWallets, - "revertTransaction", revertTransaction); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional createTransaction = Optional.empty(); - - private Optional debitWallet = Optional.empty(); - - private Optional getAccount = Optional.empty(); - - private Optional getPayment = Optional.empty(); - - private Optional getWallet = Optional.empty(); - - private Optional listWallets = Optional.empty(); - - private Optional revertTransaction = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder createTransaction(RevertTransactionResponse createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = Optional.ofNullable(createTransaction); - return this; - } - - public Builder createTransaction(Optional createTransaction) { - Utils.checkNotNull(createTransaction, "createTransaction"); - this.createTransaction = createTransaction; - return this; - } - - - public Builder debitWallet(ActivityDebitWalletOutput debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = Optional.ofNullable(debitWallet); - return this; - } - - public Builder debitWallet(Optional debitWallet) { - Utils.checkNotNull(debitWallet, "debitWallet"); - this.debitWallet = debitWallet; - return this; - } - - - public Builder getAccount(ActivityGetAccountOutput getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = Optional.ofNullable(getAccount); - return this; - } - - public Builder getAccount(Optional getAccount) { - Utils.checkNotNull(getAccount, "getAccount"); - this.getAccount = getAccount; - return this; - } - - - public Builder getPayment(ActivityGetPaymentOutput getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = Optional.ofNullable(getPayment); - return this; - } - - public Builder getPayment(Optional getPayment) { - Utils.checkNotNull(getPayment, "getPayment"); - this.getPayment = getPayment; - return this; - } - - - public Builder getWallet(ActivityGetWalletOutput getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = Optional.ofNullable(getWallet); - return this; - } - - public Builder getWallet(Optional getWallet) { - Utils.checkNotNull(getWallet, "getWallet"); - this.getWallet = getWallet; - return this; - } - - - public Builder listWallets(OrchestrationListWalletsResponse listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = Optional.ofNullable(listWallets); - return this; - } - - public Builder listWallets(Optional listWallets) { - Utils.checkNotNull(listWallets, "listWallets"); - this.listWallets = listWallets; - return this; - } - - - public Builder revertTransaction(RevertTransactionResponse revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = Optional.ofNullable(revertTransaction); - return this; - } - - public Builder revertTransaction(Optional revertTransaction) { - Utils.checkNotNull(revertTransaction, "revertTransaction"); - this.revertTransaction = revertTransaction; - return this; - } - - public WorkflowInstanceHistoryStageOutput build() { - - return new WorkflowInstanceHistoryStageOutput( - createTransaction, debitWallet, getAccount, - getPayment, getWallet, listWallets, - revertTransaction); - } - - } -} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder1.java b/src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder1.java new file mode 100644 index 000000000..bbfed4caf --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder1.java @@ -0,0 +1,93 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; +import java.util.Map; + + +public class AssetHolder1 { + + @JsonProperty("assets") + private Map assets; + + @JsonCreator + public AssetHolder1( + @JsonProperty("assets") Map assets) { + assets = Utils.emptyMapIfNull(assets); + Utils.checkNotNull(assets, "assets"); + this.assets = assets; + } + + @JsonIgnore + public Map assets() { + return assets; + } + + public static Builder builder() { + return new Builder(); + } + + + public AssetHolder1 withAssets(Map assets) { + Utils.checkNotNull(assets, "assets"); + this.assets = assets; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetHolder1 other = (AssetHolder1) o; + return + Utils.enhancedDeepEquals(this.assets, other.assets); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assets); + } + + @Override + public String toString() { + return Utils.toString(AssetHolder1.class, + "assets", assets); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map assets; + + private Builder() { + // force use of static builder() method + } + + + public Builder assets(Map assets) { + Utils.checkNotNull(assets, "assets"); + this.assets = assets; + return this; + } + + public AssetHolder1 build() { + + return new AssetHolder1( + assets); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder2.java b/src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder2.java new file mode 100644 index 000000000..c5b059142 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/AssetHolder2.java @@ -0,0 +1,233 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class AssetHolder2 { + + @JsonProperty("assets") + private Map assets; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("expiresAt") + private JsonNullable expiresAt; + + + @JsonProperty("name") + private String name; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("priority") + private Optional priority; + + @JsonCreator + public AssetHolder2( + @JsonProperty("assets") Map assets, + @JsonProperty("expiresAt") JsonNullable expiresAt, + @JsonProperty("name") String name, + @JsonProperty("priority") Optional priority) { + assets = Utils.emptyMapIfNull(assets); + Utils.checkNotNull(assets, "assets"); + Utils.checkNotNull(expiresAt, "expiresAt"); + Utils.checkNotNull(name, "name"); + Utils.checkNotNull(priority, "priority"); + this.assets = assets; + this.expiresAt = expiresAt; + this.name = name; + this.priority = priority; + } + + public AssetHolder2( + Map assets, + String name) { + this(assets, JsonNullable.undefined(), name, + Optional.empty()); + } + + @JsonIgnore + public Map assets() { + return assets; + } + + @JsonIgnore + public JsonNullable expiresAt() { + return expiresAt; + } + + @JsonIgnore + public String name() { + return name; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional priority() { + return (Optional) priority; + } + + public static Builder builder() { + return new Builder(); + } + + + public AssetHolder2 withAssets(Map assets) { + Utils.checkNotNull(assets, "assets"); + this.assets = assets; + return this; + } + + public AssetHolder2 withExpiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = JsonNullable.of(expiresAt); + return this; + } + + public AssetHolder2 withExpiresAt(JsonNullable expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + public AssetHolder2 withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public AssetHolder2 withPriority(BigInteger priority) { + Utils.checkNotNull(priority, "priority"); + this.priority = Optional.ofNullable(priority); + return this; + } + + public AssetHolder2 withPriority(long priority) { + this.priority = Optional.of(BigInteger.valueOf(priority)); + return this; + } + + + public AssetHolder2 withPriority(Optional priority) { + Utils.checkNotNull(priority, "priority"); + this.priority = priority; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetHolder2 other = (AssetHolder2) o; + return + Utils.enhancedDeepEquals(this.assets, other.assets) && + Utils.enhancedDeepEquals(this.expiresAt, other.expiresAt) && + Utils.enhancedDeepEquals(this.name, other.name) && + Utils.enhancedDeepEquals(this.priority, other.priority); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assets, expiresAt, name, + priority); + } + + @Override + public String toString() { + return Utils.toString(AssetHolder2.class, + "assets", assets, + "expiresAt", expiresAt, + "name", name, + "priority", priority); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Map assets; + + private JsonNullable expiresAt = JsonNullable.undefined(); + + private String name; + + private Optional priority = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder assets(Map assets) { + Utils.checkNotNull(assets, "assets"); + this.assets = assets; + return this; + } + + + public Builder expiresAt(OffsetDateTime expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = JsonNullable.of(expiresAt); + return this; + } + + public Builder expiresAt(JsonNullable expiresAt) { + Utils.checkNotNull(expiresAt, "expiresAt"); + this.expiresAt = expiresAt; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + + public Builder priority(BigInteger priority) { + Utils.checkNotNull(priority, "priority"); + this.priority = Optional.ofNullable(priority); + return this; + } + + public Builder priority(long priority) { + this.priority = Optional.of(BigInteger.valueOf(priority)); + return this; + } + + public Builder priority(Optional priority) { + Utils.checkNotNull(priority, "priority"); + this.priority = priority; + return this; + } + + public AssetHolder2 build() { + + return new AssetHolder2( + assets, expiresAt, name, + priority); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Balance.java b/src/main/java/com/formance/formance_sdk/models/wallets/Balance.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/Balance.java rename to src/main/java/com/formance/formance_sdk/models/wallets/Balance.java index 9599c0630..d73c13188 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Balance.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Balance.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfirmHoldRequest.java b/src/main/java/com/formance/formance_sdk/models/wallets/ConfirmHoldRequest.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/ConfirmHoldRequest.java rename to src/main/java/com/formance/formance_sdk/models/wallets/ConfirmHoldRequest.java index b13bc937c..767d6a297 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfirmHoldRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ConfirmHoldRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/CreateBalanceResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/CreateBalanceResponse.java new file mode 100644 index 000000000..fce83f507 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/CreateBalanceResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class CreateBalanceResponse { + + @JsonProperty("data") + private Balance balance; + + @JsonCreator + public CreateBalanceResponse( + @JsonProperty("data") Balance balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + } + + @JsonIgnore + public Balance balance() { + return balance; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateBalanceResponse withBalance(Balance balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateBalanceResponse other = (CreateBalanceResponse) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance); + } + + @Override + public String toString() { + return Utils.toString(CreateBalanceResponse.class, + "balance", balance); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Balance balance; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(Balance balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public CreateBalanceResponse build() { + + return new CreateBalanceResponse( + balance); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/CreateWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletRequest.java similarity index 98% rename from src/main/java/com/formance/formance_sdk/models/shared/CreateWalletRequest.java rename to src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletRequest.java index 1946b4f59..a2332af12 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/CreateWalletRequest.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletRequest.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletResponse.java new file mode 100644 index 000000000..5e682bab2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/CreateWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class CreateWalletResponse { + + @JsonProperty("data") + private Wallet wallet; + + @JsonCreator + public CreateWalletResponse( + @JsonProperty("data") Wallet wallet) { + Utils.checkNotNull(wallet, "wallet"); + this.wallet = wallet; + } + + @JsonIgnore + public Wallet wallet() { + return wallet; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreateWalletResponse withWallet(Wallet wallet) { + Utils.checkNotNull(wallet, "wallet"); + this.wallet = wallet; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWalletResponse other = (CreateWalletResponse) o; + return + Utils.enhancedDeepEquals(this.wallet, other.wallet); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + wallet); + } + + @Override + public String toString() { + return Utils.toString(CreateWalletResponse.class, + "wallet", wallet); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Wallet wallet; + + private Builder() { + // force use of static builder() method + } + + + public Builder wallet(Wallet wallet) { + Utils.checkNotNull(wallet, "wallet"); + this.wallet = wallet; + return this; + } + + public CreateWalletResponse build() { + + return new CreateWalletResponse( + wallet); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/CreditWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/wallets/CreditWalletRequest.java new file mode 100644 index 000000000..ddac93c02 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/CreditWalletRequest.java @@ -0,0 +1,355 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import org.openapitools.jackson.nullable.JsonNullable; + + +public class CreditWalletRequest { + + @JsonProperty("amount") + private Monetary monetary; + + /** + * The balance to credit + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + /** + * Metadata associated with the wallet. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("metadata") + private JsonNullable> metadata; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("sources") + private JsonNullable> sources; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public CreditWalletRequest( + @JsonProperty("amount") Monetary monetary, + @JsonProperty("balance") Optional balance, + @JsonProperty("metadata") JsonNullable> metadata, + @JsonProperty("reference") Optional reference, + @JsonProperty("sources") JsonNullable> sources, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(monetary, "monetary"); + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(sources, "sources"); + Utils.checkNotNull(timestamp, "timestamp"); + this.monetary = monetary; + this.balance = balance; + this.metadata = metadata; + this.reference = reference; + this.sources = sources; + this.timestamp = timestamp; + } + + public CreditWalletRequest( + Monetary monetary) { + this(monetary, Optional.empty(), JsonNullable.undefined(), + Optional.empty(), JsonNullable.undefined(), Optional.empty()); + } + + @JsonIgnore + public Monetary monetary() { + return monetary; + } + + /** + * The balance to credit + */ + @JsonIgnore + public Optional balance() { + return balance; + } + + /** + * Metadata associated with the wallet. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> metadata() { + return (JsonNullable>) metadata; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public JsonNullable> sources() { + return (JsonNullable>) sources; + } + + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public CreditWalletRequest withMonetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + /** + * The balance to credit + */ + public CreditWalletRequest withBalance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + /** + * The balance to credit + */ + public CreditWalletRequest withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public CreditWalletRequest withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + /** + * Metadata associated with the wallet. + */ + public CreditWalletRequest withMetadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public CreditWalletRequest withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public CreditWalletRequest withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public CreditWalletRequest withSources(List sources) { + Utils.checkNotNull(sources, "sources"); + this.sources = JsonNullable.of(sources); + return this; + } + + public CreditWalletRequest withSources(JsonNullable> sources) { + Utils.checkNotNull(sources, "sources"); + this.sources = sources; + return this; + } + + public CreditWalletRequest withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + public CreditWalletRequest withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreditWalletRequest other = (CreditWalletRequest) o; + return + Utils.enhancedDeepEquals(this.monetary, other.monetary) && + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.sources, other.sources) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + monetary, balance, metadata, + reference, sources, timestamp); + } + + @Override + public String toString() { + return Utils.toString(CreditWalletRequest.class, + "monetary", monetary, + "balance", balance, + "metadata", metadata, + "reference", reference, + "sources", sources, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Monetary monetary; + + private Optional balance = Optional.empty(); + + private JsonNullable> metadata = JsonNullable.undefined(); + + private Optional reference = Optional.empty(); + + private JsonNullable> sources = JsonNullable.undefined(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder monetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + + /** + * The balance to credit + */ + public Builder balance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + /** + * The balance to credit + */ + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = JsonNullable.of(metadata); + return this; + } + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(JsonNullable> metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder sources(List sources) { + Utils.checkNotNull(sources, "sources"); + this.sources = JsonNullable.of(sources); + return this; + } + + public Builder sources(JsonNullable> sources) { + Utils.checkNotNull(sources, "sources"); + this.sources = sources; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public CreditWalletRequest build() { + + return new CreditWalletRequest( + monetary, balance, metadata, + reference, sources, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletRequest.java b/src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletRequest.java new file mode 100644 index 000000000..159054d2f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletRequest.java @@ -0,0 +1,402 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class DebitWalletRequest { + + @JsonProperty("amount") + private Monetary monetary; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional subject; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balances") + private Optional> balances; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("description") + private Optional description; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("pending") + private Optional pending; + + /** + * cannot be used in conjunction with `pending` property + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("timestamp") + private Optional timestamp; + + @JsonCreator + public DebitWalletRequest( + @JsonProperty("amount") Monetary monetary, + @JsonProperty("destination") Optional subject, + @JsonProperty("balances") Optional> balances, + @JsonProperty("description") Optional description, + @JsonProperty("metadata") Map metadata, + @JsonProperty("pending") Optional pending, + @JsonProperty("timestamp") Optional timestamp) { + Utils.checkNotNull(monetary, "monetary"); + Utils.checkNotNull(subject, "subject"); + Utils.checkNotNull(balances, "balances"); + Utils.checkNotNull(description, "description"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(pending, "pending"); + Utils.checkNotNull(timestamp, "timestamp"); + this.monetary = monetary; + this.subject = subject; + this.balances = balances; + this.description = description; + this.metadata = metadata; + this.pending = pending; + this.timestamp = timestamp; + } + + public DebitWalletRequest( + Monetary monetary, + Map metadata) { + this(monetary, Optional.empty(), Optional.empty(), + Optional.empty(), metadata, Optional.empty(), + Optional.empty()); + } + + @JsonIgnore + public Monetary monetary() { + return monetary; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional subject() { + return (Optional) subject; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> balances() { + return (Optional>) balances; + } + + @JsonIgnore + public Optional description() { + return description; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + @JsonIgnore + public Optional pending() { + return pending; + } + + /** + * cannot be used in conjunction with `pending` property + */ + @JsonIgnore + public Optional timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public DebitWalletRequest withMonetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + public DebitWalletRequest withSubject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + + public DebitWalletRequest withSubject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + public DebitWalletRequest withBalances(List balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = Optional.ofNullable(balances); + return this; + } + + + public DebitWalletRequest withBalances(Optional> balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + public DebitWalletRequest withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + + public DebitWalletRequest withDescription(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public DebitWalletRequest withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public DebitWalletRequest withPending(boolean pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = Optional.ofNullable(pending); + return this; + } + + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public DebitWalletRequest withPending(Optional pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = pending; + return this; + } + + /** + * cannot be used in conjunction with `pending` property + */ + public DebitWalletRequest withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + + /** + * cannot be used in conjunction with `pending` property + */ + public DebitWalletRequest withTimestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DebitWalletRequest other = (DebitWalletRequest) o; + return + Utils.enhancedDeepEquals(this.monetary, other.monetary) && + Utils.enhancedDeepEquals(this.subject, other.subject) && + Utils.enhancedDeepEquals(this.balances, other.balances) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.pending, other.pending) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + monetary, subject, balances, + description, metadata, pending, + timestamp); + } + + @Override + public String toString() { + return Utils.toString(DebitWalletRequest.class, + "monetary", monetary, + "subject", subject, + "balances", balances, + "description", description, + "metadata", metadata, + "pending", pending, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Monetary monetary; + + private Optional subject = Optional.empty(); + + private Optional> balances = Optional.empty(); + + private Optional description = Optional.empty(); + + private Map metadata; + + private Optional pending = Optional.empty(); + + private Optional timestamp = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder monetary(Monetary monetary) { + Utils.checkNotNull(monetary, "monetary"); + this.monetary = monetary; + return this; + } + + + public Builder subject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + public Builder subject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + + public Builder balances(List balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = Optional.ofNullable(balances); + return this; + } + + public Builder balances(Optional> balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = Optional.ofNullable(description); + return this; + } + + public Builder description(Optional description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public Builder pending(boolean pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = Optional.ofNullable(pending); + return this; + } + + /** + * Set to true to create a pending hold. If false, the wallet will be debited immediately. + */ + public Builder pending(Optional pending) { + Utils.checkNotNull(pending, "pending"); + this.pending = pending; + return this; + } + + + /** + * cannot be used in conjunction with `pending` property + */ + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = Optional.ofNullable(timestamp); + return this; + } + + /** + * cannot be used in conjunction with `pending` property + */ + public Builder timestamp(Optional timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public DebitWalletRequest build() { + + return new DebitWalletRequest( + monetary, subject, balances, + description, metadata, pending, + timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletResponse.java new file mode 100644 index 000000000..bb9f158d3 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/DebitWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class DebitWalletResponse { + + @JsonProperty("data") + private Hold1 hold; + + @JsonCreator + public DebitWalletResponse( + @JsonProperty("data") Hold1 hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + } + + @JsonIgnore + public Hold1 hold() { + return hold; + } + + public static Builder builder() { + return new Builder(); + } + + + public DebitWalletResponse withHold(Hold1 hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DebitWalletResponse other = (DebitWalletResponse) o; + return + Utils.enhancedDeepEquals(this.hold, other.hold); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + hold); + } + + @Override + public String toString() { + return Utils.toString(DebitWalletResponse.class, + "hold", hold); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Hold1 hold; + + private Builder() { + // force use of static builder() method + } + + + public Builder hold(Hold1 hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + return this; + } + + public DebitWalletResponse build() { + + return new DebitWalletResponse( + hold); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/ErrorCode.java b/src/main/java/com/formance/formance_sdk/models/wallets/ErrorCode.java new file mode 100644 index 000000000..1b541b54a --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ErrorCode.java @@ -0,0 +1,37 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum ErrorCode { + VALIDATION("VALIDATION"), + INTERNAL_ERROR("INTERNAL_ERROR"), + INSUFFICIENT_FUND("INSUFFICIENT_FUND"), + HOLD_CLOSED("HOLD_CLOSED"); + + @JsonValue + private final String value; + + ErrorCode(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (ErrorCode o: ErrorCode.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/ErrorResponse.java new file mode 100644 index 000000000..dc5e16c11 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ErrorResponse.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.models.errors.SDKBaseError; +import com.formance.formance_sdk.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Deprecated; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.lang.Throwable; +import java.net.http.HttpResponse; +import java.util.Optional; + +@SuppressWarnings("serial") +public class ErrorResponse extends SDKBaseError { + + @Nullable + private final Data data; + + @Nullable + private final Throwable deserializationException; + + public ErrorResponse( + int code, + byte[] body, + HttpResponse rawResponse, + @Nullable Data data, + @Nullable Throwable deserializationException) { + super("API error occurred", code, body, rawResponse, null); + this.data = data; + this.deserializationException = deserializationException; + } + + /** + * Parse a response into an instance of ErrorResponse. If deserialization of the response body fails, + * the resulting ErrorResponse instance will have a null data() value and a non-null deserializationException(). + */ + public static ErrorResponse from(HttpResponse response) { + try { + byte[] bytes = Utils.extractByteArrayFromBody(response); + Data data = Utils.mapper().readValue(bytes, Data.class); + return new ErrorResponse(response.statusCode(), bytes, response, data, null); + } catch (Exception e) { + return new ErrorResponse(response.statusCode(), null, response, null, e); + } + } + + @Deprecated + public Optional errorCode() { + return data().map(Data::errorCode); + } + + @Deprecated + public Optional errorMessage() { + return data().map(Data::errorMessage); + } + + public Optional data() { + return Optional.ofNullable(data); + } + + /** + * Returns the exception if an error occurs while deserializing the response body. + */ + public Optional deserializationException() { + return Optional.ofNullable(deserializationException); + } + + public static class Data { + + @JsonProperty("errorCode") + private ErrorCode errorCode; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public Data( + @JsonProperty("errorCode") ErrorCode errorCode, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(errorCode, "errorCode"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorCode = errorCode; + this.errorMessage = errorMessage; + } + + @JsonIgnore + public ErrorCode errorCode() { + return errorCode; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public Data withErrorCode(ErrorCode errorCode) { + Utils.checkNotNull(errorCode, "errorCode"); + this.errorCode = errorCode; + return this; + } + + public Data withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return + Utils.enhancedDeepEquals(this.errorCode, other.errorCode) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + errorCode, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "errorCode", errorCode, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ErrorCode errorCode; + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder errorCode(ErrorCode errorCode) { + Utils.checkNotNull(errorCode, "errorCode"); + this.errorCode = errorCode; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public Data build() { + + return new Data( + errorCode, errorMessage); + } + + } + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/GetBalanceResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetBalanceResponse.java new file mode 100644 index 000000000..fd2f9c521 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetBalanceResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetBalanceResponse { + + @JsonProperty("data") + private AssetHolder2 assetHolder; + + @JsonCreator + public GetBalanceResponse( + @JsonProperty("data") AssetHolder2 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + } + + @JsonIgnore + public AssetHolder2 assetHolder() { + return assetHolder; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetBalanceResponse withAssetHolder(AssetHolder2 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetBalanceResponse other = (GetBalanceResponse) o; + return + Utils.enhancedDeepEquals(this.assetHolder, other.assetHolder); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assetHolder); + } + + @Override + public String toString() { + return Utils.toString(GetBalanceResponse.class, + "assetHolder", assetHolder); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private AssetHolder2 assetHolder; + + private Builder() { + // force use of static builder() method + } + + + public Builder assetHolder(AssetHolder2 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + public GetBalanceResponse build() { + + return new GetBalanceResponse( + assetHolder); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldResponse.java new file mode 100644 index 000000000..58bcf16e5 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetHoldResponse { + + @JsonProperty("data") + private Hold2 hold; + + @JsonCreator + public GetHoldResponse( + @JsonProperty("data") Hold2 hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + } + + @JsonIgnore + public Hold2 hold() { + return hold; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetHoldResponse withHold(Hold2 hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetHoldResponse other = (GetHoldResponse) o; + return + Utils.enhancedDeepEquals(this.hold, other.hold); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + hold); + } + + @Override + public String toString() { + return Utils.toString(GetHoldResponse.class, + "hold", hold); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Hold2 hold; + + private Builder() { + // force use of static builder() method + } + + + public Builder hold(Hold2 hold) { + Utils.checkNotNull(hold, "hold"); + this.hold = hold; + return this; + } + + public GetHoldResponse build() { + + return new GetHoldResponse( + hold); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponse.java rename to src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponse.java index 3ded950ac..975c984cd 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponseCursor.java similarity index 95% rename from src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponseCursor.java index 6e8cf2fab..1e720a186 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetHoldsResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetHoldsResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,7 +20,7 @@ public class GetHoldsResponseCursor { @JsonProperty("data") - private List data; + private List data; @JsonInclude(Include.NON_ABSENT) @@ -43,7 +43,7 @@ public class GetHoldsResponseCursor { @JsonCreator public GetHoldsResponseCursor( - @JsonProperty("data") List data, + @JsonProperty("data") List data, @JsonProperty("hasMore") Optional hasMore, @JsonProperty("next") Optional next, @JsonProperty("pageSize") long pageSize, @@ -61,14 +61,14 @@ public GetHoldsResponseCursor( } public GetHoldsResponseCursor( - List data, + List data, long pageSize) { this(data, Optional.empty(), Optional.empty(), pageSize, Optional.empty()); } @JsonIgnore - public List data() { + public List data() { return data; } @@ -97,7 +97,7 @@ public static Builder builder() { } - public GetHoldsResponseCursor withData(List data) { + public GetHoldsResponseCursor withData(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -185,7 +185,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List data; + private List data; private Optional hasMore = Optional.empty(); @@ -200,7 +200,7 @@ private Builder() { } - public Builder data(List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponse.java rename to src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponse.java index f97565980..f853a601d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponseCursor.java similarity index 94% rename from src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponseCursor.java index 5fbd56dc0..d811e2b78 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/GetTransactionsResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetTransactionsResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -20,7 +20,7 @@ public class GetTransactionsResponseCursor { @JsonProperty("data") - private List data; + private List data; @JsonInclude(Include.NON_ABSENT) @@ -43,7 +43,7 @@ public class GetTransactionsResponseCursor { @JsonCreator public GetTransactionsResponseCursor( - @JsonProperty("data") List data, + @JsonProperty("data") List data, @JsonProperty("hasMore") Optional hasMore, @JsonProperty("next") Optional next, @JsonProperty("pageSize") long pageSize, @@ -61,14 +61,14 @@ public GetTransactionsResponseCursor( } public GetTransactionsResponseCursor( - List data, + List data, long pageSize) { this(data, Optional.empty(), Optional.empty(), pageSize, Optional.empty()); } @JsonIgnore - public List data() { + public List data() { return data; } @@ -97,7 +97,7 @@ public static Builder builder() { } - public GetTransactionsResponseCursor withData(List data) { + public GetTransactionsResponseCursor withData(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; @@ -185,7 +185,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private List data; + private List data; private Optional hasMore = Optional.empty(); @@ -200,7 +200,7 @@ private Builder() { } - public Builder data(List data) { + public Builder data(List data) { Utils.checkNotNull(data, "data"); this.data = data; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/GetWalletResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetWalletResponse.java new file mode 100644 index 000000000..67bbe805c --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetWalletResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetWalletResponse { + + @JsonProperty("data") + private WalletWithBalances walletWithBalances; + + @JsonCreator + public GetWalletResponse( + @JsonProperty("data") WalletWithBalances walletWithBalances) { + Utils.checkNotNull(walletWithBalances, "walletWithBalances"); + this.walletWithBalances = walletWithBalances; + } + + @JsonIgnore + public WalletWithBalances walletWithBalances() { + return walletWithBalances; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWalletResponse withWalletWithBalances(WalletWithBalances walletWithBalances) { + Utils.checkNotNull(walletWithBalances, "walletWithBalances"); + this.walletWithBalances = walletWithBalances; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWalletResponse other = (GetWalletResponse) o; + return + Utils.enhancedDeepEquals(this.walletWithBalances, other.walletWithBalances); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + walletWithBalances); + } + + @Override + public String toString() { + return Utils.toString(GetWalletResponse.class, + "walletWithBalances", walletWithBalances); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WalletWithBalances walletWithBalances; + + private Builder() { + // force use of static builder() method + } + + + public Builder walletWithBalances(WalletWithBalances walletWithBalances) { + Utils.checkNotNull(walletWithBalances, "walletWithBalances"); + this.walletWithBalances = walletWithBalances; + return this; + } + + public GetWalletResponse build() { + + return new GetWalletResponse( + walletWithBalances); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/GetWalletSummaryResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/GetWalletSummaryResponse.java new file mode 100644 index 000000000..b501a8c66 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/GetWalletSummaryResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class GetWalletSummaryResponse { + + @JsonProperty("data") + private WalletSummary walletSummary; + + @JsonCreator + public GetWalletSummaryResponse( + @JsonProperty("data") WalletSummary walletSummary) { + Utils.checkNotNull(walletSummary, "walletSummary"); + this.walletSummary = walletSummary; + } + + @JsonIgnore + public WalletSummary walletSummary() { + return walletSummary; + } + + public static Builder builder() { + return new Builder(); + } + + + public GetWalletSummaryResponse withWalletSummary(WalletSummary walletSummary) { + Utils.checkNotNull(walletSummary, "walletSummary"); + this.walletSummary = walletSummary; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWalletSummaryResponse other = (GetWalletSummaryResponse) o; + return + Utils.enhancedDeepEquals(this.walletSummary, other.walletSummary); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + walletSummary); + } + + @Override + public String toString() { + return Utils.toString(GetWalletSummaryResponse.class, + "walletSummary", walletSummary); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WalletSummary walletSummary; + + private Builder() { + // force use of static builder() method + } + + + public Builder walletSummary(WalletSummary walletSummary) { + Utils.checkNotNull(walletSummary, "walletSummary"); + this.walletSummary = walletSummary; + return this; + } + + public GetWalletSummaryResponse build() { + + return new GetWalletSummaryResponse( + walletSummary); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Hold1.java b/src/main/java/com/formance/formance_sdk/models/wallets/Hold1.java new file mode 100644 index 000000000..95f157dee --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Hold1.java @@ -0,0 +1,301 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.util.Map; +import java.util.Optional; + + +public class Hold1 { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional subject; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("description") + private String description; + + /** + * The unique ID of the hold. + */ + @JsonProperty("id") + private String id; + + /** + * Metadata associated with the hold. + */ + @JsonProperty("metadata") + private Map metadata; + + /** + * The ID of the wallet the hold is associated with. + */ + @JsonProperty("walletID") + private String walletID; + + @JsonCreator + public Hold1( + @JsonProperty("destination") Optional subject, + @JsonProperty("asset") String asset, + @JsonProperty("description") String description, + @JsonProperty("id") String id, + @JsonProperty("metadata") Map metadata, + @JsonProperty("walletID") String walletID) { + Utils.checkNotNull(subject, "subject"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(id, "id"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(walletID, "walletID"); + this.subject = subject; + this.asset = asset; + this.description = description; + this.id = id; + this.metadata = metadata; + this.walletID = walletID; + } + + public Hold1( + String asset, + String description, + String id, + Map metadata, + String walletID) { + this(Optional.empty(), asset, description, + id, metadata, walletID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional subject() { + return (Optional) subject; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String description() { + return description; + } + + /** + * The unique ID of the hold. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * Metadata associated with the hold. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + /** + * The ID of the wallet the hold is associated with. + */ + @JsonIgnore + public String walletID() { + return walletID; + } + + public static Builder builder() { + return new Builder(); + } + + + public Hold1 withSubject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + + public Hold1 withSubject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + public Hold1 withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Hold1 withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + /** + * The unique ID of the hold. + */ + public Hold1 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Metadata associated with the hold. + */ + public Hold1 withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * The ID of the wallet the hold is associated with. + */ + public Hold1 withWalletID(String walletID) { + Utils.checkNotNull(walletID, "walletID"); + this.walletID = walletID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Hold1 other = (Hold1) o; + return + Utils.enhancedDeepEquals(this.subject, other.subject) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.walletID, other.walletID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + subject, asset, description, + id, metadata, walletID); + } + + @Override + public String toString() { + return Utils.toString(Hold1.class, + "subject", subject, + "asset", asset, + "description", description, + "id", id, + "metadata", metadata, + "walletID", walletID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional subject = Optional.empty(); + + private String asset; + + private String description; + + private String id; + + private Map metadata; + + private String walletID; + + private Builder() { + // force use of static builder() method + } + + + public Builder subject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + public Builder subject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + /** + * The unique ID of the hold. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * Metadata associated with the hold. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * The ID of the wallet the hold is associated with. + */ + public Builder walletID(String walletID) { + Utils.checkNotNull(walletID, "walletID"); + this.walletID = walletID; + return this; + } + + public Hold1 build() { + + return new Hold1( + subject, asset, description, + id, metadata, walletID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Hold2.java b/src/main/java/com/formance/formance_sdk/models/wallets/Hold2.java new file mode 100644 index 000000000..697ddd4d9 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Hold2.java @@ -0,0 +1,419 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.math.BigInteger; +import java.util.Map; +import java.util.Optional; + + +public class Hold2 { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("destination") + private Optional subject; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("description") + private String description; + + /** + * The unique ID of the hold. + */ + @JsonProperty("id") + private String id; + + /** + * Metadata associated with the hold. + */ + @JsonProperty("metadata") + private Map metadata; + + /** + * Original amount on hold + */ + @JsonProperty("originalAmount") + private BigInteger originalAmount; + + /** + * Remaining amount on hold + */ + @JsonProperty("remaining") + private BigInteger remaining; + + /** + * The ID of the wallet the hold is associated with. + */ + @JsonProperty("walletID") + private String walletID; + + @JsonCreator + public Hold2( + @JsonProperty("destination") Optional subject, + @JsonProperty("asset") String asset, + @JsonProperty("description") String description, + @JsonProperty("id") String id, + @JsonProperty("metadata") Map metadata, + @JsonProperty("originalAmount") BigInteger originalAmount, + @JsonProperty("remaining") BigInteger remaining, + @JsonProperty("walletID") String walletID) { + Utils.checkNotNull(subject, "subject"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(description, "description"); + Utils.checkNotNull(id, "id"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(originalAmount, "originalAmount"); + Utils.checkNotNull(remaining, "remaining"); + Utils.checkNotNull(walletID, "walletID"); + this.subject = subject; + this.asset = asset; + this.description = description; + this.id = id; + this.metadata = metadata; + this.originalAmount = originalAmount; + this.remaining = remaining; + this.walletID = walletID; + } + + public Hold2( + String asset, + String description, + String id, + Map metadata, + BigInteger originalAmount, + BigInteger remaining, + String walletID) { + this(Optional.empty(), asset, description, + id, metadata, originalAmount, + remaining, walletID); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional subject() { + return (Optional) subject; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String description() { + return description; + } + + /** + * The unique ID of the hold. + */ + @JsonIgnore + public String id() { + return id; + } + + /** + * Metadata associated with the hold. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + /** + * Original amount on hold + */ + @JsonIgnore + public BigInteger originalAmount() { + return originalAmount; + } + + /** + * Remaining amount on hold + */ + @JsonIgnore + public BigInteger remaining() { + return remaining; + } + + /** + * The ID of the wallet the hold is associated with. + */ + @JsonIgnore + public String walletID() { + return walletID; + } + + public static Builder builder() { + return new Builder(); + } + + + public Hold2 withSubject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + + public Hold2 withSubject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + public Hold2 withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Hold2 withDescription(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + /** + * The unique ID of the hold. + */ + public Hold2 withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + /** + * Metadata associated with the hold. + */ + public Hold2 withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + /** + * Original amount on hold + */ + public Hold2 withOriginalAmount(long originalAmount) { + this.originalAmount = BigInteger.valueOf(originalAmount); + return this; + } + + /** + * Original amount on hold + */ + public Hold2 withOriginalAmount(BigInteger originalAmount) { + Utils.checkNotNull(originalAmount, "originalAmount"); + this.originalAmount = originalAmount; + return this; + } + + /** + * Remaining amount on hold + */ + public Hold2 withRemaining(long remaining) { + this.remaining = BigInteger.valueOf(remaining); + return this; + } + + /** + * Remaining amount on hold + */ + public Hold2 withRemaining(BigInteger remaining) { + Utils.checkNotNull(remaining, "remaining"); + this.remaining = remaining; + return this; + } + + /** + * The ID of the wallet the hold is associated with. + */ + public Hold2 withWalletID(String walletID) { + Utils.checkNotNull(walletID, "walletID"); + this.walletID = walletID; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Hold2 other = (Hold2) o; + return + Utils.enhancedDeepEquals(this.subject, other.subject) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.description, other.description) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.originalAmount, other.originalAmount) && + Utils.enhancedDeepEquals(this.remaining, other.remaining) && + Utils.enhancedDeepEquals(this.walletID, other.walletID); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + subject, asset, description, + id, metadata, originalAmount, + remaining, walletID); + } + + @Override + public String toString() { + return Utils.toString(Hold2.class, + "subject", subject, + "asset", asset, + "description", description, + "id", id, + "metadata", metadata, + "originalAmount", originalAmount, + "remaining", remaining, + "walletID", walletID); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional subject = Optional.empty(); + + private String asset; + + private String description; + + private String id; + + private Map metadata; + + private BigInteger originalAmount; + + private BigInteger remaining; + + private String walletID; + + private Builder() { + // force use of static builder() method + } + + + public Builder subject(Subject subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = Optional.ofNullable(subject); + return this; + } + + public Builder subject(Optional subject) { + Utils.checkNotNull(subject, "subject"); + this.subject = subject; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder description(String description) { + Utils.checkNotNull(description, "description"); + this.description = description; + return this; + } + + + /** + * The unique ID of the hold. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + /** + * Metadata associated with the hold. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + /** + * Original amount on hold + */ + public Builder originalAmount(long originalAmount) { + this.originalAmount = BigInteger.valueOf(originalAmount); + return this; + } + + /** + * Original amount on hold + */ + public Builder originalAmount(BigInteger originalAmount) { + Utils.checkNotNull(originalAmount, "originalAmount"); + this.originalAmount = originalAmount; + return this; + } + + + /** + * Remaining amount on hold + */ + public Builder remaining(long remaining) { + this.remaining = BigInteger.valueOf(remaining); + return this; + } + + /** + * Remaining amount on hold + */ + public Builder remaining(BigInteger remaining) { + Utils.checkNotNull(remaining, "remaining"); + this.remaining = remaining; + return this; + } + + + /** + * The ID of the wallet the hold is associated with. + */ + public Builder walletID(String walletID) { + Utils.checkNotNull(walletID, "walletID"); + this.walletID = walletID; + return this; + } + + public Hold2 build() { + + return new Hold2( + subject, asset, description, + id, metadata, originalAmount, + remaining, walletID); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/LedgerAccountSubject.java b/src/main/java/com/formance/formance_sdk/models/wallets/LedgerAccountSubject.java new file mode 100644 index 000000000..95e475459 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/LedgerAccountSubject.java @@ -0,0 +1,119 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class LedgerAccountSubject { + + @JsonProperty("identifier") + private String identifier; + + + @JsonProperty("type") + private String type; + + @JsonCreator + public LedgerAccountSubject( + @JsonProperty("identifier") String identifier, + @JsonProperty("type") String type) { + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(type, "type"); + this.identifier = identifier; + this.type = type; + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + public LedgerAccountSubject withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public LedgerAccountSubject withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LedgerAccountSubject other = (LedgerAccountSubject) o; + return + Utils.enhancedDeepEquals(this.identifier, other.identifier) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + identifier, type); + } + + @Override + public String toString() { + return Utils.toString(LedgerAccountSubject.class, + "identifier", identifier, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String identifier; + + private String type; + + private Builder() { + // force use of static builder() method + } + + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public LedgerAccountSubject build() { + + return new LedgerAccountSubject( + identifier, type); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponse.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponse.java rename to src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponse.java index a5dbe166e..eea79fa15 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponseCursor.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponseCursor.java rename to src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponseCursor.java index 6808f9294..8d933c11d 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ListBalancesResponseCursor.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ListBalancesResponseCursor.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponse.java b/src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponse.java new file mode 100644 index 000000000..9067988d6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ListWalletsResponse { + + @JsonProperty("cursor") + private ListWalletsResponseCursor cursor; + + @JsonCreator + public ListWalletsResponse( + @JsonProperty("cursor") ListWalletsResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + } + + @JsonIgnore + public ListWalletsResponseCursor cursor() { + return cursor; + } + + public static Builder builder() { + return new Builder(); + } + + + public ListWalletsResponse withCursor(ListWalletsResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWalletsResponse other = (ListWalletsResponse) o; + return + Utils.enhancedDeepEquals(this.cursor, other.cursor); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + cursor); + } + + @Override + public String toString() { + return Utils.toString(ListWalletsResponse.class, + "cursor", cursor); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ListWalletsResponseCursor cursor; + + private Builder() { + // force use of static builder() method + } + + + public Builder cursor(ListWalletsResponseCursor cursor) { + Utils.checkNotNull(cursor, "cursor"); + this.cursor = cursor; + return this; + } + + public ListWalletsResponse build() { + + return new ListWalletsResponse( + cursor); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponseCursor.java b/src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponseCursor.java new file mode 100644 index 000000000..102ebbc2e --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ListWalletsResponseCursor.java @@ -0,0 +1,263 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.util.List; +import java.util.Optional; + + +public class ListWalletsResponseCursor { + + @JsonProperty("data") + private List data; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("hasMore") + private Optional hasMore; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("next") + private Optional next; + + + @JsonProperty("pageSize") + private long pageSize; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("previous") + private Optional previous; + + @JsonCreator + public ListWalletsResponseCursor( + @JsonProperty("data") List data, + @JsonProperty("hasMore") Optional hasMore, + @JsonProperty("next") Optional next, + @JsonProperty("pageSize") long pageSize, + @JsonProperty("previous") Optional previous) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + Utils.checkNotNull(next, "next"); + Utils.checkNotNull(pageSize, "pageSize"); + Utils.checkNotNull(previous, "previous"); + this.data = data; + this.hasMore = hasMore; + this.next = next; + this.pageSize = pageSize; + this.previous = previous; + } + + public ListWalletsResponseCursor( + List data, + long pageSize) { + this(data, Optional.empty(), Optional.empty(), + pageSize, Optional.empty()); + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public Optional hasMore() { + return hasMore; + } + + @JsonIgnore + public Optional next() { + return next; + } + + @JsonIgnore + public long pageSize() { + return pageSize; + } + + @JsonIgnore + public Optional previous() { + return previous; + } + + public static Builder builder() { + return new Builder(); + } + + + public ListWalletsResponseCursor withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public ListWalletsResponseCursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + + public ListWalletsResponseCursor withHasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public ListWalletsResponseCursor withNext(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + + public ListWalletsResponseCursor withNext(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + public ListWalletsResponseCursor withPageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + public ListWalletsResponseCursor withPrevious(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + + public ListWalletsResponseCursor withPrevious(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWalletsResponseCursor other = (ListWalletsResponseCursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore) && + Utils.enhancedDeepEquals(this.next, other.next) && + Utils.enhancedDeepEquals(this.pageSize, other.pageSize) && + Utils.enhancedDeepEquals(this.previous, other.previous); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore, next, + pageSize, previous); + } + + @Override + public String toString() { + return Utils.toString(ListWalletsResponseCursor.class, + "data", data, + "hasMore", hasMore, + "next", next, + "pageSize", pageSize, + "previous", previous); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Optional hasMore = Optional.empty(); + + private Optional next = Optional.empty(); + + private Long pageSize; + + private Optional previous = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = Optional.ofNullable(hasMore); + return this; + } + + public Builder hasMore(Optional hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + + public Builder next(String next) { + Utils.checkNotNull(next, "next"); + this.next = Optional.ofNullable(next); + return this; + } + + public Builder next(Optional next) { + Utils.checkNotNull(next, "next"); + this.next = next; + return this; + } + + + public Builder pageSize(long pageSize) { + Utils.checkNotNull(pageSize, "pageSize"); + this.pageSize = pageSize; + return this; + } + + + public Builder previous(String previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = Optional.ofNullable(previous); + return this; + } + + public Builder previous(Optional previous) { + Utils.checkNotNull(previous, "previous"); + this.previous = previous; + return this; + } + + public ListWalletsResponseCursor build() { + + return new ListWalletsResponseCursor( + data, hasMore, next, + pageSize, previous); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Monetary.java b/src/main/java/com/formance/formance_sdk/models/wallets/Monetary.java new file mode 100644 index 000000000..1bb255a75 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Monetary.java @@ -0,0 +1,158 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class Monetary { + /** + * The amount of the monetary value. + */ + @JsonProperty("amount") + private BigInteger amount; + + /** + * The asset of the monetary value. + */ + @JsonProperty("asset") + private String asset; + + @JsonCreator + public Monetary( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + this.amount = amount; + this.asset = asset; + } + + /** + * The amount of the monetary value. + */ + @JsonIgnore + public BigInteger amount() { + return amount; + } + + /** + * The asset of the monetary value. + */ + @JsonIgnore + public String asset() { + return asset; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The amount of the monetary value. + */ + public Monetary withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + /** + * The amount of the monetary value. + */ + public Monetary withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + /** + * The asset of the monetary value. + */ + public Monetary withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Monetary other = (Monetary) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset); + } + + @Override + public String toString() { + return Utils.toString(Monetary.class, + "amount", amount, + "asset", asset); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private Builder() { + // force use of static builder() method + } + + + /** + * The amount of the monetary value. + */ + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + /** + * The amount of the monetary value. + */ + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + /** + * The asset of the monetary value. + */ + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Monetary build() { + + return new Monetary( + amount, asset); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Posting.java b/src/main/java/com/formance/formance_sdk/models/wallets/Posting.java new file mode 100644 index 000000000..00b8ffbfb --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Posting.java @@ -0,0 +1,190 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class Posting { + + @JsonProperty("amount") + private BigInteger amount; + + + @JsonProperty("asset") + private String asset; + + + @JsonProperty("destination") + private String destination; + + + @JsonProperty("source") + private String source; + + @JsonCreator + public Posting( + @JsonProperty("amount") BigInteger amount, + @JsonProperty("asset") String asset, + @JsonProperty("destination") String destination, + @JsonProperty("source") String source) { + Utils.checkNotNull(amount, "amount"); + Utils.checkNotNull(asset, "asset"); + Utils.checkNotNull(destination, "destination"); + Utils.checkNotNull(source, "source"); + this.amount = amount; + this.asset = asset; + this.destination = destination; + this.source = source; + } + + @JsonIgnore + public BigInteger amount() { + return amount; + } + + @JsonIgnore + public String asset() { + return asset; + } + + @JsonIgnore + public String destination() { + return destination; + } + + @JsonIgnore + public String source() { + return source; + } + + public static Builder builder() { + return new Builder(); + } + + + public Posting withAmount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Posting withAmount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + public Posting withAsset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + public Posting withDestination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + public Posting withSource(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Posting other = (Posting) o; + return + Utils.enhancedDeepEquals(this.amount, other.amount) && + Utils.enhancedDeepEquals(this.asset, other.asset) && + Utils.enhancedDeepEquals(this.destination, other.destination) && + Utils.enhancedDeepEquals(this.source, other.source); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + amount, asset, destination, + source); + } + + @Override + public String toString() { + return Utils.toString(Posting.class, + "amount", amount, + "asset", asset, + "destination", destination, + "source", source); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger amount; + + private String asset; + + private String destination; + + private String source; + + private Builder() { + // force use of static builder() method + } + + + public Builder amount(long amount) { + this.amount = BigInteger.valueOf(amount); + return this; + } + + public Builder amount(BigInteger amount) { + Utils.checkNotNull(amount, "amount"); + this.amount = amount; + return this; + } + + + public Builder asset(String asset) { + Utils.checkNotNull(asset, "asset"); + this.asset = asset; + return this; + } + + + public Builder destination(String destination) { + Utils.checkNotNull(destination, "destination"); + this.destination = destination; + return this; + } + + + public Builder source(String source) { + Utils.checkNotNull(source, "source"); + this.source = source; + return this; + } + + public Posting build() { + + return new Posting( + amount, asset, destination, + source); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/ServerInfo.java b/src/main/java/com/formance/formance_sdk/models/wallets/ServerInfo.java new file mode 100644 index 000000000..0371a35f6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/ServerInfo.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ServerInfo { + + @JsonProperty("version") + private String version; + + @JsonCreator + public ServerInfo( + @JsonProperty("version") String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + } + + @JsonIgnore + public String version() { + return version; + } + + public static Builder builder() { + return new Builder(); + } + + + public ServerInfo withVersion(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ServerInfo other = (ServerInfo) o; + return + Utils.enhancedDeepEquals(this.version, other.version); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + version); + } + + @Override + public String toString() { + return Utils.toString(ServerInfo.class, + "version", version); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private String version; + + private Builder() { + // force use of static builder() method + } + + + public Builder version(String version) { + Utils.checkNotNull(version, "version"); + this.version = version; + return this; + } + + public ServerInfo build() { + + return new ServerInfo( + version); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Subject.java b/src/main/java/com/formance/formance_sdk/models/wallets/Subject.java new file mode 100644 index 000000000..8745839e6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Subject.java @@ -0,0 +1,94 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.formance.formance_sdk.utils.OneOfDeserializer; +import com.formance.formance_sdk.utils.TypedObject; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils.TypeReferenceWithShape; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; + +@JsonDeserialize(using = Subject._Deserializer.class) +public class Subject { + + @JsonValue + private final TypedObject value; + + private Subject(TypedObject value) { + this.value = value; + } + + public static Subject of(LedgerAccountSubject value) { + Utils.checkNotNull(value, "value"); + return new Subject(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + public static Subject of(WalletSubject value) { + Utils.checkNotNull(value, "value"); + return new Subject(TypedObject.of(value, JsonShape.DEFAULT, new TypeReference<>(){})); + } + + /** + * Returns an instance of one of these types: + *
    + *
  • {@code com.formance.formance_sdk.models.wallets.LedgerAccountSubject}
  • + *
  • {@code com.formance.formance_sdk.models.wallets.WalletSubject}
  • + *
+ * + *

Use {@code instanceof} to determine what type is returned. For example: + * + *

+     * if (obj.value() instanceof String) {
+     *     String answer = (String) obj.value();
+     *     System.out.println("answer=" + answer);
+     * }
+     * 
+ * + * @return value of oneOf type + **/ + public java.lang.Object value() { + return value.value(); + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Subject other = (Subject) o; + return Utils.enhancedDeepEquals(this.value.value(), other.value.value()); + } + + @Override + public int hashCode() { + return Utils.enhancedHash(value.value()); + } + + @SuppressWarnings("serial") + public static final class _Deserializer extends OneOfDeserializer { + + public _Deserializer() { + super(Subject.class, false, + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT), + TypeReferenceWithShape.of(new TypeReference() {}, JsonShape.DEFAULT)); + } + } + + @Override + public String toString() { + return Utils.toString(Subject.class, + "value", value); + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Transaction.java b/src/main/java/com/formance/formance_sdk/models/wallets/Transaction.java new file mode 100644 index 000000000..010f8c8ed --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Transaction.java @@ -0,0 +1,385 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Long; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; +import java.util.Optional; + + +public class Transaction { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("preCommitVolumes") + private Optional>> aggregatedVolumes; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("postCommitVolumes") + private Optional>> aggregatedVolumes1; + + + @JsonProperty("id") + private long id; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("ledger") + private Optional ledger; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + + @JsonProperty("postings") + private List postings; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("reference") + private Optional reference; + + + @JsonProperty("timestamp") + private OffsetDateTime timestamp; + + @JsonCreator + public Transaction( + @JsonProperty("preCommitVolumes") Optional>> aggregatedVolumes, + @JsonProperty("postCommitVolumes") Optional>> aggregatedVolumes1, + @JsonProperty("id") long id, + @JsonProperty("ledger") Optional ledger, + @JsonProperty("metadata") Map metadata, + @JsonProperty("postings") List postings, + @JsonProperty("reference") Optional reference, + @JsonProperty("timestamp") OffsetDateTime timestamp) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(postings, "postings"); + Utils.checkNotNull(reference, "reference"); + Utils.checkNotNull(timestamp, "timestamp"); + this.aggregatedVolumes = aggregatedVolumes; + this.aggregatedVolumes1 = aggregatedVolumes1; + this.id = id; + this.ledger = ledger; + this.metadata = metadata; + this.postings = postings; + this.reference = reference; + this.timestamp = timestamp; + } + + public Transaction( + long id, + Map metadata, + List postings, + OffsetDateTime timestamp) { + this(Optional.empty(), Optional.empty(), id, + Optional.empty(), metadata, postings, + Optional.empty(), timestamp); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> aggregatedVolumes() { + return (Optional>>) aggregatedVolumes; + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional>> aggregatedVolumes1() { + return (Optional>>) aggregatedVolumes1; + } + + @JsonIgnore + public long id() { + return id; + } + + @JsonIgnore + public Optional ledger() { + return ledger; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public List postings() { + return postings; + } + + @JsonIgnore + public Optional reference() { + return reference; + } + + @JsonIgnore + public OffsetDateTime timestamp() { + return timestamp; + } + + public static Builder builder() { + return new Builder(); + } + + + public Transaction withAggregatedVolumes(Map> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = Optional.ofNullable(aggregatedVolumes); + return this; + } + + + public Transaction withAggregatedVolumes(Optional>> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = aggregatedVolumes; + return this; + } + + public Transaction withAggregatedVolumes1(Map> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = Optional.ofNullable(aggregatedVolumes1); + return this; + } + + + public Transaction withAggregatedVolumes1(Optional>> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = aggregatedVolumes1; + return this; + } + + public Transaction withId(long id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Transaction withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + + public Transaction withLedger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public Transaction withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Transaction withPostings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + public Transaction withReference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + + public Transaction withReference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + public Transaction withTimestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Transaction other = (Transaction) o; + return + Utils.enhancedDeepEquals(this.aggregatedVolumes, other.aggregatedVolumes) && + Utils.enhancedDeepEquals(this.aggregatedVolumes1, other.aggregatedVolumes1) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.postings, other.postings) && + Utils.enhancedDeepEquals(this.reference, other.reference) && + Utils.enhancedDeepEquals(this.timestamp, other.timestamp); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + aggregatedVolumes, aggregatedVolumes1, id, + ledger, metadata, postings, + reference, timestamp); + } + + @Override + public String toString() { + return Utils.toString(Transaction.class, + "aggregatedVolumes", aggregatedVolumes, + "aggregatedVolumes1", aggregatedVolumes1, + "id", id, + "ledger", ledger, + "metadata", metadata, + "postings", postings, + "reference", reference, + "timestamp", timestamp); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional>> aggregatedVolumes = Optional.empty(); + + private Optional>> aggregatedVolumes1 = Optional.empty(); + + private Long id; + + private Optional ledger = Optional.empty(); + + private Map metadata; + + private List postings; + + private Optional reference = Optional.empty(); + + private OffsetDateTime timestamp; + + private Builder() { + // force use of static builder() method + } + + + public Builder aggregatedVolumes(Map> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = Optional.ofNullable(aggregatedVolumes); + return this; + } + + public Builder aggregatedVolumes(Optional>> aggregatedVolumes) { + Utils.checkNotNull(aggregatedVolumes, "aggregatedVolumes"); + this.aggregatedVolumes = aggregatedVolumes; + return this; + } + + + public Builder aggregatedVolumes1(Map> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = Optional.ofNullable(aggregatedVolumes1); + return this; + } + + public Builder aggregatedVolumes1(Optional>> aggregatedVolumes1) { + Utils.checkNotNull(aggregatedVolumes1, "aggregatedVolumes1"); + this.aggregatedVolumes1 = aggregatedVolumes1; + return this; + } + + + public Builder id(long id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = Optional.ofNullable(ledger); + return this; + } + + public Builder ledger(Optional ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder postings(List postings) { + Utils.checkNotNull(postings, "postings"); + this.postings = postings; + return this; + } + + + public Builder reference(String reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = Optional.ofNullable(reference); + return this; + } + + public Builder reference(Optional reference) { + Utils.checkNotNull(reference, "reference"); + this.reference = reference; + return this; + } + + + public Builder timestamp(OffsetDateTime timestamp) { + Utils.checkNotNull(timestamp, "timestamp"); + this.timestamp = timestamp; + return this; + } + + public Transaction build() { + + return new Transaction( + aggregatedVolumes, aggregatedVolumes1, id, + ledger, metadata, postings, + reference, timestamp); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Volume.java b/src/main/java/com/formance/formance_sdk/models/wallets/Volume.java new file mode 100644 index 000000000..ef4ec96ab --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Volume.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.math.BigInteger; + + +public class Volume { + + @JsonProperty("balance") + private BigInteger balance; + + + @JsonProperty("input") + private BigInteger input; + + + @JsonProperty("output") + private BigInteger output; + + @JsonCreator + public Volume( + @JsonProperty("balance") BigInteger balance, + @JsonProperty("input") BigInteger input, + @JsonProperty("output") BigInteger output) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(input, "input"); + Utils.checkNotNull(output, "output"); + this.balance = balance; + this.input = input; + this.output = output; + } + + @JsonIgnore + public BigInteger balance() { + return balance; + } + + @JsonIgnore + public BigInteger input() { + return input; + } + + @JsonIgnore + public BigInteger output() { + return output; + } + + public static Builder builder() { + return new Builder(); + } + + + public Volume withBalance(long balance) { + this.balance = BigInteger.valueOf(balance); + return this; + } + + public Volume withBalance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public Volume withInput(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Volume withInput(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + public Volume withOutput(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Volume withOutput(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Volume other = (Volume) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.input, other.input) && + Utils.enhancedDeepEquals(this.output, other.output); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, input, output); + } + + @Override + public String toString() { + return Utils.toString(Volume.class, + "balance", balance, + "input", input, + "output", output); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private BigInteger balance; + + private BigInteger input; + + private BigInteger output; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(long balance) { + this.balance = BigInteger.valueOf(balance); + return this; + } + + public Builder balance(BigInteger balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder input(long input) { + this.input = BigInteger.valueOf(input); + return this; + } + + public Builder input(BigInteger input) { + Utils.checkNotNull(input, "input"); + this.input = input; + return this; + } + + + public Builder output(long output) { + this.output = BigInteger.valueOf(output); + return this; + } + + public Builder output(BigInteger output) { + Utils.checkNotNull(output, "output"); + this.output = output; + return this; + } + + public Volume build() { + + return new Volume( + balance, input, output); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/Wallet.java b/src/main/java/com/formance/formance_sdk/models/wallets/Wallet.java new file mode 100644 index 000000000..aaceff5c0 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/Wallet.java @@ -0,0 +1,291 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.time.OffsetDateTime; +import java.util.Map; +import java.util.Optional; + + +public class Wallet { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balances") + private Optional balances; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + /** + * The unique ID of the wallet. + */ + @JsonProperty("id") + private String id; + + + @JsonProperty("ledger") + private String ledger; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public Wallet( + @JsonProperty("balances") Optional balances, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("id") String id, + @JsonProperty("ledger") String ledger, + @JsonProperty("metadata") Map metadata, + @JsonProperty("name") String name) { + Utils.checkNotNull(balances, "balances"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(name, "name"); + this.balances = balances; + this.createdAt = createdAt; + this.id = id; + this.ledger = ledger; + this.metadata = metadata; + this.name = name; + } + + public Wallet( + OffsetDateTime createdAt, + String id, + String ledger, + Map metadata, + String name) { + this(Optional.empty(), createdAt, id, + ledger, metadata, name); + } + + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional balances() { + return (Optional) balances; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + /** + * The unique ID of the wallet. + */ + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String ledger() { + return ledger; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public Wallet withBalances(WalletBalances balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = Optional.ofNullable(balances); + return this; + } + + + public Wallet withBalances(Optional balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + public Wallet withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * The unique ID of the wallet. + */ + public Wallet withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public Wallet withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public Wallet withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public Wallet withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Wallet other = (Wallet) o; + return + Utils.enhancedDeepEquals(this.balances, other.balances) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balances, createdAt, id, + ledger, metadata, name); + } + + @Override + public String toString() { + return Utils.toString(Wallet.class, + "balances", balances, + "createdAt", createdAt, + "id", id, + "ledger", ledger, + "metadata", metadata, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balances = Optional.empty(); + + private OffsetDateTime createdAt; + + private String id; + + private String ledger; + + private Map metadata; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder balances(WalletBalances balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = Optional.ofNullable(balances); + return this; + } + + public Builder balances(Optional balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * The unique ID of the wallet. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public Wallet build() { + + return new Wallet( + balances, createdAt, id, + ledger, metadata, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/WalletBalances.java b/src/main/java/com/formance/formance_sdk/models/wallets/WalletBalances.java new file mode 100644 index 000000000..cd13861e1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/WalletBalances.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class WalletBalances { + + @JsonProperty("main") + private AssetHolder1 assetHolder; + + @JsonCreator + public WalletBalances( + @JsonProperty("main") AssetHolder1 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + } + + @JsonIgnore + public AssetHolder1 assetHolder() { + return assetHolder; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletBalances withAssetHolder(AssetHolder1 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletBalances other = (WalletBalances) o; + return + Utils.enhancedDeepEquals(this.assetHolder, other.assetHolder); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assetHolder); + } + + @Override + public String toString() { + return Utils.toString(WalletBalances.class, + "assetHolder", assetHolder); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private AssetHolder1 assetHolder; + + private Builder() { + // force use of static builder() method + } + + + public Builder assetHolder(AssetHolder1 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + public WalletBalances build() { + + return new WalletBalances( + assetHolder); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/WalletSubject.java b/src/main/java/com/formance/formance_sdk/models/wallets/WalletSubject.java new file mode 100644 index 000000000..ec937f55d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/WalletSubject.java @@ -0,0 +1,171 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +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.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class WalletSubject { + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("balance") + private Optional balance; + + + @JsonProperty("identifier") + private String identifier; + + + @JsonProperty("type") + private String type; + + @JsonCreator + public WalletSubject( + @JsonProperty("balance") Optional balance, + @JsonProperty("identifier") String identifier, + @JsonProperty("type") String type) { + Utils.checkNotNull(balance, "balance"); + Utils.checkNotNull(identifier, "identifier"); + Utils.checkNotNull(type, "type"); + this.balance = balance; + this.identifier = identifier; + this.type = type; + } + + public WalletSubject( + String identifier, + String type) { + this(Optional.empty(), identifier, type); + } + + @JsonIgnore + public Optional balance() { + return balance; + } + + @JsonIgnore + public String identifier() { + return identifier; + } + + @JsonIgnore + public String type() { + return type; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletSubject withBalance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + + public WalletSubject withBalance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + public WalletSubject withIdentifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + public WalletSubject withType(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletSubject other = (WalletSubject) o; + return + Utils.enhancedDeepEquals(this.balance, other.balance) && + Utils.enhancedDeepEquals(this.identifier, other.identifier) && + Utils.enhancedDeepEquals(this.type, other.type); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balance, identifier, type); + } + + @Override + public String toString() { + return Utils.toString(WalletSubject.class, + "balance", balance, + "identifier", identifier, + "type", type); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional balance = Optional.empty(); + + private String identifier; + + private String type; + + private Builder() { + // force use of static builder() method + } + + + public Builder balance(String balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = Optional.ofNullable(balance); + return this; + } + + public Builder balance(Optional balance) { + Utils.checkNotNull(balance, "balance"); + this.balance = balance; + return this; + } + + + public Builder identifier(String identifier) { + Utils.checkNotNull(identifier, "identifier"); + this.identifier = identifier; + return this; + } + + + public Builder type(String type) { + Utils.checkNotNull(type, "type"); + this.type = type; + return this; + } + + public WalletSubject build() { + + return new WalletSubject( + balance, identifier, type); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WalletSummary.java b/src/main/java/com/formance/formance_sdk/models/wallets/WalletSummary.java similarity index 93% rename from src/main/java/com/formance/formance_sdk/models/shared/WalletSummary.java rename to src/main/java/com/formance/formance_sdk/models/wallets/WalletSummary.java index 611317a2a..a23cf0fbf 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/WalletSummary.java +++ b/src/main/java/com/formance/formance_sdk/models/wallets/WalletSummary.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.wallets; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -21,7 +21,7 @@ public class WalletSummary { @JsonProperty("balances") - private List balances; + private List balances; @JsonProperty("expirableFunds") @@ -38,7 +38,7 @@ public class WalletSummary { @JsonCreator public WalletSummary( @JsonProperty("availableFunds") Map availableFunds, - @JsonProperty("balances") List balances, + @JsonProperty("balances") List balances, @JsonProperty("expirableFunds") Map expirableFunds, @JsonProperty("expiredFunds") Map expiredFunds, @JsonProperty("holdFunds") Map holdFunds) { @@ -64,7 +64,7 @@ public Map availableFunds() { } @JsonIgnore - public List balances() { + public List balances() { return balances; } @@ -94,7 +94,7 @@ public WalletSummary withAvailableFunds(Map availableFunds) return this; } - public WalletSummary withBalances(List balances) { + public WalletSummary withBalances(List balances) { Utils.checkNotNull(balances, "balances"); this.balances = balances; return this; @@ -157,7 +157,7 @@ public final static class Builder { private Map availableFunds; - private List balances; + private List balances; private Map expirableFunds; @@ -177,7 +177,7 @@ public Builder availableFunds(Map availableFunds) { } - public Builder balances(List balances) { + public Builder balances(List balances) { Utils.checkNotNull(balances, "balances"); this.balances = balances; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalances.java b/src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalances.java new file mode 100644 index 000000000..fba7baafd --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalances.java @@ -0,0 +1,262 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.time.OffsetDateTime; +import java.util.Map; + + +public class WalletWithBalances { + + @JsonProperty("balances") + private WalletWithBalancesBalances balances; + + + @JsonProperty("createdAt") + private OffsetDateTime createdAt; + + /** + * The unique ID of the wallet. + */ + @JsonProperty("id") + private String id; + + + @JsonProperty("ledger") + private String ledger; + + /** + * Metadata associated with the wallet. + */ + @JsonProperty("metadata") + private Map metadata; + + + @JsonProperty("name") + private String name; + + @JsonCreator + public WalletWithBalances( + @JsonProperty("balances") WalletWithBalancesBalances balances, + @JsonProperty("createdAt") OffsetDateTime createdAt, + @JsonProperty("id") String id, + @JsonProperty("ledger") String ledger, + @JsonProperty("metadata") Map metadata, + @JsonProperty("name") String name) { + Utils.checkNotNull(balances, "balances"); + Utils.checkNotNull(createdAt, "createdAt"); + Utils.checkNotNull(id, "id"); + Utils.checkNotNull(ledger, "ledger"); + metadata = Utils.emptyMapIfNull(metadata); + Utils.checkNotNull(metadata, "metadata"); + Utils.checkNotNull(name, "name"); + this.balances = balances; + this.createdAt = createdAt; + this.id = id; + this.ledger = ledger; + this.metadata = metadata; + this.name = name; + } + + @JsonIgnore + public WalletWithBalancesBalances balances() { + return balances; + } + + @JsonIgnore + public OffsetDateTime createdAt() { + return createdAt; + } + + /** + * The unique ID of the wallet. + */ + @JsonIgnore + public String id() { + return id; + } + + @JsonIgnore + public String ledger() { + return ledger; + } + + /** + * Metadata associated with the wallet. + */ + @JsonIgnore + public Map metadata() { + return metadata; + } + + @JsonIgnore + public String name() { + return name; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletWithBalances withBalances(WalletWithBalancesBalances balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + public WalletWithBalances withCreatedAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + /** + * The unique ID of the wallet. + */ + public WalletWithBalances withId(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + public WalletWithBalances withLedger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + /** + * Metadata associated with the wallet. + */ + public WalletWithBalances withMetadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + public WalletWithBalances withName(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletWithBalances other = (WalletWithBalances) o; + return + Utils.enhancedDeepEquals(this.balances, other.balances) && + Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && + Utils.enhancedDeepEquals(this.id, other.id) && + Utils.enhancedDeepEquals(this.ledger, other.ledger) && + Utils.enhancedDeepEquals(this.metadata, other.metadata) && + Utils.enhancedDeepEquals(this.name, other.name); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + balances, createdAt, id, + ledger, metadata, name); + } + + @Override + public String toString() { + return Utils.toString(WalletWithBalances.class, + "balances", balances, + "createdAt", createdAt, + "id", id, + "ledger", ledger, + "metadata", metadata, + "name", name); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WalletWithBalancesBalances balances; + + private OffsetDateTime createdAt; + + private String id; + + private String ledger; + + private Map metadata; + + private String name; + + private Builder() { + // force use of static builder() method + } + + + public Builder balances(WalletWithBalancesBalances balances) { + Utils.checkNotNull(balances, "balances"); + this.balances = balances; + return this; + } + + + public Builder createdAt(OffsetDateTime createdAt) { + Utils.checkNotNull(createdAt, "createdAt"); + this.createdAt = createdAt; + return this; + } + + + /** + * The unique ID of the wallet. + */ + public Builder id(String id) { + Utils.checkNotNull(id, "id"); + this.id = id; + return this; + } + + + public Builder ledger(String ledger) { + Utils.checkNotNull(ledger, "ledger"); + this.ledger = ledger; + return this; + } + + + /** + * Metadata associated with the wallet. + */ + public Builder metadata(Map metadata) { + Utils.checkNotNull(metadata, "metadata"); + this.metadata = metadata; + return this; + } + + + public Builder name(String name) { + Utils.checkNotNull(name, "name"); + this.name = name; + return this; + } + + public WalletWithBalances build() { + + return new WalletWithBalances( + balances, createdAt, id, + ledger, metadata, name); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalancesBalances.java b/src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalancesBalances.java new file mode 100644 index 000000000..adf9335e2 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/wallets/WalletWithBalancesBalances.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.wallets; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class WalletWithBalancesBalances { + + @JsonProperty("main") + private AssetHolder1 assetHolder; + + @JsonCreator + public WalletWithBalancesBalances( + @JsonProperty("main") AssetHolder1 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + } + + @JsonIgnore + public AssetHolder1 assetHolder() { + return assetHolder; + } + + public static Builder builder() { + return new Builder(); + } + + + public WalletWithBalancesBalances withAssetHolder(AssetHolder1 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WalletWithBalancesBalances other = (WalletWithBalancesBalances) o; + return + Utils.enhancedDeepEquals(this.assetHolder, other.assetHolder); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + assetHolder); + } + + @Override + public String toString() { + return Utils.toString(WalletWithBalancesBalances.class, + "assetHolder", assetHolder); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private AssetHolder1 assetHolder; + + private Builder() { + // force use of static builder() method + } + + + public Builder assetHolder(AssetHolder1 assetHolder) { + Utils.checkNotNull(assetHolder, "assetHolder"); + this.assetHolder = assetHolder; + return this; + } + + public WalletWithBalancesBalances build() { + + return new WalletWithBalancesBalances( + assetHolder); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/Attempt.java b/src/main/java/com/formance/formance_sdk/models/webhooks/Attempt.java similarity index 90% rename from src/main/java/com/formance/formance_sdk/models/shared/Attempt.java rename to src/main/java/com/formance/formance_sdk/models/webhooks/Attempt.java index b65ba31a7..4352abc58 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/Attempt.java +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/Attempt.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.webhooks; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -19,7 +19,7 @@ public class Attempt { @JsonProperty("config") - private WebhooksConfig config; + private WebhooksConfig webhooksConfig; @JsonProperty("createdAt") @@ -60,7 +60,7 @@ public class Attempt { @JsonCreator public Attempt( - @JsonProperty("config") WebhooksConfig config, + @JsonProperty("config") WebhooksConfig webhooksConfig, @JsonProperty("createdAt") OffsetDateTime createdAt, @JsonProperty("id") String id, @JsonProperty("nextRetryAfter") Optional nextRetryAfter, @@ -70,7 +70,7 @@ public Attempt( @JsonProperty("statusCode") long statusCode, @JsonProperty("updatedAt") OffsetDateTime updatedAt, @JsonProperty("webhookID") String webhookID) { - Utils.checkNotNull(config, "config"); + Utils.checkNotNull(webhooksConfig, "webhooksConfig"); Utils.checkNotNull(createdAt, "createdAt"); Utils.checkNotNull(id, "id"); Utils.checkNotNull(nextRetryAfter, "nextRetryAfter"); @@ -80,7 +80,7 @@ public Attempt( Utils.checkNotNull(statusCode, "statusCode"); Utils.checkNotNull(updatedAt, "updatedAt"); Utils.checkNotNull(webhookID, "webhookID"); - this.config = config; + this.webhooksConfig = webhooksConfig; this.createdAt = createdAt; this.id = id; this.nextRetryAfter = nextRetryAfter; @@ -93,7 +93,7 @@ public Attempt( } public Attempt( - WebhooksConfig config, + WebhooksConfig webhooksConfig, OffsetDateTime createdAt, String id, String payload, @@ -102,15 +102,15 @@ public Attempt( long statusCode, OffsetDateTime updatedAt, String webhookID) { - this(config, createdAt, id, + this(webhooksConfig, createdAt, id, Optional.empty(), payload, retryAttempt, status, statusCode, updatedAt, webhookID); } @JsonIgnore - public WebhooksConfig config() { - return config; + public WebhooksConfig webhooksConfig() { + return webhooksConfig; } @JsonIgnore @@ -163,9 +163,9 @@ public static Builder builder() { } - public Attempt withConfig(WebhooksConfig config) { - Utils.checkNotNull(config, "config"); - this.config = config; + public Attempt withWebhooksConfig(WebhooksConfig webhooksConfig) { + Utils.checkNotNull(webhooksConfig, "webhooksConfig"); + this.webhooksConfig = webhooksConfig; return this; } @@ -240,7 +240,7 @@ public boolean equals(java.lang.Object o) { } Attempt other = (Attempt) o; return - Utils.enhancedDeepEquals(this.config, other.config) && + Utils.enhancedDeepEquals(this.webhooksConfig, other.webhooksConfig) && Utils.enhancedDeepEquals(this.createdAt, other.createdAt) && Utils.enhancedDeepEquals(this.id, other.id) && Utils.enhancedDeepEquals(this.nextRetryAfter, other.nextRetryAfter) && @@ -255,7 +255,7 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - config, createdAt, id, + webhooksConfig, createdAt, id, nextRetryAfter, payload, retryAttempt, status, statusCode, updatedAt, webhookID); @@ -264,7 +264,7 @@ public int hashCode() { @Override public String toString() { return Utils.toString(Attempt.class, - "config", config, + "webhooksConfig", webhooksConfig, "createdAt", createdAt, "id", id, "nextRetryAfter", nextRetryAfter, @@ -279,7 +279,7 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private WebhooksConfig config; + private WebhooksConfig webhooksConfig; private OffsetDateTime createdAt; @@ -304,9 +304,9 @@ private Builder() { } - public Builder config(WebhooksConfig config) { - Utils.checkNotNull(config, "config"); - this.config = config; + public Builder webhooksConfig(WebhooksConfig webhooksConfig) { + Utils.checkNotNull(webhooksConfig, "webhooksConfig"); + this.webhooksConfig = webhooksConfig; return this; } @@ -382,7 +382,7 @@ public Builder webhookID(String webhookID) { public Attempt build() { return new Attempt( - config, createdAt, id, + webhooksConfig, createdAt, id, nextRetryAfter, payload, retryAttempt, status, statusCode, updatedAt, webhookID); diff --git a/src/main/java/com/formance/formance_sdk/models/webhooks/AttemptResponse.java b/src/main/java/com/formance/formance_sdk/models/webhooks/AttemptResponse.java new file mode 100644 index 000000000..d832b9e77 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/AttemptResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.webhooks; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class AttemptResponse { + + @JsonProperty("data") + private Attempt attempt; + + @JsonCreator + public AttemptResponse( + @JsonProperty("data") Attempt attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + } + + @JsonIgnore + public Attempt attempt() { + return attempt; + } + + public static Builder builder() { + return new Builder(); + } + + + public AttemptResponse withAttempt(Attempt attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttemptResponse other = (AttemptResponse) o; + return + Utils.enhancedDeepEquals(this.attempt, other.attempt); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + attempt); + } + + @Override + public String toString() { + return Utils.toString(AttemptResponse.class, + "attempt", attempt); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Attempt attempt; + + private Builder() { + // force use of static builder() method + } + + + public Builder attempt(Attempt attempt) { + Utils.checkNotNull(attempt, "attempt"); + this.attempt = attempt; + return this; + } + + public AttemptResponse build() { + + return new AttemptResponse( + attempt); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigChangeSecret.java b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigChangeSecret.java similarity index 97% rename from src/main/java/com/formance/formance_sdk/models/shared/ConfigChangeSecret.java rename to src/main/java/com/formance/formance_sdk/models/webhooks/ConfigChangeSecret.java index 066e50fdd..47fc9edcc 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigChangeSecret.java +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigChangeSecret.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.webhooks; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigResponse.java b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigResponse.java new file mode 100644 index 000000000..5e7aea91d --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigResponse.java @@ -0,0 +1,90 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.webhooks; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Override; +import java.lang.String; + + +public class ConfigResponse { + + @JsonProperty("data") + private WebhooksConfig webhooksConfig; + + @JsonCreator + public ConfigResponse( + @JsonProperty("data") WebhooksConfig webhooksConfig) { + Utils.checkNotNull(webhooksConfig, "webhooksConfig"); + this.webhooksConfig = webhooksConfig; + } + + @JsonIgnore + public WebhooksConfig webhooksConfig() { + return webhooksConfig; + } + + public static Builder builder() { + return new Builder(); + } + + + public ConfigResponse withWebhooksConfig(WebhooksConfig webhooksConfig) { + Utils.checkNotNull(webhooksConfig, "webhooksConfig"); + this.webhooksConfig = webhooksConfig; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfigResponse other = (ConfigResponse) o; + return + Utils.enhancedDeepEquals(this.webhooksConfig, other.webhooksConfig); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + webhooksConfig); + } + + @Override + public String toString() { + return Utils.toString(ConfigResponse.class, + "webhooksConfig", webhooksConfig); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private WebhooksConfig webhooksConfig; + + private Builder() { + // force use of static builder() method + } + + + public Builder webhooksConfig(WebhooksConfig webhooksConfig) { + Utils.checkNotNull(webhooksConfig, "webhooksConfig"); + this.webhooksConfig = webhooksConfig; + return this; + } + + public ConfigResponse build() { + + return new ConfigResponse( + webhooksConfig); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigUser.java b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigUser.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/ConfigUser.java rename to src/main/java/com/formance/formance_sdk/models/webhooks/ConfigUser.java index d0e22f807..c34a23728 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigUser.java +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigUser.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.webhooks; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponse.java b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigsResponse.java similarity index 82% rename from src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponse.java rename to src/main/java/com/formance/formance_sdk/models/webhooks/ConfigsResponse.java index 2908a5a03..cd3a8cbea 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/ConfigsResponse.java +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/ConfigsResponse.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.webhooks; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -14,17 +14,17 @@ public class ConfigsResponse { @JsonProperty("cursor") - private ConfigsResponseCursor cursor; + private Cursor cursor; @JsonCreator public ConfigsResponse( - @JsonProperty("cursor") ConfigsResponseCursor cursor) { + @JsonProperty("cursor") Cursor cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = cursor; } @JsonIgnore - public ConfigsResponseCursor cursor() { + public Cursor cursor() { return cursor; } @@ -33,7 +33,7 @@ public static Builder builder() { } - public ConfigsResponse withCursor(ConfigsResponseCursor cursor) { + public ConfigsResponse withCursor(Cursor cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = cursor; return this; @@ -67,14 +67,14 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - private ConfigsResponseCursor cursor; + private Cursor cursor; private Builder() { // force use of static builder() method } - public Builder cursor(ConfigsResponseCursor cursor) { + public Builder cursor(Cursor cursor) { Utils.checkNotNull(cursor, "cursor"); this.cursor = cursor; return this; diff --git a/src/main/java/com/formance/formance_sdk/models/webhooks/Cursor.java b/src/main/java/com/formance/formance_sdk/models/webhooks/Cursor.java new file mode 100644 index 000000000..c66de4550 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/Cursor.java @@ -0,0 +1,121 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.webhooks; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.formance.formance_sdk.utils.Utils; +import java.lang.Boolean; +import java.lang.Override; +import java.lang.String; +import java.util.List; + + +public class Cursor { + + @JsonProperty("data") + private List data; + + + @JsonProperty("hasMore") + private boolean hasMore; + + @JsonCreator + public Cursor( + @JsonProperty("data") List data, + @JsonProperty("hasMore") boolean hasMore) { + Utils.checkNotNull(data, "data"); + Utils.checkNotNull(hasMore, "hasMore"); + this.data = data; + this.hasMore = hasMore; + } + + @JsonIgnore + public List data() { + return data; + } + + @JsonIgnore + public boolean hasMore() { + return hasMore; + } + + public static Builder builder() { + return new Builder(); + } + + + public Cursor withData(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + public Cursor withHasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Cursor other = (Cursor) o; + return + Utils.enhancedDeepEquals(this.data, other.data) && + Utils.enhancedDeepEquals(this.hasMore, other.hasMore); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + data, hasMore); + } + + @Override + public String toString() { + return Utils.toString(Cursor.class, + "data", data, + "hasMore", hasMore); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private List data; + + private Boolean hasMore; + + private Builder() { + // force use of static builder() method + } + + + public Builder data(List data) { + Utils.checkNotNull(data, "data"); + this.data = data; + return this; + } + + + public Builder hasMore(boolean hasMore) { + Utils.checkNotNull(hasMore, "hasMore"); + this.hasMore = hasMore; + return this; + } + + public Cursor build() { + + return new Cursor( + data, hasMore); + } + + } +} diff --git a/src/main/java/com/formance/formance_sdk/models/webhooks/ErrorResponse.java b/src/main/java/com/formance/formance_sdk/models/webhooks/ErrorResponse.java new file mode 100644 index 000000000..0779f3b80 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/ErrorResponse.java @@ -0,0 +1,241 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.webhooks; + +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.formance.formance_sdk.models.errors.SDKBaseError; +import com.formance.formance_sdk.utils.Utils; +import jakarta.annotation.Nonnull; +import jakarta.annotation.Nullable; +import java.io.InputStream; +import java.lang.Deprecated; +import java.lang.Override; +import java.lang.String; +import java.lang.SuppressWarnings; +import java.lang.Throwable; +import java.net.http.HttpResponse; +import java.util.Optional; + +@SuppressWarnings("serial") +public class ErrorResponse extends SDKBaseError { + + @Nullable + private final Data data; + + @Nullable + private final Throwable deserializationException; + + public ErrorResponse( + int code, + byte[] body, + HttpResponse rawResponse, + @Nullable Data data, + @Nullable Throwable deserializationException) { + super("API error occurred", code, body, rawResponse, null); + this.data = data; + this.deserializationException = deserializationException; + } + + /** + * Parse a response into an instance of ErrorResponse. If deserialization of the response body fails, + * the resulting ErrorResponse instance will have a null data() value and a non-null deserializationException(). + */ + public static ErrorResponse from(HttpResponse response) { + try { + byte[] bytes = Utils.extractByteArrayFromBody(response); + Data data = Utils.mapper().readValue(bytes, Data.class); + return new ErrorResponse(response.statusCode(), bytes, response, data, null); + } catch (Exception e) { + return new ErrorResponse(response.statusCode(), null, response, null, e); + } + } + + @Deprecated + public Optional errorsEnum() { + return data().map(Data::errorsEnum); + } + + @Deprecated + public Optional details() { + return data().flatMap(Data::details); + } + + @Deprecated + public Optional errorMessage() { + return data().map(Data::errorMessage); + } + + public Optional data() { + return Optional.ofNullable(data); + } + + /** + * Returns the exception if an error occurs while deserializing the response body. + */ + public Optional deserializationException() { + return Optional.ofNullable(deserializationException); + } + + public static class Data { + + @JsonProperty("errorCode") + private ErrorsEnum errorsEnum; + + + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("details") + private Optional details; + + + @JsonProperty("errorMessage") + private String errorMessage; + + @JsonCreator + public Data( + @JsonProperty("errorCode") ErrorsEnum errorsEnum, + @JsonProperty("details") Optional details, + @JsonProperty("errorMessage") String errorMessage) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + Utils.checkNotNull(details, "details"); + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorsEnum = errorsEnum; + this.details = details; + this.errorMessage = errorMessage; + } + + public Data( + ErrorsEnum errorsEnum, + String errorMessage) { + this(errorsEnum, Optional.empty(), errorMessage); + } + + @JsonIgnore + public ErrorsEnum errorsEnum() { + return errorsEnum; + } + + @JsonIgnore + public Optional details() { + return details; + } + + @JsonIgnore + public String errorMessage() { + return errorMessage; + } + + public static Builder builder() { + return new Builder(); + } + + + public Data withErrorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; + return this; + } + + public Data withDetails(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + + public Data withDetails(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + public Data withErrorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Data other = (Data) o; + return + Utils.enhancedDeepEquals(this.errorsEnum, other.errorsEnum) && + Utils.enhancedDeepEquals(this.details, other.details) && + Utils.enhancedDeepEquals(this.errorMessage, other.errorMessage); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + errorsEnum, details, errorMessage); + } + + @Override + public String toString() { + return Utils.toString(Data.class, + "errorsEnum", errorsEnum, + "details", details, + "errorMessage", errorMessage); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private ErrorsEnum errorsEnum; + + private Optional details = Optional.empty(); + + private String errorMessage; + + private Builder() { + // force use of static builder() method + } + + + public Builder errorsEnum(ErrorsEnum errorsEnum) { + Utils.checkNotNull(errorsEnum, "errorsEnum"); + this.errorsEnum = errorsEnum; + return this; + } + + + public Builder details(String details) { + Utils.checkNotNull(details, "details"); + this.details = Optional.ofNullable(details); + return this; + } + + public Builder details(Optional details) { + Utils.checkNotNull(details, "details"); + this.details = details; + return this; + } + + + public Builder errorMessage(String errorMessage) { + Utils.checkNotNull(errorMessage, "errorMessage"); + this.errorMessage = errorMessage; + return this; + } + + public Data build() { + + return new Data( + errorsEnum, details, errorMessage); + } + + } + } + +} + diff --git a/src/main/java/com/formance/formance_sdk/models/webhooks/ErrorsEnum.java b/src/main/java/com/formance/formance_sdk/models/webhooks/ErrorsEnum.java new file mode 100644 index 000000000..3f2895977 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/ErrorsEnum.java @@ -0,0 +1,36 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.models.webhooks; + +import com.fasterxml.jackson.annotation.JsonValue; +import java.lang.String; +import java.util.Objects; +import java.util.Optional; + +public enum ErrorsEnum { + INTERNAL("INTERNAL"), + VALIDATION("VALIDATION"), + NOT_FOUND("NOT_FOUND"); + + @JsonValue + private final String value; + + ErrorsEnum(String value) { + this.value = value; + } + + public String value() { + return value; + } + + public static Optional fromValue(String value) { + for (ErrorsEnum o: ErrorsEnum.values()) { + if (Objects.deepEquals(o.value, value)) { + return Optional.of(o); + } + } + return Optional.empty(); + } +} + diff --git a/src/main/java/com/formance/formance_sdk/models/shared/WebhooksConfig.java b/src/main/java/com/formance/formance_sdk/models/webhooks/WebhooksConfig.java similarity index 99% rename from src/main/java/com/formance/formance_sdk/models/shared/WebhooksConfig.java rename to src/main/java/com/formance/formance_sdk/models/webhooks/WebhooksConfig.java index b5d5c5324..bf7c8496e 100644 --- a/src/main/java/com/formance/formance_sdk/models/shared/WebhooksConfig.java +++ b/src/main/java/com/formance/formance_sdk/models/webhooks/WebhooksConfig.java @@ -1,7 +1,7 @@ /* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ -package com.formance.formance_sdk.models.shared; +package com.formance.formance_sdk.models.webhooks; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; diff --git a/src/main/java/com/formance/formance_sdk/operations/ActivateConfig.java b/src/main/java/com/formance/formance_sdk/operations/ActivateConfig.java index ecbb7c1fc..84c55eb11 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ActivateConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/ActivateConfig.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.ActivateConfigRequest; import com.formance.formance_sdk.models.operations.ActivateConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ActivateConfig { + + /** + * ACTIVATE_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] ACTIVATE_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + ACTIVATE_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ActivateConfigRequest request) throws Exception { @@ -158,7 +175,7 @@ public ActivateConfigResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/AddAccountToPool.java b/src/main/java/com/formance/formance_sdk/operations/AddAccountToPool.java index 80d96c157..60df4794b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/AddAccountToPool.java +++ b/src/main/java/com/formance/formance_sdk/operations/AddAccountToPool.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.AddAccountToPoolRequest; import com.formance.formance_sdk.models.operations.AddAccountToPoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class AddAccountToPool { + + /** + * ADD_ACCOUNT_TO_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] ADD_ACCOUNT_TO_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + ADD_ACCOUNT_TO_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(AddAccountToPoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/AddMetadataOnTransaction.java b/src/main/java/com/formance/formance_sdk/operations/AddMetadataOnTransaction.java index a9175eaa7..54c5d27e3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/AddMetadataOnTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/AddMetadataOnTransaction.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.AddMetadataOnTransactionRequest; import com.formance.formance_sdk.models.operations.AddMetadataOnTransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class AddMetadataOnTransaction { + + /** + * ADD_METADATA_ON_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] ADD_METADATA_ON_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + ADD_METADATA_ON_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(AddMetadataOnTransactionRequest request) throws Exception { @@ -172,7 +189,7 @@ public AddMetadataOnTransactionResponse handleResponse(HttpResponse } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/AddMetadataToAccount.java b/src/main/java/com/formance/formance_sdk/operations/AddMetadataToAccount.java index 57c67b04a..14e4d1f85 100644 --- a/src/main/java/com/formance/formance_sdk/operations/AddMetadataToAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/AddMetadataToAccount.java @@ -9,8 +9,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.AddMetadataToAccountRequest; import com.formance.formance_sdk.models.operations.AddMetadataToAccountResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class AddMetadataToAccount { + + /** + * ADD_METADATA_TO_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] ADD_METADATA_TO_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + ADD_METADATA_TO_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(AddMetadataToAccountRequest request) throws Exception { @@ -172,7 +189,7 @@ public AddMetadataToAccountResponse handleResponse(HttpResponse res } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CancelEvent.java b/src/main/java/com/formance/formance_sdk/operations/CancelEvent.java index 88a13d34f..518ca3695 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CancelEvent.java +++ b/src/main/java/com/formance/formance_sdk/operations/CancelEvent.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CancelEventRequest; import com.formance.formance_sdk.models.operations.CancelEventResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CancelEvent { + + /** + * CANCEL_EVENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CANCEL_EVENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CANCEL_EVENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CancelEventRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ChangeConfigSecret.java b/src/main/java/com/formance/formance_sdk/operations/ChangeConfigSecret.java index b7ff5db67..ddd8fbce3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ChangeConfigSecret.java +++ b/src/main/java/com/formance/formance_sdk/operations/ChangeConfigSecret.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.ChangeConfigSecretRequest; import com.formance.formance_sdk.models.operations.ChangeConfigSecretResponse; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ChangeConfigSecret { + + /** + * CHANGE_CONFIG_SECRET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CHANGE_CONFIG_SECRET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CHANGE_CONFIG_SECRET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ChangeConfigSecretRequest request) throws Exception { @@ -171,7 +188,7 @@ public ChangeConfigSecretResponse handleResponse(HttpResponse respo } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ConfirmHold.java b/src/main/java/com/formance/formance_sdk/operations/ConfirmHold.java index b1a9b774d..a04a8a944 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ConfirmHold.java +++ b/src/main/java/com/formance/formance_sdk/operations/ConfirmHold.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.ConfirmHoldRequest; import com.formance.formance_sdk.models.operations.ConfirmHoldResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ConfirmHold { + + /** + * CONFIRM_HOLD_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CONFIRM_HOLD_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CONFIRM_HOLD_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ConfirmHoldRequest request) throws Exception { @@ -168,7 +185,7 @@ public ConfirmHoldResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ConnectorsTransfer.java b/src/main/java/com/formance/formance_sdk/operations/ConnectorsTransfer.java index 55d4dd42f..0ee56951d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ConnectorsTransfer.java +++ b/src/main/java/com/formance/formance_sdk/operations/ConnectorsTransfer.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ConnectorsTransferRequest; import com.formance.formance_sdk.models.operations.ConnectorsTransferResponse; -import com.formance.formance_sdk.models.shared.TransferResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TransferResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ConnectorsTransfer { + + /** + * CONNECTORS_TRANSFER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CONNECTORS_TRANSFER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CONNECTORS_TRANSFER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ConnectorsTransferRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/CountAccounts.java b/src/main/java/com/formance/formance_sdk/operations/CountAccounts.java index 08f8cb4b2..1f897da93 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CountAccounts.java +++ b/src/main/java/com/formance/formance_sdk/operations/CountAccounts.java @@ -8,8 +8,8 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.CountAccountsRequest; import com.formance.formance_sdk.models.operations.CountAccountsResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CountAccounts { + + /** + * COUNT_ACCOUNTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] COUNT_ACCOUNTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + COUNT_ACCOUNTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CountAccountsRequest request) throws Exception { @@ -159,7 +176,7 @@ public CountAccountsResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CountTransactions.java b/src/main/java/com/formance/formance_sdk/operations/CountTransactions.java index 2d2874c66..e682e35ba 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CountTransactions.java +++ b/src/main/java/com/formance/formance_sdk/operations/CountTransactions.java @@ -8,8 +8,8 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.CountTransactionsRequest; import com.formance.formance_sdk.models.operations.CountTransactionsResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CountTransactions { + + /** + * COUNT_TRANSACTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] COUNT_TRANSACTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + COUNT_TRANSACTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CountTransactionsRequest request) throws Exception { @@ -159,7 +176,7 @@ public CountTransactionsResponse handleResponse(HttpResponse respon } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateAccount.java b/src/main/java/com/formance/formance_sdk/operations/CreateAccount.java index 37efcd337..8c287df33 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateAccount.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreateAccountResponse; -import com.formance.formance_sdk.models.shared.AccountRequest; -import com.formance.formance_sdk.models.shared.PaymentsAccountResponse; +import com.formance.formance_sdk.models.payments.AccountRequest; +import com.formance.formance_sdk.models.payments.AccountResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateAccount { + + /** + * CREATE_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(AccountRequest request) throws Exception { @@ -166,7 +183,7 @@ public CreateAccountResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withPaymentsAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateBalance.java b/src/main/java/com/formance/formance_sdk/operations/CreateBalance.java index 91fbc8bb4..f8d86d34f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateBalance.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateBalance.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.CreateBalanceRequest; import com.formance.formance_sdk.models.operations.CreateBalanceResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateBalance { + + /** + * CREATE_BALANCE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_BALANCE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_BALANCE_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,7 +105,7 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "createBalanceRequest", + "balance", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CreateBalanceRequest request) throws Exception { @@ -164,14 +181,14 @@ public CreateBalanceResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withCreateBalanceResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateBalanceResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/CreateBankAccount.java index 83486dae5..5e6660d54 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateBankAccount.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreateBankAccountResponse; -import com.formance.formance_sdk.models.shared.BankAccountRequest; -import com.formance.formance_sdk.models.shared.BankAccountResponse; +import com.formance.formance_sdk.models.payments.BankAccountRequest; +import com.formance.formance_sdk.models.payments.BankAccountResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateBankAccount { + + /** + * CREATE_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_BANK_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(BankAccountRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateClient.java b/src/main/java/com/formance/formance_sdk/operations/CreateClient.java index acdb1fdb6..3b60d83f9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateClient.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateClient.java @@ -9,9 +9,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.auth.ClientOptions2; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreateClientResponse; -import com.formance.formance_sdk.models.shared.CreateClientRequest; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -27,10 +27,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateClient { + + /** + * CREATE_CLIENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_CLIENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -39,11 +47,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_CLIENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -103,13 +116,17 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, CreateClientResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + implements RequestOperation, CreateClientResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -125,7 +142,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(Optional request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -160,7 +177,7 @@ public CreateClientResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withCreateClientResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateClientResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreatePayment.java b/src/main/java/com/formance/formance_sdk/operations/CreatePayment.java index 81c556ee1..2e324a5cb 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreatePayment.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreatePayment.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreatePaymentResponse; -import com.formance.formance_sdk.models.shared.PaymentRequest; -import com.formance.formance_sdk.models.shared.PaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentRequest; +import com.formance.formance_sdk.models.payments.PaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreatePayment { + + /** + * CREATE_PAYMENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_PAYMENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_PAYMENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(PaymentRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/CreatePolicy.java b/src/main/java/com/formance/formance_sdk/operations/CreatePolicy.java index a6683337d..c7bb512d9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreatePolicy.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreatePolicy.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreatePolicyResponse; -import com.formance.formance_sdk.models.shared.PolicyRequest; -import com.formance.formance_sdk.models.shared.PolicyResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.PolicyRequest; +import com.formance.formance_sdk.models.reconciliation.PolicyResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreatePolicy { + + /** + * CREATE_POLICY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_POLICY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_POLICY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(PolicyRequest request) throws Exception { @@ -173,7 +190,7 @@ public CreatePolicyResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreatePool.java b/src/main/java/com/formance/formance_sdk/operations/CreatePool.java index 3a4908896..c2a961a56 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreatePool.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreatePool.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreatePoolResponse; -import com.formance.formance_sdk.models.shared.PoolRequest; -import com.formance.formance_sdk.models.shared.PoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.PoolRequest; +import com.formance.formance_sdk.models.payments.PoolResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreatePool { + + /** + * CREATE_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(PoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateSecret.java b/src/main/java/com/formance/formance_sdk/operations/CreateSecret.java index ec99cac60..6a14a8ce2 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateSecret.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateSecret.java @@ -27,10 +27,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateSecret { + + /** + * CREATE_SECRET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_SECRET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -39,11 +47,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_SECRET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -91,7 +104,7 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "createSecretRequest", + "secretOptions", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); @@ -106,8 +119,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CreateSecretRequest request) throws Exception { @@ -162,7 +179,7 @@ public CreateSecretResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withCreateSecretResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateSecretResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateTransaction.java b/src/main/java/com/formance/formance_sdk/operations/CreateTransaction.java index 8cc1da27c..a43bd6471 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateTransaction.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.TransactionsResponse; import com.formance.formance_sdk.models.operations.CreateTransactionRequest; import com.formance.formance_sdk.models.operations.CreateTransactionResponse; -import com.formance.formance_sdk.models.shared.TransactionsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateTransaction { + + /** + * CREATE_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -117,8 +130,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CreateTransactionRequest request) throws Exception { @@ -181,7 +198,7 @@ public CreateTransactionResponse handleResponse(HttpResponse respon } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateTransactions.java b/src/main/java/com/formance/formance_sdk/operations/CreateTransactions.java index 2c7125706..aaf929b4e 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateTransactions.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateTransactions.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.TransactionsResponse; import com.formance.formance_sdk.models.operations.CreateTransactionsRequest; import com.formance.formance_sdk.models.operations.CreateTransactionsResponse; -import com.formance.formance_sdk.models.shared.TransactionsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateTransactions { + + /** + * CREATE_TRANSACTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_TRANSACTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_TRANSACTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CreateTransactionsRequest request) throws Exception { @@ -175,7 +192,7 @@ public CreateTransactionsResponse handleResponse(HttpResponse respo } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateTransferInitiation.java b/src/main/java/com/formance/formance_sdk/operations/CreateTransferInitiation.java index 8d2901e56..9ad6fb47a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateTransferInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateTransferInitiation.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreateTransferInitiationResponse; -import com.formance.formance_sdk.models.shared.TransferInitiationRequest; -import com.formance.formance_sdk.models.shared.TransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TransferInitiationRequest; +import com.formance.formance_sdk.models.payments.TransferInitiationResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateTransferInitiation { + + /** + * CREATE_TRANSFER_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_TRANSFER_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_TRANSFER_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(TransferInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateTrigger.java b/src/main/java/com/formance/formance_sdk/operations/CreateTrigger.java index a50298e31..1b8b63708 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateTrigger.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateTrigger.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreateTriggerResponse; -import com.formance.formance_sdk.models.shared.TriggerData; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.TriggerData2; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateTrigger { + + /** + * CREATE_TRIGGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_TRIGGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -104,13 +117,17 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, CreateTriggerResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + implements RequestOperation, CreateTriggerResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -126,7 +143,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(Optional request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -161,7 +178,7 @@ public CreateTriggerResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withCreateTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateWallet.java b/src/main/java/com/formance/formance_sdk/operations/CreateWallet.java index 4d237239a..39887782c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateWallet.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateWallet.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.CreateWalletRequest; import com.formance.formance_sdk.models.operations.CreateWalletResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateWallet { + + /** + * CREATE_WALLET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_WALLET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_WALLET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -106,8 +119,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CreateWalletRequest request) throws Exception { @@ -162,14 +179,14 @@ public CreateWalletResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withCreateWalletResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateWalletResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreateWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/CreateWorkflow.java index b11ba3e0c..cfb9dec11 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreateWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreateWorkflow.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.CreateWorkflowResponse; -import com.formance.formance_sdk.models.shared.CreateWorkflowRequest; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.WorkflowConfig; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreateWorkflow { + + /** + * CREATE_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREATE_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREATE_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -104,13 +117,17 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, CreateWorkflowResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + implements RequestOperation, CreateWorkflowResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -126,7 +143,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(Optional request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -161,7 +178,7 @@ public CreateWorkflowResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withCreateWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/CreditWallet.java b/src/main/java/com/formance/formance_sdk/operations/CreditWallet.java index 784673c18..dc863b875 100644 --- a/src/main/java/com/formance/formance_sdk/operations/CreditWallet.java +++ b/src/main/java/com/formance/formance_sdk/operations/CreditWallet.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.CreditWalletRequest; import com.formance.formance_sdk.models.operations.CreditWalletResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class CreditWallet { + + /** + * CREDIT_WALLET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] CREDIT_WALLET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + CREDIT_WALLET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(CreditWalletRequest request) throws Exception { @@ -168,7 +185,7 @@ public CreditWalletResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/DeactivateConfig.java b/src/main/java/com/formance/formance_sdk/operations/DeactivateConfig.java index 202321de1..965f3a89f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeactivateConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeactivateConfig.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.DeactivateConfigRequest; import com.formance.formance_sdk.models.operations.DeactivateConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeactivateConfig { + + /** + * DEACTIVATE_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DEACTIVATE_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DEACTIVATE_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeactivateConfigRequest request) throws Exception { @@ -158,7 +175,7 @@ public DeactivateConfigResponse handleResponse(HttpResponse respons } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/DebitWallet.java b/src/main/java/com/formance/formance_sdk/operations/DebitWallet.java index eda9a7a8b..f6aa7cc64 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DebitWallet.java +++ b/src/main/java/com/formance/formance_sdk/operations/DebitWallet.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.DebitWalletRequest; import com.formance.formance_sdk.models.operations.DebitWalletResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DebitWallet { + + /** + * DEBIT_WALLET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DEBIT_WALLET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DEBIT_WALLET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DebitWalletRequest request) throws Exception { @@ -164,7 +181,7 @@ public DebitWalletResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withDebitWalletResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withDebitWalletResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } @@ -175,7 +192,7 @@ public DebitWalletResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/DeleteClient.java b/src/main/java/com/formance/formance_sdk/operations/DeleteClient.java index 3771af63a..469111a8b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeleteClient.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeleteClient.java @@ -23,10 +23,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeleteClient { + + /** + * DELETE_CLIENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_CLIENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -35,11 +43,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_CLIENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeleteClientRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/DeleteConfig.java b/src/main/java/com/formance/formance_sdk/operations/DeleteConfig.java index 44bc7e12c..2624ce9bf 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeleteConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeleteConfig.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.DeleteConfigRequest; import com.formance.formance_sdk.models.operations.DeleteConfigResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeleteConfig { + + /** + * DELETE_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeleteConfigRequest request) throws Exception { @@ -153,7 +170,7 @@ public DeleteConfigResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/DeletePolicy.java b/src/main/java/com/formance/formance_sdk/operations/DeletePolicy.java index 14d8ff8b2..749ac9814 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeletePolicy.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeletePolicy.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.DeletePolicyRequest; import com.formance.formance_sdk.models.operations.DeletePolicyResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeletePolicy { + + /** + * DELETE_POLICY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_POLICY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_POLICY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeletePolicyRequest request) throws Exception { @@ -153,7 +170,7 @@ public DeletePolicyResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/DeletePool.java b/src/main/java/com/formance/formance_sdk/operations/DeletePool.java index 1e863822d..a8563f8d4 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeletePool.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeletePool.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.DeletePoolRequest; import com.formance.formance_sdk.models.operations.DeletePoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeletePool { + + /** + * DELETE_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeletePoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/DeleteSecret.java b/src/main/java/com/formance/formance_sdk/operations/DeleteSecret.java index 6cce1b339..f47eae03c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeleteSecret.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeleteSecret.java @@ -23,10 +23,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeleteSecret { + + /** + * DELETE_SECRET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_SECRET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -35,11 +43,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_SECRET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeleteSecretRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/DeleteTransferInitiation.java b/src/main/java/com/formance/formance_sdk/operations/DeleteTransferInitiation.java index 8d4534265..bbfa6408a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeleteTransferInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeleteTransferInitiation.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.DeleteTransferInitiationRequest; import com.formance.formance_sdk.models.operations.DeleteTransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeleteTransferInitiation { + + /** + * DELETE_TRANSFER_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_TRANSFER_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_TRANSFER_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeleteTransferInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/DeleteTrigger.java b/src/main/java/com/formance/formance_sdk/operations/DeleteTrigger.java index 739ff62bf..98aa1d4bb 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeleteTrigger.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeleteTrigger.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.DeleteTriggerRequest; import com.formance.formance_sdk.models.operations.DeleteTriggerResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeleteTrigger { + + /** + * DELETE_TRIGGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_TRIGGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeleteTriggerRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/DeleteWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/DeleteWorkflow.java index b135c5949..627f7efb5 100644 --- a/src/main/java/com/formance/formance_sdk/operations/DeleteWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/DeleteWorkflow.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.DeleteWorkflowRequest; import com.formance.formance_sdk.models.operations.DeleteWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class DeleteWorkflow { + + /** + * DELETE_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] DELETE_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + DELETE_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(DeleteWorkflowRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ForwardBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/ForwardBankAccount.java index 6cb33c248..794cc0b5f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ForwardBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/ForwardBankAccount.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ForwardBankAccountRequest; import com.formance.formance_sdk.models.operations.ForwardBankAccountResponse; -import com.formance.formance_sdk.models.shared.BankAccountResponse; +import com.formance.formance_sdk.models.payments.BankAccountResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ForwardBankAccount { + + /** + * FORWARD_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] FORWARD_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + FORWARD_BANK_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ForwardBankAccountRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetAccount.java b/src/main/java/com/formance/formance_sdk/operations/GetAccount.java deleted file mode 100644 index 23fcb3e8d..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/GetAccount.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.GetAccountRequest; -import com.formance.formance_sdk.models.operations.GetAccountResponse; -import com.formance.formance_sdk.models.shared.AccountResponse; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class GetAccount { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "getAccount", - java.util.Optional.of(java.util.List.of("ledger:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "getAccount", - java.util.Optional.of(java.util.List.of("ledger:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "getAccount", - java.util.Optional.of(java.util.List.of("ledger:read")), - securitySource()); - } - HttpRequest buildRequest(T request, Class klass) throws Exception { - String url = Utils.generateURL( - klass, - this.baseUrl, - "/api/ledger/{ledger}/accounts/{address}", - request, null); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest(GetAccountRequest request) throws Exception { - HttpRequest req = buildRequest(request, GetAccountRequest.class); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest(GetAccountRequest request) { - HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public GetAccountResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetAccountResponse.Builder resBuilder = - GetAccountResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - GetAccountResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withAccountResponse(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetAccountBalances.java b/src/main/java/com/formance/formance_sdk/operations/GetAccountBalances.java index 853a4ebab..e871a5b93 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetAccountBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetAccountBalances.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetAccountBalancesRequest; import com.formance.formance_sdk.models.operations.GetAccountBalancesResponse; -import com.formance.formance_sdk.models.shared.BalancesCursor; +import com.formance.formance_sdk.models.payments.BalancesCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetAccountBalances { + + /** + * GET_ACCOUNT_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_ACCOUNT_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_ACCOUNT_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetAccountBalancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetAccountLedger.java b/src/main/java/com/formance/formance_sdk/operations/GetAccountLedger.java new file mode 100644 index 000000000..4ca52b474 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetAccountLedger.java @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.AccountResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.operations.GetAccountLedgerRequest; +import com.formance.formance_sdk.models.operations.GetAccountLedgerResponse; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetAccountLedger { + + /** + * GET_ACCOUNT_LEDGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_ACCOUNT_LEDGER_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_ACCOUNT_LEDGER_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccount_ledger", + java.util.Optional.of(java.util.List.of("ledger:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccount_ledger", + java.util.Optional.of(java.util.List.of("ledger:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccount_ledger", + java.util.Optional.of(java.util.List.of("ledger:read")), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/api/ledger/{ledger}/accounts/{address}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest(GetAccountLedgerRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetAccountLedgerRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetAccountLedgerRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetAccountLedgerResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetAccountLedgerResponse.Builder resBuilder = + GetAccountLedgerResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetAccountLedgerResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ErrorsErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetAccountPayments.java b/src/main/java/com/formance/formance_sdk/operations/GetAccountPayments.java new file mode 100644 index 000000000..5c464201b --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetAccountPayments.java @@ -0,0 +1,186 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsRequest; +import com.formance.formance_sdk.models.operations.GetAccountPaymentsResponse; +import com.formance.formance_sdk.models.payments.AccountResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetAccountPayments { + + /** + * GET_ACCOUNT_PAYMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_ACCOUNT_PAYMENTS_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_ACCOUNT_PAYMENTS_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccount_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccount_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getAccount_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/api/payments/accounts/{accountId}", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest(GetAccountPaymentsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetAccountPaymentsRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(GetAccountPaymentsRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetAccountPaymentsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetAccountPaymentsResponse.Builder resBuilder = + GetAccountPaymentsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetAccountPaymentsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw PaymentsErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetBalance.java b/src/main/java/com/formance/formance_sdk/operations/GetBalance.java index 695c12b45..ff470a26f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetBalance.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetBalance.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetBalanceRequest; import com.formance.formance_sdk.models.operations.GetBalanceResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetBalance { + + /** + * GET_BALANCE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_BALANCE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_BALANCE_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetBalanceRequest request) throws Exception { @@ -150,14 +167,14 @@ public GetBalanceResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetBalanceResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetBalanceResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetBalances.java b/src/main/java/com/formance/formance_sdk/operations/GetBalances.java index 65b682d78..880c20e68 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetBalances.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.BalancesCursorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetBalancesRequest; import com.formance.formance_sdk.models.operations.GetBalancesResponse; -import com.formance.formance_sdk.models.shared.BalancesCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetBalances { + + /** + * GET_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetBalancesRequest request) throws Exception { @@ -163,7 +180,7 @@ public GetBalancesResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetBalancesAggregated.java b/src/main/java/com/formance/formance_sdk/operations/GetBalancesAggregated.java index 67ab8f048..1493d31a0 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetBalancesAggregated.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetBalancesAggregated.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.AggregateBalancesResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedRequest; import com.formance.formance_sdk.models.operations.GetBalancesAggregatedResponse; -import com.formance.formance_sdk.models.shared.AggregateBalancesResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetBalancesAggregated { + + /** + * GET_BALANCES_AGGREGATED_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_BALANCES_AGGREGATED_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_BALANCES_AGGREGATED_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetBalancesAggregatedRequest request) throws Exception { @@ -163,7 +180,7 @@ public GetBalancesAggregatedResponse handleResponse(HttpResponse re } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/GetBankAccount.java index a06279f00..e7c27ae0b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetBankAccount.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetBankAccountRequest; import com.formance.formance_sdk.models.operations.GetBankAccountResponse; -import com.formance.formance_sdk.models.shared.BankAccountResponse; +import com.formance.formance_sdk.models.payments.BankAccountResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetBankAccount { + + /** + * GET_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_BANK_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetBankAccountRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetConnectorTask.java b/src/main/java/com/formance/formance_sdk/operations/GetConnectorTask.java index 86ad1a4ca..5efe98769 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetConnectorTask.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetConnectorTask.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetConnectorTaskRequest; import com.formance.formance_sdk.models.operations.GetConnectorTaskResponse; -import com.formance.formance_sdk.models.shared.TaskResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TaskResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetConnectorTask { + + /** + * GET_CONNECTOR_TASK_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_CONNECTOR_TASK_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_CONNECTOR_TASK_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetConnectorTaskRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetConnectorTaskV1.java b/src/main/java/com/formance/formance_sdk/operations/GetConnectorTaskV1.java index a49938f0d..c46e2dfc1 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetConnectorTaskV1.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetConnectorTaskV1.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetConnectorTaskV1Request; import com.formance.formance_sdk.models.operations.GetConnectorTaskV1Response; -import com.formance.formance_sdk.models.shared.TaskResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TaskResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetConnectorTaskV1 { + + /** + * GET_CONNECTOR_TASK_V1_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_CONNECTOR_TASK_V1_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_CONNECTOR_TASK_V1_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetConnectorTaskV1Request request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetHold.java b/src/main/java/com/formance/formance_sdk/operations/GetHold.java index b66361b69..b6b73911c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetHold.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetHold.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetHoldRequest; import com.formance.formance_sdk.models.operations.GetHoldResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetHold { + + /** + * GET_HOLD_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_HOLD_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_HOLD_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetHoldRequest request) throws Exception { @@ -150,14 +167,14 @@ public GetHoldResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetHoldResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetHoldResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetHolds.java b/src/main/java/com/formance/formance_sdk/operations/GetHolds.java index c4c024fa1..c77ae7c09 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetHolds.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetHolds.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetHoldsRequest; import com.formance.formance_sdk.models.operations.GetHoldsResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetHolds { + + /** + * GET_HOLDS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_HOLDS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_HOLDS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -97,8 +110,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetHoldsRequest request) throws Exception { @@ -153,14 +170,14 @@ public GetHoldsResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetHoldsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetHoldsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetInfo.java b/src/main/java/com/formance/formance_sdk/operations/GetInfo.java index ddaf32cfb..36c3dc99c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetInfo.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetInfo.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ConfigInfoResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; import com.formance.formance_sdk.models.operations.GetInfoResponse; -import com.formance.formance_sdk.models.shared.ConfigInfoResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetInfo { + + /** + * GET_INFO_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_INFO_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_INFO_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -155,7 +172,7 @@ public GetInfoResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetInstance.java b/src/main/java/com/formance/formance_sdk/operations/GetInstance.java index 397f33f40..72f2cf619 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetInstance.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetInstance.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetInstanceRequest; import com.formance.formance_sdk.models.operations.GetInstanceResponse; -import com.formance.formance_sdk.models.shared.GetWorkflowInstanceResponse; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.GetWorkflowInstanceResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetInstance { + + /** + * GET_INSTANCE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_INSTANCE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_INSTANCE_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetInstanceRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetInstanceHistory.java b/src/main/java/com/formance/formance_sdk/operations/GetInstanceHistory.java index bd2c8fbe5..a0cdb1444 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetInstanceHistory.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetInstanceHistory.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetInstanceHistoryRequest; import com.formance.formance_sdk.models.operations.GetInstanceHistoryResponse; -import com.formance.formance_sdk.models.shared.GetWorkflowInstanceHistoryResponse; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.GetWorkflowInstanceHistoryResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetInstanceHistory { + + /** + * GET_INSTANCE_HISTORY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_INSTANCE_HISTORY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_INSTANCE_HISTORY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetInstanceHistoryRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetInstanceStageHistory.java b/src/main/java/com/formance/formance_sdk/operations/GetInstanceStageHistory.java index 7f9badf47..d2725765c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetInstanceStageHistory.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetInstanceStageHistory.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryRequest; import com.formance.formance_sdk.models.operations.GetInstanceStageHistoryResponse; -import com.formance.formance_sdk.models.shared.GetWorkflowInstanceHistoryStageResponse; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.GetWorkflowInstanceHistoryStageResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetInstanceStageHistory { + + /** + * GET_INSTANCE_STAGE_HISTORY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_INSTANCE_STAGE_HISTORY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_INSTANCE_STAGE_HISTORY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetInstanceStageHistoryRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetLedgerInfo.java b/src/main/java/com/formance/formance_sdk/operations/GetLedgerInfo.java index d2105c627..166dfbb6a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetLedgerInfo.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetLedgerInfo.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.LedgerInfoResponse; import com.formance.formance_sdk.models.operations.GetLedgerInfoRequest; import com.formance.formance_sdk.models.operations.GetLedgerInfoResponse; -import com.formance.formance_sdk.models.shared.LedgerInfoResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetLedgerInfo { + + /** + * GET_LEDGER_INFO_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_LEDGER_INFO_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_LEDGER_INFO_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetLedgerInfoRequest request) throws Exception { @@ -158,7 +175,7 @@ public GetLedgerInfoResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetManyConfigs.java b/src/main/java/com/formance/formance_sdk/operations/GetManyConfigs.java index bf3eb0e38..8547a98ed 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetManyConfigs.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetManyConfigs.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.GetManyConfigsRequest; import com.formance.formance_sdk.models.operations.GetManyConfigsResponse; -import com.formance.formance_sdk.models.shared.ConfigsResponse; +import com.formance.formance_sdk.models.webhooks.ConfigsResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetManyConfigs { + + /** + * GET_MANY_CONFIGS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_MANY_CONFIGS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_MANY_CONFIGS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetManyConfigsRequest request) throws Exception { @@ -161,7 +178,7 @@ public GetManyConfigsResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetMapping.java b/src/main/java/com/formance/formance_sdk/operations/GetMapping.java index 3e7971152..a8de7b2b3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetMapping.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetMapping.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.MappingResponse; import com.formance.formance_sdk.models.operations.GetMappingRequest; import com.formance.formance_sdk.models.operations.GetMappingResponse; -import com.formance.formance_sdk.models.shared.MappingResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetMapping { + + /** + * GET_MAPPING_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_MAPPING_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_MAPPING_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetMappingRequest request) throws Exception { @@ -158,7 +175,7 @@ public GetMappingResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetMetrics.java b/src/main/java/com/formance/formance_sdk/operations/GetMetrics.java index 9808416f7..f761d4234 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetMetrics.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetMetrics.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.GetMetricsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; @@ -30,6 +30,13 @@ public class GetMetrics { + + /** + * GET_METRICS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_METRICS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_METRICS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +105,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -156,7 +172,7 @@ public GetMetricsResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetOIDCWellKnowns.java b/src/main/java/com/formance/formance_sdk/operations/GetOIDCWellKnowns.java index 9f1b5e290..b673373b8 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetOIDCWellKnowns.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetOIDCWellKnowns.java @@ -22,10 +22,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetOIDCWellKnowns { + + /** + * GET_OIDC_WELL_KNOWNS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_OIDC_WELL_KNOWNS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -34,11 +42,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_OIDC_WELL_KNOWNS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -89,8 +102,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetPayment.java b/src/main/java/com/formance/formance_sdk/operations/GetPayment.java index 24f676522..3bf6a30b7 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetPayment.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetPayment.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetPaymentRequest; import com.formance.formance_sdk.models.operations.GetPaymentResponse; -import com.formance.formance_sdk.models.shared.PaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetPayment { + + /** + * GET_PAYMENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_PAYMENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_PAYMENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetPaymentRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetPolicy.java b/src/main/java/com/formance/formance_sdk/operations/GetPolicy.java index 8901a9da6..25c524833 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetPolicy.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetPolicy.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetPolicyRequest; import com.formance.formance_sdk.models.operations.GetPolicyResponse; -import com.formance.formance_sdk.models.shared.PolicyResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.PolicyResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetPolicy { + + /** + * GET_POLICY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_POLICY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_POLICY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetPolicyRequest request) throws Exception { @@ -158,7 +175,7 @@ public GetPolicyResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetPool.java b/src/main/java/com/formance/formance_sdk/operations/GetPool.java index c9d31bb4d..3f48162a6 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetPool.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetPool.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetPoolRequest; import com.formance.formance_sdk.models.operations.GetPoolResponse; -import com.formance.formance_sdk.models.shared.PoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.PoolResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetPool { + + /** + * GET_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetPoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetPoolBalances.java b/src/main/java/com/formance/formance_sdk/operations/GetPoolBalances.java index 3c8e9ba6d..123e03107 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetPoolBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetPoolBalances.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetPoolBalancesRequest; import com.formance.formance_sdk.models.operations.GetPoolBalancesResponse; -import com.formance.formance_sdk.models.shared.PoolBalancesResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.PoolBalancesResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetPoolBalances { + + /** + * GET_POOL_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_POOL_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_POOL_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetPoolBalancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetPoolBalancesLatest.java b/src/main/java/com/formance/formance_sdk/operations/GetPoolBalancesLatest.java index 8b01de21d..261b7f2ff 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetPoolBalancesLatest.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetPoolBalancesLatest.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetPoolBalancesLatestRequest; import com.formance.formance_sdk.models.operations.GetPoolBalancesLatestResponse; -import com.formance.formance_sdk.models.shared.PoolBalancesLatestResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.PoolBalancesLatestResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetPoolBalancesLatest { + + /** + * GET_POOL_BALANCES_LATEST_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_POOL_BALANCES_LATEST_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_POOL_BALANCES_LATEST_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetPoolBalancesLatestRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetReconciliation.java b/src/main/java/com/formance/formance_sdk/operations/GetReconciliation.java index ab5612ce9..368447b2f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetReconciliation.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetReconciliation.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetReconciliationRequest; import com.formance.formance_sdk.models.operations.GetReconciliationResponse; -import com.formance.formance_sdk.models.shared.ReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetReconciliation { + + /** + * GET_RECONCILIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_RECONCILIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_RECONCILIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetReconciliationRequest request) throws Exception { @@ -158,7 +175,7 @@ public GetReconciliationResponse handleResponse(HttpResponse respon } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfo.java deleted file mode 100644 index a86a0afea..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/GetServerInfo.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.GetServerInfoResponse; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class GetServerInfo { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "getServerInfo", - java.util.Optional.of(java.util.List.of("auth:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "getServerInfo", - java.util.Optional.of(java.util.List.of("auth:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "getServerInfo", - java.util.Optional.of(java.util.List.of("auth:read")), - securitySource()); - } - HttpRequest buildRequest() throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/auth/_info"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest() throws Exception { - HttpRequest req = buildRequest(); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest() { - HttpRequest r = unchecked(() -> onBuildRequest()).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public GetServerInfoResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - GetServerInfoResponse.Builder resBuilder = - GetServerInfoResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - GetServerInfoResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - // no content - throw SDKError.from("API error occurred", response); - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfoAuth.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoAuth.java new file mode 100644 index 000000000..12257cfb8 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoAuth.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.auth.ServerInfo; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetServerInfoAuthResponse; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetServerInfoAuth { + + /** + * GET_SERVER_INFO_AUTH_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_INFO_AUTH_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_SERVER_INFO_AUTH_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_auth", + java.util.Optional.of(java.util.List.of("auth:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_auth", + java.util.Optional.of(java.util.List.of("auth:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_auth", + java.util.Optional.of(java.util.List.of("auth:read")), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/auth/_info"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() { + HttpRequest r = unchecked(() -> onBuildRequest()).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetServerInfoAuthResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerInfoAuthResponse.Builder resBuilder = + GetServerInfoAuthResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetServerInfoAuthResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfoOrchestration.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoOrchestration.java new file mode 100644 index 000000000..3481c1ec1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoOrchestration.java @@ -0,0 +1,183 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetServerInfoOrchestrationResponse; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.ServerInfo; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetServerInfoOrchestration { + + /** + * GET_SERVER_INFO_ORCHESTRATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_INFO_ORCHESTRATION_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_SERVER_INFO_ORCHESTRATION_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_orchestration", + java.util.Optional.of(java.util.List.of("orchestration:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_orchestration", + java.util.Optional.of(java.util.List.of("orchestration:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_orchestration", + java.util.Optional.of(java.util.List.of("orchestration:read")), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/orchestration/_info"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() { + HttpRequest r = unchecked(() -> onBuildRequest()).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetServerInfoOrchestrationResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerInfoOrchestrationResponse.Builder resBuilder = + GetServerInfoOrchestrationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetServerInfoOrchestrationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw Error.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfoPayments.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoPayments.java new file mode 100644 index 000000000..75ab3885f --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoPayments.java @@ -0,0 +1,183 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetServerInfoPaymentsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.ServerInfo; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetServerInfoPayments { + + /** + * GET_SERVER_INFO_PAYMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_INFO_PAYMENTS_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_SERVER_INFO_PAYMENTS_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/payments/_info"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() { + HttpRequest r = unchecked(() -> onBuildRequest()).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetServerInfoPaymentsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerInfoPaymentsResponse.Builder resBuilder = + GetServerInfoPaymentsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetServerInfoPaymentsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw PaymentsErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfoReconciliation.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoReconciliation.java new file mode 100644 index 000000000..cf9fad8f6 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoReconciliation.java @@ -0,0 +1,183 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetServerInfoReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.ServerInfo; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetServerInfoReconciliation { + + /** + * GET_SERVER_INFO_RECONCILIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_INFO_RECONCILIATION_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_SERVER_INFO_RECONCILIATION_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_reconciliation", + java.util.Optional.of(java.util.List.of("reconciliation:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_reconciliation", + java.util.Optional.of(java.util.List.of("reconciliation:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_reconciliation", + java.util.Optional.of(java.util.List.of("reconciliation:read")), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/reconciliation/_info"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() { + HttpRequest r = unchecked(() -> onBuildRequest()).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetServerInfoReconciliationResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerInfoReconciliationResponse.Builder resBuilder = + GetServerInfoReconciliationResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetServerInfoReconciliationResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfoSearch.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoSearch.java new file mode 100644 index 000000000..a7d1bbeb1 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoSearch.java @@ -0,0 +1,179 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetServerInfoSearchResponse; +import com.formance.formance_sdk.models.search.ServerInfo; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetServerInfoSearch { + + /** + * GET_SERVER_INFO_SEARCH_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_INFO_SEARCH_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_SERVER_INFO_SEARCH_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_search", + java.util.Optional.of(java.util.List.of("search:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_search", + java.util.Optional.of(java.util.List.of("search:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_search", + java.util.Optional.of(java.util.List.of("search:read")), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/search/_info"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() { + HttpRequest r = unchecked(() -> onBuildRequest()).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetServerInfoSearchResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerInfoSearchResponse.Builder resBuilder = + GetServerInfoSearchResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetServerInfoSearchResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + // no content + throw SDKError.from("API error occurred", response); + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetServerInfoWallets.java b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoWallets.java new file mode 100644 index 000000000..e3a935899 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/GetServerInfoWallets.java @@ -0,0 +1,183 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.GetServerInfoWalletsResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; +import com.formance.formance_sdk.models.wallets.ServerInfo; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class GetServerInfoWallets { + + /** + * GET_SERVER_INFO_WALLETS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_SERVER_INFO_WALLETS_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_SERVER_INFO_WALLETS_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_wallets", + java.util.Optional.of(java.util.List.of("wallets:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_wallets", + java.util.Optional.of(java.util.List.of("wallets:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "getServerInfo_wallets", + java.util.Optional.of(java.util.List.of("wallets:read")), + securitySource()); + } + HttpRequest buildRequest() throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/wallets/_info"); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestlessOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest() throws Exception { + HttpRequest req = buildRequest(); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest() { + HttpRequest r = unchecked(() -> onBuildRequest()).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public GetServerInfoWalletsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + GetServerInfoWalletsResponse.Builder resBuilder = + GetServerInfoWalletsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + GetServerInfoWalletsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/GetTransaction.java b/src/main/java/com/formance/formance_sdk/operations/GetTransaction.java index 8364a0457..923aef48b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetTransaction.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.TransactionResponse; import com.formance.formance_sdk.models.operations.GetTransactionRequest; import com.formance.formance_sdk.models.operations.GetTransactionResponse; -import com.formance.formance_sdk.models.shared.TransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetTransaction { + + /** + * GET_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetTransactionRequest request) throws Exception { @@ -158,7 +175,7 @@ public GetTransactionResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetTransactions.java b/src/main/java/com/formance/formance_sdk/operations/GetTransactions.java index bfea81729..06ff759b1 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetTransactions.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetTransactions.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetTransactionsRequest; import com.formance.formance_sdk.models.operations.GetTransactionsResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetTransactions { + + /** + * GET_TRANSACTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_TRANSACTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_TRANSACTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -97,8 +110,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetTransactionsRequest request) throws Exception { @@ -153,14 +170,14 @@ public GetTransactionsResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetTransactionsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetTransactionsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetTransferInitiation.java b/src/main/java/com/formance/formance_sdk/operations/GetTransferInitiation.java index 099ace990..2d73dbc07 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetTransferInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetTransferInitiation.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetTransferInitiationRequest; import com.formance.formance_sdk.models.operations.GetTransferInitiationResponse; -import com.formance.formance_sdk.models.shared.TransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TransferInitiationResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetTransferInitiation { + + /** + * GET_TRANSFER_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_TRANSFER_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_TRANSFER_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetTransferInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/GetVersions.java b/src/main/java/com/formance/formance_sdk/operations/GetVersions.java index 7892d5ac7..ef00359e9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetVersions.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetVersions.java @@ -23,10 +23,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetVersions { + + /** + * GET_VERSIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_VERSIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -35,11 +43,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_VERSIONS_SERVERS[0], + Map.of())); this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -89,8 +102,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -145,7 +162,7 @@ public GetVersionsResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetVersionsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetVersionsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetWallet.java b/src/main/java/com/formance/formance_sdk/operations/GetWallet.java index 4138f455f..4b5bf3336 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetWallet.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetWallet.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetWalletRequest; import com.formance.formance_sdk.models.operations.GetWalletResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetWallet { + + /** + * GET_WALLET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_WALLET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_WALLET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetWalletRequest request) throws Exception { @@ -150,7 +167,7 @@ public GetWalletResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetWalletResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetWalletResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } @@ -161,7 +178,7 @@ public GetWalletResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetWalletSummary.java b/src/main/java/com/formance/formance_sdk/operations/GetWalletSummary.java index 1e9ea0c00..228ddd0df 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetWalletSummary.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetWalletSummary.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.GetWalletSummaryRequest; import com.formance.formance_sdk.models.operations.GetWalletSummaryResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetWalletSummary { + + /** + * GET_WALLET_SUMMARY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_WALLET_SUMMARY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_WALLET_SUMMARY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetWalletSummaryRequest request) throws Exception { @@ -150,7 +167,7 @@ public GetWalletSummaryResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetWalletSummaryResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetWalletSummaryResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } @@ -161,7 +178,7 @@ public GetWalletSummaryResponse handleResponse(HttpResponse respons } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/GetWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/GetWorkflow.java index 5d87f0f15..9968ffcce 100644 --- a/src/main/java/com/formance/formance_sdk/operations/GetWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/GetWorkflow.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.GetWorkflowRequest; import com.formance.formance_sdk.models.operations.GetWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class GetWorkflow { + + /** + * GET_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] GET_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + GET_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(GetWorkflowRequest request) throws Exception { @@ -150,7 +167,7 @@ public GetWorkflowResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withGetWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withGetWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/InsertConfig.java b/src/main/java/com/formance/formance_sdk/operations/InsertConfig.java index 4cf8f76f9..8bbf7fa4d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/InsertConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/InsertConfig.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.InsertConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigResponse; -import com.formance.formance_sdk.models.shared.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ConfigResponse; +import com.formance.formance_sdk.models.webhooks.ConfigUser; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class InsertConfig { + + /** + * INSERT_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] INSERT_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + INSERT_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ConfigUser request) throws Exception { @@ -173,7 +190,7 @@ public InsertConfigResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/InstallConnector.java b/src/main/java/com/formance/formance_sdk/operations/InstallConnector.java index fc863f514..874d69335 100644 --- a/src/main/java/com/formance/formance_sdk/operations/InstallConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/InstallConnector.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.InstallConnectorRequest; import com.formance.formance_sdk.models.operations.InstallConnectorResponse; -import com.formance.formance_sdk.models.shared.ConnectorResponse; +import com.formance.formance_sdk.models.payments.ConnectorResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class InstallConnector { + + /** + * INSTALL_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] INSTALL_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + INSTALL_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(InstallConnectorRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListAccounts.java b/src/main/java/com/formance/formance_sdk/operations/ListAccounts.java deleted file mode 100644 index 033c3c0b0..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/ListAccounts.java +++ /dev/null @@ -1,181 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.ListAccountsRequest; -import com.formance.formance_sdk.models.operations.ListAccountsResponse; -import com.formance.formance_sdk.models.shared.AccountsCursorResponse; -import com.formance.formance_sdk.models.shared.ErrorResponse; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class ListAccounts { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "listAccounts", - java.util.Optional.of(java.util.List.of("ledger:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "listAccounts", - java.util.Optional.of(java.util.List.of("ledger:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "listAccounts", - java.util.Optional.of(java.util.List.of("ledger:read")), - securitySource()); - } - HttpRequest buildRequest(T request, Class klass) throws Exception { - String url = Utils.generateURL( - klass, - this.baseUrl, - "/api/ledger/{ledger}/accounts", - request, null); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - - req.addQueryParams(Utils.getQueryParams( - klass, - request, - null)); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest(ListAccountsRequest request) throws Exception { - HttpRequest req = buildRequest(request, ListAccountsRequest.class); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest(ListAccountsRequest request) { - HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public ListAccountsResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ListAccountsResponse.Builder resBuilder = - ListAccountsResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - ListAccountsResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withAccountsCursorResponse(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "404")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withErrorResponse(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw com.formance.formance_sdk.models.errors.ErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/ListAccountsLedger.java b/src/main/java/com/formance/formance_sdk/operations/ListAccountsLedger.java new file mode 100644 index 000000000..0ff68e8b7 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/ListAccountsLedger.java @@ -0,0 +1,199 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.AccountsCursorResponse; +import com.formance.formance_sdk.models.ledger.ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerRequest; +import com.formance.formance_sdk.models.operations.ListAccountsLedgerResponse; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class ListAccountsLedger { + + /** + * LIST_ACCOUNTS_LEDGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_ACCOUNTS_LEDGER_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_ACCOUNTS_LEDGER_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccounts_ledger", + java.util.Optional.of(java.util.List.of("ledger:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccounts_ledger", + java.util.Optional.of(java.util.List.of("ledger:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccounts_ledger", + java.util.Optional.of(java.util.List.of("ledger:read")), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass) throws Exception { + String url = Utils.generateURL( + klass, + this.baseUrl, + "/api/ledger/{ledger}/accounts", + request, null); + HTTPRequest req = new HTTPRequest(url, "GET"); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest(ListAccountsLedgerRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListAccountsLedgerRequest.class); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListAccountsLedgerRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public ListAccountsLedgerResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListAccountsLedgerResponse.Builder resBuilder = + ListAccountsLedgerResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListAccountsLedgerResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withAccountsCursorResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "404")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withErrorResponse(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw ErrorsErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/ListAccountsPayments.java b/src/main/java/com/formance/formance_sdk/operations/ListAccountsPayments.java new file mode 100644 index 000000000..5839d7632 --- /dev/null +++ b/src/main/java/com/formance/formance_sdk/operations/ListAccountsPayments.java @@ -0,0 +1,202 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.formance.formance_sdk.operations; + +import static com.formance.formance_sdk.operations.Operations.RequestOperation; +import static com.formance.formance_sdk.utils.Exceptions.unchecked; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.formance.formance_sdk.SDKConfiguration; +import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsRequest; +import com.formance.formance_sdk.models.operations.ListAccountsPaymentsResponse; +import com.formance.formance_sdk.models.payments.AccountsCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.utils.HTTPClient; +import com.formance.formance_sdk.utils.HTTPRequest; +import com.formance.formance_sdk.utils.Headers; +import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; +import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; +import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; +import com.formance.formance_sdk.utils.Utils; +import java.io.InputStream; +import java.lang.Exception; +import java.lang.Object; +import java.lang.String; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.Map; +import java.util.Optional; + + +public class ListAccountsPayments { + + /** + * LIST_ACCOUNTS_PAYMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_ACCOUNTS_PAYMENTS_SERVERS = { + "http://localhost:8080/", + }; + + static abstract class Base { + final SDKConfiguration sdkConfiguration; + final String baseUrl; + final SecuritySource securitySource; + final HTTPClient client; + final Headers _headers; + + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + this.sdkConfiguration = sdkConfiguration; + this._headers =_headers; + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_ACCOUNTS_PAYMENTS_SERVERS[0], + Map.of())); + this.securitySource = this.sdkConfiguration.securitySource(); + this.client = this.sdkConfiguration.client(); + } + + Optional securitySource() { + return Optional.ofNullable(this.securitySource); + } + + BeforeRequestContextImpl createBeforeRequestContext() { + return new BeforeRequestContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccounts_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + + AfterSuccessContextImpl createAfterSuccessContext() { + return new AfterSuccessContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccounts_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + + AfterErrorContextImpl createAfterErrorContext() { + return new AfterErrorContextImpl( + this.sdkConfiguration, + this.baseUrl, + "listAccounts_payments", + java.util.Optional.of(java.util.List.of("payments:read")), + securitySource()); + } + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { + String url = Utils.generateURL( + this.baseUrl, + "/api/payments/accounts"); + HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); + req.addHeader("Accept", "application/json") + .addHeader("user-agent", SDKConfiguration.USER_AGENT); + _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); + Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); + + return req.build(); + } + } + + public static class Sync extends Base + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); + } + + private HttpRequest onBuildRequest(ListAccountsPaymentsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListAccountsPaymentsRequest.class, new TypeReference() {}); + return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); + } + + private HttpResponse onError(HttpResponse response, Exception error) throws Exception { + return sdkConfiguration.hooks().afterError( + createAfterErrorContext(), + Optional.ofNullable(response), + Optional.ofNullable(error)); + } + + private HttpResponse onSuccess(HttpResponse response) throws Exception { + return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); + } + + @Override + public HttpResponse doRequest(ListAccountsPaymentsRequest request) { + HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); + HttpResponse httpRes; + try { + httpRes = client.send(r); + if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { + httpRes = onError(httpRes, null); + } else { + httpRes = onSuccess(httpRes); + } + } catch (Exception e) { + httpRes = unchecked(() -> onError(null, e)).get(); + } + + return httpRes; + } + + + @Override + public ListAccountsPaymentsResponse handleResponse(HttpResponse response) { + String contentType = response + .headers() + .firstValue("Content-Type") + .orElse("application/octet-stream"); + ListAccountsPaymentsResponse.Builder resBuilder = + ListAccountsPaymentsResponse + .builder() + .contentType(contentType) + .statusCode(response.statusCode()) + .rawResponse(response); + + ListAccountsPaymentsResponse res = resBuilder.build(); + + if (Utils.statusCodeMatches(response.statusCode(), "200")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + return res.withAccountsCursor(Utils.unmarshal(response, new TypeReference() {})); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + if (Utils.statusCodeMatches(response.statusCode(), "default")) { + if (Utils.contentTypeMatches(contentType, "application/json")) { + throw PaymentsErrorResponse.from(response); + } else { + throw SDKError.from("Unexpected content-type received: " + contentType, response); + } + } + throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); + } + } +} diff --git a/src/main/java/com/formance/formance_sdk/operations/ListAllConnectors.java b/src/main/java/com/formance/formance_sdk/operations/ListAllConnectors.java index 0ead8cfde..419ef679b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListAllConnectors.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListAllConnectors.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListAllConnectorsResponse; -import com.formance.formance_sdk.models.shared.ConnectorsResponse; +import com.formance.formance_sdk.models.payments.ConnectorsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListAllConnectors { + + /** + * LIST_ALL_CONNECTORS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_ALL_CONNECTORS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_ALL_CONNECTORS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListBalances.java b/src/main/java/com/formance/formance_sdk/operations/ListBalances.java index b321e1368..9fc1b2312 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListBalances.java @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListBalances { + + /** + * LIST_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListBalancesRequest request) throws Exception { @@ -149,7 +166,7 @@ public ListBalancesResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListBalancesResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListBalancesResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListBankAccounts.java b/src/main/java/com/formance/formance_sdk/operations/ListBankAccounts.java index bb396c200..20ecb9fec 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListBankAccounts.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListBankAccounts.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListBankAccountsRequest; import com.formance.formance_sdk.models.operations.ListBankAccountsResponse; -import com.formance.formance_sdk.models.shared.BankAccountsCursor; +import com.formance.formance_sdk.models.payments.BankAccountsCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListBankAccounts { + + /** + * LIST_BANK_ACCOUNTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_BANK_ACCOUNTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_BANK_ACCOUNTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListBankAccountsRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListClients.java b/src/main/java/com/formance/formance_sdk/operations/ListClients.java index ed12f6442..109cc9483 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListClients.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListClients.java @@ -23,10 +23,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListClients { + + /** + * LIST_CLIENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_CLIENTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -35,11 +43,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_CLIENTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -90,8 +103,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -146,7 +163,7 @@ public ListClientsResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListClientsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListClientsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListConfigsAvailableConnectors.java b/src/main/java/com/formance/formance_sdk/operations/ListConfigsAvailableConnectors.java index d5f5cef3d..af3ce5fd0 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListConfigsAvailableConnectors.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListConfigsAvailableConnectors.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListConfigsAvailableConnectorsResponse; -import com.formance.formance_sdk.models.shared.ConnectorsConfigsResponse; +import com.formance.formance_sdk.models.payments.ConnectorsConfigsResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListConfigsAvailableConnectors { + + /** + * LIST_CONFIGS_AVAILABLE_CONNECTORS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_CONFIGS_AVAILABLE_CONNECTORS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_CONFIGS_AVAILABLE_CONNECTORS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasks.java b/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasks.java index a087e189f..d5f0250fc 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasks.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasks.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListConnectorTasksRequest; import com.formance.formance_sdk.models.operations.ListConnectorTasksResponse; -import com.formance.formance_sdk.models.shared.TasksCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TasksCursor; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListConnectorTasks { + + /** + * LIST_CONNECTOR_TASKS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_CONNECTOR_TASKS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_CONNECTOR_TASKS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListConnectorTasksRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasksV1.java b/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasksV1.java index 440b08106..c6351b582 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasksV1.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListConnectorTasksV1.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListConnectorTasksV1Request; import com.formance.formance_sdk.models.operations.ListConnectorTasksV1Response; -import com.formance.formance_sdk.models.shared.TasksCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TasksCursor; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListConnectorTasksV1 { + + /** + * LIST_CONNECTOR_TASKS_V1_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_CONNECTOR_TASKS_V1_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_CONNECTOR_TASKS_V1_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListConnectorTasksV1Request request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListInstances.java b/src/main/java/com/formance/formance_sdk/operations/ListInstances.java index 848dc3c4c..f134dd128 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListInstances.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListInstances.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListInstancesRequest; import com.formance.formance_sdk.models.operations.ListInstancesResponse; -import com.formance.formance_sdk.models.shared.ListRunsResponse; +import com.formance.formance_sdk.models.orchestration.Error; +import com.formance.formance_sdk.models.orchestration.ListRunsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListInstances { + + /** + * LIST_INSTANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_INSTANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_INSTANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListInstancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListLogs.java b/src/main/java/com/formance/formance_sdk/operations/ListLogs.java index 838532e3e..bd3804081 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListLogs.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListLogs.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.LogsCursorResponse; import com.formance.formance_sdk.models.operations.ListLogsRequest; import com.formance.formance_sdk.models.operations.ListLogsResponse; -import com.formance.formance_sdk.models.shared.LogsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListLogs { + + /** + * LIST_LOGS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_LOGS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_LOGS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListLogsRequest request) throws Exception { @@ -163,7 +180,7 @@ public ListLogsResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListPayments.java b/src/main/java/com/formance/formance_sdk/operations/ListPayments.java index d0db05c52..343a830d8 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListPayments.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListPayments.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListPaymentsRequest; import com.formance.formance_sdk.models.operations.ListPaymentsResponse; -import com.formance.formance_sdk.models.shared.PaymentsCursor; +import com.formance.formance_sdk.models.payments.PaymentsCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListPayments { + + /** + * LIST_PAYMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_PAYMENTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_PAYMENTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListPaymentsRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListPolicies.java b/src/main/java/com/formance/formance_sdk/operations/ListPolicies.java index 73653abc1..7d9a4b48d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListPolicies.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListPolicies.java @@ -9,27 +9,38 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListPoliciesRequest; import com.formance.formance_sdk.models.operations.ListPoliciesResponse; -import com.formance.formance_sdk.models.shared.PoliciesCursorResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.PoliciesCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListPolicies { + + /** + * LIST_POLICIES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_POLICIES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_POLICIES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("reconciliation:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/reconciliation/policies"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListPoliciesRequest request) throws Exception { - HttpRequest req = buildRequest(request, ListPoliciesRequest.class); + HttpRequest req = buildRequest(request, ListPoliciesRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -161,7 +191,7 @@ public ListPoliciesResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListPools.java b/src/main/java/com/formance/formance_sdk/operations/ListPools.java index 4aaa0cf39..f19c14044 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListPools.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListPools.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListPoolsRequest; import com.formance.formance_sdk.models.operations.ListPoolsResponse; -import com.formance.formance_sdk.models.shared.PoolsCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.PoolsCursor; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListPools { + + /** + * LIST_POOLS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_POOLS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_POOLS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListPoolsRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListReconciliations.java b/src/main/java/com/formance/formance_sdk/operations/ListReconciliations.java index 8a6cd0e44..1de95f6cf 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListReconciliations.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListReconciliations.java @@ -9,27 +9,38 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListReconciliationsRequest; import com.formance.formance_sdk.models.operations.ListReconciliationsResponse; -import com.formance.formance_sdk.models.shared.ReconciliationsCursorResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListReconciliations { + + /** + * LIST_RECONCILIATIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_RECONCILIATIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_RECONCILIATIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("reconciliation:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/reconciliation/reconciliations"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListReconciliationsRequest request) throws Exception { - HttpRequest req = buildRequest(request, ListReconciliationsRequest.class); + HttpRequest req = buildRequest(request, ListReconciliationsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -161,7 +191,7 @@ public ListReconciliationsResponse handleResponse(HttpResponse resp } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListTransactions.java b/src/main/java/com/formance/formance_sdk/operations/ListTransactions.java index f5b95c070..85cd46269 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListTransactions.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListTransactions.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.TransactionsCursorResponse; import com.formance.formance_sdk.models.operations.ListTransactionsRequest; import com.formance.formance_sdk.models.operations.ListTransactionsResponse; -import com.formance.formance_sdk.models.shared.TransactionsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListTransactions { + + /** + * LIST_TRANSACTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_TRANSACTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_TRANSACTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListTransactionsRequest request) throws Exception { @@ -163,7 +180,7 @@ public ListTransactionsResponse handleResponse(HttpResponse respons } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListTransferInitiations.java b/src/main/java/com/formance/formance_sdk/operations/ListTransferInitiations.java index 5ccd56674..94a333504 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListTransferInitiations.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListTransferInitiations.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListTransferInitiationsRequest; import com.formance.formance_sdk.models.operations.ListTransferInitiationsResponse; -import com.formance.formance_sdk.models.shared.TransferInitiationsCursor; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; +import com.formance.formance_sdk.models.payments.TransferInitiationsCursor; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListTransferInitiations { + + /** + * LIST_TRANSFER_INITIATIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_TRANSFER_INITIATIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_TRANSFER_INITIATIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListTransferInitiationsRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ListTriggers.java b/src/main/java/com/formance/formance_sdk/operations/ListTriggers.java index 96d92a70d..8c83a250f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListTriggers.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListTriggers.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListTriggersRequest; import com.formance.formance_sdk.models.operations.ListTriggersResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListTriggers { + + /** + * LIST_TRIGGERS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_TRIGGERS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_TRIGGERS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -97,8 +110,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListTriggersRequest request) throws Exception { @@ -153,7 +170,7 @@ public ListTriggersResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListTriggersResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListTriggersResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListTriggersOccurrences.java b/src/main/java/com/formance/formance_sdk/operations/ListTriggersOccurrences.java index ba2b9bf9b..e4735f35c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListTriggersOccurrences.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListTriggersOccurrences.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListTriggersOccurrencesRequest; import com.formance.formance_sdk.models.operations.ListTriggersOccurrencesResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListTriggersOccurrences { + + /** + * LIST_TRIGGERS_OCCURRENCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_TRIGGERS_OCCURRENCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_TRIGGERS_OCCURRENCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListTriggersOccurrencesRequest request) throws Exception { @@ -150,7 +167,7 @@ public ListTriggersOccurrencesResponse handleResponse(HttpResponse if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListTriggersOccurrencesResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListTriggersOccurrencesResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListUsers.java b/src/main/java/com/formance/formance_sdk/operations/ListUsers.java index d1c880c3b..60239fab0 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListUsers.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListUsers.java @@ -23,10 +23,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListUsers { + + /** + * LIST_USERS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_USERS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -35,11 +43,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_USERS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -90,8 +103,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -146,7 +163,7 @@ public ListUsersResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListUsersResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListUsersResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListWallets.java b/src/main/java/com/formance/formance_sdk/operations/ListWallets.java index 90249ecae..9fc8d664d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListWallets.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListWallets.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.ListWalletsRequest; import com.formance.formance_sdk.models.operations.ListWalletsResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListWallets { + + /** + * LIST_WALLETS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_WALLETS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_WALLETS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -97,8 +110,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ListWalletsRequest request) throws Exception { @@ -153,14 +170,14 @@ public ListWalletsResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListWalletsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListWalletsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ListWorkflows.java b/src/main/java/com/formance/formance_sdk/operations/ListWorkflows.java index 3d66c3e01..04152a74b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ListWorkflows.java +++ b/src/main/java/com/formance/formance_sdk/operations/ListWorkflows.java @@ -9,9 +9,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ListWorkflowsResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ListWorkflows { + + /** + * LIST_WORKFLOWS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] LIST_WORKFLOWS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + LIST_WORKFLOWS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -91,8 +104,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -147,7 +164,7 @@ public ListWorkflowsResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withListWorkflowsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withListWorkflowsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/OrchestrationgetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/OrchestrationgetServerInfo.java deleted file mode 100644 index 869dd86ae..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/OrchestrationgetServerInfo.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.OrchestrationgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class OrchestrationgetServerInfo { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "orchestrationgetServerInfo", - java.util.Optional.of(java.util.List.of("orchestration:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "orchestrationgetServerInfo", - java.util.Optional.of(java.util.List.of("orchestration:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "orchestrationgetServerInfo", - java.util.Optional.of(java.util.List.of("orchestration:read")), - securitySource()); - } - HttpRequest buildRequest() throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/orchestration/_info"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest() throws Exception { - HttpRequest req = buildRequest(); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest() { - HttpRequest r = unchecked(() -> onBuildRequest()).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public OrchestrationgetServerInfoResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - OrchestrationgetServerInfoResponse.Builder resBuilder = - OrchestrationgetServerInfoResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - OrchestrationgetServerInfoResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw Error.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/PaymentsgetAccount.java b/src/main/java/com/formance/formance_sdk/operations/PaymentsgetAccount.java deleted file mode 100644 index deb03070d..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/PaymentsgetAccount.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountRequest; -import com.formance.formance_sdk.models.operations.PaymentsgetAccountResponse; -import com.formance.formance_sdk.models.shared.PaymentsAccountResponse; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class PaymentsgetAccount { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentsgetAccount", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentsgetAccount", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentsgetAccount", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - HttpRequest buildRequest(T request, Class klass) throws Exception { - String url = Utils.generateURL( - klass, - this.baseUrl, - "/api/payments/accounts/{accountId}", - request, null); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest(PaymentsgetAccountRequest request) throws Exception { - HttpRequest req = buildRequest(request, PaymentsgetAccountRequest.class); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest(PaymentsgetAccountRequest request) { - HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public PaymentsgetAccountResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PaymentsgetAccountResponse.Builder resBuilder = - PaymentsgetAccountResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - PaymentsgetAccountResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withPaymentsAccountResponse(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw PaymentsErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/PaymentsgetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/PaymentsgetServerInfo.java deleted file mode 100644 index 891f0aee0..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/PaymentsgetServerInfo.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.PaymentsgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.PaymentsServerInfo; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class PaymentsgetServerInfo { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentsgetServerInfo", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentsgetServerInfo", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentsgetServerInfo", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - HttpRequest buildRequest() throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/payments/_info"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest() throws Exception { - HttpRequest req = buildRequest(); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest() { - HttpRequest r = unchecked(() -> onBuildRequest()).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public PaymentsgetServerInfoResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PaymentsgetServerInfoResponse.Builder resBuilder = - PaymentsgetServerInfoResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - PaymentsgetServerInfoResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withPaymentsServerInfo(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw PaymentsErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/PaymentslistAccounts.java b/src/main/java/com/formance/formance_sdk/operations/PaymentslistAccounts.java deleted file mode 100644 index dceb2ccca..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/PaymentslistAccounts.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsRequest; -import com.formance.formance_sdk.models.operations.PaymentslistAccountsResponse; -import com.formance.formance_sdk.models.shared.AccountsCursor; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class PaymentslistAccounts { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentslistAccounts", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentslistAccounts", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "paymentslistAccounts", - java.util.Optional.of(java.util.List.of("payments:read")), - securitySource()); - } - HttpRequest buildRequest(T request, Class klass) throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/payments/accounts"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - - req.addQueryParams(Utils.getQueryParams( - klass, - request, - null)); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest(PaymentslistAccountsRequest request) throws Exception { - HttpRequest req = buildRequest(request, PaymentslistAccountsRequest.class); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest(PaymentslistAccountsRequest request) { - HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public PaymentslistAccountsResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - PaymentslistAccountsResponse.Builder resBuilder = - PaymentslistAccountsResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - PaymentslistAccountsResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withAccountsCursor(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw PaymentsErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/ReadClient.java b/src/main/java/com/formance/formance_sdk/operations/ReadClient.java index b2df8ed42..422497393 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReadClient.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReadClient.java @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReadClient { + + /** + * READ_CLIENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] READ_CLIENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + READ_CLIENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReadClientRequest request) throws Exception { @@ -149,7 +166,7 @@ public ReadClientResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withReadClientResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withReadClientResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfig.java b/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfig.java index 236e76b99..ca32b4bd6 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfig.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ReadConnectorConfigRequest; import com.formance.formance_sdk.models.operations.ReadConnectorConfigResponse; -import com.formance.formance_sdk.models.shared.ConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.ConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReadConnectorConfig { + + /** + * READ_CONNECTOR_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] READ_CONNECTOR_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + READ_CONNECTOR_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReadConnectorConfigRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfigV1.java b/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfigV1.java index dfdd8adaa..c81684dc9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfigV1.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReadConnectorConfigV1.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ReadConnectorConfigV1Request; import com.formance.formance_sdk.models.operations.ReadConnectorConfigV1Response; -import com.formance.formance_sdk.models.shared.ConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.ConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReadConnectorConfigV1 { + + /** + * READ_CONNECTOR_CONFIG_V1_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] READ_CONNECTOR_CONFIG_V1_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + READ_CONNECTOR_CONFIG_V1_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReadConnectorConfigV1Request request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ReadStats.java b/src/main/java/com/formance/formance_sdk/operations/ReadStats.java index a1ed02dd5..6139e6f89 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReadStats.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReadStats.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.StatsResponse; import com.formance.formance_sdk.models.operations.ReadStatsRequest; import com.formance.formance_sdk.models.operations.ReadStatsResponse; -import com.formance.formance_sdk.models.shared.StatsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReadStats { + + /** + * READ_STATS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] READ_STATS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + READ_STATS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReadStatsRequest request) throws Exception { @@ -158,7 +175,7 @@ public ReadStatsResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ReadTrigger.java b/src/main/java/com/formance/formance_sdk/operations/ReadTrigger.java index 72c514dcc..eba0e4acc 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReadTrigger.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReadTrigger.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ReadTriggerRequest; import com.formance.formance_sdk.models.operations.ReadTriggerResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReadTrigger { + + /** + * READ_TRIGGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] READ_TRIGGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + READ_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReadTriggerRequest request) throws Exception { @@ -150,7 +167,7 @@ public ReadTriggerResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withReadTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withReadTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ReadUser.java b/src/main/java/com/formance/formance_sdk/operations/ReadUser.java index 593739c65..f451d00e6 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReadUser.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReadUser.java @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReadUser { + + /** + * READ_USER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] READ_USER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + READ_USER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReadUserRequest request) throws Exception { @@ -149,7 +166,7 @@ public ReadUserResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withReadUserResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withReadUserResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/Reconcile.java b/src/main/java/com/formance/formance_sdk/operations/Reconcile.java index 64cff116a..2c01c0918 100644 --- a/src/main/java/com/formance/formance_sdk/operations/Reconcile.java +++ b/src/main/java/com/formance/formance_sdk/operations/Reconcile.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ReconcileRequest; import com.formance.formance_sdk.models.operations.ReconcileResponse; -import com.formance.formance_sdk.models.shared.ReconciliationResponse; +import com.formance.formance_sdk.models.reconciliation.ErrorResponse; +import com.formance.formance_sdk.models.reconciliation.ReconciliationResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class Reconcile { + + /** + * RECONCILE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] RECONCILE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + RECONCILE_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReconcileRequest request) throws Exception { @@ -175,7 +192,7 @@ public ReconcileResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/ReconciliationgetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/ReconciliationgetServerInfo.java deleted file mode 100644 index ed46bcfa8..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/ReconciliationgetServerInfo.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ReconciliationErrorResponse; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.ReconciliationgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class ReconciliationgetServerInfo { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "reconciliationgetServerInfo", - java.util.Optional.of(java.util.List.of("reconciliation:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "reconciliationgetServerInfo", - java.util.Optional.of(java.util.List.of("reconciliation:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "reconciliationgetServerInfo", - java.util.Optional.of(java.util.List.of("reconciliation:read")), - securitySource()); - } - HttpRequest buildRequest() throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/reconciliation/_info"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest() throws Exception { - HttpRequest req = buildRequest(); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest() { - HttpRequest r = unchecked(() -> onBuildRequest()).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public ReconciliationgetServerInfoResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - ReconciliationgetServerInfoResponse.Builder resBuilder = - ReconciliationgetServerInfoResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - ReconciliationgetServerInfoResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ReconciliationErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/RemoveAccountFromPool.java b/src/main/java/com/formance/formance_sdk/operations/RemoveAccountFromPool.java index 5a2a3ebee..f4600cc87 100644 --- a/src/main/java/com/formance/formance_sdk/operations/RemoveAccountFromPool.java +++ b/src/main/java/com/formance/formance_sdk/operations/RemoveAccountFromPool.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.RemoveAccountFromPoolRequest; import com.formance.formance_sdk.models.operations.RemoveAccountFromPoolResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class RemoveAccountFromPool { + + /** + * REMOVE_ACCOUNT_FROM_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] REMOVE_ACCOUNT_FROM_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + REMOVE_ACCOUNT_FROM_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(RemoveAccountFromPoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ResetConnector.java b/src/main/java/com/formance/formance_sdk/operations/ResetConnector.java index de82346fa..3d2f613a6 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ResetConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/ResetConnector.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ResetConnectorRequest; import com.formance.formance_sdk.models.operations.ResetConnectorResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ResetConnector { + + /** + * RESET_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] RESET_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + RESET_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ResetConnectorRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ResetConnectorV1.java b/src/main/java/com/formance/formance_sdk/operations/ResetConnectorV1.java index 15ed31494..df63c1580 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ResetConnectorV1.java +++ b/src/main/java/com/formance/formance_sdk/operations/ResetConnectorV1.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ResetConnectorV1Request; import com.formance.formance_sdk.models.operations.ResetConnectorV1Response; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ResetConnectorV1 { + + /** + * RESET_CONNECTOR_V1_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] RESET_CONNECTOR_V1_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + RESET_CONNECTOR_V1_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ResetConnectorV1Request request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/RetryTransferInitiation.java b/src/main/java/com/formance/formance_sdk/operations/RetryTransferInitiation.java index c133222f3..ac8adbf1f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/RetryTransferInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/RetryTransferInitiation.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.RetryTransferInitiationRequest; import com.formance.formance_sdk.models.operations.RetryTransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class RetryTransferInitiation { + + /** + * RETRY_TRANSFER_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] RETRY_TRANSFER_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + RETRY_TRANSFER_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(RetryTransferInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/ReverseTransferInitiation.java b/src/main/java/com/formance/formance_sdk/operations/ReverseTransferInitiation.java index cf93594b9..861b45181 100644 --- a/src/main/java/com/formance/formance_sdk/operations/ReverseTransferInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/ReverseTransferInitiation.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.ReverseTransferInitiationRequest; import com.formance.formance_sdk.models.operations.ReverseTransferInitiationResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class ReverseTransferInitiation { + + /** + * REVERSE_TRANSFER_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] REVERSE_TRANSFER_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + REVERSE_TRANSFER_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(ReverseTransferInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/RevertTransaction.java b/src/main/java/com/formance/formance_sdk/operations/RevertTransaction.java index 611036493..71bd54e18 100644 --- a/src/main/java/com/formance/formance_sdk/operations/RevertTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/RevertTransaction.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.TransactionResponse; import com.formance.formance_sdk.models.operations.RevertTransactionRequest; import com.formance.formance_sdk.models.operations.RevertTransactionResponse; -import com.formance.formance_sdk.models.shared.TransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class RevertTransaction { + + /** + * REVERT_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] REVERT_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + REVERT_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(RevertTransactionRequest request) throws Exception { @@ -164,7 +181,7 @@ public RevertTransactionResponse handleResponse(HttpResponse respon } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/RunScript.java b/src/main/java/com/formance/formance_sdk/operations/RunScript.java index 728efe131..55240fb2c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/RunScript.java +++ b/src/main/java/com/formance/formance_sdk/operations/RunScript.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ScriptResponse; import com.formance.formance_sdk.models.operations.RunScriptRequest; import com.formance.formance_sdk.models.operations.RunScriptResponse; -import com.formance.formance_sdk.models.shared.ScriptResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class RunScript { + + /** + * RUN_SCRIPT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] RUN_SCRIPT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + RUN_SCRIPT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -116,8 +129,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(RunScriptRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/RunWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/RunWorkflow.java index 2ae78d18d..59f686d45 100644 --- a/src/main/java/com/formance/formance_sdk/operations/RunWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/RunWorkflow.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.RunWorkflowRequest; import com.formance.formance_sdk.models.operations.RunWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class RunWorkflow { + + /** + * RUN_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] RUN_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + RUN_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(RunWorkflowRequest request) throws Exception { @@ -168,7 +185,7 @@ public RunWorkflowResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withRunWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withRunWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/Search.java b/src/main/java/com/formance/formance_sdk/operations/Search.java index fa5762ecf..4e556578a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/Search.java +++ b/src/main/java/com/formance/formance_sdk/operations/Search.java @@ -11,8 +11,8 @@ import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.SearchResponse; -import com.formance.formance_sdk.models.shared.Query; -import com.formance.formance_sdk.models.shared.Response; +import com.formance.formance_sdk.models.search.Query; +import com.formance.formance_sdk.models.search.Response; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class Search { + + /** + * SEARCH_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] SEARCH_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + SEARCH_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -109,8 +122,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(Query request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/SearchgetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/SearchgetServerInfo.java deleted file mode 100644 index e43d1374b..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/SearchgetServerInfo.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.operations.SearchgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class SearchgetServerInfo { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "searchgetServerInfo", - java.util.Optional.of(java.util.List.of("search:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "searchgetServerInfo", - java.util.Optional.of(java.util.List.of("search:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "searchgetServerInfo", - java.util.Optional.of(java.util.List.of("search:read")), - securitySource()); - } - HttpRequest buildRequest() throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/search/_info"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest() throws Exception { - HttpRequest req = buildRequest(); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest() { - HttpRequest r = unchecked(() -> onBuildRequest()).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public SearchgetServerInfoResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - SearchgetServerInfoResponse.Builder resBuilder = - SearchgetServerInfoResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - SearchgetServerInfoResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - // no content - throw SDKError.from("API error occurred", response); - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -} diff --git a/src/main/java/com/formance/formance_sdk/operations/SendEvent.java b/src/main/java/com/formance/formance_sdk/operations/SendEvent.java index ed8d60496..6cfe11136 100644 --- a/src/main/java/com/formance/formance_sdk/operations/SendEvent.java +++ b/src/main/java/com/formance/formance_sdk/operations/SendEvent.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.Error; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.SendEventRequest; import com.formance.formance_sdk.models.operations.SendEventResponse; +import com.formance.formance_sdk.models.orchestration.Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class SendEvent { + + /** + * SEND_EVENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] SEND_EVENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + SEND_EVENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(SendEventRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/TestConfig.java b/src/main/java/com/formance/formance_sdk/operations/TestConfig.java index 268ee4ef7..9d160c46a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/TestConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/TestConfig.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.TestConfigRequest; import com.formance.formance_sdk.models.operations.TestConfigResponse; -import com.formance.formance_sdk.models.shared.AttemptResponse; +import com.formance.formance_sdk.models.webhooks.AttemptResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class TestConfig { + + /** + * TEST_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] TEST_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + TEST_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(TestConfigRequest request) throws Exception { @@ -158,7 +175,7 @@ public TestConfigResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/TestTrigger.java b/src/main/java/com/formance/formance_sdk/operations/TestTrigger.java index 23c42a0ce..2385c480d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/TestTrigger.java +++ b/src/main/java/com/formance/formance_sdk/operations/TestTrigger.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.TestTriggerRequest; import com.formance.formance_sdk.models.operations.TestTriggerResponse; -import com.formance.formance_sdk.models.shared.V2TestTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2TestTriggerResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class TestTrigger { + + /** + * TEST_TRIGGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] TEST_TRIGGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + TEST_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(TestTriggerRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UninstallConnector.java b/src/main/java/com/formance/formance_sdk/operations/UninstallConnector.java index a3eb29206..975bb8782 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UninstallConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/UninstallConnector.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UninstallConnectorRequest; import com.formance.formance_sdk.models.operations.UninstallConnectorResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UninstallConnector { + + /** + * UNINSTALL_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UNINSTALL_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UNINSTALL_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UninstallConnectorRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UninstallConnectorV1.java b/src/main/java/com/formance/formance_sdk/operations/UninstallConnectorV1.java index 850eef3a3..3c165c462 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UninstallConnectorV1.java +++ b/src/main/java/com/formance/formance_sdk/operations/UninstallConnectorV1.java @@ -8,10 +8,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UninstallConnectorV1Request; import com.formance.formance_sdk.models.operations.UninstallConnectorV1Response; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UninstallConnectorV1 { + + /** + * UNINSTALL_CONNECTOR_V1_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UNINSTALL_CONNECTOR_V1_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UNINSTALL_CONNECTOR_V1_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UninstallConnectorV1Request request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateBankAccountMetadata.java b/src/main/java/com/formance/formance_sdk/operations/UpdateBankAccountMetadata.java index eaeeb1b77..4cc8e09a2 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateBankAccountMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateBankAccountMetadata.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UpdateBankAccountMetadataRequest; import com.formance.formance_sdk.models.operations.UpdateBankAccountMetadataResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateBankAccountMetadata { + + /** + * UPDATE_BANK_ACCOUNT_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_BANK_ACCOUNT_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_BANK_ACCOUNT_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateBankAccountMetadataRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateClient.java b/src/main/java/com/formance/formance_sdk/operations/UpdateClient.java index c95dffda0..4d9c1d89d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateClient.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateClient.java @@ -9,6 +9,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; +import com.formance.formance_sdk.models.auth.CreateClientResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UpdateClientRequest; import com.formance.formance_sdk.models.operations.UpdateClientResponse; @@ -27,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateClient { + + /** + * UPDATE_CLIENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_CLIENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -39,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_CLIENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -91,7 +105,7 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "createClientRequest", + "clientOptions", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); @@ -106,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateClientRequest request) throws Exception { @@ -162,7 +180,7 @@ public UpdateClientResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withUpdateClientResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withCreateClientResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateConfig.java b/src/main/java/com/formance/formance_sdk/operations/UpdateConfig.java index 423c0803b..9da4bb1ca 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateConfig.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WebhooksErrorResponse; import com.formance.formance_sdk.models.operations.UpdateConfigRequest; import com.formance.formance_sdk.models.operations.UpdateConfigResponse; +import com.formance.formance_sdk.models.webhooks.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateConfig { + + /** + * UPDATE_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateConfigRequest request) throws Exception { @@ -171,7 +188,7 @@ public UpdateConfigResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WebhooksErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateConnectorConfigV1.java b/src/main/java/com/formance/formance_sdk/operations/UpdateConnectorConfigV1.java index 14e75c79b..0e12cd970 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateConnectorConfigV1.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateConnectorConfigV1.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UpdateConnectorConfigV1Request; import com.formance.formance_sdk.models.operations.UpdateConnectorConfigV1Response; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateConnectorConfigV1 { + + /** + * UPDATE_CONNECTOR_CONFIG_V1_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_CONNECTOR_CONFIG_V1_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_CONNECTOR_CONFIG_V1_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateConnectorConfigV1Request request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateMapping.java b/src/main/java/com/formance/formance_sdk/operations/UpdateMapping.java index 6d487c722..39a2d7113 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateMapping.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateMapping.java @@ -9,11 +9,11 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.ErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsErrorResponse; +import com.formance.formance_sdk.models.ledger.MappingResponse; import com.formance.formance_sdk.models.operations.UpdateMappingRequest; import com.formance.formance_sdk.models.operations.UpdateMappingResponse; -import com.formance.formance_sdk.models.shared.MappingResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateMapping { + + /** + * UPDATE_MAPPING_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_MAPPING_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_MAPPING_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateMappingRequest request) throws Exception { @@ -175,7 +192,7 @@ public UpdateMappingResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw ErrorResponse.from(response); + throw ErrorsErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateMetadata.java b/src/main/java/com/formance/formance_sdk/operations/UpdateMetadata.java index f9ae6c4af..4807dc61c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateMetadata.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UpdateMetadataRequest; import com.formance.formance_sdk.models.operations.UpdateMetadataResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateMetadata { + + /** + * UPDATE_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateMetadataRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdatePoolQuery.java b/src/main/java/com/formance/formance_sdk/operations/UpdatePoolQuery.java index c29b0c3d3..96428487c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdatePoolQuery.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdatePoolQuery.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UpdatePoolQueryRequest; import com.formance.formance_sdk.models.operations.UpdatePoolQueryResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdatePoolQuery { + + /** + * UPDATE_POOL_QUERY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_POOL_QUERY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_POOL_QUERY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdatePoolQueryRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateTransferInitiationStatus.java b/src/main/java/com/formance/formance_sdk/operations/UpdateTransferInitiationStatus.java index f129bc28b..bea965b38 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateTransferInitiationStatus.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateTransferInitiationStatus.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.UpdateTransferInitiationStatusRequest; import com.formance.formance_sdk.models.operations.UpdateTransferInitiationStatusResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateTransferInitiationStatus { + + /** + * UPDATE_TRANSFER_INITIATION_STATUS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_TRANSFER_INITIATION_STATUS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_TRANSFER_INITIATION_STATUS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateTransferInitiationStatusRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/UpdateWallet.java b/src/main/java/com/formance/formance_sdk/operations/UpdateWallet.java index 4ebce4423..9cc1f50c3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/UpdateWallet.java +++ b/src/main/java/com/formance/formance_sdk/operations/UpdateWallet.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.UpdateWalletRequest; import com.formance.formance_sdk.models.operations.UpdateWalletResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class UpdateWallet { + + /** + * UPDATE_WALLET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] UPDATE_WALLET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + UPDATE_WALLET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(UpdateWalletRequest request) throws Exception { @@ -168,7 +185,7 @@ public UpdateWalletResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2AddMetadataOnTransaction.java b/src/main/java/com/formance/formance_sdk/operations/V2AddMetadataOnTransaction.java index 5f04f8a06..2ed193e1d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2AddMetadataOnTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2AddMetadataOnTransaction.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionRequest; import com.formance.formance_sdk.models.operations.V2AddMetadataOnTransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2AddMetadataOnTransaction { + + /** + * V2_ADD_METADATA_ON_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_ADD_METADATA_ON_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_ADD_METADATA_ON_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -117,8 +130,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2AddMetadataOnTransactionRequest request) throws Exception { @@ -178,7 +195,7 @@ public V2AddMetadataOnTransactionResponse handleResponse(HttpResponse serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_ADD_METADATA_TO_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -117,8 +130,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2AddMetadataToAccountRequest request) throws Exception { @@ -178,7 +195,7 @@ public V2AddMetadataToAccountResponse handleResponse(HttpResponse r } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CancelEvent.java b/src/main/java/com/formance/formance_sdk/operations/V2CancelEvent.java index 7363b9866..c9a80240a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CancelEvent.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CancelEvent.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2CancelEventRequest; import com.formance.formance_sdk.models.operations.V2CancelEventResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CancelEvent { + + /** + * V2_CANCEL_EVENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CANCEL_EVENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CANCEL_EVENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CancelEventRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CountAccounts.java b/src/main/java/com/formance/formance_sdk/operations/V2CountAccounts.java index aa8d22cd1..8e5635b07 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CountAccounts.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CountAccounts.java @@ -6,10 +6,11 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import static com.formance.formance_sdk.utils.Exceptions.unchecked; +import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CountAccountsRequest; import com.formance.formance_sdk.models.operations.V2CountAccountsResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -18,16 +19,28 @@ import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CountAccounts { + + /** + * V2_COUNT_ACCOUNTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_COUNT_ACCOUNTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_COUNT_ACCOUNTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -75,13 +93,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/accounts", request, null); HTTPRequest req = new HTTPRequest(url, "HEAD"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +129,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CountAccountsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2CountAccountsRequest.class); + HttpRequest req = buildRequest(request, V2CountAccountsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -159,7 +194,7 @@ public V2CountAccountsResponse handleResponse(HttpResponse response } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CountTransactions.java b/src/main/java/com/formance/formance_sdk/operations/V2CountTransactions.java index 75c390411..056594653 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CountTransactions.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CountTransactions.java @@ -6,10 +6,11 @@ import static com.formance.formance_sdk.operations.Operations.RequestOperation; import static com.formance.formance_sdk.utils.Exceptions.unchecked; +import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CountTransactionsRequest; import com.formance.formance_sdk.models.operations.V2CountTransactionsResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -18,16 +19,28 @@ import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CountTransactions { + + /** + * V2_COUNT_TRANSACTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_COUNT_TRANSACTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_COUNT_TRANSACTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -75,13 +93,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/transactions", request, null); HTTPRequest req = new HTTPRequest(url, "HEAD"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +129,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CountTransactionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2CountTransactionsRequest.class); + HttpRequest req = buildRequest(request, V2CountTransactionsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -159,7 +194,7 @@ public V2CountTransactionsResponse handleResponse(HttpResponse resp } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreateBulk.java b/src/main/java/com/formance/formance_sdk/operations/V2CreateBulk.java index c2a20c2dc..984e8ca57 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreateBulk.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreateBulk.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2BulkResponse; import com.formance.formance_sdk.models.operations.V2CreateBulkRequest; import com.formance.formance_sdk.models.operations.V2CreateBulkResponse; -import com.formance.formance_sdk.models.shared.V2BulkResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreateBulk { + + /** + * V2_CREATE_BULK_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_BULK_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_BULK_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -117,8 +130,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CreateBulkRequest request) throws Exception { @@ -187,7 +204,7 @@ public V2CreateBulkResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreateExporter.java b/src/main/java/com/formance/formance_sdk/operations/V2CreateExporter.java index d7d73a511..dbf940b84 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreateExporter.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreateExporter.java @@ -10,10 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ExporterConfiguration2; import com.formance.formance_sdk.models.operations.V2CreateExporterResponse; -import com.formance.formance_sdk.models.operations.V2CreateExporterResponseBody; -import com.formance.formance_sdk.models.shared.V2CreateExporterRequest; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -30,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreateExporter { + + /** + * V2_CREATE_EXPORTER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_EXPORTER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,12 +49,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_EXPORTER_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -60,7 +72,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2CreateExporter", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -69,7 +81,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2CreateExporter", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -78,7 +90,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2CreateExporter", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { @@ -102,20 +114,23 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } } public static class Sync extends Base - implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + implements RequestOperation { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } - private HttpRequest onBuildRequest(V2CreateExporterRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(V2ExporterConfiguration2 request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -131,7 +146,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(V2CreateExporterRequest request) { + public HttpResponse doRequest(V2ExporterConfiguration2 request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -166,14 +181,14 @@ public V2CreateExporterResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withObject(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2CreateExporterResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreateLedger.java b/src/main/java/com/formance/formance_sdk/operations/V2CreateLedger.java index ad2b541e2..611473a69 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreateLedger.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreateLedger.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CreateLedgerRequest; import com.formance.formance_sdk.models.operations.V2CreateLedgerResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreateLedger { + + /** + * V2_CREATE_LEDGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_LEDGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_LEDGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CreateLedgerRequest request) throws Exception { @@ -171,7 +188,7 @@ public V2CreateLedgerResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreatePipeline.java b/src/main/java/com/formance/formance_sdk/operations/V2CreatePipeline.java index bc67366a5..588da647f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreatePipeline.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreatePipeline.java @@ -10,10 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CreatePipelineRequest; import com.formance.formance_sdk.models.operations.V2CreatePipelineResponse; -import com.formance.formance_sdk.models.operations.V2CreatePipelineResponseBody; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreatePipeline { + + /** + * V2_CREATE_PIPELINE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_PIPELINE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,12 +48,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_PIPELINE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -59,7 +71,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2CreatePipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -68,7 +80,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2CreatePipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -77,7 +89,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2CreatePipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { @@ -100,7 +112,6 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -108,8 +119,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CreatePipelineRequest request) throws Exception { @@ -164,14 +179,14 @@ public V2CreatePipelineResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withObject(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2CreatePipelineResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreateTransaction.java b/src/main/java/com/formance/formance_sdk/operations/V2CreateTransaction.java index 11cf8d728..0abce4d84 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreateTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreateTransaction.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2CreateTransactionRequest; import com.formance.formance_sdk.models.operations.V2CreateTransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreateTransaction { + + /** + * V2_CREATE_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -117,8 +130,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2CreateTransactionRequest request) throws Exception { @@ -174,14 +191,14 @@ public V2CreateTransactionResponse handleResponse(HttpResponse resp if (Utils.statusCodeMatches(response.statusCode(), "200")) { res.withHeaders(response.headers().map()); if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2CreateTransactionResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2CreateTransactionResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreateTrigger.java b/src/main/java/com/formance/formance_sdk/operations/V2CreateTrigger.java index 48183161f..b1a7e7195 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreateTrigger.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreateTrigger.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2CreateTriggerResponse; -import com.formance.formance_sdk.models.shared.V2TriggerData; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2TriggerData2; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreateTrigger { + + /** + * V2_CREATE_TRIGGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_TRIGGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -104,13 +117,17 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, V2CreateTriggerResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + implements RequestOperation, V2CreateTriggerResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -126,7 +143,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(Optional request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -161,7 +178,7 @@ public V2CreateTriggerResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2CreateTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2CreateTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2CreateWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/V2CreateWorkflow.java index 8cff78eff..5ee369522 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2CreateWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2CreateWorkflow.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2CreateWorkflowResponse; -import com.formance.formance_sdk.models.shared.V2CreateWorkflowRequest; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2WorkflowConfig; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2CreateWorkflow { + + /** + * V2_CREATE_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_CREATE_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_CREATE_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -104,13 +117,17 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, V2CreateWorkflowResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + implements RequestOperation, V2CreateWorkflowResponse> { + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(Optional request) throws Exception { + HttpRequest req = buildRequest(request, new TypeReference>() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -126,7 +143,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(Optional request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -161,7 +178,7 @@ public V2CreateWorkflowResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2CreateWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2CreateWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeleteAccountMetadata.java b/src/main/java/com/formance/formance_sdk/operations/V2DeleteAccountMetadata.java index 71f2dc6c4..137c99b15 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeleteAccountMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeleteAccountMetadata.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteAccountMetadataRequest; import com.formance.formance_sdk.models.operations.V2DeleteAccountMetadataResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeleteAccountMetadata { + + /** + * V2_DELETE_ACCOUNT_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_ACCOUNT_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_ACCOUNT_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteAccountMetadataRequest request) throws Exception { @@ -155,7 +172,7 @@ public V2DeleteAccountMetadataResponse handleResponse(HttpResponse } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeleteBucket.java b/src/main/java/com/formance/formance_sdk/operations/V2DeleteBucket.java index a3481ced4..65538e1ef 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeleteBucket.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeleteBucket.java @@ -10,9 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteBucketRequest; import com.formance.formance_sdk.models.operations.V2DeleteBucketResponse; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeleteBucket { + + /** + * V2_DELETE_BUCKET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_BUCKET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_BUCKET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteBucketRequest request) throws Exception { @@ -161,7 +179,7 @@ public V2DeleteBucketResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw com.formance.formance_sdk.models.errors.V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeleteExporter.java b/src/main/java/com/formance/formance_sdk/operations/V2DeleteExporter.java index e17f8de10..a8a4d1116 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeleteExporter.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeleteExporter.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteExporterRequest; import com.formance.formance_sdk.models.operations.V2DeleteExporterResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeleteExporter { + + /** + * V2_DELETE_EXPORTER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_EXPORTER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,12 +44,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_EXPORTER_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -54,7 +67,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2DeleteExporter", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -63,7 +76,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2DeleteExporter", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -72,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2DeleteExporter", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -85,7 +98,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -93,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteExporterRequest request) throws Exception { @@ -153,7 +169,7 @@ public V2DeleteExporterResponse handleResponse(HttpResponse respons } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeleteLedgerMetadata.java b/src/main/java/com/formance/formance_sdk/operations/V2DeleteLedgerMetadata.java index 26a7d8e37..982545ce4 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeleteLedgerMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeleteLedgerMetadata.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteLedgerMetadataRequest; import com.formance.formance_sdk.models.operations.V2DeleteLedgerMetadataResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeleteLedgerMetadata { + + /** + * V2_DELETE_LEDGER_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_LEDGER_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_LEDGER_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteLedgerMetadataRequest request) throws Exception { @@ -153,7 +170,7 @@ public V2DeleteLedgerMetadataResponse handleResponse(HttpResponse r } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeletePipeline.java b/src/main/java/com/formance/formance_sdk/operations/V2DeletePipeline.java index 45b35f9d6..e1457c274 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeletePipeline.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeletePipeline.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeletePipelineRequest; import com.formance.formance_sdk.models.operations.V2DeletePipelineResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeletePipeline { + + /** + * V2_DELETE_PIPELINE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_PIPELINE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,12 +44,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_PIPELINE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -54,7 +67,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2DeletePipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -63,7 +76,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2DeletePipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -72,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2DeletePipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -85,7 +98,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -93,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeletePipelineRequest request) throws Exception { @@ -153,7 +169,7 @@ public V2DeletePipelineResponse handleResponse(HttpResponse respons } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeleteTransactionMetadata.java b/src/main/java/com/formance/formance_sdk/operations/V2DeleteTransactionMetadata.java index 545b162ac..4d26d375c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeleteTransactionMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeleteTransactionMetadata.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2DeleteTransactionMetadataRequest; import com.formance.formance_sdk.models.operations.V2DeleteTransactionMetadataResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeleteTransactionMetadata { + + /** + * V2_DELETE_TRANSACTION_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_TRANSACTION_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_TRANSACTION_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteTransactionMetadataRequest request) throws Exception { @@ -155,7 +172,7 @@ public V2DeleteTransactionMetadataResponse handleResponse(HttpResponse serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteTriggerRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2DeleteWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/V2DeleteWorkflow.java index 762b3b742..c259de3c7 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2DeleteWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2DeleteWorkflow.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2DeleteWorkflowRequest; import com.formance.formance_sdk.models.operations.V2DeleteWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2DeleteWorkflow { + + /** + * V2_DELETE_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_DELETE_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_DELETE_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2DeleteWorkflowRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ExportLogs.java b/src/main/java/com/formance/formance_sdk/operations/V2ExportLogs.java index c9461db9b..689721654 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ExportLogs.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ExportLogs.java @@ -23,10 +23,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ExportLogs { + + /** + * V2_EXPORT_LOGS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_EXPORT_LOGS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -35,11 +43,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_EXPORT_LOGS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ExportLogsRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetAccount.java b/src/main/java/com/formance/formance_sdk/operations/V2GetAccount.java index 40c819cb4..555160f1d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetAccount.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2AccountResponse; import com.formance.formance_sdk.models.operations.V2GetAccountRequest; import com.formance.formance_sdk.models.operations.V2GetAccountResponse; -import com.formance.formance_sdk.models.shared.V2AccountResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetAccount { + + /** + * V2_GET_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetAccountRequest request) throws Exception { @@ -163,7 +180,7 @@ public V2GetAccountResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetBalancesAggregated.java b/src/main/java/com/formance/formance_sdk/operations/V2GetBalancesAggregated.java index 92256da75..a35b89f08 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetBalancesAggregated.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetBalancesAggregated.java @@ -10,26 +10,38 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2AggregateBalancesResponse; import com.formance.formance_sdk.models.operations.V2GetBalancesAggregatedRequest; import com.formance.formance_sdk.models.operations.V2GetBalancesAggregatedResponse; -import com.formance.formance_sdk.models.shared.V2AggregateBalancesResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetBalancesAggregated { + + /** + * V2_GET_BALANCES_AGGREGATED_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_BALANCES_AGGREGATED_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_BALANCES_AGGREGATED_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +94,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/aggregate/balances", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +130,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetBalancesAggregatedRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2GetBalancesAggregatedRequest.class); + HttpRequest req = buildRequest(request, V2GetBalancesAggregatedRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -163,7 +197,7 @@ public V2GetBalancesAggregatedResponse handleResponse(HttpResponse } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetExporterState.java b/src/main/java/com/formance/formance_sdk/operations/V2GetExporterState.java index c8f3a694b..c7cb9631f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetExporterState.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetExporterState.java @@ -10,10 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetExporterStateRequest; import com.formance.formance_sdk.models.operations.V2GetExporterStateResponse; -import com.formance.formance_sdk.models.operations.V2GetExporterStateResponseBody; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetExporterState { + + /** + * V2_GET_EXPORTER_STATE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_EXPORTER_STATE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,12 +45,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_EXPORTER_STATE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -56,7 +68,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2GetExporterState", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -65,7 +77,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2GetExporterState", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -74,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2GetExporterState", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -87,7 +99,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -95,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetExporterStateRequest request) throws Exception { @@ -151,14 +166,14 @@ public V2GetExporterStateResponse handleResponse(HttpResponse respo if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withObject(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2GetExporterStateResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetInfo.java b/src/main/java/com/formance/formance_sdk/operations/V2GetInfo.java index c6a9c0421..14252c8a0 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetInfo.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetInfo.java @@ -10,9 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ConfigInfo; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetInfoResponse; -import com.formance.formance_sdk.models.shared.V2ConfigInfoResponse; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetInfo { + + /** + * V2_GET_INFO_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_INFO_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_INFO_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +106,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -148,7 +166,7 @@ public V2GetInfoResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2ConfigInfoResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2ConfigInfo(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } @@ -162,7 +180,7 @@ public V2GetInfoResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw com.formance.formance_sdk.models.errors.V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetInstance.java b/src/main/java/com/formance/formance_sdk/operations/V2GetInstance.java index f676257c8..3f34d5f89 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetInstance.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetInstance.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetInstanceRequest; import com.formance.formance_sdk.models.operations.V2GetInstanceResponse; -import com.formance.formance_sdk.models.shared.V2GetWorkflowInstanceResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2GetWorkflowInstanceResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetInstance { + + /** + * V2_GET_INSTANCE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_INSTANCE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_INSTANCE_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetInstanceRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceHistory.java b/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceHistory.java index 05b089d9f..316dcb101 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceHistory.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceHistory.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetInstanceHistoryRequest; import com.formance.formance_sdk.models.operations.V2GetInstanceHistoryResponse; -import com.formance.formance_sdk.models.shared.V2GetWorkflowInstanceHistoryResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2GetWorkflowInstanceHistoryResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetInstanceHistory { + + /** + * V2_GET_INSTANCE_HISTORY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_INSTANCE_HISTORY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_INSTANCE_HISTORY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetInstanceHistoryRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceStageHistory.java b/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceStageHistory.java index 05d34ca76..026cb93af 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceStageHistory.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetInstanceStageHistory.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetInstanceStageHistoryRequest; import com.formance.formance_sdk.models.operations.V2GetInstanceStageHistoryResponse; -import com.formance.formance_sdk.models.shared.V2GetWorkflowInstanceHistoryStageResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2GetWorkflowInstanceHistoryStageResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetInstanceStageHistory { + + /** + * V2_GET_INSTANCE_STAGE_HISTORY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_INSTANCE_STAGE_HISTORY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_INSTANCE_STAGE_HISTORY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetInstanceStageHistoryRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetLedger.java b/src/main/java/com/formance/formance_sdk/operations/V2GetLedger.java index c2a9116b5..deb8b702a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetLedger.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetLedger.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetLedgerRequest; import com.formance.formance_sdk.models.operations.V2GetLedgerResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetLedger { + + /** + * V2_GET_LEDGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_LEDGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_LEDGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetLedgerRequest request) throws Exception { @@ -150,14 +167,14 @@ public V2GetLedgerResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2GetLedgerResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2GetLedgerResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetLedgerInfo.java b/src/main/java/com/formance/formance_sdk/operations/V2GetLedgerInfo.java index 16afd6386..fc5c8055b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetLedgerInfo.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetLedgerInfo.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2LedgerInfoResponse; import com.formance.formance_sdk.models.operations.V2GetLedgerInfoRequest; import com.formance.formance_sdk.models.operations.V2GetLedgerInfoResponse; -import com.formance.formance_sdk.models.shared.V2LedgerInfoResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetLedgerInfo { + + /** + * V2_GET_LEDGER_INFO_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_LEDGER_INFO_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_LEDGER_INFO_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetLedgerInfoRequest request) throws Exception { @@ -158,7 +175,7 @@ public V2GetLedgerInfoResponse handleResponse(HttpResponse response } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetPipelineState.java b/src/main/java/com/formance/formance_sdk/operations/V2GetPipelineState.java index 3989e44d9..ed2abfa83 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetPipelineState.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetPipelineState.java @@ -10,10 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetPipelineStateRequest; import com.formance.formance_sdk.models.operations.V2GetPipelineStateResponse; -import com.formance.formance_sdk.models.operations.V2GetPipelineStateResponseBody; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetPipelineState { + + /** + * V2_GET_PIPELINE_STATE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_PIPELINE_STATE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,12 +45,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_PIPELINE_STATE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -56,7 +68,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2GetPipelineState", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -65,7 +77,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2GetPipelineState", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -74,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2GetPipelineState", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -87,7 +99,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -95,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetPipelineStateRequest request) throws Exception { @@ -151,14 +166,14 @@ public V2GetPipelineStateResponse handleResponse(HttpResponse respo if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withObject(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2GetPipelineStateResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetSchema.java b/src/main/java/com/formance/formance_sdk/operations/V2GetSchema.java index 6d4d5c337..3c088ddd6 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetSchema.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetSchema.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2SchemaResponse; import com.formance.formance_sdk.models.operations.V2GetSchemaRequest; import com.formance.formance_sdk.models.operations.V2GetSchemaResponse; -import com.formance.formance_sdk.models.shared.V2SchemaResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetSchema { + + /** + * V2_GET_SCHEMA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_SCHEMA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_SCHEMA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetSchemaRequest request) throws Exception { @@ -158,7 +175,7 @@ public V2GetSchemaResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/V2GetServerInfo.java index cf5a3c8c6..32632489e 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetServerInfo.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetServerInfo.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetServerInfoResponse; -import com.formance.formance_sdk.models.shared.V2ServerInfo; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2ServerInfo; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetServerInfo { + + /** + * V2_GET_SERVER_INFO_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_SERVER_INFO_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_SERVER_INFO_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetTransaction.java b/src/main/java/com/formance/formance_sdk/operations/V2GetTransaction.java index 807c8791c..f737dde85 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetTransaction.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2GetTransactionRequest; import com.formance.formance_sdk.models.operations.V2GetTransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetTransaction { + + /** + * V2_GET_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -99,8 +112,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetTransactionRequest request) throws Exception { @@ -155,14 +172,14 @@ public V2GetTransactionResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2GetTransactionResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2GetTransactionResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetVolumesWithBalances.java b/src/main/java/com/formance/formance_sdk/operations/V2GetVolumesWithBalances.java index 95ae04b34..239d23373 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetVolumesWithBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetVolumesWithBalances.java @@ -10,26 +10,38 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2VolumesWithBalanceCursorResponse; import com.formance.formance_sdk.models.operations.V2GetVolumesWithBalancesRequest; import com.formance.formance_sdk.models.operations.V2GetVolumesWithBalancesResponse; -import com.formance.formance_sdk.models.shared.V2VolumesWithBalanceCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetVolumesWithBalances { + + /** + * V2_GET_VOLUMES_WITH_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_VOLUMES_WITH_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_VOLUMES_WITH_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +94,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/volumes", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +130,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetVolumesWithBalancesRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2GetVolumesWithBalancesRequest.class); + HttpRequest req = buildRequest(request, V2GetVolumesWithBalancesRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -163,7 +197,7 @@ public V2GetVolumesWithBalancesResponse handleResponse(HttpResponse } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2GetWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/V2GetWorkflow.java index 650c86589..9b67aec27 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2GetWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2GetWorkflow.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2GetWorkflowRequest; import com.formance.formance_sdk.models.operations.V2GetWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2GetWorkflow { + + /** + * V2_GET_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_GET_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_GET_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2GetWorkflowRequest request) throws Exception { @@ -150,7 +167,7 @@ public V2GetWorkflowResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2GetWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2GetWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ImportLogs.java b/src/main/java/com/formance/formance_sdk/operations/V2ImportLogs.java index 450bc33aa..a84c70822 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ImportLogs.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ImportLogs.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ImportLogsRequest; import com.formance.formance_sdk.models.operations.V2ImportLogsResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ImportLogs { + + /** + * V2_IMPORT_LOGS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_IMPORT_LOGS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_IMPORT_LOGS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ImportLogsRequest request) throws Exception { @@ -171,7 +188,7 @@ public V2ImportLogsResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2InsertSchema.java b/src/main/java/com/formance/formance_sdk/operations/V2InsertSchema.java index 704ae6126..7ee288d46 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2InsertSchema.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2InsertSchema.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2InsertSchemaRequest; import com.formance.formance_sdk.models.operations.V2InsertSchemaResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2InsertSchema { + + /** + * V2_INSERT_SCHEMA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_INSERT_SCHEMA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_INSERT_SCHEMA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2InsertSchemaRequest request) throws Exception { @@ -173,7 +190,7 @@ public V2InsertSchemaResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListAccounts.java b/src/main/java/com/formance/formance_sdk/operations/V2ListAccounts.java index 6b8422337..b15f8e923 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListAccounts.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListAccounts.java @@ -10,26 +10,38 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2AccountsCursorResponse; import com.formance.formance_sdk.models.operations.V2ListAccountsRequest; import com.formance.formance_sdk.models.operations.V2ListAccountsResponse; -import com.formance.formance_sdk.models.shared.V2AccountsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListAccounts { + + /** + * V2_LIST_ACCOUNTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_ACCOUNTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_ACCOUNTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +94,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/accounts", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +130,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListAccountsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2ListAccountsRequest.class); + HttpRequest req = buildRequest(request, V2ListAccountsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -163,7 +197,7 @@ public V2ListAccountsResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListExporters.java b/src/main/java/com/formance/formance_sdk/operations/V2ListExporters.java index 33d8eca0b..9a8edb19a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListExporters.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListExporters.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ExportersCursorResponse; import com.formance.formance_sdk.models.operations.V2ListExportersResponse; -import com.formance.formance_sdk.models.operations.V2ListExportersResponseBody; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListExporters { + + /** + * V2_LIST_EXPORTERS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_EXPORTERS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,12 +45,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_EXPORTERS_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -55,7 +68,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2ListExporters", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -64,7 +77,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2ListExporters", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -73,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2ListExporters", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest() throws Exception { @@ -84,7 +97,6 @@ HttpRequest buildRequest() throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -92,8 +104,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { @@ -148,14 +164,14 @@ public V2ListExportersResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withObject(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2ExportersCursorResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListInstances.java b/src/main/java/com/formance/formance_sdk/operations/V2ListInstances.java index 1d8560b35..6f809c1f3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListInstances.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListInstances.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListInstancesRequest; import com.formance.formance_sdk.models.operations.V2ListInstancesResponse; -import com.formance.formance_sdk.models.shared.V2ListRunsResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; +import com.formance.formance_sdk.models.orchestration.V2ListRunsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListInstances { + + /** + * V2_LIST_INSTANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_INSTANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_INSTANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -98,8 +111,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListInstancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListLedgers.java b/src/main/java/com/formance/formance_sdk/operations/V2ListLedgers.java index 4331b009d..442a83d4d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListLedgers.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListLedgers.java @@ -10,26 +10,38 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2LedgerListResponse; import com.formance.formance_sdk.models.operations.V2ListLedgersRequest; import com.formance.formance_sdk.models.operations.V2ListLedgersResponse; -import com.formance.formance_sdk.models.shared.V2LedgerListResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListLedgers { + + /** + * V2_LIST_LEDGERS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_LEDGERS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_LEDGERS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +94,24 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/ledger/v2"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +128,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListLedgersRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2ListLedgersRequest.class); + HttpRequest req = buildRequest(request, V2ListLedgersRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -161,7 +195,7 @@ public V2ListLedgersResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListLogs.java b/src/main/java/com/formance/formance_sdk/operations/V2ListLogs.java index 4e6bdf00e..73cb3229e 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListLogs.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListLogs.java @@ -10,26 +10,38 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2LogsCursorResponse; import com.formance.formance_sdk.models.operations.V2ListLogsRequest; import com.formance.formance_sdk.models.operations.V2ListLogsResponse; -import com.formance.formance_sdk.models.shared.V2LogsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListLogs { + + /** + * V2_LIST_LOGS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_LOGS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_LOGS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +94,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/logs", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +130,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListLogsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2ListLogsRequest.class); + HttpRequest req = buildRequest(request, V2ListLogsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -163,7 +197,7 @@ public V2ListLogsResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListPipelines.java b/src/main/java/com/formance/formance_sdk/operations/V2ListPipelines.java index 56f6f0332..f6d76d886 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListPipelines.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListPipelines.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2PipelinesCursorResponse; import com.formance.formance_sdk.models.operations.V2ListPipelinesRequest; import com.formance.formance_sdk.models.operations.V2ListPipelinesResponse; -import com.formance.formance_sdk.models.operations.V2ListPipelinesResponseBody; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListPipelines { + + /** + * V2_LIST_PIPELINES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_PIPELINES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,12 +46,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_PIPELINES_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -56,7 +69,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2ListPipelines", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -65,7 +78,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2ListPipelines", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -74,7 +87,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2ListPipelines", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -87,7 +100,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -95,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListPipelinesRequest request) throws Exception { @@ -151,14 +167,14 @@ public V2ListPipelinesResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withObject(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2PipelinesCursorResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListSchemas.java b/src/main/java/com/formance/formance_sdk/operations/V2ListSchemas.java index 966194416..4a1525bdc 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListSchemas.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListSchemas.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2SchemasCursorResponse; import com.formance.formance_sdk.models.operations.V2ListSchemasRequest; import com.formance.formance_sdk.models.operations.V2ListSchemasResponse; -import com.formance.formance_sdk.models.shared.V2SchemasCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListSchemas { + + /** + * V2_LIST_SCHEMAS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_SCHEMAS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_SCHEMAS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListSchemasRequest request) throws Exception { @@ -163,7 +180,7 @@ public V2ListSchemasResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListTransactions.java b/src/main/java/com/formance/formance_sdk/operations/V2ListTransactions.java index 44f41fa47..f47fdd326 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListTransactions.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListTransactions.java @@ -10,26 +10,38 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2TransactionsCursorResponse; import com.formance.formance_sdk.models.operations.V2ListTransactionsRequest; import com.formance.formance_sdk.models.operations.V2ListTransactionsResponse; -import com.formance.formance_sdk.models.shared.V2TransactionsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.IllegalArgumentException; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListTransactions { + + /** + * V2_LIST_TRANSACTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_TRANSACTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_TRANSACTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +94,26 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("ledger:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/ledger/v2/{ledger}/transactions", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + if (serializedRequestBody == null) { + throw new IllegalArgumentException("Request body is required"); + } + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +130,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListTransactionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V2ListTransactionsRequest.class); + HttpRequest req = buildRequest(request, V2ListTransactionsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -163,7 +197,7 @@ public V2ListTransactionsResponse handleResponse(HttpResponse respo } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListTriggers.java b/src/main/java/com/formance/formance_sdk/operations/V2ListTriggers.java index c6b010742..35662269d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListTriggers.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListTriggers.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListTriggersRequest; import com.formance.formance_sdk.models.operations.V2ListTriggersResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListTriggers { + + /** + * V2_LIST_TRIGGERS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_TRIGGERS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_TRIGGERS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -97,8 +110,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListTriggersRequest request) throws Exception { @@ -153,7 +170,7 @@ public V2ListTriggersResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2ListTriggersResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2ListTriggersResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListTriggersOccurrences.java b/src/main/java/com/formance/formance_sdk/operations/V2ListTriggersOccurrences.java index 9b684b14d..1fc23a5cb 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListTriggersOccurrences.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListTriggersOccurrences.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListTriggersOccurrencesRequest; import com.formance.formance_sdk.models.operations.V2ListTriggersOccurrencesResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListTriggersOccurrences { + + /** + * V2_LIST_TRIGGERS_OCCURRENCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_TRIGGERS_OCCURRENCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_TRIGGERS_OCCURRENCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -99,8 +112,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListTriggersOccurrencesRequest request) throws Exception { @@ -155,7 +172,7 @@ public V2ListTriggersOccurrencesResponse handleResponse(HttpResponse() {})); + return res.withV2ListTriggersOccurrencesResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ListWorkflows.java b/src/main/java/com/formance/formance_sdk/operations/V2ListWorkflows.java index a5b770e8a..8d37adf91 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ListWorkflows.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ListWorkflows.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ListWorkflowsRequest; import com.formance.formance_sdk.models.operations.V2ListWorkflowsResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ListWorkflows { + + /** + * V2_LIST_WORKFLOWS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_LIST_WORKFLOWS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_LIST_WORKFLOWS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -97,8 +110,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ListWorkflowsRequest request) throws Exception { @@ -153,7 +170,7 @@ public V2ListWorkflowsResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2ListWorkflowsResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2ListWorkflowsResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ReadStats.java b/src/main/java/com/formance/formance_sdk/operations/V2ReadStats.java index 5c7381d24..547005d2a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ReadStats.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ReadStats.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2StatsResponse; import com.formance.formance_sdk.models.operations.V2ReadStatsRequest; import com.formance.formance_sdk.models.operations.V2ReadStatsResponse; -import com.formance.formance_sdk.models.shared.V2StatsResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ReadStats { + + /** + * V2_READ_STATS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_READ_STATS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_READ_STATS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ReadStatsRequest request) throws Exception { @@ -158,7 +175,7 @@ public V2ReadStatsResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ReadTrigger.java b/src/main/java/com/formance/formance_sdk/operations/V2ReadTrigger.java index cb1fdb956..68ed55885 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ReadTrigger.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ReadTrigger.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2ReadTriggerRequest; import com.formance.formance_sdk.models.operations.V2ReadTriggerResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ReadTrigger { + + /** + * V2_READ_TRIGGER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_READ_TRIGGER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_READ_TRIGGER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ReadTriggerRequest request) throws Exception { @@ -150,7 +167,7 @@ public V2ReadTriggerResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2ReadTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2ReadTriggerResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2ResetPipeline.java b/src/main/java/com/formance/formance_sdk/operations/V2ResetPipeline.java index f2c0ccd29..6c28dd1a3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2ResetPipeline.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2ResetPipeline.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2ResetPipelineRequest; import com.formance.formance_sdk.models.operations.V2ResetPipelineResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2ResetPipeline { + + /** + * V2_RESET_PIPELINE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_RESET_PIPELINE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,12 +44,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_RESET_PIPELINE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -54,7 +67,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2ResetPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -63,7 +76,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2ResetPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -72,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2ResetPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -85,7 +98,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -93,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2ResetPipelineRequest request) throws Exception { @@ -153,7 +169,7 @@ public V2ResetPipelineResponse handleResponse(HttpResponse response } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2RestoreBucket.java b/src/main/java/com/formance/formance_sdk/operations/V2RestoreBucket.java index c01e8ffda..f33c37f06 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2RestoreBucket.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2RestoreBucket.java @@ -10,9 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.models.operations.V2RestoreBucketRequest; import com.formance.formance_sdk.models.operations.V2RestoreBucketResponse; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2RestoreBucket { + + /** + * V2_RESTORE_BUCKET_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_RESTORE_BUCKET_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_RESTORE_BUCKET_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2RestoreBucketRequest request) throws Exception { @@ -161,7 +179,7 @@ public V2RestoreBucketResponse handleResponse(HttpResponse response } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw com.formance.formance_sdk.models.errors.V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2RevertTransaction.java b/src/main/java/com/formance/formance_sdk/operations/V2RevertTransaction.java index 201fd9e96..59d666673 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2RevertTransaction.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2RevertTransaction.java @@ -10,7 +10,8 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2CreateTransactionResponse; import com.formance.formance_sdk.models.operations.V2RevertTransactionRequest; import com.formance.formance_sdk.models.operations.V2RevertTransactionResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -28,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2RevertTransaction { + + /** + * V2_REVERT_TRANSACTION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_REVERT_TRANSACTION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_REVERT_TRANSACTION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -113,8 +127,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2RevertTransactionRequest request) throws Exception { @@ -170,14 +188,14 @@ public V2RevertTransactionResponse handleResponse(HttpResponse resp if (Utils.statusCodeMatches(response.statusCode(), "201")) { res.withHeaders(response.headers().map()); if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2RevertTransactionResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2CreateTransactionResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2RunQuery.java b/src/main/java/com/formance/formance_sdk/operations/V2RunQuery.java index e64f195af..f363b19e5 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2RunQuery.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2RunQuery.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2RunQueryRequest; import com.formance.formance_sdk.models.operations.V2RunQueryResponse; import com.formance.formance_sdk.models.operations.V2RunQueryResponseBody; @@ -30,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2RunQuery { + + /** + * V2_RUN_QUERY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_RUN_QUERY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -42,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_RUN_QUERY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -117,8 +130,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2RunQueryRequest request) throws Exception { @@ -180,7 +197,7 @@ public V2RunQueryResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2RunWorkflow.java b/src/main/java/com/formance/formance_sdk/operations/V2RunWorkflow.java index 1a214ec2d..c889d9af7 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2RunWorkflow.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2RunWorkflow.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2RunWorkflowRequest; import com.formance.formance_sdk.models.operations.V2RunWorkflowResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2RunWorkflow { + + /** + * V2_RUN_WORKFLOW_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_RUN_WORKFLOW_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_RUN_WORKFLOW_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -112,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2RunWorkflowRequest request) throws Exception { @@ -168,7 +185,7 @@ public V2RunWorkflowResponse handleResponse(HttpResponse response) if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV2RunWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV2RunWorkflowResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2SendEvent.java b/src/main/java/com/formance/formance_sdk/operations/V2SendEvent.java index dbd92baec..b4f6711ab 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2SendEvent.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2SendEvent.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2Error; import com.formance.formance_sdk.models.operations.V2SendEventRequest; import com.formance.formance_sdk.models.operations.V2SendEventResponse; +import com.formance.formance_sdk.models.orchestration.V2Error; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2SendEvent { + + /** + * V2_SEND_EVENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_SEND_EVENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_SEND_EVENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2SendEventRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V2StartPipeline.java b/src/main/java/com/formance/formance_sdk/operations/V2StartPipeline.java index 020a51c57..a032b39ce 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2StartPipeline.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2StartPipeline.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2StartPipelineRequest; import com.formance.formance_sdk.models.operations.V2StartPipelineResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2StartPipeline { + + /** + * V2_START_PIPELINE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_START_PIPELINE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,12 +44,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_START_PIPELINE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -54,7 +67,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2StartPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -63,7 +76,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2StartPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -72,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2StartPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -85,7 +98,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -93,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2StartPipelineRequest request) throws Exception { @@ -153,7 +169,7 @@ public V2StartPipelineResponse handleResponse(HttpResponse response } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2StopPipeline.java b/src/main/java/com/formance/formance_sdk/operations/V2StopPipeline.java index b3e64ab31..33a9d5759 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2StopPipeline.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2StopPipeline.java @@ -9,7 +9,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2StopPipelineRequest; import com.formance.formance_sdk.models.operations.V2StopPipelineResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2StopPipeline { + + /** + * V2_STOP_PIPELINE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_STOP_PIPELINE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,12 +44,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_STOP_PIPELINE_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -54,7 +67,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v2StopPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -63,7 +76,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v2StopPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -72,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v2StopPipeline", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -85,7 +98,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -93,8 +105,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2StopPipelineRequest request) throws Exception { @@ -153,7 +169,7 @@ public V2StopPipelineResponse handleResponse(HttpResponse response) } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2UpdateExporter.java b/src/main/java/com/formance/formance_sdk/operations/V2UpdateExporter.java index aac3607fc..c7d38766c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2UpdateExporter.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2UpdateExporter.java @@ -10,7 +10,7 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V2ErrorResponse; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; import com.formance.formance_sdk.models.operations.V2UpdateExporterRequest; import com.formance.formance_sdk.models.operations.V2UpdateExporterResponse; import com.formance.formance_sdk.utils.HTTPClient; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2UpdateExporter { + + /** + * V2_UPDATE_EXPORTER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_UPDATE_EXPORTER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_UPDATE_EXPORTER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,7 +106,7 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "v2CreateExporterRequest", + "v2ExporterConfiguration", "json", false); if (serializedRequestBody == null) { @@ -111,8 +124,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2UpdateExporterRequest request) throws Exception { @@ -171,7 +188,7 @@ public V2UpdateExporterResponse handleResponse(HttpResponse respons } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V2UpdateLedgerMetadata.java b/src/main/java/com/formance/formance_sdk/operations/V2UpdateLedgerMetadata.java index b562b47bb..05d57c049 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V2UpdateLedgerMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/V2UpdateLedgerMetadata.java @@ -10,9 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; +import com.formance.formance_sdk.models.ledger.ErrorsV2ErrorResponse; +import com.formance.formance_sdk.models.ledger.V2ErrorResponse; import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataRequest; import com.formance.formance_sdk.models.operations.V2UpdateLedgerMetadataResponse; -import com.formance.formance_sdk.models.shared.V2ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +30,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V2UpdateLedgerMetadata { + + /** + * V2_UPDATE_LEDGER_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V2_UPDATE_LEDGER_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +50,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V2_UPDATE_LEDGER_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -111,8 +125,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V2UpdateLedgerMetadataRequest request) throws Exception { @@ -178,7 +196,7 @@ public V2UpdateLedgerMetadataResponse handleResponse(HttpResponse r } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw com.formance.formance_sdk.models.errors.V2ErrorResponse.from(response); + throw ErrorsV2ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3AddAccountToPool.java b/src/main/java/com/formance/formance_sdk/operations/V3AddAccountToPool.java index 7817020c1..4ffbc7399 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3AddAccountToPool.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3AddAccountToPool.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3AddAccountToPoolRequest; import com.formance.formance_sdk.models.operations.V3AddAccountToPoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3AddAccountToPool { + + /** + * V3_ADD_ACCOUNT_TO_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_ADD_ACCOUNT_TO_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_ADD_ACCOUNT_TO_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3AddAccountToPoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3AddBankAccountToPaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/operations/V3AddBankAccountToPaymentServiceUser.java index b059952e4..2855f19a9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3AddBankAccountToPaymentServiceUser.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3AddBankAccountToPaymentServiceUser.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3AddBankAccountToPaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3AddBankAccountToPaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3AddBankAccountToPaymentServiceUser { + + /** + * V3_ADD_BANK_ACCOUNT_TO_PAYMENT_SERVICE_USER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_ADD_BANK_ACCOUNT_TO_PAYMENT_SERVICE_USER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_ADD_BANK_ACCOUNT_TO_PAYMENT_SERVICE_USER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3AddBankAccountToPaymentServiceUserRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ApprovePaymentInitiation.java b/src/main/java/com/formance/formance_sdk/operations/V3ApprovePaymentInitiation.java index 33e8a636f..843a8ea78 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ApprovePaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ApprovePaymentInitiation.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ApprovePaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3ApprovePaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ApprovePaymentInitiation { + + /** + * V3_APPROVE_PAYMENT_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_APPROVE_PAYMENT_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_APPROVE_PAYMENT_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ApprovePaymentInitiationRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3ApprovePaymentInitiationResponse handleResponse(HttpResponse() {})); + return res.withV3ApprovePaymentInitiationResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3CreateAccount.java b/src/main/java/com/formance/formance_sdk/operations/V3CreateAccount.java index 25096ce9e..771c8ee19 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3CreateAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3CreateAccount.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreateAccountResponse; -import com.formance.formance_sdk.models.shared.V3CreateAccountRequest; +import com.formance.formance_sdk.models.payments.V3CreateAccountRequest; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3CreateAccount { + + /** + * V3_CREATE_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_CREATE_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_CREATE_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -105,8 +118,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation, V3CreateAccountResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(Optional request) throws Exception { @@ -161,7 +178,7 @@ public V3CreateAccountResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3CreateAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3CreateAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3CreateBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/V3CreateBankAccount.java index cc8f79423..114ac36d9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3CreateBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3CreateBankAccount.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreateBankAccountResponse; -import com.formance.formance_sdk.models.shared.V3CreateBankAccountRequest; +import com.formance.formance_sdk.models.payments.V3CreateBankAccountRequest; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3CreateBankAccount { + + /** + * V3_CREATE_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_CREATE_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_CREATE_BANK_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -105,8 +118,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation, V3CreateBankAccountResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(Optional request) throws Exception { @@ -161,7 +178,7 @@ public V3CreateBankAccountResponse handleResponse(HttpResponse resp if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3CreateBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3CreateBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3CreateLinkForPaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/operations/V3CreateLinkForPaymentServiceUser.java index 41922974a..97cef34d0 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3CreateLinkForPaymentServiceUser.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3CreateLinkForPaymentServiceUser.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreateLinkForPaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3CreateLinkForPaymentServiceUserResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserCreateLinkResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserCreateLinkResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3CreateLinkForPaymentServiceUser { + + /** + * V3_CREATE_LINK_FOR_PAYMENT_SERVICE_USER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_CREATE_LINK_FOR_PAYMENT_SERVICE_USER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_CREATE_LINK_FOR_PAYMENT_SERVICE_USER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3CreateLinkForPaymentServiceUserRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3CreatePayment.java b/src/main/java/com/formance/formance_sdk/operations/V3CreatePayment.java index a57da1f19..4ec9e3d92 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3CreatePayment.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3CreatePayment.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreatePaymentResponse; -import com.formance.formance_sdk.models.shared.V3CreatePaymentRequest; +import com.formance.formance_sdk.models.payments.V3CreatePaymentRequest; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3CreatePayment { + + /** + * V3_CREATE_PAYMENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_CREATE_PAYMENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_CREATE_PAYMENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -105,8 +118,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation, V3CreatePaymentResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(Optional request) throws Exception { @@ -161,7 +178,7 @@ public V3CreatePaymentResponse handleResponse(HttpResponse response if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3CreatePaymentResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3CreatePaymentResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3CreatePaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/operations/V3CreatePaymentServiceUser.java index 87b85226e..8471933d7 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3CreatePaymentServiceUser.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3CreatePaymentServiceUser.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreatePaymentServiceUserResponse; -import com.formance.formance_sdk.models.shared.V3CreatePaymentServiceUserRequest; +import com.formance.formance_sdk.models.payments.V3CreatePaymentServiceUserRequest; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3CreatePaymentServiceUser { + + /** + * V3_CREATE_PAYMENT_SERVICE_USER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_CREATE_PAYMENT_SERVICE_USER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_CREATE_PAYMENT_SERVICE_USER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -105,8 +118,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation, V3CreatePaymentServiceUserResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(Optional request) throws Exception { @@ -161,7 +178,7 @@ public V3CreatePaymentServiceUserResponse handleResponse(HttpResponse() {})); + return res.withV3CreatePaymentServiceUserResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3CreatePool.java b/src/main/java/com/formance/formance_sdk/operations/V3CreatePool.java index 2eecf80d9..3119e2196 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3CreatePool.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3CreatePool.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3CreatePoolResponse; -import com.formance.formance_sdk.models.shared.V3CreatePoolRequest; +import com.formance.formance_sdk.models.payments.V3CreatePoolRequest; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3CreatePool { + + /** + * V3_CREATE_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_CREATE_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_CREATE_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -105,8 +118,12 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws public static class Sync extends Base implements RequestOperation, V3CreatePoolResponse> { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(Optional request) throws Exception { @@ -161,7 +178,7 @@ public V3CreatePoolResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "201")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3CreatePoolResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3CreatePoolResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentInitiation.java b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentInitiation.java index 1b33b69b9..29bdc0f99 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentInitiation.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3DeletePaymentInitiation { + + /** + * V3_DELETE_PAYMENT_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_DELETE_PAYMENT_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_DELETE_PAYMENT_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3DeletePaymentInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUser.java index b618a203d..22959d611 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUser.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUser.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserDeleteResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserDeleteResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3DeletePaymentServiceUser { + + /** + * V3_DELETE_PAYMENT_SERVICE_USER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_DELETE_PAYMENT_SERVICE_USER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_DELETE_PAYMENT_SERVICE_USER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3DeletePaymentServiceUserRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnectionFromConnectorID.java b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnectionFromConnectorID.java index e70c186cf..146a70d48 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnectionFromConnectorID.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnectionFromConnectorID.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectionFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectionFromConnectorIDResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserDeleteConnectionResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserDeleteConnectionResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3DeletePaymentServiceUserConnectionFromConnectorID { + + /** + * V3_DELETE_PAYMENT_SERVICE_USER_CONNECTION_FROM_CONNECTOR_ID_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_DELETE_PAYMENT_SERVICE_USER_CONNECTION_FROM_CONNECTOR_ID_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_DELETE_PAYMENT_SERVICE_USER_CONNECTION_FROM_CONNECTOR_ID_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3DeletePaymentServiceUserConnectionFromConnectorIDRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnector.java b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnector.java index e98b8bb51..654e0e5a8 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3DeletePaymentServiceUserConnector.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectorRequest; import com.formance.formance_sdk.models.operations.V3DeletePaymentServiceUserConnectorResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserDeleteConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserDeleteConnectorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3DeletePaymentServiceUserConnector { + + /** + * V3_DELETE_PAYMENT_SERVICE_USER_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_DELETE_PAYMENT_SERVICE_USER_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_DELETE_PAYMENT_SERVICE_USER_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3DeletePaymentServiceUserConnectorRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3DeletePool.java b/src/main/java/com/formance/formance_sdk/operations/V3DeletePool.java index ff122cb69..9d0a4c046 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3DeletePool.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3DeletePool.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3DeletePoolRequest; import com.formance.formance_sdk.models.operations.V3DeletePoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3DeletePool { + + /** + * V3_DELETE_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_DELETE_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_DELETE_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3DeletePoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ForwardBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/V3ForwardBankAccount.java index 94b54d61b..94f0dc071 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ForwardBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ForwardBankAccount.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ForwardBankAccountRequest; import com.formance.formance_sdk.models.operations.V3ForwardBankAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ForwardBankAccount { + + /** + * V3_FORWARD_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_FORWARD_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,12 +48,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_FORWARD_BANK_ACCOUNT_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -58,7 +71,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v3ForwardBankAccount", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -67,7 +80,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v3ForwardBankAccount", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -76,7 +89,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v3ForwardBankAccount", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { @@ -99,7 +112,6 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -107,8 +119,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ForwardBankAccountRequest request) throws Exception { @@ -163,7 +179,7 @@ public V3ForwardBankAccountResponse handleResponse(HttpResponse res if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3ForwardBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3ForwardBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserBankAccount.java index f9115b81b..9ea635df3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserBankAccount.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserBankAccountRequest; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserBankAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ForwardPaymentServiceUserBankAccount { + + /** + * V3_FORWARD_PAYMENT_SERVICE_USER_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_FORWARD_PAYMENT_SERVICE_USER_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_FORWARD_PAYMENT_SERVICE_USER_BANK_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ForwardPaymentServiceUserBankAccountRequest request) throws Exception { @@ -163,7 +180,7 @@ public V3ForwardPaymentServiceUserBankAccountResponse handleResponse(HttpRespons if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3ForwardPaymentServiceUserBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3ForwardPaymentServiceUserBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserToProvider.java b/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserToProvider.java index 5a3d2e6e1..33dcfa986 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserToProvider.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ForwardPaymentServiceUserToProvider.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserToProviderRequest; import com.formance.formance_sdk.models.operations.V3ForwardPaymentServiceUserToProviderResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ForwardPaymentServiceUserToProvider { + + /** + * V3_FORWARD_PAYMENT_SERVICE_USER_TO_PROVIDER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_FORWARD_PAYMENT_SERVICE_USER_TO_PROVIDER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_FORWARD_PAYMENT_SERVICE_USER_TO_PROVIDER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ForwardPaymentServiceUserToProviderRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetAccount.java b/src/main/java/com/formance/formance_sdk/operations/V3GetAccount.java index ddcc4c5c5..c2377fec8 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetAccount.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetAccountRequest; import com.formance.formance_sdk.models.operations.V3GetAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetAccount { + + /** + * V3_GET_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_ACCOUNT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetAccountRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetAccountResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetAccountBalances.java b/src/main/java/com/formance/formance_sdk/operations/V3GetAccountBalances.java index 4dd022798..7e6cfd16c 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetAccountBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetAccountBalances.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetAccountBalancesRequest; import com.formance.formance_sdk.models.operations.V3GetAccountBalancesResponse; -import com.formance.formance_sdk.models.shared.V3BalancesCursorResponse; +import com.formance.formance_sdk.models.payments.V3BalancesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetAccountBalances { + + /** + * V3_GET_ACCOUNT_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_ACCOUNT_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_ACCOUNT_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetAccountBalancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetBankAccount.java b/src/main/java/com/formance/formance_sdk/operations/V3GetBankAccount.java index 8d3c0d77b..7ce8a04d9 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetBankAccount.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetBankAccount.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetBankAccountRequest; import com.formance.formance_sdk.models.operations.V3GetBankAccountResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetBankAccount { + + /** + * V3_GET_BANK_ACCOUNT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_BANK_ACCOUNT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,12 +45,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_BANK_ACCOUNT_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -55,7 +68,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v3GetBankAccount", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -64,7 +77,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v3GetBankAccount", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -73,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v3GetBankAccount", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass) throws Exception { @@ -86,7 +99,6 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -94,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetBankAccountRequest request) throws Exception { @@ -150,7 +166,7 @@ public V3GetBankAccountResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetBankAccountResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorConfig.java b/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorConfig.java index 4f55729c8..0e6e7be20 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorConfig.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetConnectorConfigRequest; import com.formance.formance_sdk.models.operations.V3GetConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetConnectorConfig { + + /** + * V3_GET_CONNECTOR_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_CONNECTOR_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_CONNECTOR_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetConnectorConfigRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetConnectorConfigResponse handleResponse(HttpResponse res if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetConnectorConfigResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetConnectorConfigResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorSchedule.java b/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorSchedule.java index d8289e1da..2852937e1 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorSchedule.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetConnectorSchedule.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetConnectorScheduleRequest; import com.formance.formance_sdk.models.operations.V3GetConnectorScheduleResponse; -import com.formance.formance_sdk.models.shared.V3ConnectorScheduleResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorScheduleResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetConnectorSchedule { + + /** + * V3_GET_CONNECTOR_SCHEDULE_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_CONNECTOR_SCHEDULE_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_CONNECTOR_SCHEDULE_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetConnectorScheduleRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPayment.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPayment.java index c57024254..35dc2e745 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPayment.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPayment.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPayment { + + /** + * V3_GET_PAYMENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_PAYMENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_PAYMENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPaymentRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetPaymentResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetPaymentResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetPaymentResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentInitiation.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentInitiation.java index 966700647..14a2dc705 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentInitiation.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPaymentInitiation { + + /** + * V3_GET_PAYMENT_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_PAYMENT_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_PAYMENT_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPaymentInitiationRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetPaymentInitiationResponse handleResponse(HttpResponse r if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetPaymentInitiationResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetPaymentInitiationResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUser.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUser.java index e5774f677..9e5d18fc7 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUser.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUser.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPaymentServiceUser { + + /** + * V3_GET_PAYMENT_SERVICE_USER_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_PAYMENT_SERVICE_USER_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_PAYMENT_SERVICE_USER_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPaymentServiceUserRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetPaymentServiceUserResponse handleResponse(HttpResponse if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetPaymentServiceUserResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetPaymentServiceUserResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorID.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorID.java index 67de642ff..d40276bdf 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorID.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPaymentServiceUserLinkAttemptFromConnectorID.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3GetPaymentServiceUserLinkAttemptFromConnectorIDResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserLinkAttempt; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserLinkAttempt; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPaymentServiceUserLinkAttemptFromConnectorID { + + /** + * V3_GET_PAYMENT_SERVICE_USER_LINK_ATTEMPT_FROM_CONNECTOR_ID_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_PAYMENT_SERVICE_USER_LINK_ATTEMPT_FROM_CONNECTOR_ID_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_PAYMENT_SERVICE_USER_LINK_ATTEMPT_FROM_CONNECTOR_ID_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPaymentServiceUserLinkAttemptFromConnectorIDRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPool.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPool.java index 2537378ba..2e2a72129 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPool.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPool.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPoolRequest; import com.formance.formance_sdk.models.operations.V3GetPoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPool { + + /** + * V3_GET_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPoolRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetPoolResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetPoolResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetPoolResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalances.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalances.java index 8077228ab..789eb683b 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalances.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalances.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesRequest; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesResponse; -import com.formance.formance_sdk.models.shared.V3PoolBalancesResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PoolBalancesResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPoolBalances { + + /** + * V3_GET_POOL_BALANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_POOL_BALANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_POOL_BALANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPoolBalancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalancesLatest.java b/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalancesLatest.java index 07a8497f1..b46585a7a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalancesLatest.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetPoolBalancesLatest.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesLatestRequest; import com.formance.formance_sdk.models.operations.V3GetPoolBalancesLatestResponse; -import com.formance.formance_sdk.models.shared.V3PoolBalancesResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PoolBalancesResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetPoolBalancesLatest { + + /** + * V3_GET_POOL_BALANCES_LATEST_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_POOL_BALANCES_LATEST_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_POOL_BALANCES_LATEST_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -95,8 +108,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetPoolBalancesLatestRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3GetTask.java b/src/main/java/com/formance/formance_sdk/operations/V3GetTask.java index 82fceb7b6..4fc1678a3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3GetTask.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3GetTask.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3GetTaskRequest; import com.formance.formance_sdk.models.operations.V3GetTaskResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3GetTask { + + /** + * V3_GET_TASK_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_GET_TASK_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_GET_TASK_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3GetTaskRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3GetTaskResponse handleResponse(HttpResponse response) { if (Utils.statusCodeMatches(response.statusCode(), "200")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3GetTaskResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3GetTaskResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3InitiatePayment.java b/src/main/java/com/formance/formance_sdk/operations/V3InitiatePayment.java index 61792710e..a050d0cf0 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3InitiatePayment.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3InitiatePayment.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3InitiatePaymentRequest; import com.formance.formance_sdk.models.operations.V3InitiatePaymentResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3InitiatePayment { + + /** + * V3_INITIATE_PAYMENT_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_INITIATE_PAYMENT_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_INITIATE_PAYMENT_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -110,8 +123,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3InitiatePaymentRequest request) throws Exception { @@ -166,7 +183,7 @@ public V3InitiatePaymentResponse handleResponse(HttpResponse respon if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3InitiatePaymentResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3InitiatePaymentResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3InstallConnector.java b/src/main/java/com/formance/formance_sdk/operations/V3InstallConnector.java index 35d56e0b3..6741093ec 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3InstallConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3InstallConnector.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3InstallConnectorRequest; import com.formance.formance_sdk.models.operations.V3InstallConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3InstallConnector { + + /** + * V3_INSTALL_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_INSTALL_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_INSTALL_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,7 +105,7 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "v3InstallConnectorRequest", + "v3ConnectorConfig", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3InstallConnectorRequest request) throws Exception { @@ -163,7 +180,7 @@ public V3InstallConnectorResponse handleResponse(HttpResponse respo if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3InstallConnectorResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3InstallConnectorResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListAccounts.java b/src/main/java/com/formance/formance_sdk/operations/V3ListAccounts.java index b2e3130dc..7a71d1088 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListAccounts.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListAccounts.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListAccountsRequest; import com.formance.formance_sdk.models.operations.V3ListAccountsResponse; -import com.formance.formance_sdk.models.shared.V3AccountsCursorResponse; +import com.formance.formance_sdk.models.payments.V3AccountsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListAccounts { + + /** + * V3_LIST_ACCOUNTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_ACCOUNTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_ACCOUNTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/accounts"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListAccountsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListAccountsRequest.class); + HttpRequest req = buildRequest(request, V3ListAccountsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListBankAccounts.java b/src/main/java/com/formance/formance_sdk/operations/V3ListBankAccounts.java index e08d6a2a5..ee4942594 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListBankAccounts.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListBankAccounts.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListBankAccountsRequest; import com.formance.formance_sdk.models.operations.V3ListBankAccountsResponse; -import com.formance.formance_sdk.models.shared.V3BankAccountsCursorResponse; +import com.formance.formance_sdk.models.payments.V3BankAccountsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListBankAccounts { + + /** + * V3_LIST_BANK_ACCOUNTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_BANK_ACCOUNTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_BANK_ACCOUNTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/bank-accounts"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListBankAccountsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListBankAccountsRequest.class); + HttpRequest req = buildRequest(request, V3ListBankAccountsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorConfigs.java b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorConfigs.java index cf00fc52a..f000bd8a8 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorConfigs.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorConfigs.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorConfigsResponse; -import com.formance.formance_sdk.models.shared.V3ConnectorConfigsResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorConfigsResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListConnectorConfigs { + + /** + * V3_LIST_CONNECTOR_CONFIGS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_CONNECTOR_CONFIGS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_CONNECTOR_CONFIGS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,8 +105,12 @@ HttpRequest buildRequest() throws Exception { public static class Sync extends Base implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest() throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorScheduleInstances.java b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorScheduleInstances.java index 2dc5e4f7c..71afe0eb5 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorScheduleInstances.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorScheduleInstances.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorScheduleInstancesRequest; import com.formance.formance_sdk.models.operations.V3ListConnectorScheduleInstancesResponse; -import com.formance.formance_sdk.models.shared.V3ConnectorScheduleInstancesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorScheduleInstancesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -26,10 +26,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListConnectorScheduleInstances { + + /** + * V3_LIST_CONNECTOR_SCHEDULE_INSTANCES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_CONNECTOR_SCHEDULE_INSTANCES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +46,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_CONNECTOR_SCHEDULE_INSTANCES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -100,8 +113,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListConnectorScheduleInstancesRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorSchedules.java b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorSchedules.java index 4c6d55d3c..964715c20 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorSchedules.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectorSchedules.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorSchedulesRequest; import com.formance.formance_sdk.models.operations.V3ListConnectorSchedulesResponse; -import com.formance.formance_sdk.models.shared.V3ConnectorSchedulesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorSchedulesCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListConnectorSchedules { + + /** + * V3_LIST_CONNECTOR_SCHEDULES_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_CONNECTOR_SCHEDULES_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_CONNECTOR_SCHEDULES_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +93,23 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/payments/v3/connectors/{connectorID}/schedules", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +126,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListConnectorSchedulesRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListConnectorSchedulesRequest.class); + HttpRequest req = buildRequest(request, V3ListConnectorSchedulesRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectors.java b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectors.java index d3349dcee..7eba71778 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListConnectors.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListConnectors.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListConnectorsRequest; import com.formance.formance_sdk.models.operations.V3ListConnectorsResponse; -import com.formance.formance_sdk.models.shared.V3ConnectorsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ConnectorsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListConnectors { + + /** + * V3_LIST_CONNECTORS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_CONNECTORS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_CONNECTORS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/connectors"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListConnectorsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListConnectorsRequest.class); + HttpRequest req = buildRequest(request, V3ListConnectorsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationAdjustments.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationAdjustments.java index 09f3abeb7..4dee32535 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationAdjustments.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationAdjustments.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationAdjustmentsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationAdjustmentsResponse; -import com.formance.formance_sdk.models.shared.V3PaymentInitiationAdjustmentsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationAdjustmentsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentInitiationAdjustments { + + /** + * V3_LIST_PAYMENT_INITIATION_ADJUSTMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_INITIATION_ADJUSTMENTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_INITIATION_ADJUSTMENTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +93,23 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/payments/v3/payment-initiations/{paymentInitiationID}/adjustments", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +126,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentInitiationAdjustmentsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentInitiationAdjustmentsRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentInitiationAdjustmentsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationRelatedPayments.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationRelatedPayments.java index 4384594b2..86d66f4a7 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationRelatedPayments.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiationRelatedPayments.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationRelatedPaymentsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationRelatedPaymentsResponse; -import com.formance.formance_sdk.models.shared.V3PaymentInitiationRelatedPaymentsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationRelatedPaymentsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentInitiationRelatedPayments { + + /** + * V3_LIST_PAYMENT_INITIATION_RELATED_PAYMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_INITIATION_RELATED_PAYMENTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_INITIATION_RELATED_PAYMENTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +93,23 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/payments/v3/payment-initiations/{paymentInitiationID}/payments", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +126,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentInitiationRelatedPaymentsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentInitiationRelatedPaymentsRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentInitiationRelatedPaymentsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiations.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiations.java index bb5c7e98f..58e8eb1b5 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiations.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentInitiations.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentInitiationsResponse; -import com.formance.formance_sdk.models.shared.V3PaymentInitiationsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentInitiationsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentInitiations { + + /** + * V3_LIST_PAYMENT_INITIATIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_INITIATIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_INITIATIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/payment-initiations"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentInitiationsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentInitiationsRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentInitiationsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnections.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnections.java index 228a68aea..baee70e80 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnections.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnections.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserConnectionsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserConnectionsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUserConnections { + + /** + * V3_LIST_PAYMENT_SERVICE_USER_CONNECTIONS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_SERVICE_USER_CONNECTIONS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_SERVICE_USER_CONNECTIONS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +93,23 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/payments/v3/payment-service-users/{paymentServiceUserID}/connections", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +126,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentServiceUserConnectionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentServiceUserConnectionsRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentServiceUserConnectionsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnectionsFromConnectorID.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnectionsFromConnectorID.java index 5a596777d..df7faf0ce 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnectionsFromConnectorID.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserConnectionsFromConnectorID.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserConnectionsFromConnectorIDResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserConnectionsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserConnectionsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUserConnectionsFromConnectorID { + + /** + * V3_LIST_PAYMENT_SERVICE_USER_CONNECTIONS_FROM_CONNECTOR_ID_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_SERVICE_USER_CONNECTIONS_FROM_CONNECTOR_ID_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_SERVICE_USER_CONNECTIONS_FROM_CONNECTOR_ID_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +93,23 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/payments/v3/payment-service-users/{paymentServiceUserID}/connectors/{connectorID}/connections", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +126,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentServiceUserConnectionsFromConnectorIDRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentServiceUserConnectionsFromConnectorIDRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorID.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorID.java index 43441f1e7..77f12b905 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorID.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUserLinkAttemptsFromConnectorID.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUserLinkAttemptsFromConnectorIDResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserLinkAttemptsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserLinkAttemptsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUserLinkAttemptsFromConnectorID { + + /** + * V3_LIST_PAYMENT_SERVICE_USER_LINK_ATTEMPTS_FROM_CONNECTOR_ID_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_SERVICE_USER_LINK_ATTEMPTS_FROM_CONNECTOR_ID_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_SERVICE_USER_LINK_ATTEMPTS_FROM_CONNECTOR_ID_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,13 +93,23 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( klass, this.baseUrl, "/api/payments/v3/payment-service-users/{paymentServiceUserID}/connectors/{connectorID}/link-attempts", request, null); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -100,12 +126,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentServiceUserLinkAttemptsFromConnectorIDRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUsers.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUsers.java index 9b6c48778..94b99d36a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUsers.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPaymentServiceUsers.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUsersRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentServiceUsersResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUsersCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUsersCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPaymentServiceUsers { + + /** + * V3_LIST_PAYMENT_SERVICE_USERS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENT_SERVICE_USERS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENT_SERVICE_USERS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/payment-service-users"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentServiceUsersRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentServiceUsersRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentServiceUsersRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPayments.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPayments.java index 02b1be35a..8cc69dd2a 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPayments.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPayments.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPaymentsRequest; import com.formance.formance_sdk.models.operations.V3ListPaymentsResponse; -import com.formance.formance_sdk.models.shared.V3PaymentsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPayments { + + /** + * V3_LIST_PAYMENTS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_PAYMENTS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_PAYMENTS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/payments"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPaymentsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPaymentsRequest.class); + HttpRequest req = buildRequest(request, V3ListPaymentsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ListPools.java b/src/main/java/com/formance/formance_sdk/operations/V3ListPools.java index 681933a47..18d2e7a05 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ListPools.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ListPools.java @@ -10,26 +10,37 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ListPoolsRequest; import com.formance.formance_sdk.models.operations.V3ListPoolsResponse; -import com.formance.formance_sdk.models.shared.V3PoolsCursorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PoolsCursorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; +import com.formance.formance_sdk.utils.SerializedBody; +import com.formance.formance_sdk.utils.Utils.JsonShape; import com.formance.formance_sdk.utils.Utils; import java.io.InputStream; import java.lang.Exception; +import java.lang.Object; import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ListPools { + + /** + * V3_LIST_POOLS_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_LIST_POOLS_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -38,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_LIST_POOLS_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -77,11 +93,21 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.of(java.util.List.of("payments:read")), securitySource()); } - HttpRequest buildRequest(T request, Class klass) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/api/payments/v3/pools"); HTTPRequest req = new HTTPRequest(url, "GET"); + Object convertedRequest = Utils.convertToShape( + request, + JsonShape.DEFAULT, + typeReference); + SerializedBody serializedRequestBody = Utils.serializeRequestBody( + convertedRequest, + "requestBody", + "json", + false); + req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); @@ -98,12 +124,16 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ListPoolsRequest request) throws Exception { - HttpRequest req = buildRequest(request, V3ListPoolsRequest.class); + HttpRequest req = buildRequest(request, V3ListPoolsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3RejectPaymentInitiation.java b/src/main/java/com/formance/formance_sdk/operations/V3RejectPaymentInitiation.java index 3f969fdd7..9b0d4853d 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3RejectPaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3RejectPaymentInitiation.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3RejectPaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3RejectPaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3RejectPaymentInitiation { + + /** + * V3_REJECT_PAYMENT_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_REJECT_PAYMENT_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_REJECT_PAYMENT_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3RejectPaymentInitiationRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3RemoveAccountFromPool.java b/src/main/java/com/formance/formance_sdk/operations/V3RemoveAccountFromPool.java index a5051a758..601fc2445 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3RemoveAccountFromPool.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3RemoveAccountFromPool.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3RemoveAccountFromPoolRequest; import com.formance.formance_sdk.models.operations.V3RemoveAccountFromPoolResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3RemoveAccountFromPool { + + /** + * V3_REMOVE_ACCOUNT_FROM_POOL_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_REMOVE_ACCOUNT_FROM_POOL_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_REMOVE_ACCOUNT_FROM_POOL_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -93,8 +106,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3RemoveAccountFromPoolRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ResetConnector.java b/src/main/java/com/formance/formance_sdk/operations/V3ResetConnector.java index 253f4b969..329eabc55 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ResetConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ResetConnector.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ResetConnectorRequest; import com.formance.formance_sdk.models.operations.V3ResetConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ResetConnector { + + /** + * V3_RESET_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_RESET_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_RESET_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ResetConnectorRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3ResetConnectorResponse handleResponse(HttpResponse respons if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3ResetConnectorResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3ResetConnectorResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3RetryPaymentInitiation.java b/src/main/java/com/formance/formance_sdk/operations/V3RetryPaymentInitiation.java index aabfe07e0..03cd1e1e3 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3RetryPaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3RetryPaymentInitiation.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3RetryPaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3RetryPaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3RetryPaymentInitiation { + + /** + * V3_RETRY_PAYMENT_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_RETRY_PAYMENT_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_RETRY_PAYMENT_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3RetryPaymentInitiationRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3RetryPaymentInitiationResponse handleResponse(HttpResponse if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3RetryPaymentInitiationResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3RetryPaymentInitiationResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3ReversePaymentInitiation.java b/src/main/java/com/formance/formance_sdk/operations/V3ReversePaymentInitiation.java index 248db17e9..37b63cb29 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3ReversePaymentInitiation.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3ReversePaymentInitiation.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3ReversePaymentInitiationRequest; import com.formance.formance_sdk.models.operations.V3ReversePaymentInitiationResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3ReversePaymentInitiation { + + /** + * V3_REVERSE_PAYMENT_INITIATION_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_REVERSE_PAYMENT_INITIATION_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_REVERSE_PAYMENT_INITIATION_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3ReversePaymentInitiationRequest request) throws Exception { @@ -163,7 +180,7 @@ public V3ReversePaymentInitiationResponse handleResponse(HttpResponse() {})); + return res.withV3ReversePaymentInitiationResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3UninstallConnector.java b/src/main/java/com/formance/formance_sdk/operations/V3UninstallConnector.java index 37b6dd5db..6aa71e5ff 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3UninstallConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3UninstallConnector.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UninstallConnectorRequest; import com.formance.formance_sdk.models.operations.V3UninstallConnectorResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -25,10 +25,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3UninstallConnector { + + /** + * V3_UNINSTALL_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_UNINSTALL_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -37,11 +45,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_UNINSTALL_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3UninstallConnectorRequest request) throws Exception { @@ -150,7 +167,7 @@ public V3UninstallConnectorResponse handleResponse(HttpResponse res if (Utils.statusCodeMatches(response.statusCode(), "202")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withV3UninstallConnectorResponse(Utils.unmarshal(response, new TypeReference() {})); + return res.withV3UninstallConnectorResponse(Utils.unmarshal(response, new TypeReference() {})); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/V3UpdateBankAccountMetadata.java b/src/main/java/com/formance/formance_sdk/operations/V3UpdateBankAccountMetadata.java index 6d3f108d6..4d7465474 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3UpdateBankAccountMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3UpdateBankAccountMetadata.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdateBankAccountMetadataRequest; import com.formance.formance_sdk.models.operations.V3UpdateBankAccountMetadataResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3UpdateBankAccountMetadata { + + /** + * V3_UPDATE_BANK_ACCOUNT_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_UPDATE_BANK_ACCOUNT_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,12 +48,17 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_UPDATE_BANK_ACCOUNT_METADATA_SERVERS[0], + Map.of())); + this.securitySource = null; this.client = this.sdkConfiguration.client(); } @@ -58,7 +71,7 @@ BeforeRequestContextImpl createBeforeRequestContext() { this.sdkConfiguration, this.baseUrl, "v3UpdateBankAccountMetadata", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -67,7 +80,7 @@ AfterSuccessContextImpl createAfterSuccessContext() { this.sdkConfiguration, this.baseUrl, "v3UpdateBankAccountMetadata", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } @@ -76,7 +89,7 @@ AfterErrorContextImpl createAfterErrorContext() { this.sdkConfiguration, this.baseUrl, "v3UpdateBankAccountMetadata", - java.util.Optional.of(java.util.List.of("auth:read")), + java.util.Optional.empty(), securitySource()); } HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { @@ -99,7 +112,6 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); } @@ -107,8 +119,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3UpdateBankAccountMetadataRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3UpdateConnectorConfig.java b/src/main/java/com/formance/formance_sdk/operations/V3UpdateConnectorConfig.java index bdfa5f283..fc3dad461 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3UpdateConnectorConfig.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3UpdateConnectorConfig.java @@ -9,10 +9,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.PaymentsErrorResponse; import com.formance.formance_sdk.models.errors.SDKError; import com.formance.formance_sdk.models.operations.V3UpdateConnectorConfigRequest; import com.formance.formance_sdk.models.operations.V3UpdateConnectorConfigResponse; +import com.formance.formance_sdk.models.payments.PaymentsErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3UpdateConnectorConfig { + + /** + * V3_UPDATE_CONNECTOR_CONFIG_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_UPDATE_CONNECTOR_CONFIG_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_UPDATE_CONNECTOR_CONFIG_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -92,7 +105,7 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "v3InstallConnectorRequest", + "v3ConnectorConfig", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3UpdateConnectorConfigRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3UpdateLinkForPaymentServiceUserOnConnector.java b/src/main/java/com/formance/formance_sdk/operations/V3UpdateLinkForPaymentServiceUserOnConnector.java index 6d111cf37..be76f3ff8 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3UpdateLinkForPaymentServiceUserOnConnector.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3UpdateLinkForPaymentServiceUserOnConnector.java @@ -10,10 +10,10 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdateLinkForPaymentServiceUserOnConnectorRequest; import com.formance.formance_sdk.models.operations.V3UpdateLinkForPaymentServiceUserOnConnectorResponse; -import com.formance.formance_sdk.models.shared.V3PaymentServiceUserUpdateLinkResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; +import com.formance.formance_sdk.models.payments.V3PaymentServiceUserUpdateLinkResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -29,10 +29,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3UpdateLinkForPaymentServiceUserOnConnector { + + /** + * V3_UPDATE_LINK_FOR_PAYMENT_SERVICE_USER_ON_CONNECTOR_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_UPDATE_LINK_FOR_PAYMENT_SERVICE_USER_ON_CONNECTOR_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -41,11 +49,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_UPDATE_LINK_FOR_PAYMENT_SERVICE_USER_ON_CONNECTOR_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -108,8 +121,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3UpdateLinkForPaymentServiceUserOnConnectorRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3UpdatePaymentMetadata.java b/src/main/java/com/formance/formance_sdk/operations/V3UpdatePaymentMetadata.java index 92b651d5c..9e88ede4f 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3UpdatePaymentMetadata.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3UpdatePaymentMetadata.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdatePaymentMetadataRequest; import com.formance.formance_sdk.models.operations.V3UpdatePaymentMetadataResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3UpdatePaymentMetadata { + + /** + * V3_UPDATE_PAYMENT_METADATA_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_UPDATE_PAYMENT_METADATA_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_UPDATE_PAYMENT_METADATA_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3UpdatePaymentMetadataRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/V3UpdatePoolQuery.java b/src/main/java/com/formance/formance_sdk/operations/V3UpdatePoolQuery.java index aa2874efd..97cb1f481 100644 --- a/src/main/java/com/formance/formance_sdk/operations/V3UpdatePoolQuery.java +++ b/src/main/java/com/formance/formance_sdk/operations/V3UpdatePoolQuery.java @@ -10,9 +10,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.V3ErrorResponse; import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryRequest; import com.formance.formance_sdk.models.operations.V3UpdatePoolQueryResponse; +import com.formance.formance_sdk.models.payments.V3ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -28,10 +28,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class V3UpdatePoolQuery { + + /** + * V3_UPDATE_POOL_QUERY_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] V3_UPDATE_POOL_QUERY_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -40,11 +48,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + V3_UPDATE_POOL_QUERY_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -107,8 +120,12 @@ HttpRequest buildRequest(T request, Class klass, TypeReference typeR public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(V3UpdatePoolQueryRequest request) throws Exception { diff --git a/src/main/java/com/formance/formance_sdk/operations/VoidHold.java b/src/main/java/com/formance/formance_sdk/operations/VoidHold.java index a1600d13d..817d4c322 100644 --- a/src/main/java/com/formance/formance_sdk/operations/VoidHold.java +++ b/src/main/java/com/formance/formance_sdk/operations/VoidHold.java @@ -9,9 +9,9 @@ import com.formance.formance_sdk.SDKConfiguration; import com.formance.formance_sdk.SecuritySource; import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; import com.formance.formance_sdk.models.operations.VoidHoldRequest; import com.formance.formance_sdk.models.operations.VoidHoldResponse; +import com.formance.formance_sdk.models.wallets.ErrorResponse; import com.formance.formance_sdk.utils.HTTPClient; import com.formance.formance_sdk.utils.HTTPRequest; import com.formance.formance_sdk.utils.Headers; @@ -24,10 +24,18 @@ import java.lang.String; import java.net.http.HttpRequest; import java.net.http.HttpResponse; +import java.util.Map; import java.util.Optional; public class VoidHold { + + /** + * VOID_HOLD_SERVERS contains the list of server urls available to the SDK. + */ + public static final String[] VOID_HOLD_SERVERS = { + "http://localhost:8080/", + }; static abstract class Base { final SDKConfiguration sdkConfiguration; @@ -36,11 +44,16 @@ static abstract class Base { final HTTPClient client; final Headers _headers; - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { + public Base( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { this.sdkConfiguration = sdkConfiguration; this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); + this.baseUrl = serverURL + .filter(u -> !u.isBlank()) + .orElse(Utils.templateUrl( + VOID_HOLD_SERVERS[0], + Map.of())); this.securitySource = this.sdkConfiguration.securitySource(); this.client = this.sdkConfiguration.client(); } @@ -94,8 +107,12 @@ HttpRequest buildRequest(T request, Class klass) throws Exception { public static class Sync extends Base implements RequestOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); + public Sync( + SDKConfiguration sdkConfiguration, Optional serverURL, + Headers _headers) { + super( + sdkConfiguration, serverURL, + _headers); } private HttpRequest onBuildRequest(VoidHoldRequest request) throws Exception { @@ -154,7 +171,7 @@ public VoidHoldResponse handleResponse(HttpResponse response) { } if (Utils.statusCodeMatches(response.statusCode(), "default")) { if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); + throw ErrorResponse.from(response); } else { throw SDKError.from("Unexpected content-type received: " + contentType, response); } diff --git a/src/main/java/com/formance/formance_sdk/operations/WalletsgetServerInfo.java b/src/main/java/com/formance/formance_sdk/operations/WalletsgetServerInfo.java deleted file mode 100644 index e4e3bb0b1..000000000 --- a/src/main/java/com/formance/formance_sdk/operations/WalletsgetServerInfo.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ -package com.formance.formance_sdk.operations; - -import static com.formance.formance_sdk.operations.Operations.RequestlessOperation; -import static com.formance.formance_sdk.utils.Exceptions.unchecked; - -import com.fasterxml.jackson.core.type.TypeReference; -import com.formance.formance_sdk.SDKConfiguration; -import com.formance.formance_sdk.SecuritySource; -import com.formance.formance_sdk.models.errors.SDKError; -import com.formance.formance_sdk.models.errors.WalletsErrorResponse; -import com.formance.formance_sdk.models.operations.WalletsgetServerInfoResponse; -import com.formance.formance_sdk.models.shared.ServerInfo; -import com.formance.formance_sdk.utils.HTTPClient; -import com.formance.formance_sdk.utils.HTTPRequest; -import com.formance.formance_sdk.utils.Headers; -import com.formance.formance_sdk.utils.Hook.AfterErrorContextImpl; -import com.formance.formance_sdk.utils.Hook.AfterSuccessContextImpl; -import com.formance.formance_sdk.utils.Hook.BeforeRequestContextImpl; -import com.formance.formance_sdk.utils.Utils; -import java.io.InputStream; -import java.lang.Exception; -import java.lang.String; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; -import java.util.Optional; - - -public class WalletsgetServerInfo { - - static abstract class Base { - final SDKConfiguration sdkConfiguration; - final String baseUrl; - final SecuritySource securitySource; - final HTTPClient client; - final Headers _headers; - - public Base(SDKConfiguration sdkConfiguration, Headers _headers) { - this.sdkConfiguration = sdkConfiguration; - this._headers =_headers; - this.baseUrl = Utils.templateUrl( - this.sdkConfiguration.serverUrl(), this.sdkConfiguration.getServerVariableDefaults()); - this.securitySource = this.sdkConfiguration.securitySource(); - this.client = this.sdkConfiguration.client(); - } - - Optional securitySource() { - return Optional.ofNullable(this.securitySource); - } - - BeforeRequestContextImpl createBeforeRequestContext() { - return new BeforeRequestContextImpl( - this.sdkConfiguration, - this.baseUrl, - "walletsgetServerInfo", - java.util.Optional.of(java.util.List.of("wallets:read")), - securitySource()); - } - - AfterSuccessContextImpl createAfterSuccessContext() { - return new AfterSuccessContextImpl( - this.sdkConfiguration, - this.baseUrl, - "walletsgetServerInfo", - java.util.Optional.of(java.util.List.of("wallets:read")), - securitySource()); - } - - AfterErrorContextImpl createAfterErrorContext() { - return new AfterErrorContextImpl( - this.sdkConfiguration, - this.baseUrl, - "walletsgetServerInfo", - java.util.Optional.of(java.util.List.of("wallets:read")), - securitySource()); - } - HttpRequest buildRequest() throws Exception { - String url = Utils.generateURL( - this.baseUrl, - "/api/wallets/_info"); - HTTPRequest req = new HTTPRequest(url, "GET"); - req.addHeader("Accept", "application/json") - .addHeader("user-agent", SDKConfiguration.USER_AGENT); - _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); - Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); - - return req.build(); - } - } - - public static class Sync extends Base - implements RequestlessOperation { - public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { - super(sdkConfiguration, _headers); - } - - private HttpRequest onBuildRequest() throws Exception { - HttpRequest req = buildRequest(); - return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); - } - - private HttpResponse onError(HttpResponse response, Exception error) throws Exception { - return sdkConfiguration.hooks().afterError( - createAfterErrorContext(), - Optional.ofNullable(response), - Optional.ofNullable(error)); - } - - private HttpResponse onSuccess(HttpResponse response) throws Exception { - return sdkConfiguration.hooks().afterSuccess(createAfterSuccessContext(), response); - } - - @Override - public HttpResponse doRequest() { - HttpRequest r = unchecked(() -> onBuildRequest()).get(); - HttpResponse httpRes; - try { - httpRes = client.send(r); - if (Utils.statusCodeMatches(httpRes.statusCode(), "default")) { - httpRes = onError(httpRes, null); - } else { - httpRes = onSuccess(httpRes); - } - } catch (Exception e) { - httpRes = unchecked(() -> onError(null, e)).get(); - } - - return httpRes; - } - - - @Override - public WalletsgetServerInfoResponse handleResponse(HttpResponse response) { - String contentType = response - .headers() - .firstValue("Content-Type") - .orElse("application/octet-stream"); - WalletsgetServerInfoResponse.Builder resBuilder = - WalletsgetServerInfoResponse - .builder() - .contentType(contentType) - .statusCode(response.statusCode()) - .rawResponse(response); - - WalletsgetServerInfoResponse res = resBuilder.build(); - - if (Utils.statusCodeMatches(response.statusCode(), "200")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - return res.withServerInfo(Utils.unmarshal(response, new TypeReference() {})); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - if (Utils.statusCodeMatches(response.statusCode(), "default")) { - if (Utils.contentTypeMatches(contentType, "application/json")) { - throw WalletsErrorResponse.from(response); - } else { - throw SDKError.from("Unexpected content-type received: " + contentType, response); - } - } - throw SDKError.from("Unexpected status code received: " + response.statusCode(), response); - } - } -}